/* Sumar Tech company pages (home, legal). Same type and colours as the studio page, so the whole site feels like one place. */
:root {
  --bg: #fbf8f3; --bg-2: #f3ede4; --surface: #ffffff; --line: #ebe2d6;
  --ink: #1c1633; --ink-2: #5d5474; --accent: #ff6b4a; --btn: #1c1633; --btn-ink: #ffffff;
  --chip: #f1eaf9; --chip-ink: #4c3d73;
  --shadow: 0 1px 0 rgba(28, 22, 51, .04), 0 18px 40px -18px rgba(28, 22, 51, .28);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #110e22; --bg-2: #17132e; --surface: #1c1838; --line: #2c2650;
    --ink: #f4f0ff; --ink-2: #b1a8cf; --accent: #ff7a5c; --btn: #f4f0ff; --btn-ink: #16122b;
    --chip: #2a2450; --chip-ink: #d6ccff;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 20px 44px -20px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  --bg: #110e22; --bg-2: #17132e; --surface: #1c1838; --line: #2c2650;
  --ink: #f4f0ff; --ink-2: #b1a8cf; --accent: #ff7a5c; --btn: #f4f0ff; --btn-ink: #16122b;
  --chip: #2a2450; --chip-ink: #d6ccff;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 20px 44px -20px rgba(0, 0, 0, .7);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 500 16px/1.6 "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; text-wrap: balance; margin: 0; }
section[id] { scroll-margin-top: 16px; }

/* Header */
.hero { position: relative; overflow: hidden; color: #f4f0ff;
  background: radial-gradient(120% 90% at 85% 10%, #5b3fb0 0%, transparent 55%),
              radial-gradient(90% 80% at 0% 100%, #ff6b4a33 0%, transparent 60%),
              linear-gradient(180deg, #2a1f5c, #16122b); }
.hero.slim { padding-bottom: 36px; }
.stars { position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 68%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 76%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 91% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 84%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 55% 88%, #fff 50%, transparent 51%); }
nav.top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 20px/1 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: .01em; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .28); }
footer .brand img { box-shadow: none; }
.brand-mark { display: grid; gap: 3px; }
.brand-mark i { display: block; height: 6px; border-radius: 2px; }
.brand-mark i:nth-child(1) { width: 16px; margin-left: 5px; background: #9aa6ff; }
.brand-mark i:nth-child(2) { width: 20px; margin-left: 2px; background: #7a86f5; }
.brand-mark i:nth-child(3) { width: 24px; background: #ff6b4a; }
.navlinks { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.navlinks a { text-decoration: none; opacity: .85; }
.navlinks a:hover, .navlinks a[aria-current] { opacity: 1; }
.navlinks a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding: 36px 0 92px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow b { width: 8px; height: 8px; border-radius: 50%; background: #5ee39a; box-shadow: 0 0 0 4px rgba(94, 227, 154, .2); }
.hero h1 { margin-top: 18px; font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: #ffb199; }
.lede { margin: 20px 0 0; max-width: 48ch; font-size: 19px; line-height: 1.55; color: #d9d2f5; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: #ff6b4a; color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 107, 74, .8); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-dark { background: var(--btn); color: var(--btn-ink); }
.btn-dark:hover { transform: translateY(-1px); }
.btn-quiet { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--chip); }
.btn-quiet:hover { color: var(--ink); background: var(--bg-2); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* The icon wall: every live game and app, floating */
.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; transform: rotate(-4deg); }
.wall a { display: block; border-radius: 24%; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .2s ease; }
.wall a:hover { transform: translateY(-4px) scale(1.04); }
.wall img { display: block; width: 100%; height: auto; border-radius: 24%; }
.wall a:nth-child(even) { margin-top: 18px; margin-bottom: -18px; }
@media (prefers-reduced-motion: no-preference) {
  .wall a:nth-child(3n+1) img { animation: bob 6s ease-in-out infinite; }
  .wall a:nth-child(3n+2) img { animation: bob 7s ease-in-out -2s infinite; }
  .wall a:nth-child(3n) img { animation: bob 8s ease-in-out -4s infinite; }
  @keyframes bob { 50% { transform: translateY(-7px); } }
}

/* Numbers strip */
.stats { position: relative; z-index: 1; margin-top: -44px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); }
.stats div { padding: 20px 22px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font: 800 32px/1.1 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.01em; }
.stats span { color: var(--ink-2); font-size: 14px; font-weight: 600; }

/* Sections */
.sec { padding: 84px 0 8px; }
.sec-head { margin-bottom: 28px; max-width: 680px; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.sec-head h2 { margin-top: 6px; font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.015em; }
.sec-head p { margin: 8px 0 0; color: var(--ink-2); font-size: 17px; }

.products { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px; }
.products.two { grid-template-columns: 1.2fr 1fr; }
.card { display: flex; flex-direction: column; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.card .pic { display: block; aspect-ratio: 1024 / 500; background: var(--bg-2); }
.card .pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card .body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 22px 24px 24px; }
.card h3 { font-size: 26px; font-weight: 800; line-height: 1.1; }
.card .tag { font-size: 14px; font-weight: 700; color: var(--accent); }
.card p { margin: 0; color: var(--ink-2); }
.card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.card .actions .btn { flex: 1 1 auto; font-size: 15px; }
.minis { display: flex; gap: 8px; margin: 2px 0; }
.minis img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 3px 8px rgba(28, 22, 51, .2); }
.card .pic.api-pic { display: grid; place-items: center; aspect-ratio: 1024 / 500; background: linear-gradient(135deg, #0f7a5c, #18a87e); color: #eafff6; font: 700 15px/1.5 ui-monospace, "SF Mono", Menlo, monospace; }
.api-pic code { padding: 14px 18px; border-radius: 14px; background: rgba(0, 0, 0, .22); white-space: pre; }

.community { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; transition: transform .15s ease; }
.tile:hover { transform: translateY(-3px); }
.tile .ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; }
.tile .ic svg { width: 26px; height: 26px; }
.tile h3 { font-size: 21px; }
.tile p { margin: 0; color: var(--ink-2); }
.tile .go { margin-top: auto; font-weight: 700; color: var(--accent); }

.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.about p { margin: 0 0 14px; font-size: 18px; color: var(--ink-2); }
.about p:first-child { color: var(--ink); font-size: 21px; font-weight: 600; }
.contact { padding: 26px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #2a1f5c, #5b3fb0); box-shadow: var(--shadow); }
.contact h3 { font-size: 24px; }
.contact p { margin: 8px 0 16px; color: #d9d2f5; font-size: 16px; }
.contact ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.contact li { font-size: 15px; color: #d9d2f5; }
.contact li a { color: #fff; font-weight: 700; }

/* Legal page */
.policy-group { margin-bottom: 36px; }
.policy-group h2 { font-size: 24px; margin-bottom: 14px; }
.policies { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.policies a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; transition: transform .15s ease; }
.policies a:hover { transform: translateY(-2px); }
.policies img { flex: none; width: 44px; height: 44px; border-radius: 12px; }
.policies b { display: block; font-size: 16px; line-height: 1.25; }
.policies small { color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.note { padding: 18px 20px; border-radius: 18px; background: var(--bg-2); color: var(--ink-2); }
.note p { margin: 0 0 8px; } .note p:last-child { margin: 0; }

/* Footer */
footer { margin-top: 84px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 44px 0 36px; }
.foot h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot a { text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--accent); }
.foot p { margin: 12px 0 0; max-width: 34ch; color: var(--ink-2); }
.legal-line { padding: 18px 0 30px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 100px; }
  .wall { max-width: 520px; grid-template-columns: repeat(6, 1fr); gap: 12px; transform: rotate(-3deg); }
  .products { grid-template-columns: 1fr 1fr; }
  .products:not(.two) .card:first-child { grid-column: 1 / -1; }
  .community { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .navlinks { display: none; }
  .hero-grid { padding-top: 12px; }
  .lede { font-size: 17px; }
  .wall { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats b { font-size: 26px; }
  .products, .community { grid-template-columns: 1fr; }
  .card .body { padding: 20px; }
  .sec { padding-top: 64px; }
}
@media (max-width: 380px) { .foot { grid-template-columns: 1fr; } }
