/* arcadoo.org — one stylesheet for every page.
   Black stage, crisp Inter type, hairline borders, colour only where it
   matters: a violet → blue → cyan → pink gradient the games share. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-greek.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #000;
  --card: #0d0d12;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #fff;
  --muted: #9b9ba8;
  --dim: #6c6c78;
  --violet: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --sun: #fde047;
  --green: #34d399;
  --grad: linear-gradient(100deg, #a78bfa 0%, #60a5fa 35%, #22d3ee 65%, #f472b6 100%);
  --max: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px; line-height: 1.6; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(139, 92, 246, .45); }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
@media (max-width: 480px) { .wrap { width: calc(100% - 32px); } }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { left: 12px; }
.grad-text { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 8s linear infinite; }
@keyframes sheen { to { background-position: 200% 0; } }

/* film grain over everything, for depth */
.grain {
  position: fixed; inset: -50%; z-index: 70; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }

/* ---------- header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 61; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.top { position: fixed; inset: 14px 0 auto 0; z-index: 60; pointer-events: none; }
.top .bar {
  pointer-events: auto; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  height: 58px; padding: 0 10px 0 16px; border-radius: 18px; border: 1px solid transparent;
  transition: background .4s, border-color .4s;
}
.top.scrolled .bar { background: rgba(10, 10, 14, .72); border-color: var(--line); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 650; font-size: 1.12rem; letter-spacing: -.03em; }
.brand img { width: 30px; height: 30px; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-14deg) scale(1.08); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 500; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav .lang { display: inline-flex; gap: 6px; align-items: center; }
.nav .lang svg { width: 16px; height: 16px; }
.nav .pill { background: #fff; color: #000; margin-left: 6px; }
.nav .pill:hover { background: #e9e9ef; color: #000; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .top .bar { background: rgba(10, 10, 14, .72); border-color: var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .nav { position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 8px; border-radius: 18px; background: rgba(12, 12, 16, .97); border: 1px solid var(--line); transform: translateY(-8px) scale(.98); opacity: 0; pointer-events: none; transition: .3s var(--ease); }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px; font-size: 1rem; }
  .nav .pill { margin: 6px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 14px; border: 0; cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: .98rem; background: #fff; color: #000;
  transition: transform .4s var(--ease), background .25s, box-shadow .3s;
}
.btn:hover { background: #ececf2; box-shadow: 0 10px 40px -10px rgba(167, 139, 250, .6); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn.ghost { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: rgba(255, 255, 255, .11); }
.soon { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 14px; font-weight: 600; font-size: .92rem; color: var(--sun); background: rgba(253, 224, 71, .08); box-shadow: inset 0 0 0 1px rgba(253, 224, 71, .3); }
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 170px 0 0; overflow: hidden; isolation: isolate; }
@media (max-width: 640px) { .hero { padding-top: 130px; } }
.aurora { position: absolute; inset: -10% -10% 30% -10%; z-index: -2; filter: blur(70px) saturate(140%); opacity: .8; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: orbit 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: 4%; top: 0; background: radial-gradient(circle, #6d28d9, transparent 65%); }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; right: 2%; top: -6%; background: radial-gradient(circle, #0e7490, transparent 65%); animation-delay: -6s; animation-duration: 26s; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; left: 34%; top: 22%; background: radial-gradient(circle, #be185d, transparent 65%); animation-delay: -12s; animation-duration: 30s; }
@keyframes orbit { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vw, 4vw) scale(1.12); } 100% { transform: translate(-4vw, 2vw) scale(.92); } }
.gridlines {
  position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
}
.hero-copy { text-align: center; position: relative; }
.badge-new {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); font-size: .88rem; color: #d6d6e0; text-decoration: none;
  backdrop-filter: blur(8px); transition: background .3s;
}
.badge-new:hover { background: rgba(255, 255, 255, .1); }
.badge-new b { font-weight: 600; background: var(--grad); color: #08080b; padding: 3px 9px; border-radius: 999px; font-size: .78rem; }
.hero h1 {
  font-size: clamp(2.7rem, 7.4vw, 6.4rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 600;
  margin: 26px auto 22px; max-width: 14ch;
}
.hero .lead { color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.28rem); max-width: 36em; margin: 0 auto 32px; line-height: 1.55; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* word-by-word reveal */
.w { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(.35em); transition: opacity 1s var(--ease), filter 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.w.in { opacity: 1; filter: blur(0); transform: none; }
.rotator { display: inline-grid; vertical-align: top; perspective: 600px; justify-items: center; }
/* In the hero the changing word has a line of its own, centred, so no gap
   is left for the longest word. */
.hero h1 .rot-line { display: block; }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(45%) rotateX(-70deg); filter: blur(8px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); transform-origin: 50% 0; white-space: nowrap; }
.rotator > span.on { opacity: 1; transform: none; filter: blur(0); }
.rotator > span.out { opacity: 0; transform: translateY(-45%) rotateX(70deg); filter: blur(8px); }

