:root {
  --bg: #08111c;
  --bg-2: #0c1826;
  --card: #122036;
  --card-hi: #172a45;
  --line: rgba(120, 160, 210, .16);
  --text: #f4f8ff;
  --muted: #9fb0c6;
  --teal: #2de0c4;
  --teal-2: #17b8e8;
  --blue: #5b8def;
  --warm: #ee8a5b;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .9rem; }
.muted { color: var(--muted); }
.teal { color: var(--teal); }
.center { text-align: center; }

.grad {
  background: linear-gradient(100deg, var(--teal) 10%, var(--teal-2) 55%, var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* progress + nav */
.progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 0; z-index: 100;
  background: linear-gradient(90deg, var(--teal), var(--blue)); box-shadow: 0 0 12px var(--teal); }
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px max(24px, calc((100% - 1160px) / 2));
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(8, 17, 28, .72); backdrop-filter: blur(14px); border-color: var(--line); }
.logo { font-weight: 800; letter-spacing: .04em; font-size: 1.15rem; }
.logo span { color: var(--teal); }
.nav-links { display: flex; gap: 30px; font-size: .94rem; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  color: #04121a; background: linear-gradient(100deg, var(--teal), var(--teal-2));
  box-shadow: 0 8px 30px -8px rgba(45, 224, 196, .6);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -8px rgba(45, 224, 196, .8); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 18px 36px; font-size: 1.15rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(45, 224, 196, .1); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.center-row { justify-content: center; }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 90px; }
#neural { position: absolute; inset: 0; width: 100%; height: 100%; }
.aurora { position: absolute; inset: 0; pointer-events: none; filter: blur(90px); opacity: .55; }
.aurora i { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -10vw; top: -8vw; background: rgba(45, 224, 196, .35); }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; right: -8vw; top: 12vh; background: rgba(91, 141, 239, .38); animation-delay: -6s; }
.aurora i:nth-child(3) { width: 30vw; height: 30vw; left: 30vw; bottom: -12vw; background: rgba(23, 184, 232, .28); animation-delay: -11s; }
.aurora.small { opacity: .4; }
.aurora.small i:nth-child(1) { left: 10vw; top: 0; }
.aurora.small i:nth-child(2) { right: 10vw; top: 0; }
@keyframes drift { to { transform: translate(6vw, 5vh) scale(1.15); } }

.hero-inner { position: relative; z-index: 2; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(18, 32, 54, .6); backdrop-filter: blur(8px);
  font-size: .85rem; color: var(--muted); margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(45, 224, 196, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(45, 224, 196, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 224, 196, 0); } }
