/* ───────── AIGENE · teaser ───────── */
:root {
  --bg: #0A0B0E;
  --bg-1: #0F1115;
  --bg-2: #15181E;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #F3F5F8;
  --muted: #8C94A3;
  --dim: #5C6372;
  --blue: #0949FD;
  --blue-hi: #5A84FF;
  --lime: #D7FC05;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --r-lg: 28px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--lime); color: #000; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); width: 100%; }
.ai, .c-lime { color: var(--lime); }
.c-blue { color: var(--blue-hi); }
[data-cfg].is-off { display: none !important; }

.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────── buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; background: none;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lime { background: var(--lime); color: #07080A; }
.btn-lime:hover { box-shadow: 0 0 0 6px rgba(215, 252, 5, .14), 0 14px 44px -10px rgba(215, 252, 5, .55); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .06); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13.5px; }
.btn-strand-blue { border-color: rgba(9, 73, 253, .6); background: rgba(9, 73, 253, .12); color: #DDE6FF; }
.btn-strand-blue:hover { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 10px 34px -10px rgba(9, 73, 253, .9); }
.btn-strand-lime { border-color: rgba(215, 252, 5, .45); background: rgba(215, 252, 5, .08); color: var(--lime); }
.btn-strand-lime:hover { background: var(--lime); border-color: var(--lime); color: #07080A; box-shadow: 0 10px 34px -10px rgba(215, 252, 5, .7); }

/* ───────── nav ───────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, padding .35s;
}
.nav.scrolled {
  background: rgba(10, 11, 14, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line); padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; font-stretch: 125%; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 2px; font-size: 14px; color: var(--muted); }
.nav-links a { padding: 8px 15px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta { padding: 0 20px; }

/* ───────── hero ───────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
}
.hero-helix { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-curves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.hero-inner { flex: 1; display: flex; align-items: center; padding-top: 128px; padding-bottom: 48px; }
.hero-copy { max-width: 720px; }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 15px 7px 12px; border-radius: 999px;
  border: 1px solid rgba(215, 252, 5, .26); background: rgba(215, 252, 5, .06);
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--lime);
}
.status i, .live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex: none;
  animation: ping 2.2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(215, 252, 5, .55); }
  70% { box-shadow: 0 0 0 10px rgba(215, 252, 5, 0); }
  100% { box-shadow: 0 0 0 0 rgba(215, 252, 5, 0); }
}
.eyebrow {
  margin-top: 36px; font-stretch: 125%; font-weight: 500; text-transform: uppercase;
  font-size: clamp(11px, 1.05vw, 15px); letter-spacing: .44em; color: #AEB5C2;
}
.eyebrow em { font-style: normal; color: var(--dim); margin: 0 .25em; }
.wordmark {
  margin: 14px 0 0 -.05em;
  font-stretch: 125%; font-weight: 900; line-height: .84; letter-spacing: -.03em;
  font-size: clamp(60px, 9.6vw, 156px);
}
.sub { margin-top: 18px; font-stretch: 125%; font-weight: 400; font-size: clamp(17px, 2vw, 29px); letter-spacing: .02em; color: #E6E9EE; }
.tagline { margin-top: 40px; font-size: clamp(22px, 2.3vw, 32px); font-weight: 700; letter-spacing: -.005em; }
.lede { margin-top: 12px; max-width: 33em; color: var(--muted); font-size: clamp(15px, 1.1vw, 17px); text-wrap: pretty; }
.cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }

.hero-foot { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 28px; }
.spec { display: grid; grid-template-columns: repeat(4, auto); gap: 0; border-top: 1px solid var(--line); flex: 1; max-width: 760px; }
.spec div { padding: 16px 28px 0 0; }
.spec dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.spec dd { margin-top: 4px; font-stretch: 112%; font-weight: 700; font-size: 14px; }
.scroll-cue { width: 26px; height: 42px; border-radius: 999px; border: 1px solid var(--line-2); position: relative; flex: none; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--lime); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ───────── crossing tapes ───────── */
.tapes { position: relative; height: 190px; overflow: hidden; }
.tape {
  position: absolute; top: 50%; left: -10%; width: 120%; height: 54px;
  display: flex; align-items: center; overflow: hidden; white-space: nowrap;
  font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
}
.tape-blue { background: var(--blue); color: #fff; transform: translateY(-50%) rotate(-3.4deg); box-shadow: 0 24px 60px -24px rgba(9, 73, 253, .8); }
.tape-lime { background: var(--lime); color: #07080A; transform: translateY(-50%) rotate(2.8deg); box-shadow: 0 24px 60px -24px rgba(215, 252, 5, .5); }
.tape-track { display: flex; flex: none; align-items: center; animation: tape 46s linear infinite; will-change: transform; }
.tape-lime .tape-track { animation-direction: reverse; animation-duration: 52s; }
.tape-track > * { padding: 0 20px; flex: none; }
.tape-track b { font-weight: 400; opacity: .7; padding: 0; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ───────── sections ───────── */
.section { position: relative; padding: clamp(96px, 12vw, 168px) 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .018) 18%, rgba(255, 255, 255, .018) 82%, transparent); }
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.kicker b { color: var(--lime); font-weight: 700; }
.kicker::after { content: ""; width: 48px; height: 1px; background: var(--line-2); }
.h2 {
  margin-top: 22px; font-stretch: 112%; font-weight: 800; letter-spacing: -.025em; line-height: 1.06;
  font-size: clamp(34px, 4.5vw, 64px); text-wrap: balance;
}
.sec-head { display: grid; grid-template-columns: 1.45fr 1fr; gap: 28px 72px; align-items: end; }
.sec-lede { margin-top: 22px; max-width: 34em; color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); text-wrap: pretty; }
.sec-head .sec-lede { margin-top: 0; padding-bottom: 8px; }

/* 01 strands */
.strand-panel {
  margin-top: 64px; position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: radial-gradient(120% 80% at 50% 50%, rgba(9, 73, 253, .08), transparent 60%), var(--bg-1);
}
.strand-row { display: grid; grid-template-columns: minmax(240px, .9fr) 1.1fr; gap: 16px 48px; align-items: center; padding: 34px 40px; }
.strand-row p { color: var(--muted); max-width: 36em; }
.strand-id h3 { margin-top: 8px; font-stretch: 125%; font-weight: 800; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; line-height: 1; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-blue { background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.dot-lime { background: var(--lime); box-shadow: 0 0 12px rgba(215, 252, 5, .8); }
.strand-canvas { position: relative; height: clamp(190px, 22vw, 290px); border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.strand-canvas canvas { width: 100%; height: 100%; }
.bp-label {
  position: absolute; right: 18px; bottom: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim);
}

.facts { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fact { padding: 28px 28px 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-1); transition: border-color .3s, transform .3s var(--ease); }
.fact:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pair { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .1em; color: var(--blue-hi); }
.pair i { font-style: normal; color: var(--dim); margin: 0 .35em; }
.fact:nth-child(2) .pair { color: var(--lime); }
.fact h4 { margin-top: 18px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.fact p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* 02 balance */
.balance-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.points { margin-top: 40px; }
.point { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.point:last-child { border-bottom: 1px solid var(--line); }
.point .n { font-family: var(--mono); font-size: 12px; color: var(--lime); padding-top: 5px; }
.point h4 { font-size: 18px; font-weight: 700; }
.point p { margin-top: 3px; color: var(--muted); font-size: 15px; }

.panel {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-1);
  box-shadow: 0 50px 140px -50px rgba(9, 73, 253, .45);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 20px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.panel-head > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.chip { padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 11px; color: var(--muted); }
.chart { height: clamp(240px, 26vw, 320px); }
.chart canvas { width: 100%; height: 100%; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 15px 20px; border-right: 1px solid var(--line); min-width: 0; }
.stat:last-child { border-right: 0; }
.stat span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.stat b { display: block; margin-top: 5px; font-family: var(--mono); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 20px 6px; border-top: 1px solid var(--line); }
.log { min-height: 2.6em; padding: 8px 20px 0; font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.log.done { color: var(--lime); }
.panel-note { padding: 6px 20px 18px; font-size: 12px; color: var(--dim); }

/* 03 access */
.access-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.steps { margin-top: 40px; list-style: none; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); align-items: baseline; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { font-family: var(--mono); font-size: 12px; color: var(--lime); }
.steps p { font-size: 16px; }

.sequencer { box-shadow: 0 50px 140px -50px rgba(215, 252, 5, .22); }
.seq-form { display: flex; gap: 10px; padding: 18px 20px; }
.seq-input {
  flex: 1; min-width: 0; display: flex; align-items: center; height: 52px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.seq-input:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(215, 252, 5, .12); }
.seq-input input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none;
  font-family: var(--mono); font-size: 16px; font-weight: 500; text-align: right;
}
.seq-input input::placeholder { color: var(--dim); }
.seq-input .suffix { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--lime); }
.card-frame { margin: 0 20px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.card-frame canvas { width: 100%; height: auto; aspect-ratio: 1200 / 630; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 20px 4px; }
.sequencer .panel-note { padding-top: 10px; }

/* 04 genesis */
.phases { position: relative; margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); }
.phase-wave { position: absolute; left: 0; top: -10px; width: 100%; height: 40px; overflow: visible; }
.phase { position: relative; padding: 52px 32px 0 0; }
.phase .node {
  position: absolute; left: -9px; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25); background: var(--bg);
}
.phase.live .node { border-color: var(--lime); background: var(--lime); box-shadow: 0 0 0 6px rgba(215, 252, 5, .14), 0 0 26px rgba(215, 252, 5, .7); }
.ph-en { min-height: 22px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.ph-en em { font-style: normal; padding: 2px 8px; border-radius: 6px; background: var(--lime); color: #07080A; font-weight: 700; letter-spacing: .08em; }
.phase h3 { margin-top: 12px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.01em; }
.phase:not(.live) h3 { color: #C9CED7; }
.phase p:last-child { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 18em; }

/* final */
.final { position: relative; overflow: hidden; text-align: center; padding: clamp(110px, 14vw, 200px) 0 clamp(90px, 10vw, 140px); }
.final-glow {
  position: absolute; left: 50%; top: 42%; width: min(1100px, 140vw); aspect-ratio: 2 / 1; transform: translate(-50%, -50%); z-index: -1;
  background: radial-gradient(closest-side at 38% 50%, rgba(9, 73, 253, .30), transparent), radial-gradient(closest-side at 64% 55%, rgba(215, 252, 5, .12), transparent);
  filter: blur(10px);
}
.final-mark { width: 132px; height: 132px; margin: 0 auto; border-radius: 32px; box-shadow: 0 0 0 1px var(--line), 0 30px 90px -20px rgba(9, 73, 253, .7); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.final-url { margin-top: 44px; font-stretch: 125%; font-weight: 900; letter-spacing: -.04em; line-height: .9; font-size: clamp(46px, 9.4vw, 148px); }
.final-sub { margin: 26px auto 0; max-width: 30em; color: var(--muted); font-size: clamp(16px, 1.4vw, 20px); }
.final .cta-row { margin-top: 38px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 48px; flex-wrap: wrap; }
.foot-brand { font-stretch: 125%; font-weight: 900; font-size: 16px; }
.foot-brand span:last-child { margin-left: 12px; font-stretch: 100%; font-weight: 400; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.foot-disc { max-width: 52em; font-size: 12.5px; color: var(--dim); }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ───────── responsive ───────── */
@media (max-width: 980px) {
  .balance-grid, .access-grid { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-inner { align-items: flex-start; padding-top: calc(min(400px, 105vw) + 40px); padding-bottom: 36px; }
  .hero-copy { max-width: none; }
  .wordmark { font-size: 15.4vw; }
  .eyebrow { margin-top: 26px; letter-spacing: .3em; }
  .tagline { margin-top: 26px; }
  .spec { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .spec div { padding: 14px 12px 0 0; }
  .scroll-cue { display: none; }
  .strand-row { grid-template-columns: 1fr; padding: 26px 22px; gap: 10px; }
  .phases { grid-template-columns: 1fr; margin-top: 48px; padding-left: 10px; }
  .phases::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 30px; width: 2px; background: linear-gradient(180deg, var(--lime) 0 18%, var(--line-2) 26%); }
  .phase-wave { display: none; }
  .phase { padding: 0 0 38px 34px; }
  .phase .node { left: -8px; top: 2px; }
  .phase p:last-child { max-width: none; }
}
@media (max-width: 560px) {
  .nav { padding-left: 16px; padding-right: 16px; }
  .nav-right .btn-ghost { width: 40px; padding: 0; }
  .nav-right .btn-ghost span { display: none; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .btn { height: 48px; padding: 0 20px; }
  .btn-sm { height: 40px; padding: 0 16px; }
  .cta-row .btn { flex: 1 1 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .controls .btn { flex: 1 1 100%; }
  .seq-form { flex-direction: column; padding: 16px; }
  .card-frame { margin: 0 16px; }
  .card-actions { padding: 14px 16px 4px; }
  .card-actions .btn { flex: 1; }
  .panel-head, .log, .panel-note { padding-left: 16px; padding-right: 16px; }
  .tapes { height: 150px; }
  .tape { height: 46px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .tape-track, .status i, .live-dot, .scroll-cue span, .final-mark { animation: none; }
}