/* the showcase: rows of cards gliding past, tilted back */
.showcase { margin-top: 84px; perspective: 1400px; position: relative; padding-bottom: 30px; }
.showcase .tilted { transform: rotateX(16deg); transform-origin: 50% 0; display: grid; gap: 18px; }
.lane { display: flex; gap: 18px; width: max-content; animation: lane 70s linear infinite; }
.lane.rev { animation-direction: reverse; animation-duration: 80s; }
.showcase:hover .lane { animation-play-state: paused; }
@keyframes lane { to { transform: translateX(-50%); } }
.showcase::before, .showcase::after { content: ""; position: absolute; top: 0; bottom: 0; width: 16vw; z-index: 2; pointer-events: none; }
.showcase::before { left: 0; background: linear-gradient(90deg, #000, transparent); }
.showcase::after { right: 0; background: linear-gradient(-90deg, #000, transparent); }
.shot {
  position: relative; flex: none; width: 210px; height: 300px; margin: 0; border-radius: 22px; overflow: hidden;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(0, 0, 0, .9);
  transition: transform .5s var(--ease);
}
.shot:hover { transform: translateY(-8px) scale(1.03); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot.wide { width: 420px; }
.shot.logo { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #1d1530, #0b0b10); }
.shot.logo img { width: 72%; height: auto; object-fit: contain; }
.shot figcaption {
  position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 10px; border-radius: 12px; font-size: .78rem; font-weight: 600;
  background: rgba(0, 0, 0, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line-2);
}
@media (max-width: 640px) { .shot { width: 150px; height: 220px; border-radius: 16px; } .shot.wide { width: 300px; } .showcase { margin-top: 56px; } }

/* ---------- sections ---------- */
section { position: relative; padding: 130px 0; }
@media (max-width: 640px) { section { padding: 90px 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; font-weight: 500; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
h2 { font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.045em; font-weight: 600; margin: 14px 0 18px; max-width: 18ch; }
.center h2 { margin-inline: auto; }
.sub { color: var(--muted); font-size: 1.12rem; max-width: 34em; line-height: 1.55; margin: 0; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }
[data-reveal] { opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stats > div { padding: 34px 20px; text-align: center; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats b { display: block; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.stats span { color: var(--muted); font-size: .92rem; }
@media (max-width: 720px) { .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); } }

/* game switcher */
.game-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 34px; }
.game-tabs a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, transform .4s var(--ease); }
.game-tabs a:hover { background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.game-tabs img { width: 30px; height: 30px; border-radius: 9px; }

/* ---------- a game, told while scrolling ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; margin-top: 110px; scroll-margin-top: 90px; }
.story .device { position: sticky; top: 13vh; height: 74vh; display: grid; place-items: center; }
.device-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(90px); opacity: .55; background: var(--glow, var(--violet)); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .38; } }
.phone {
  position: relative; width: min(300px, 72vw); aspect-ratio: 9 / 19; border-radius: 46px; padding: 11px;
  background: linear-gradient(150deg, #2a2a33, #0e0e12 40%, #1b1b22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 50px 100px -30px rgba(0, 0, 0, .9);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 80px; height: 22px; margin-left: -40px; border-radius: 20px; background: #000; z-index: 3; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #111; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.screen img.on { opacity: 1; transform: none; }
.float-tag {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  background: rgba(14, 14, 20, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -20px #000;
  font-size: .86rem; font-weight: 600; white-space: nowrap; animation: bob 6s ease-in-out infinite;
}
.float-tag.t1 { left: 0; top: 20%; }
.float-tag.t2 { right: 0; bottom: 20%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.story-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.story-head img { width: 64px; height: 64px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line-2); }
.story-head h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.04em; margin: 0; font-weight: 600; line-height: 1.05; }
.story-head p { margin: 2px 0 0; color: var(--muted); }
.steps-text { padding-top: 4vh; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .22; transition: opacity .6s var(--ease); }
.step.active { opacity: 1; }
.step:last-child { min-height: 48vh; }
.step .num { font-size: .8rem; font-weight: 600; color: var(--dim); letter-spacing: .08em; }
.step h4 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.035em; line-height: 1.12; margin: 8px 0 10px; font-weight: 600; }
.step p { color: var(--muted); margin: 0; max-width: 30em; }
.store { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.store .play-badge img { height: 52px; width: auto; }
.mini-phone { display: none; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 0; margin-top: 80px; }
  .story .device { display: none; }
  .step { min-height: 0; opacity: 1; padding: 22px 0; }
  .steps-text { padding-top: 0; }
  .mini-phone { display: block; width: min(240px, 66vw); margin: 18px 0 4px; border-radius: 30px; padding: 8px; background: #16161c; box-shadow: inset 0 0 0 1px var(--line-2); }
  .mini-phone img { border-radius: 23px; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; width: 100%; }
}

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(300px, auto); gap: 14px; margin-top: 60px; }
.tile { position: relative; grid-column: span 2; padding: 24px; border-radius: 24px; overflow: hidden; isolation: isolate; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.tile.w3 { grid-column: span 3; }
.tile.w4 { grid-column: span 4; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile, .tile.w3 { grid-column: span 1; } .tile.w4 { grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; grid-auto-rows: auto; } .tile .art { padding: 22px 0 6px; } .tile, .tile.w3, .tile.w4 { grid-column: auto; } }
.tile h3 { position: relative; z-index: 2; margin: 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; }
.tile p { position: relative; z-index: 2; margin: 4px 0 0; color: var(--muted); font-size: .93rem; max-width: 26em; }
/* the art takes the space left under the words, never under them */
.tile .art { position: relative; z-index: 2; flex: 1; display: grid; place-items: center; padding-top: 16px; min-height: 0; }

/* spotlight border that follows the pointer */
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; padding: 1px;
  background: radial-gradient(340px circle at var(--mx, -200px) var(--my, -200px), rgba(167, 139, 250, .95), rgba(34, 211, 238, .45) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.spot:hover::after { opacity: 1; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; background: radial-gradient(480px circle at var(--mx, -200px) var(--my, -200px), rgba(139, 92, 246, .11), transparent 45%); }

/* the countdown ring */
.ring { width: 140px; height: 140px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: rgba(255, 255, 255, .08); }
.ring .bar { stroke: url(#ringGrad); stroke-linecap: round; stroke-dasharray: 402; animation: countdown 5s linear infinite; }
@keyframes countdown { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 402; } }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

/* the letter slot machine */
.slot { display: flex; gap: 10px; }
.slot .reel { width: 64px; height: 84px; border-radius: 16px; overflow: hidden; background: #fff; color: #08080b; box-shadow: 0 20px 40px -20px rgba(167, 139, 250, .8); }
.slot .reel div { display: flex; flex-direction: column; animation: reel 6s var(--ease) infinite; }
.slot .reel:nth-child(2) div { animation-delay: .25s; }
.slot .reel:nth-child(3) div { animation-delay: .5s; }
.slot .reel b { height: 84px; display: grid; place-items: center; font-size: 2.6rem; font-weight: 700; flex: none; }
@keyframes reel { 0%, 15% { transform: translateY(0); } 45%, 60% { transform: translateY(-336px); } 90%, 100% { transform: translateY(-672px); } }

/* the AI check list */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: min(300px, 82%); }
.checks li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); font-size: .92rem; }
.checks li i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .75rem; font-weight: 700; color: #08080b; transform: scale(0); animation: pop 6s var(--ease) infinite; }
.checks li:nth-child(1) i { background: var(--green); animation-delay: .6s; }
.checks li:nth-child(2) i { background: var(--green); animation-delay: 1.3s; }
.checks li:nth-child(3) i { background: var(--pink); animation-delay: 2s; }
@keyframes pop { 0%, 8% { transform: scale(0); } 14%, 80% { transform: scale(1); } 90%, 100% { transform: scale(0); } }

/* hello in eight languages */
.hello { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -.04em; height: 1.2em; line-height: 1.2em; overflow: hidden; text-align: center; }
.hello div { animation: hello 16s var(--ease) infinite; }
.hello span { display: block; height: 1.2em; }
@keyframes hello {
  0%, 10% { transform: translateY(0); } 12.5%, 22.5% { transform: translateY(-1.2em); } 25%, 35% { transform: translateY(-2.4em); }
  37.5%, 47.5% { transform: translateY(-3.6em); } 50%, 60% { transform: translateY(-4.8em); } 62.5%, 72.5% { transform: translateY(-6em); }
  75%, 85% { transform: translateY(-7.2em); } 87.5%, 97.5% { transform: translateY(-8.4em); } 100% { transform: translateY(-9.6em); }
}

/* the split field: a line that grows and claims space */
.field { position: relative; width: 260px; height: 150px; border-radius: 14px; overflow: hidden; background: #0a1324; box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .35); }
.field .claim { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; background: linear-gradient(135deg, rgba(34, 211, 238, .35), rgba(139, 92, 246, .35)); transform-origin: 0 50%; animation: claim 5s var(--ease) infinite; }
.field .line { position: absolute; left: 38%; top: 0; width: 3px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: build 5s var(--ease) infinite; }
.field .ball { position: absolute; width: 12px; height: 12px; border-radius: 50%; }
.field .ball.b1 { background: var(--pink); animation: bounce1 2.6s linear infinite alternate; }
.field .ball.b2 { background: var(--sun); animation: bounce2 3.4s linear infinite alternate; }
@keyframes build { 0%, 10% { height: 0; } 45%, 100% { height: 100%; } }
@keyframes claim { 0%, 45% { transform: scaleX(0); opacity: 0; } 55%, 90% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes bounce1 { from { left: 52%; top: 10%; } to { left: 90%; top: 80%; } }
@keyframes bounce2 { from { left: 92%; top: 20%; } to { left: 58%; top: 75%; } }

/* the leaderboard */
.board { display: grid; gap: 8px; width: min(330px, 86%); }
.board div { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; font-size: .88rem; }
.board em { font-style: normal; color: var(--dim); font-weight: 600; }
.board .b { height: 10px; border-radius: 6px; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.6s var(--ease); }
.in .board .b { transform: scaleX(var(--v)); }
.board strong { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- what we do: bordered grid ---------- */
.cells { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (max-width: 900px) { .cells { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cells { grid-template-columns: 1fr; } }
.cell { position: relative; padding: 34px 28px 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); isolation: isolate; }
.cell .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 26px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .5s var(--ease), background .3s, color .3s; position: relative; z-index: 2; }
.cell:hover .ico { transform: translateY(-4px) rotate(-6deg); background: var(--c); color: #08080b; }
.cell .ico svg { width: 22px; height: 22px; }
.cell h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; position: relative; z-index: 2; }
.cell p { margin: 0; color: var(--muted); font-size: .96rem; position: relative; z-index: 2; }

/* ---------- process with a line that draws itself ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 70px 0 0; list-style: none; padding: 0; counter-reset: s; }
.process::before, .process::after { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; }
.process::before { background: var(--line); }
.process::after { background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.process li { position: relative; }
.process li::before { counter-increment: s; content: "0" counter(s); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 600; font-size: .9rem; margin-bottom: 20px; position: relative; z-index: 1; transition: box-shadow .5s, background .5s, color .5s; }
.process li.lit::before { background: #fff; color: #000; box-shadow: 0 0 30px -4px rgba(167, 139, 250, .8); }
.process h3 { margin: 0 0 6px; font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; }
.process p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: 34px; }
  .process::before, .process::after { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .process::after { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  .process li { padding-left: 66px; min-height: 46px; }
  .process li::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- video ---------- */
.vtabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.vtabs button {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 7px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .05); color: var(--muted); font-weight: 600; font-size: .95rem; box-shadow: inset 0 0 0 1px var(--line);
  transition: background .3s, color .3s, box-shadow .3s, transform .4s var(--ease);
}
.vtabs button img { width: 26px; height: 26px; border-radius: 8px; }
.vtabs button:hover { color: #fff; transform: translateY(-2px); }
.vtabs button[aria-selected="true"] { background: #fff; color: #000; box-shadow: 0 10px 30px -10px rgba(167, 139, 250, .7); }
.video { transition: background-image .4s; }
.video { position: relative; margin: 56px auto 0; max-width: 1040px; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #000 center / cover no-repeat; box-shadow: inset 0 0 0 1px var(--line-2), 0 60px 120px -50px rgba(139, 92, 246, .45); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .gate { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .3), rgba(0, 0, 0, .85)); }
.video .gate p { max-width: 32em; margin: 18px auto 0; font-size: .86rem; color: #d4d4de; background: rgba(0, 0, 0, .72); padding: 10px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); }
.play { width: 86px; height: 86px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; margin: 0 auto; background: #fff; color: #000; transition: transform .4s var(--ease); position: relative; }
.play::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); animation: ring 2s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.play:hover { transform: scale(1.08); }
.play svg { width: 30px; height: 30px; margin-left: 4px; }

/* ---------- contact ---------- */
.contact { position: relative; border-radius: 36px; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(56px, 9vw, 120px) 24px; box-shadow: inset 0 0 0 1px var(--line-2); background: #07070a; }
.contact::before { content: ""; position: absolute; inset: -60%; z-index: -2; background: conic-gradient(from 0deg, #6d28d9, #1d4ed8, #0e7490, #be185d, #6d28d9); animation: spin 14s linear infinite; filter: blur(80px); opacity: .6; }
.contact::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 35px; background: radial-gradient(ellipse at 50% 120%, rgba(0, 0, 0, .05), rgba(0, 0, 0, .78) 70%); }
@keyframes spin { to { transform: rotate(360deg); } }
.contact h2 { margin-inline: auto; }
.contact .sub { margin-inline: auto; color: #c8c8d4; }
.mail { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.toast-msg { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); visibility: hidden; z-index: 90; background: #fff; color: #000; padding: 12px 20px; border-radius: 14px; font-weight: 600; font-size: .94rem; transition: transform .45s var(--ease), visibility .45s; }
.toast-msg.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- footer ---------- */
footer { padding: 90px 0 0; border-top: 1px solid var(--line); color: var(--muted); overflow: hidden; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }
footer h3 { color: var(--text); font-size: .92rem; font-weight: 600; margin: 0 0 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; }
footer a, footer .linklike { color: var(--muted); text-decoration: none; transition: color .2s; }
footer a:hover, footer .linklike:hover { color: var(--text); }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; }
.copy { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .86rem; margin-top: 60px; color: var(--dim); }
.giant { font-size: clamp(4.5rem, 21vw, 19rem); font-weight: 700; letter-spacing: -.07em; line-height: .8; margin: 40px 0 -1.6vw; text-align: center; background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }

/* ---------- legal pages ---------- */
.doc { padding: 150px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.045em; font-weight: 600; margin: 12px 0 6px; line-height: 1.05; }
.doc .updated { color: var(--dim); font-size: .9rem; margin-bottom: 30px; }
.doc h2 { font-size: 1.3rem; margin: 44px 0 10px; letter-spacing: -.02em; max-width: none; }
.doc p, .doc li { color: #c9c9d3; }
.doc a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: #fff; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .92rem; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 12px 10px 12px 0; vertical-align: top; }
.doc th { color: var(--text); font-weight: 600; }
@media (max-width: 640px) { .doc table, .doc tbody, .doc tr, .doc td, .doc th { display: block; } .doc tr:first-child { display: none; } .doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; } .doc td { border: 0; padding: 4px 0; } .doc td:first-child { color: #fff; font-weight: 600; } }
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 140px 0 60px; }
.notfound .big { font-size: clamp(6rem, 22vw, 14rem); font-weight: 700; letter-spacing: -.07em; line-height: .9; }

/* ---------- cookie consent ---------- */
.consent {
  position: fixed; z-index: 80; left: 16px; bottom: 16px; width: min(420px, calc(100% - 32px));
  background: rgba(14, 14, 19, .97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 22px; padding: 22px; box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -20px #000;
  transform: translateY(24px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.consent.show { transform: none; opacity: 1; }
.consent h2 { font-size: 1.05rem; margin: 0 0 6px; letter-spacing: -.02em; max-width: none; }
.consent p { margin: 0 0 16px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.consent p a { color: #fff; }
.consent .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent .row .btn { padding: 11px 12px; font-size: .9rem; }
.consent .row .btn:last-child { grid-column: 1 / -1; }
.consent .opts { display: none; margin: 0 0 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.consent.detail .opts { display: grid; gap: 14px; }
.opt { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.opt b { display: block; font-size: .92rem; font-weight: 600; }
.opt small { color: var(--muted); font-size: .82rem; line-height: 1.45; display: block; }
.switch { position: relative; flex: none; width: 46px; height: 26px; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #33333d; transition: .25s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .3s var(--ease); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: .55; }
.switch input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* the cursor's soft light */
.glow-cursor { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 1; background: radial-gradient(circle, rgba(139, 92, 246, .12), transparent 60%); }
@media (hover: none) { .glow-cursor { display: none; } }

/* Visitors who asked their system for less motion still get the page's
   fades and loops, only calmer: no grain shimmer, slower drifts. */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .lane { animation-duration: 140s; }
  .lane.rev { animation-duration: 160s; }
  .aurora i { animation-duration: 60s; }
}
