:root {
  --bg: #07091a;
  --bg-2: #0d1130;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef0ff;
  --muted: #9aa0c3;
  --lime: #b8ff5c;
  --cyan: #4de3ff;
  --violet: #8b6cff;
  --pink: #ff6fa8;
  --amber: #ffc04d;
  --grad: linear-gradient(100deg, var(--lime), var(--cyan) 50%, var(--violet));
  --radius: 20px;
  --font-d: "Space Grotesk", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3 { font-family: var(--font-d); line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
em { font-style: normal; color: var(--lime); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.narrow { max-width: 640px; margin-inline: auto; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(80px, 12vw, 140px) 0; position: relative; }
.kicker { font-family: var(--font-d); color: var(--cyan); font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.body-lg { font-size: 1.12rem; margin-bottom: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--lime); color: #0a0d1f; font-weight: 600;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 0 0 0 rgba(184, 255, 92, .5);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -8px rgba(184, 255, 92, .6); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: none; }

/* Cursor glow */
.cursor-glow {
  position: fixed; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 108, 255, .14), transparent 60%);
  pointer-events: none; transform: translate(-50%, -50%); z-index: 0;
  left: -600px; top: -600px; transition: left .15s ease-out, top .15s ease-out;
}

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(16px, 4vw, 48px);
  transition: background .3s, backdrop-filter .3s, padding .3s;
}
.nav.scrolled { background: rgba(7, 9, 26, .72); backdrop-filter: blur(16px); padding-block: 12px; border-bottom: 1px solid var(--border); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-d); font-size: 1.35rem; font-weight: 500; }
.logo b { color: var(--lime); font-weight: 700; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); display: grid; place-items: center; }
.logo-mark svg { width: 22px; height: 22px; }
.logo-mark path { stroke: var(--lime); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); transition: transform .3s, top .3s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* Hero */
.hero { min-height: 100svh; display: grid; place-items: center; position: relative; overflow: hidden; padding: 120px 16px 80px; }
#neural { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, var(--bg) 78%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 960px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); backdrop-filter: blur(8px); font-size: .88rem; color: var(--muted); margin-bottom: 28px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
#rotator { display: inline-block; min-width: 4ch; transition: opacity .35s, transform .35s, filter .35s; }
#rotator.out { opacity: 0; transform: translateY(16px); filter: blur(6px); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 680px; margin: 26px auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 48px; }
.hero-tags li { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .9rem; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 24px; height: 38px; border: 2px solid var(--border); border-radius: 14px; z-index: 2; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; background: var(--lime); border-radius: 2px; animation: scroll 1.8s infinite; }
@keyframes scroll { to { transform: translateY(14px); opacity: 0; } }

/* Marquee */
.marquee { border-block: 1px solid var(--border); overflow: hidden; padding: 22px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 36px; width: max-content; animation: marquee 38s linear infinite; font-family: var(--font-d); font-size: 1.3rem; color: var(--muted); white-space: nowrap; }
.marquee-track span:nth-child(even) { color: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 72px; }
.stat { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.num { display: block; font-family: var(--font-d); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lbl { color: var(--muted); font-size: .95rem; }

/* Core */
.core { background: radial-gradient(ellipse at 30% 50%, rgba(139, 108, 255, .12), transparent 60%), var(--bg); }
.core-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 70px; }
.orbit { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin-inline: auto; }
.ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .14); inset: 0; animation: spin 40s linear infinite; }
.r2 { inset: 16%; animation-duration: 28s; animation-direction: reverse; border-style: solid; border-color: rgba(77, 227, 255, .2); }
.r3 { inset: 32%; animation-duration: 18s; }
@keyframes spin { to { transform: rotate(360deg); } }
.core-node { position: absolute; inset: 38%; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 0 80px rgba(139, 108, 255, .6), 0 0 160px rgba(77, 227, 255, .25); animation: breathe 4s ease-in-out infinite; }
.core-node span { font-family: var(--font-d); font-weight: 700; color: #0a0d1f; letter-spacing: .12em; font-size: .9rem; }
@keyframes breathe { 50% { transform: scale(1.06); } }
.sat { position: absolute; width: 58px; height: 58px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--border); display: grid; place-items: center; font-size: 1.6rem; animation: float 6s ease-in-out infinite; }
.s1 { top: 4%; left: 44%; } .s2 { top: 44%; right: 0; animation-delay: -1.5s; } .s3 { bottom: 4%; left: 44%; animation-delay: -3s; } .s4 { top: 44%; left: 0; animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.layers { display: grid; gap: 14px; }
.layer { display: flex; gap: 20px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .3s, transform .3s; }
.layer:hover { border-color: rgba(184, 255, 92, .4); transform: translateX(6px); }
.layer-n { font-family: var(--font-d); font-weight: 700; color: var(--lime); font-size: .95rem; padding-top: 2px; }
.layer p { color: var(--muted); margin-top: 6px; }

/* Tabs / Panels */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 48px 0 28px; }
.tab { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); transition: all .25s; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: clamp(24px, 4vw, 56px); border-radius: 28px; border: 1px solid var(--border); background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%), var(--bg-2); animation: panelIn .5s ease; }
.panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.product { display: inline-block; font-family: var(--font-d); padding: 6px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent); font-size: .9rem; margin-bottom: 18px; }
.panel h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.panel p { color: var(--muted); }
.features { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.features li { padding-left: 30px; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 10px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.mock { padding: 24px; border-radius: 22px; background: rgba(7, 9, 26, .8); border: 1px solid var(--border); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 60%, transparent); display: grid; gap: 14px; transform: perspective(900px) rotateY(-6deg) rotateX(3deg); transition: transform .5s; }
.panel:hover .mock { transform: none; }
.mock-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-d); font-weight: 500; gap: 10px; }
.chip { font-size: .78rem; padding: 4px 10px; border-radius: 999px; font-family: var(--font-b); white-space: nowrap; }
.chip.ok { background: rgba(184, 255, 92, .15); color: var(--lime); }
.chip.info { background: rgba(77, 227, 255, .15); color: var(--cyan); }
.chip.warn { background: rgba(255, 111, 168, .15); color: var(--pink); }
.bars { display: flex; align-items: end; gap: 8px; height: 110px; padding: 10px 0; }
.bars div { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(to top, color-mix(in srgb, var(--accent) 30%, transparent), var(--accent)); transform-origin: bottom; animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; }
.bars div:nth-child(2) { animation-delay: .05s } .bars div:nth-child(3) { animation-delay: .1s } .bars div:nth-child(4) { animation-delay: .15s } .bars div:nth-child(5) { animation-delay: .2s } .bars div:nth-child(6) { animation-delay: .25s } .bars div:nth-child(7) { animation-delay: .3s }
@keyframes grow { from { transform: scaleY(0); } }
.mock-row { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--surface); font-size: .92rem; gap: 10px; }
.mock-row span { color: var(--muted); }
.mock-alert { padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); font-size: .9rem; }
.progress { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); }
.progress i { height: 10px; border-radius: 99px; background: var(--surface); position: relative; overflow: hidden; }
.progress i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--accent)); animation: fill 1.2s ease both; }
@keyframes fill { from { width: 0; } }

