:root {
  --bg: #05060f;
  --bg-2: #0a0c1d;
  --panel: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8eaf6;
  --muted: #8b90b3;
  --cyan: #22d3ee;
  --violet: #a855f7;
  --pink: #f472b6;
  --grad: linear-gradient(100deg, var(--cyan), var(--violet) 55%, var(--pink));
  --radius: 18px;
  --max: 1180px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* subtle grid backdrop */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}

.cursor-glow {
  position: fixed; width: 520px; height: 520px; border-radius: 50%;
  pointer-events: none; z-index: -1; left: 0; top: 0;
  background: radial-gradient(circle, rgba(168, 85, 247, .13), transparent 60%);
  transform: translate(-50%, -50%);
  transition: opacity .3s;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 .95rem var(--font); color: #05060f;
  background: var(--grad); background-size: 200% 100%;
  box-shadow: 0 8px 30px -8px rgba(168, 85, 247, .6);
  transition: transform .2s, box-shadow .2s, background-position .5s;
}
.btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 12px 40px -8px rgba(34, 211, 238, .6); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: none; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem max(16px, calc((100vw - var(--max)) / 2));
  transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5, 6, 15, .75); backdrop-filter: blur(14px); border-color: var(--border); padding-block: .7rem; }
.logo { display: flex; align-items: center; gap: .55rem; font: 700 1.3rem var(--display); letter-spacing: -.03em; }
.logo img { display: block; filter: drop-shadow(0 0 10px rgba(80, 140, 255, .55)); transition: transform .4s, filter .4s; }
.logo:hover img { transform: rotate(-8deg) scale(1.08); filter: drop-shadow(0 0 16px rgba(120, 160, 255, .9)); }
.nav-links { display: flex; align-items: center; gap: 2rem; font-size: .92rem; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links .btn { color: #05060f; }
.burger { display: none; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 7px; right: 7px; height: 2px; background: var(--text); transition: .3s; }
.burger span:first-child { top: 13px; } .burger span:last-child { top: 21px; }
.burger[aria-expanded="true"] span:first-child { top: 17px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 17px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center; overflow: hidden;
  padding: 7rem 16px 5rem;
}
#neural { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 20%, var(--bg) 80%);
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .4rem .9rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--panel); backdrop-filter: blur(6px);
  font: 500 .8rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(2.8rem, 8vw, 6rem); margin: 1.5rem 0 1.2rem; font-weight: 700; }
.caret { color: var(--cyan); font-weight: 300; animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.lead { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); max-width: 640px; margin: 0 auto; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.hint { margin-top: 2rem; font: .75rem var(--mono); color: rgba(139, 144, 179, .6); }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; z-index: 2; width: 24px; height: 38px; margin-left: -12px; border: 2px solid var(--border); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--border); overflow: hidden; padding: 1.2rem 0; background: var(--bg-2);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 35s linear infinite; }
.track span { font: 500 1rem var(--mono); color: var(--muted); white-space: nowrap; }
.track span::before { content: "◆"; margin-right: 3.5rem; color: var(--violet); font-size: .6rem; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 7rem 16px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.kicker { font: 500 .85rem var(--mono); color: var(--cyan); margin-bottom: .8rem; }
.section h2 { font-size: clamp(2rem, 5vw, 3.3rem); }
.sub { color: var(--muted); margin-top: 1rem; font-size: 1.08rem; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.card {
  position: relative; padding: 2rem; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
  transition: border-color .3s, transform .2s ease-out;
  transform-style: preserve-3d; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, .12), transparent 45%);
}
.card:hover { border-color: rgba(168, 85, 247, .45); }
.card:hover::before { opacity: 1; }
.icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(34,211,238,.15), rgba(168,85,247,.15));
  border: 1px solid var(--border); margin-bottom: 1.4rem; color: var(--cyan);
}
.card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .96rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.3rem; }
.tags li { font: .72rem var(--mono); padding: .25rem .6rem; border-radius: 6px; background: rgba(255,255,255,.05); color: var(--muted); }

