/* ==========================================================================
   Ditra Systems — immersive one-page site
   ========================================================================== */

:root {
  --bg: #05060f;
  --bg-2: #0a0c1b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef0ff;
  --muted: #9aa0bf;
  --dim: #6b7194;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --pink: #e879f9;
  --lime: #a3e635;
  --grad: linear-gradient(120deg, #6366f1 0%, #22d3ee 50%, #e879f9 100%);
  --radius: 22px;
  --max: 1200px;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: transparent;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .07; mix-blend-mode: overlay;
  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");
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(99, 102, 241, .45); color: #fff; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Ambient background ------------------------------------------------------ */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px); opacity: .26; animation: drift 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { background: #4f46e5; top: -25vmax; left: -15vmax; }
.aurora i:nth-child(2) { background: #0891b2; bottom: -30vmax; right: -20vmax; animation-delay: -8s; }
.aurora i:nth-child(3) { background: #a21caf; top: 35%; left: 45%; width: 40vmax; height: 40vmax; opacity: .14; animation-delay: -16s; }
@keyframes drift { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); } }

.cursor-glow {
  position: fixed; left: -300px; top: -300px; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, .13), transparent 60%);
  pointer-events: none; z-index: 2; opacity: 0; transition: opacity .5s; will-change: transform;
  mix-blend-mode: screen;
}
.cursor-glow.on { opacity: 1; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.scrolled, .legal-page .site-header {
  background: rgba(5, 6, 15, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { color: var(--muted); font-size: 15px; font-weight: 500; position: relative; transition: color .2s; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; color: #fff; white-space: nowrap; cursor: pointer;
  transition: transform .2s, box-shadow .3s, background .3s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: linear-gradient(120deg, #6366f1, #22d3ee);
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(34, 211, 238, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-glass { background: rgba(255, 255, 255, .05); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden;
}
#field {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 40%, transparent 100%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; width: 100%; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #c7d2fe; background: rgba(99, 102, 241, .1); border: 1px solid rgba(129, 140, 248, .3);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: ping 2s infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .6); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
}
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(44px, 6.2vw, 84px); line-height: 1; letter-spacing: -.045em;
  margin: 26px 0 24px;
}
.rotator { display: grid; }
.rotator > span {
  grid-area: 1 / 1; padding-bottom: .1em;
  background: var(--grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(.45em); filter: blur(10px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
  animation: shine 6s linear infinite;
}
.rotator > span.is-on { opacity: 1; transform: none; filter: none; }
.rotator > span.is-off { opacity: 0; transform: translateY(-.45em); filter: blur(10px); }
@keyframes shine { to { background-position: 200% center; } }

.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 580px; margin: 0 0 36px; }
.lead strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.platforms { list-style: none; padding: 0; margin: 46px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.platforms li {
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .02);
}

/* 3D phone stage */
.hero-visual { position: relative; height: 620px; perspective: 1600px; }
.stage-wrap { position: absolute; inset: 0; transform-style: preserve-3d; }
.stage {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.stage::before {
  content: ""; position: absolute; left: 50%; top: 55%; width: 480px; height: 480px;
  transform: translate(-50%, -50%) translateZ(-140px);
  background: radial-gradient(circle, rgba(99, 102, 241, .5), rgba(34, 211, 238, .15) 42%, transparent 70%);
  filter: blur(30px);
}
.slot { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
.slot-center { transform: translate(-50%, -50%) translateZ(60px); }
.slot-left { transform: translate(-118%, -44%) translateZ(-40px) rotateY(24deg) scale(.84); }
.slot-right { transform: translate(18%, -56%) translateZ(-40px) rotateY(-24deg) scale(.84); }

.phone {
  width: 240px; height: 490px; border-radius: 42px; padding: 9px;
  background: linear-gradient(145deg, #2a2f4a, #0c0e1c 40%, #1b1f36);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .09) inset,
    0 40px 80px -20px rgba(0, 0, 0, .85),
    0 0 70px -12px rgba(99, 102, 241, .4);
}
.float { animation: float 7s ease-in-out infinite; animation-delay: var(--fd, 0s); }
@keyframes float { 50% { translate: 0 -14px; } }

.screen {
  position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  padding: 44px 16px 16px; display: flex; flex-direction: column; gap: 12px; font-size: 12px;
}
.screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .12), transparent 32%);
}
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 76px; height: 22px; border-radius: 20px; background: #000; }

/* Game screen */
.screen-game { background: radial-gradient(120% 80% at 50% 0%, #4c1d95, #1e1b4b 60%, #0b0a24); }
.g-top { display: flex; justify-content: space-between; align-items: center; }
.g-level { font-weight: 700; font-family: var(--display); font-size: 14px; }
.g-score { font-weight: 700; color: #fde68a; background: rgba(0, 0, 0, .28); padding: 4px 10px; border-radius: 999px; }
.g-moves {
  align-self: center; text-align: center; line-height: 1.1;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 6px 18px;
}
.g-moves span { display: block; font-size: 9.5px; color: #c4b5fd; text-transform: uppercase; letter-spacing: .12em; }
.g-moves b { font-family: var(--display); font-size: 22px; }
.g-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; padding: 8px;
  background: rgba(0, 0, 0, .28); border-radius: 16px; border: 1px solid rgba(255, 255, 255, .08);
}
.g-grid i {
  aspect-ratio: 1; border-radius: 7px; background: var(--c);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 255, 255, .35);
  animation: pop 3.4s ease-in-out infinite; animation-delay: var(--t);
}
@keyframes pop {
  0%, 80%, 100% { transform: scale(1); }
  88% { transform: scale(.55); filter: brightness(1.9); }
  94% { transform: scale(1.12); }
}
.g-bar { margin-top: auto; display: flex; justify-content: center; gap: 14px; }
.g-bar i { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .15); }
.g-bar i:nth-child(2) { background: linear-gradient(145deg, #f472b6, #a855f7); box-shadow: 0 0 20px rgba(232, 121, 249, .5); }

/* Sports screen */
.screen-sport { background: linear-gradient(180deg, #0b1224, #060914); }
.s-head small, .b-head small { display: block; color: var(--dim); font-size: 11px; }
.s-head b, .b-head b { font-family: var(--display); font-size: 18px; }
.rings { width: 150px; height: 150px; align-self: center; transform: rotate(-90deg); }
.rings circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.rings .bg { stroke: rgba(255, 255, 255, .07); }
.rings .fg { stroke-dasharray: 100; stroke-dashoffset: 100; animation: ring 2.2s var(--ease) .5s forwards; }
.rings .r1 { stroke: #e879f9; --o: 22; }
.rings .r2 { stroke: #a3e635; --o: 34; animation-delay: .65s; }
.rings .r3 { stroke: #22d3ee; --o: 12; animation-delay: .8s; }
@keyframes ring { to { stroke-dashoffset: var(--o); } }
.s-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.s-stats div { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px; padding: 8px 2px; }
.s-stats b { display: block; font-family: var(--display); font-size: 15px; }
.s-stats small { color: var(--dim); font-size: 10px; }
.s-week { display: flex; align-items: flex-end; gap: 6px; height: 54px; padding: 0 4px; }
.s-week i {
  flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; transform-origin: bottom;
  background: linear-gradient(180deg, #22d3ee, #6366f1);
  animation: grow 1.2s var(--ease) both; animation-delay: calc(var(--i) * .08s + .6s);
}
.s-week i:last-child { background: linear-gradient(180deg, #e879f9, #6366f1); }
@keyframes grow { from { transform: scaleY(0); } }
.s-card {
  margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: linear-gradient(120deg, rgba(99, 102, 241, .25), rgba(34, 211, 238, .12)); border: 1px solid rgba(129, 140, 248, .3);
}
.s-ico { width: 30px; height: 30px; border-radius: 10px; background: var(--grad); flex: none; }
.s-card b { display: block; font-size: 12px; }
.s-card small { color: var(--muted); font-size: 10px; }

/* Business screen */
.screen-biz { background: linear-gradient(180deg, #0d1020, #070914); }
.b-kpi { display: flex; align-items: baseline; gap: 8px; }
.b-kpi b { font-family: var(--display); font-size: 28px; letter-spacing: -.02em; }
.up { font-size: 11px; font-weight: 700; color: #a3e635; background: rgba(163, 230, 53, .12); padding: 2px 8px; border-radius: 999px; }
.b-chart { width: 100%; height: auto; }
.b-chart .line { fill: none; stroke: url(#bline); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 2.4s ease .6s forwards; }
.b-chart .area { fill: url(#barea); opacity: 0; animation: fade 1s ease 1.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.b-list { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 8px; }
.b-list li { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.b-list i { width: 26px; height: 26px; border-radius: 8px; background: var(--c); opacity: .9; flex: none; }
.b-list div { flex: 1; line-height: 1.25; }
.b-list b { display: block; font-size: 11px; }
.b-list small { font-size: 10px; color: var(--dim); }
.b-list span { font-size: 10px; font-weight: 600; color: #a5f3fc; }

/* Floating chips */
.chip-3d {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px;
  font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap;
  background: rgba(17, 20, 40, .6); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
  animation: float 6s ease-in-out infinite;
}
.chip-3d i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.chip-3d .c-star { width: auto; height: auto; background: none; box-shadow: none; color: #fde68a; font-style: normal; }
.c1 { top: 10%; left: 2%; transform: translateZ(140px); }
.c2 { bottom: 13%; right: 0; transform: translateZ(170px); animation-delay: -2s; }
.c3 { top: 4%; right: 8%; transform: translateZ(100px); animation-delay: -4s; }

.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 14px; z-index: 2; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Marquee ----------------------------------------------------------------- */
.marquee {
  position: relative; padding: 26px 0; overflow: hidden;
  border-block: 1px solid var(--line); background: rgba(255, 255, 255, .015);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marq 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li {
  display: flex; align-items: center; gap: 44px; padding-right: 44px; white-space: nowrap;
  font-family: var(--display); font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; color: rgba(238, 240, 255, .88);
}
.marquee li:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(238, 240, 255, .5); }
.marquee li::after { content: "\2726"; color: var(--cyan); font-size: .55em; -webkit-text-stroke: 0; }
@keyframes marq { to { transform: translateX(-50%); } }

/* Sections ---------------------------------------------------------------- */
.section { position: relative; padding: 130px 0; }
.section-head { max-width: 720px; margin-bottom: 60px; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a5b4fc; }
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--grad); }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -.035em; margin: 16px 0 18px; }
.section-head p { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); margin: 0; }
.grad-text {
  background: var(--grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
}

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.span-2 { grid-column: span 2; }
.card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); padding: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 102, 241, .17), transparent 45%);
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(129, 140, 248, .35); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.card h3 { font-family: var(--display); font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 10px; }
.card p { color: var(--muted); margin: 0 0 22px; max-width: 46ch; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ticks li { font-size: 13px; font-weight: 500; color: #dfe3ff; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }

.card-games { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; min-height: 360px; }
.viz-tiles {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px;
  transform: perspective(700px) rotateX(30deg) rotateZ(-8deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 42%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 50%, #000 42%, transparent 74%);
}
.viz-tiles i {
  aspect-ratio: 1; border-radius: 8px; background: var(--c);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 255, 255, .3);
  animation: wave 3.2s ease-in-out infinite; animation-delay: var(--t);
}
@keyframes wave { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(.8); opacity: 1; } }

.viz-pulse { position: relative; margin: 4px 0 22px; padding: 14px 0 6px; border-radius: 14px; }
.viz-pulse svg { width: 100%; height: 90px; }
.viz-pulse .base { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 2; }
.viz-pulse .beat { fill: none; stroke: url(#ecg); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60 140; animation: ecg 2.6s linear infinite; filter: drop-shadow(0 0 6px rgba(163, 230, 53, .6)); }
@keyframes ecg { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }
.live { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: ping 2s infinite; }

.viz-code {
  margin-top: 4px; border-radius: 14px; overflow: hidden;
  background: rgba(3, 4, 12, .7); border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.75;
}
.viz-code .bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.viz-code .bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.viz-code .bar i:nth-child(2) { background: #febc2e; }
.viz-code .bar i:nth-child(3) { background: #28c840; }
.viz-code pre { margin: 0; padding: 14px 16px; color: #c7cdf0; white-space: pre; overflow: hidden; font: inherit; }
.viz-code .k { color: #c084fc; }
.viz-code .f { color: #67e8f9; }
.viz-code .s { color: #a3e635; }
.caret { display: inline-block; width: 7px; height: 15px; background: #67e8f9; vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.card-domains { display: grid; grid-template-columns: 1fr 1.35fr; gap: 30px; align-items: center; }
.domain-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.domain-cloud span {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.domain-cloud span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.domain-cloud span:hover { transform: translateY(-3px); border-color: var(--c); background: rgba(255, 255, 255, .07); }
.js .card-domains:not(.in) .domain-cloud span { opacity: 0; }
.card-domains.in .domain-cloud span { animation: chipIn .6s var(--ease) backwards; animation-delay: calc(var(--i) * 45ms + .25s); }
@keyframes chipIn { from { opacity: 0; translate: 0 12px; } }

/* Process timeline */
.timeline { position: relative; --p: 0; }
.track { position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: var(--line); }
.track .fill { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(var(--p)); box-shadow: 0 0 14px rgba(34, 211, 238, .6); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.step { position: relative; }
.node {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 26px;
  font-family: var(--display); font-weight: 700; color: var(--muted);
  background: #0a0c1b; border: 1px solid var(--line-2);
  transition: color .4s, box-shadow .4s, background .4s, border-color .4s;
}
.step.lit .node {
  color: #fff; border-color: transparent;
  background: linear-gradient(#0a0c1b, #0a0c1b) padding-box, var(--grad) border-box;
  box-shadow: 0 0 34px -4px rgba(99, 102, 241, .75);
}
.step h3 { font-family: var(--display); font-size: 22px; letter-spacing: -.01em; margin: 0 0 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* About */
.about { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: start; }
.about-copy > p { color: var(--muted); font-size: 17.5px; margin: 0 0 16px; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.principle { padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); transition: border-color .3s, background .3s; }
.principle:hover { border-color: rgba(129, 140, 248, .35); background: rgba(255, 255, 255, .045); }
.principle b { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 17px; margin-bottom: 6px; }
.principle b::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); }
.principle span { color: var(--muted); font-size: 14.5px; }
.facts {
  position: sticky; top: 110px; padding: 34px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(99, 102, 241, .16), rgba(255, 255, 255, .03) 55%);
  border: 1px solid rgba(129, 140, 248, .25);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.facts h3 { font-family: var(--display); font-size: 21px; margin: 0 0 4px; }
.facts .sub { color: var(--dim); font-size: 14px; margin: 0 0 22px; }
.facts dl { margin: 0; }
.facts .row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; font-weight: 500; }
.facts a { color: #a5f3fc; }
.facts a:hover { text-decoration: underline; }

/* Contact CTA */
.cta { position: relative; border-radius: 30px; padding: 1.5px; overflow: hidden; isolation: isolate; }
.cta::before {
  content: ""; position: absolute; inset: -60%; z-index: -1;
  background: conic-gradient(from 0deg, transparent 0 55%, #6366f1 70%, #22d3ee 82%, #e879f9 92%, transparent 100%);
  animation: spin 7s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.cta-inner {
  position: relative; border-radius: 29px; padding: clamp(36px, 6vw, 72px);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(99, 102, 241, .25), transparent 60%),
    radial-gradient(500px 300px at 100% 100%, rgba(34, 211, 238, .18), transparent 60%),
    #080a17;
}
.cta h2 { margin: 14px 0 14px; }
.cta p { color: var(--muted); font-size: 18px; margin: 0 0 30px; }
.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
a.contact-item:hover { border-color: rgba(129, 140, 248, .45); background: rgba(255, 255, 255, .07); transform: translateX(4px); }
.ci-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(99, 102, 241, .15); color: #a5b4fc; flex: none; }
.ci-icon svg { width: 20px; height: 20px; }
.contact-item small { display: block; color: var(--dim); font-size: 12px; }
.contact-item b { font-weight: 600; font-size: 15.5px; color: #fff; word-break: break-word; }

/* Footer */
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: clamp(80px, 19vw, 260px);
  line-height: .78; letter-spacing: -.06em; text-align: center; white-space: nowrap; overflow: hidden;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .1);
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), transparent 85%);
  -webkit-background-clip: text; background-clip: text;
  user-select: none; padding-top: 30px;
}
.site-footer { position: relative; border-top: 1px solid var(--line); padding: 28px 0; color: var(--dim); font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--muted); transition: color .2s; }
.site-footer a:hover { color: #fff; }

/* Reveal on scroll -------------------------------------------------------- */
.js .reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in { transition: opacity .9s var(--ease) var(--d, 0s), transform .45s var(--ease), border-color .3s; }

/* Legal page -------------------------------------------------------------- */
.legal { padding: 140px 0 100px; }
.legal .container { max-width: 800px; }
.legal h1 { font-family: var(--display); font-size: clamp(36px, 5vw, 56px); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 8px; }
.legal .updated { color: var(--dim); margin: 0 0 44px; }
.legal h2 { font-size: 24px; letter-spacing: -.02em; margin: 44px 0 12px; }
.legal p, .legal li { color: #c9cde6; font-size: 16.5px; }
.legal ul { padding-left: 22px; }
.legal strong { color: #fff; }
.legal a { color: #a5f3fc; }
.legal a:hover { text-decoration: underline; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero { padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 560px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .about, .cta-inner { grid-template-columns: 1fr; }
  .facts { position: relative; top: 0; }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav-links a:not(.btn) { display: none; }
  .section { padding: 96px 0; }
  .hero-visual { height: 440px; margin: 0 -20px; }
  .stage-wrap { transform: scale(.66); }
  .scroll-cue { display: none; }
  .bento { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .card { padding: 26px; }
  .card-games, .card-domains { grid-template-columns: 1fr; }
  .viz-tiles { max-width: 320px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; gap: 40px; padding-left: 80px; }
  .track { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; }
  .track .fill { transform-origin: top; transform: scaleY(var(--p)); }
  .node { position: absolute; left: -80px; top: -10px; margin: 0; }
  .principles { grid-template-columns: 1fr; }
  .facts .row { grid-template-columns: 1fr; gap: 2px; }
  .btn-lg { font-size: 15px; padding: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