/* Demo terminal */
.demo { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.prompts { display: grid; gap: 10px; margin-top: 28px; }
.prompt { text-align: left; padding: 16px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, background .2s; }
.prompt:hover, .prompt.active { border-color: var(--cyan); background: rgba(77, 227, 255, .06); }
.prompt:disabled { opacity: .5; cursor: wait; }
.terminal { border-radius: 22px; border: 1px solid var(--border); background: #05061299; backdrop-filter: blur(10px); overflow: hidden; box-shadow: 0 40px 100px -40px rgba(139, 108, 255, .5); position: sticky; top: 100px; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; font-size: .82rem; color: var(--muted); font-family: ui-monospace, monospace; }
.term-body { padding: 22px; min-height: 380px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9rem; display: grid; gap: 10px; align-content: start; }
.term-body p { opacity: 0; animation: lineIn .35s forwards; }
@keyframes lineIn { to { opacity: 1; } }
.term-body .sys { color: var(--muted); }
.term-body .user { color: var(--cyan); }
.term-body .think { color: var(--violet); }
.term-body .act { color: var(--lime); }
.term-body .out { color: var(--text); padding: 12px 14px; border-left: 2px solid var(--lime); background: rgba(184, 255, 92, .05); border-radius: 0 10px 10px 0; font-family: var(--font-b); }
.caret::after { content: "▋"; animation: blink 1s steps(1) infinite; color: var(--lime); margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; counter-reset: s; }
.step { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); position: relative; overflow: hidden; transition: transform .3s; }
.step:hover { transform: translateY(-6px); }
.step::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s; }
.step:hover::before { transform: scaleX(1); }
.step span { font-family: var(--font-d); font-size: 2.6rem; font-weight: 700; color: rgba(255, 255, 255, .1); display: block; margin-bottom: 16px; }
.step p { color: var(--muted); margin-top: 8px; font-size: .96rem; }

/* Contact */
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: clamp(28px, 5vw, 64px); border-radius: 32px; border: 1px solid var(--border); background: radial-gradient(ellipse at 0% 0%, rgba(184, 255, 92, .12), transparent 50%), radial-gradient(ellipse at 100% 100%, rgba(139, 108, 255, .18), transparent 55%), var(--bg-2); }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; color: var(--text); background: rgba(7, 9, 26, .6); border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px; outline: none; transition: border-color .2s; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--cyan); }
.form .invalid { border-color: var(--pink); }
.form .btn { justify-self: start; }
.form-msg { font-size: .92rem; min-height: 1.4em; color: var(--lime); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 0; }
.foot { display: grid; gap: 14px; justify-items: start; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .split, .core-grid, .panel, .contact-card { grid-template-columns: 1fr; }
  .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .terminal { position: static; }
  .mock { transform: none; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav-links { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px; font-size: 1.3rem; background: rgba(7, 9, 26, .96); backdrop-filter: blur(18px); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .burger { z-index: 60; }
  .cursor-glow { display: none; }
}
@media (max-width: 520px) {
  .stats, .steps { grid-template-columns: 1fr; }
  .tab { flex: 1 1 calc(50% - 10px); padding: 10px 12px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