.card-featured { border-color: rgba(34, 211, 238, .35); background: linear-gradient(160deg, rgba(34,211,238,.08), rgba(168,85,247,.06) 60%, transparent), var(--panel); }
.card-link { display: inline-block; margin-top: 1.2rem; font: 500 .85rem var(--mono); color: var(--cyan); }
.card-link:hover { text-decoration: underline; }

/* ---------- data annotation ---------- */
.annot-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.4rem; align-items: start; }
.annot-demo { border: 1px solid var(--border); border-radius: var(--radius); background: #070815; overflow: hidden;
  box-shadow: 0 40px 120px -50px rgba(34, 211, 238, .4); }
.annot-tabs { display: flex; gap: .3rem; padding: .6rem; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); overflow-x: auto; }
.annot-tabs button { flex: none; font: 500 .82rem var(--mono); color: var(--muted); background: none; border: 1px solid transparent;
  padding: .45rem .9rem; border-radius: 8px; cursor: pointer; transition: .2s; }
.annot-tabs button:hover { color: var(--text); }
.annot-tabs button[aria-selected="true"] { color: var(--text); background: rgba(34,211,238,.1); border-color: rgba(34,211,238,.35); }
.annot-panel { display: none; padding: 1rem; }
.annot-panel.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }
.annot-foot { margin-top: .9rem; font-size: .82rem; color: var(--muted); }
.annot-foot #boxCount { color: var(--cyan); font: 600 1rem var(--mono); }
.mono { font-family: var(--mono); font-size: .75rem; }

.scene { width: 100%; height: auto; display: block; border-radius: 10px; }
.bbox rect { fill: color-mix(in srgb, var(--c) 12%, transparent); stroke: var(--c); stroke-width: 2.5;
  stroke-dasharray: 700; stroke-dashoffset: 700; fill-opacity: 0; }