h1 { font-size: clamp(2.8rem, 8vw, 6.4rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.lead { max-width: 640px; margin: 28px 0 38px; font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--muted); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 20px 56px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.hero-stats li { max-width: 210px; }
.hero-stats b { display: block; font-size: 2.6rem; line-height: 1; font-weight: 800; color: var(--teal); }
.hero-stats span { font-size: .9rem; color: var(--muted); }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; width: 24px; height: 40px; margin-left: -12px; border: 2px solid var(--line); border-radius: 14px; z-index: 2; }
.scroll-cue i { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--teal); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 80%, 100% { opacity: 0; transform: translateY(14px); } }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 56px; width: max-content; animation: scroll 32s linear infinite; }
.track span { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.track span::after { content: "◆"; margin-left: 56px; color: var(--teal); font-size: .6rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* sections */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section.alt { background: var(--bg-2); }
.eyebrow { display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; font-weight: 700; color: var(--teal); margin-bottom: 20px; }
.eyebrow i { width: 12px; height: 12px; border-radius: 4px; background: var(--teal); box-shadow: 0 0 14px var(--teal); }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; max-width: 920px; margin-bottom: 52px; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.sub { max-width: 780px; font-size: 1.15rem; color: var(--muted); margin: -20px 0 56px; }
.sub b { color: var(--teal); font-weight: 600; }
.fine { margin-top: 28px; font-size: .85rem; color: #6f8197; }
.note { margin-top: 44px; font-style: italic; color: var(--teal); font-size: 1.1rem; }

.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }

/* cards with cursor spotlight */
.card {
  position: relative; padding: 34px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--card), rgba(18, 32, 54, .7));
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .3s;
  --mx: 50%; --my: 50%;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(45, 224, 196, .16), transparent 60%);
}
.card:hover { border-color: rgba(45, 224, 196, .4); }
.card:hover::before { opacity: 1; }
.card-hi { background: linear-gradient(160deg, var(--card-hi), rgba(23, 42, 69, .7)); border-color: rgba(45, 224, 196, .28); }
.card p { color: var(--muted); }
.card > * { position: relative; }
.num {
  display: inline-grid; place-items: center; width: 50px; height: 50px; margin-bottom: 22px;
  border: 2px solid var(--teal); border-radius: 14px; color: var(--teal); font-weight: 800; font-size: 1.25rem;
  background: rgba(45, 224, 196, .06);
}
.ico { width: 54px; height: 54px; margin-bottom: 22px; border-radius: 15px; display: grid; place-items: center; background: rgba(45, 224, 196, .08); border: 1px solid rgba(45, 224, 196, .3); }
.ico svg { width: 28px; height: 28px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.list li { position: relative; padding: 0 0 12px 22px; color: var(--muted); }
.list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.list { margin-top: 22px; }
.list .warn { color: var(--warm); font-weight: 700; }
.list .warn::before { background: var(--warm); }

.problem-grid { align-items: stretch; }
.broken { height: 100%; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 18px; padding: 10px; }
.lock { font-size: 3rem; filter: drop-shadow(0 0 20px rgba(45, 224, 196, .5)); }
.big-line { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.25; font-weight: 700; color: var(--text) !important; }
.big-line em { font-style: normal; color: var(--teal); }

/* insight diagram */
.pipe { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 0; padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: rgba(18, 32, 54, .5); }
.pipe-node { padding: 20px 26px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-weight: 700; text-align: center; }
.pipe-node.model { position: relative; border-color: var(--warm); background: rgba(238, 138, 91, .08); }
.pipe-node.model small { display: block; font-weight: 500; font-size: .78rem; color: var(--warm); }
.pipe-node.ok { border-color: var(--teal); color: var(--teal); background: rgba(45, 224, 196, .07); }
.pulse { position: absolute; inset: -1px; border-radius: 14px; border: 2px solid var(--warm); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.22); } }
.pipe-line { position: relative; height: 2px; margin: 0 14px; background: var(--blue); align-self: center; }
.pipe-line::after { content: ""; position: absolute; top: -3px; left: 0; width: 26px; height: 8px; border-radius: 4px; background: #fff; filter: blur(3px); animation: travel 2.6s linear infinite; }
.pipe-line.dashed { background: repeating-linear-gradient(90deg, var(--warm) 0 8px, transparent 8px 16px); }
.pipe-line.dashed::after { display: none; }
.pipe-line span { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: .78rem; color: var(--muted); }
.pipe-line em { position: absolute; top: 12px; left: 0; right: 0; text-align: center; font-style: normal; font-size: .82rem; font-weight: 700; color: var(--blue); }
.pipe-line em.hot { color: var(--warm); }
@keyframes travel { to { left: calc(100% - 26px); } }

/* architecture flow */
.flow { padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: rgba(18, 32, 54, .4); }
.flow-label { font-style: italic; color: var(--muted); margin: 0 0 16px; }
.flow-row + .flow-label { margin-top: 44px; }
.flow-row { display: grid; grid-template-columns: 1fr 70px 1fr 70px 1fr; align-items: center; }
.node { height: 100%; padding: 26px 22px; text-align: center; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.node b { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.node small { color: var(--muted); font-size: .88rem; line-height: 1.4; display: block; }
.node.hi { border-color: rgba(45, 224, 196, .5); box-shadow: 0 0 40px -14px var(--teal); }
.node.hi b { color: var(--teal); }
.node.warm { border-color: rgba(238, 138, 91, .55); box-shadow: 0 0 40px -14px var(--warm); }
.node.warm b { color: var(--warm); }
.wire { position: relative; height: 2px; margin: 0 8px; background: rgba(45, 224, 196, .3); }
.wire::after { content: ""; position: absolute; right: -2px; top: -4px; border: solid var(--teal); border-width: 0 2px 2px 0; padding: 4px; transform: rotate(-45deg); }
.wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); animation: dot 1.8s var(--ease) infinite; }
.wire.warm { background: rgba(238, 138, 91, .35); }
.wire.warm i { background: var(--warm); box-shadow: 0 0 12px var(--warm); }
@keyframes dot { 0% { left: 0; opacity: 0; } 20% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }

/* moat */
.callout {
  padding: 40px; margin-bottom: 24px; border-radius: 22px; font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 700; line-height: 1.4;
  background: linear-gradient(120deg, rgba(45, 224, 196, .12), rgba(91, 141, 239, .14)); border: 1px solid rgba(45, 224, 196, .3);
}

/* roadmap */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.steps::before { content: ""; position: absolute; left: 5%; right: 5%; top: 25px; height: 2px; background: linear-gradient(90deg, var(--line), var(--teal), var(--teal)); }
.steps li { position: relative; text-align: center; padding: 0 6px; }
.steps .num { background: var(--bg); position: relative; margin-bottom: 26px; }
.steps li.hi .num { background: var(--teal); color: #04121a; box-shadow: 0 0 26px rgba(45, 224, 196, .6); }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: .92rem; }
.steps li.hi h3 { color: var(--teal); }

/* CTA + footer */
.cta { overflow: hidden; text-align: center; background: radial-gradient(ellipse at 50% 100%, rgba(45, 224, 196, .12), transparent 60%), var(--bg); }
.cta .wrap { position: relative; z-index: 2; }
.cta h2 { margin-inline: auto; font-size: clamp(2.2rem, 6vw, 4.6rem); }
.cta .sub { margin: -14px auto 40px; }
.footer { border-top: 1px solid var(--line); padding: 44px 0; color: var(--muted); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer .fine { margin: 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.tilt.in { transition: opacity .8s var(--ease), transform .35s var(--ease), border-color .3s; }

@media (max-width: 900px) {
  .aurora { filter: blur(50px); opacity: .4; }
  .aurora i { animation: none; will-change: auto; }
  .tilt, .card { transform: none !important; }
  .nav-links { display: none; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .pipe, .flow-row { grid-template-columns: 1fr; gap: 0; }
  .pipe-line, .wire { width: 2px; height: 56px; margin: 8px auto; }
  .pipe-line span, .pipe-line em { display: none; }
  .pipe-line::after, .wire i { display: none; }
  .wire::after { right: -4px; top: auto; bottom: -2px; transform: rotate(45deg); }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps::before { display: none; }
  .steps li { text-align: left; display: grid; grid-template-columns: 50px 1fr; column-gap: 18px; }
  .steps .num { grid-row: span 2; margin: 0; }
  .card, .flow, .pipe { padding: 24px; }
}

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