.bbox text { font: 600 12px var(--mono); fill: var(--c); opacity: 0; paint-order: stroke; stroke: #070815; stroke-width: 4px; }
.bbox.on rect { animation: draw .7s ease forwards; }
.bbox.on text { animation: tagIn .3s .5s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes tagIn { to { opacity: 1; } }
.scanline { stroke: rgba(34,211,238,.7); stroke-width: 2; opacity: 0; filter: drop-shadow(0 0 6px #22d3ee); }
.scanning .scanline { animation: scan 2.6s ease-in-out; }
@keyframes scan { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(340px); } }

.ner { font-size: 1.12rem; line-height: 2.5; padding: .6rem .4rem; }
.ner [data-ent] { position: relative; padding: .15rem .35rem; border-radius: 6px; transition: background .4s, box-shadow .4s; }
.ner [data-ent]::after { content: attr(data-ent); position: absolute; left: 50%; top: -1.15rem; transform: translateX(-50%) scale(.6);
  font: 600 .6rem var(--mono); letter-spacing: .05em; padding: .05rem .35rem; border-radius: 4px; color: #05060f; background: var(--ec);
  opacity: 0; transition: .3s; white-space: nowrap; line-height: 1.4; }
.ner [data-ent].on { background: color-mix(in srgb, var(--ec) 22%, transparent); box-shadow: inset 0 -2px 0 var(--ec); }
.ner [data-ent].on::after { opacity: 1; transform: translateX(-50%) scale(1); }
.ner [data-ent="ORG"] { --ec: #22d3ee; } .ner [data-ent="LOC"] { --ec: #4ade80; } .ner [data-ent="DATE"] { --ec: #f59e0b; }
.ner [data-ent="QTY"] { --ec: #a855f7; } .ner [data-ent="MONEY"] { --ec: #f472b6; }
.ner-meta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.ner-meta div { padding: .6rem .8rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.03); }
.ner-meta small { display: block; font: .66rem var(--mono); color: var(--muted); text-transform: uppercase; margin-bottom: .2rem; }
.chip { font: 500 .85rem var(--mono); color: var(--cyan); } .chip.pos { color: #4ade80; }

.prompt, .resp { padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.03); margin-bottom: .7rem; font-size: .95rem; position: relative; }
.prompt small, .resp small { display: block; font: .66rem var(--mono); color: var(--muted); text-transform: uppercase; margin-bottom: .3rem; }
.resp { transition: border-color .4s, background .4s, opacity .4s; }
.rate { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: .4rem .6rem; align-items: center; margin-top: .7rem; font: .68rem var(--mono); color: var(--muted); }
.rate i { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.rate i::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(0); transition: transform .9s ease; }
.rated .rate i::after { transform: scaleX(var(--v)); }
.pref { position: absolute; top: .8rem; right: .9rem; font: 600 .72rem var(--mono); color: #05060f; background: #4ade80; padding: .15rem .5rem; border-radius: 6px; opacity: 0; transform: scale(.7); transition: .35s .6s; }
.rated .resp[data-resp="b"] { border-color: rgba(74,222,128,.5); background: rgba(74,222,128,.06); }
.rated .resp[data-resp="a"] { opacity: .55; }
.rated .pref { opacity: 1; transform: none; }

.annot-side { display: grid; gap: 1.2rem; }
.annot-types { padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); }
.annot-types h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.annot-types ul { list-style: none; display: grid; gap: .85rem; }
.annot-types li { display: grid; grid-template-columns: 92px 1fr; gap: .8rem; font-size: .88rem; padding-bottom: .85rem; border-bottom: 1px dashed var(--border); }
.annot-types li:last-child { border-bottom: 0; padding-bottom: 0; }
.annot-types b { font: 600 .85rem var(--mono); color: var(--cyan); }
.annot-types span { color: var(--muted); }
.formats { padding: 1.2rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); }
.formats small { font: .7rem var(--mono); color: var(--muted); text-transform: uppercase; }
.formats div { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.formats span { font: 500 .78rem var(--mono); padding: .3rem .65rem; border-radius: 6px; border: 1px solid var(--border); background: rgba(0,0,0,.3); }

.quality { margin-top: 1.4rem; padding: 2.2rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: radial-gradient(circle at 100% 0%, rgba(168,85,247,.12), transparent 50%), var(--panel); }
.quality h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.q-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: q; }
.q { position: relative; }
.q span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; margin-bottom: .7rem;
  font: 600 .9rem var(--mono); color: #05060f; background: var(--grad); }
.q b { display: block; font-family: var(--display); font-size: 1.05rem; margin-bottom: .3rem; }
.q p { color: var(--muted); font-size: .88rem; }
.trust { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.trust span { font-size: .85rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--border); background: rgba(0,0,0,.25); }

/* ---------- startups ---------- */
.journey { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; position: relative; margin-bottom: 2.4rem; }
.journey::before, .journey::after { content: ""; position: absolute; left: 8%; right: 8%; top: 27px; height: 2px; border-radius: 2px; }
.journey::before { background: var(--border); }
.journey::after { background: var(--grad); transform-origin: left; transform: scaleX(0); transition: transform 2.2s cubic-bezier(.4,0,.2,1) .3s; }
.journey.in::after { transform: scaleX(1); }
.journey li { position: relative; z-index: 1; text-align: center; padding: 0 .3rem; }
.j-dot { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto .9rem; border-radius: 16px; font-size: 1.4rem;
  background: var(--bg-2); border: 1px solid var(--border); transition: border-color .4s, box-shadow .4s, transform .4s; }
.journey.in .j-dot { border-color: rgba(168,85,247,.6); box-shadow: 0 0 26px -6px rgba(168,85,247,.7); }
.journey li:hover .j-dot { transform: translateY(-4px) scale(1.06); }
.journey b { display: block; font-family: var(--display); font-size: 1.05rem; margin-bottom: .3rem; }
.journey p { color: var(--muted); font-size: .84rem; }
.journey.in li:nth-child(1) .j-dot { transition-delay: .3s; } .journey.in li:nth-child(2) .j-dot { transition-delay: .7s; }
.journey.in li:nth-child(3) .j-dot { transition-delay: 1.1s; } .journey.in li:nth-child(4) .j-dot { transition-delay: 1.5s; }
.journey.in li:nth-child(5) .j-dot { transition-delay: 1.9s; } .journey.in li:nth-child(6) .j-dot { transition-delay: 2.3s; }

.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.build, .support { padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); }
.build h3, .support h3 { font-size: 1.3rem; }
.build-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.4rem; }
.build-chips span { font-size: .88rem; padding: .5rem .9rem; border-radius: 10px; border: 1px solid var(--border); background: rgba(0,0,0,.25); transition: .25s; }
.build-chips span:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.build-note { color: var(--muted); font-size: .92rem; padding-top: 1.2rem; border-top: 1px dashed var(--border); }
.support { background: radial-gradient(circle at 100% 0%, rgba(74,222,128,.08), transparent 50%), var(--panel); }
.support-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.status { display: inline-flex; align-items: center; gap: .5rem; font: .75rem var(--mono); color: #4ade80; padding: .3rem .7rem; border-radius: 999px; border: 1px solid rgba(74,222,128,.3); background: rgba(74,222,128,.06); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: pulseG 2s infinite; }
@keyframes pulseG { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.support-list { list-style: none; display: grid; gap: .9rem; }
.support-list li { display: grid; gap: .15rem; padding-left: 1.4rem; position: relative; }
.support-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #4ade80; font-weight: 700; }
.support-list b { font-size: .98rem; }
.support-list span { color: var(--muted); font-size: .88rem; }

/* ---------- live lab ---------- */
.console { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #070815; box-shadow: 0 40px 120px -40px rgba(168, 85, 247, .35); }
.console-bar { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.console-title { flex: 1; text-align: center; font: .8rem var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-body { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 380px; }
.chart-wrap { padding: 1.2rem; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: .8rem; }
.chart-legend { display: flex; gap: 1.2rem; font: .75rem var(--mono); color: var(--muted); }
.sw { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: .4rem; vertical-align: middle; }
.sw-train { background: var(--cyan); } .sw-val { background: var(--pink); }
#lossChart { width: 100%; height: 240px; flex: 1; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.metrics div { padding: .6rem .7rem; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--border); }
.metrics small { display: block; font: .68rem var(--mono); color: var(--muted); text-transform: uppercase; }
.metrics b { font: 500 1rem var(--mono); }
.log { padding: 1.2rem; font: .78rem/1.7 var(--mono); color: #b8f5c8; overflow-y: auto; max-height: 420px; white-space: pre-wrap; word-break: break-word; }
.log .muted { color: var(--muted); } .log .ok { color: var(--cyan); } .log .warn { color: #febc2e; } .log .done { color: var(--pink); font-weight: 500; }

/* ---------- stats ---------- */
.stats { max-width: var(--max); margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { text-align: center; padding: 2rem 1rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); }
.stat b { display: block; font: 700 clamp(2.2rem, 5vw, 3.2rem) var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- timeline ---------- */
.timeline { list-style: none; position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--cyan), var(--violet), var(--pink)); opacity: .5; }
.timeline li { display: flex; gap: 1.6rem; align-items: flex-start; padding: 1.1rem 0; }
.step { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 600 .95rem var(--mono);
  background: var(--bg); border: 2px solid var(--violet); color: var(--cyan); position: relative; z-index: 1; box-shadow: 0 0 24px -4px rgba(168,85,247,.6); }
.timeline h3 { font-size: 1.3rem; margin: .4rem 0 .3rem; }
.timeline p { color: var(--muted); }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.member { text-align: center; padding: 2.2rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); transition: transform .3s, border-color .3s; }
.member:hover { transform: translateY(-6px); border-color: rgba(34,211,238,.4); }
.avatar { width: 96px; height: 96px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.6rem var(--display); color: #fff;
  background: conic-gradient(from 0deg, hsl(var(--h) 90% 60%), hsl(calc(var(--h) + 60) 90% 55%), hsl(var(--h) 90% 60%));
  box-shadow: 0 0 40px -10px hsl(var(--h) 90% 60%); }
.member h3 { font-size: 1.15rem; }
.member p { color: var(--muted); font-size: .9rem; }
/* real photo inside the gradient ring */
.avatar.photo { padding: 3px; width: 120px; height: 120px; }
.avatar.photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: var(--bg-2); }
.member .role { color: var(--cyan); font: 500 .8rem var(--mono); margin: .2rem 0 .5rem; }
.member .socials { display: flex; justify-content: center; gap: .6rem; margin-top: .9rem; }
.member .socials a { font: 500 .78rem var(--mono); color: var(--muted); border: 1px solid var(--border); border-radius: 8px; padding: .25rem .6rem; }
.member .socials a:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- contact ---------- */
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 3rem; border-radius: 28px;
  border: 1px solid var(--border); position: relative; overflow: hidden;
  background: radial-gradient(circle at 0% 0%, rgba(34,211,238,.12), transparent 50%), radial-gradient(circle at 100% 100%, rgba(168,85,247,.16), transparent 50%), var(--bg-2); }
.contact-copy h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.mail { display: inline-block; margin-top: 2rem; font: 500 1.1rem var(--mono); border-bottom: 1px solid var(--violet); padding-bottom: 2px; }
.mail:hover { color: var(--cyan); }
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-size: .85rem; color: var(--muted); }
.form input, .form select, .form textarea {
  font: 1rem var(--font); color: var(--text); background: rgba(0,0,0,.35);
  border: 1px solid var(--border); border-radius: 12px; padding: .8rem 1rem; outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.form select option { background: var(--bg-2); }
.form .btn { justify-self: start; }
.form[hidden], .form-success[hidden] { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.opt { color: rgba(139,144,179,.6); font-size: .78rem; }
.form .invalid { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.2em; font-size: .88rem; }
.form-status.error { color: #f87171; }
.btn.loading { opacity: .8; cursor: progress; }
.btn.loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(5,6,15,.3); border-top-color: #05060f; animation: spin .7s linear infinite; }
.btn.loading [aria-hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { display: grid; place-items: center; text-align: center; align-content: center; gap: .8rem; padding: 2rem 1rem; animation: fadeIn .5s ease; }
.form-success .check { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 700; color: #05060f;
  background: linear-gradient(135deg, #4ade80, var(--cyan)); box-shadow: 0 0 50px -8px rgba(74,222,128,.7); }
.form-success h3 { font-size: 1.6rem; }
.form-success p { color: var(--muted); max-width: 340px; }

/* ---------- footer ---------- */
.footer { max-width: var(--max); margin: 0 auto; padding: 2.5rem 16px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.footer .logo { color: var(--text); font-size: 1.1rem; }
.footer a:hover { color: var(--cyan); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.settled { transition: border-color .3s, transform .25s ease-out; }
.reveal.settled:not([data-tilt]) { transform: none; }
.member.reveal.settled:hover { transform: translateY(-6px); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .annot-grid { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .journey::before, .journey::after { display: none; }
  .q-steps { grid-template-columns: repeat(2, 1fr); }
  .console-body { grid-template-columns: 1fr; }
  .chart-wrap { border-right: 0; border-bottom: 1px solid var(--border); }
  .log { max-height: 260px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; padding: 2rem 1.4rem; gap: 2rem; }
}
@media (max-width: 1040px) {
  .burger { display: block; }
  .nav-links { position: fixed; inset: 64px 16px auto 16px; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 12, 29, .97); border: 1px solid var(--border); border-radius: 16px; padding: .6rem;
    opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .25s; }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: .9rem 1rem; }
  .nav-links .btn { justify-content: center; margin-top: .4rem; }
}
@media (max-width: 760px) {
  .section { padding: 5rem 16px; }
  .team { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .build, .support { padding: 1.5rem; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .hint { display: none; }
  .q-steps { grid-template-columns: 1fr; }
  .quality { padding: 1.5rem; }
  .annot-types li { grid-template-columns: 1fr; gap: .2rem; }
  .ner { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .bbox.on rect { stroke-dashoffset: 0; fill-opacity: 1; }
  .bbox.on text { opacity: 1; }
}
