:root {
  color-scheme: dark;
  --bg: #07080d;
  --bg-elevated: #0d0f16;
  --surface: rgba(16, 19, 28, 0.78);
  --surface-strong: #11141d;
  --line: rgba(255, 255, 255, 0.1);
  --line-bright: rgba(255, 255, 255, 0.19);
  --text: #f4f6f8;
  --muted: #9ba3b2;
  --faint: #656d7a;
  --mint: #5ff6ce;
  --mint-soft: rgba(95, 246, 206, 0.12);
  --violet: #9684ff;
  --orange: #ffb56b;
  --max: 1240px;
  --header: 82px;
  --radius: 18px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
svg { display: block; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  padding: .7rem 1rem;
  background: var(--mint);
  color: #07110e;
  font-weight: 800;
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .08;
  pointer-events: none;
}
.ambient--one { background: var(--violet); top: -18rem; right: -12rem; }
.ambient--two { background: var(--mint); left: -20rem; top: 48rem; }

.mono { font-family: var(--mono); }
.muted { color: var(--faint); }
.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; }

.site-header {
  width: min(calc(100% - 3rem), var(--max));
  height: var(--header);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; width: max-content; text-decoration: none; font-size: .95rem; letter-spacing: .11em; font-weight: 700; }
.brand strong { color: var(--mint); }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--mint); border-radius: 7px; color: var(--mint); font-family: var(--mono); font-size: .78rem; box-shadow: inset 0 0 15px rgba(95,246,206,.08); }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { color: var(--muted); font-size: .82rem; text-decoration: none; transition: color .2s ease; }
.site-nav a:hover { color: var(--text); }
.header-state { justify-self: end; display: flex; align-items: center; gap: .55rem; color: var(--muted); font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.state-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px var(--mint-soft), 0 0 18px var(--mint); animation: breathe 2.4s ease-in-out infinite; }

.hero {
  width: min(calc(100% - 3rem), var(--max));
  min-height: calc(100svh - var(--header));
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}
.eyebrow { margin: 0 0 1.3rem; color: var(--mint); font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: .75rem; background: currentColor; vertical-align: middle; }
.hero h1 { margin: 0; font-size: clamp(3.2rem, 7.2vw, 6.8rem); font-weight: 570; letter-spacing: -.07em; line-height: .91; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(244,246,248,.64); }
.hero-intro { max-width: 630px; margin: 2rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.17rem); line-height: 1.75; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2.25rem; }
.button { min-height: 50px; padding: .8rem 1.2rem; border: 1px solid transparent; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; cursor: pointer; font-size: .83rem; font-weight: 750; text-decoration: none; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--mint); color: #07110e; }
.button--primary:hover { background: #83ffdc; }
.button--primary:disabled { cursor: wait; opacity: .75; transform: none; }
.button--primary svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button--primary.is-running svg { animation: spin 1s linear infinite; }
.button--secondary { border-color: var(--line-bright); background: rgba(255,255,255,.025); color: var(--text); }
.button--secondary:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.055); }
.hero-metrics { display: flex; gap: 0; margin: 3rem 0 0; }
.hero-metrics div { padding: 0 clamp(1.15rem, 3vw, 2.2rem); border-left: 1px solid var(--line); }
.hero-metrics div:first-child { padding-left: 0; border-left: 0; }
.hero-metrics dt { color: var(--faint); font-family: var(--mono); font-size: .62rem; letter-spacing: .09em; text-transform: uppercase; }
.hero-metrics dd { margin: .3rem 0 0; font-size: 1rem; font-weight: 750; }

.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; isolation: isolate; }
.visual-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(150,132,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(150,132,255,.08) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(circle, black 10%, transparent 70%); opacity: .85; }
.orbit { position: absolute; border: 1px solid rgba(150,132,255,.17); border-radius: 50%; }
.orbit::after { content: ""; position: absolute; top: 50%; left: -4px; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 16px var(--violet); }
.orbit--outer { width: 500px; height: 500px; animation: spin 28s linear infinite; }
.orbit--inner { width: 395px; height: 395px; border-style: dashed; animation: spin 19s linear infinite reverse; }
.orbit--inner::after { background: var(--mint); box-shadow: 0 0 16px var(--mint); }
.system-card { position: relative; z-index: 2; width: min(100%, 440px); border: 1px solid var(--line-bright); border-radius: 13px; background: rgba(10,12,18,.93); box-shadow: 0 28px 90px rgba(0,0,0,.55), 0 0 80px rgba(150,132,255,.08); overflow: hidden; backdrop-filter: blur(16px); transform: rotate(1.2deg); }
.system-card__header, .system-card__footer { min-height: 44px; padding: 0 1rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .63rem; letter-spacing: .06em; text-transform: uppercase; }
.system-card__header > :last-child { justify-self: end; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #38404c; }
.window-dots i:first-child { background: var(--orange); }
.window-dots i:nth-child(2) { background: var(--violet); }
.window-dots i:last-child { background: var(--mint); }
.system-card__body { padding: clamp(1.5rem, 4vw, 2.2rem); }
.system-kicker { display: flex; align-items: center; gap: .55rem; color: var(--mint); font-size: .62rem; letter-spacing: .09em; }
.system-kicker span { font-size: .45rem; text-shadow: 0 0 10px var(--mint); }
.system-label { margin: 2rem 0 .2rem; color: var(--faint); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.system-status { margin: 0; font-family: var(--mono); font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 750; letter-spacing: -.03em; }
.signal { height: 28px; margin: 1.6rem 0; display: flex; align-items: end; gap: 6px; }
.signal span { flex: 1; min-width: 5px; background: linear-gradient(to top, var(--violet), var(--mint)); border-radius: 2px 2px 0 0; opacity: .76; animation: signal 1.8s ease-in-out infinite alternate; }
.signal span:nth-child(1) { height: 30%; }.signal span:nth-child(2) { height: 65%; animation-delay: -.2s; }.signal span:nth-child(3) { height: 42%; animation-delay: -.9s; }.signal span:nth-child(4) { height: 95%; animation-delay: -.45s; }.signal span:nth-child(5) { height: 60%; animation-delay: -.7s; }.signal span:nth-child(6) { height: 78%; animation-delay: -1.2s; }.signal span:nth-child(7) { height: 36%; animation-delay: -.3s; }.signal span:nth-child(8) { height: 52%; animation-delay: -1s; }
.terminal { padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: #07090e; }
.terminal p { margin: .4rem 0; display: grid; grid-template-columns: 16px 1fr auto; color: var(--faint); font-family: var(--mono); font-size: .62rem; }
.terminal p span { color: var(--violet); }
.terminal b { color: #bdc4cf; font-weight: 500; }
.system-card__footer { grid-template-columns: 1fr auto; border-top: 1px solid var(--line); border-bottom: 0; }
.system-card__footer b { color: var(--mint); }

.section { width: min(calc(100% - 3rem), var(--max)); margin: 0 auto; padding: clamp(5rem, 10vw, 9rem) 0; }
.section-heading { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 3rem; }
.section-heading--compact { grid-template-columns: 1fr; }
.section-heading .eyebrow { margin-bottom: 1rem; }
.section h2 { max-width: 780px; margin: 0; font-size: clamp(2.25rem, 5vw, 4.7rem); line-height: 1.02; letter-spacing: -.055em; font-weight: 580; }
.section-heading > p { margin: 0; max-width: 440px; color: var(--muted); }

.workflow-section { border-top: 1px solid var(--line); }
.workflow { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(9,11,16,.56); }
.workflow-step { position: relative; min-height: 270px; padding: 1.2rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; transition: background .3s ease, color .3s ease; }
.workflow-step:last-child { border-right: 0; }
.workflow-step::after { content: ""; position: absolute; z-index: 2; top: 85px; right: -6px; width: 10px; height: 10px; border-top: 1px solid var(--line-bright); border-right: 1px solid var(--line-bright); background: #0b0d13; transform: rotate(45deg); }
.workflow-step:last-child::after { display: none; }
.workflow-step.is-active { background: rgba(150,132,255,.1); }
.workflow-step.is-complete { background: linear-gradient(180deg, rgba(95,246,206,.055), transparent 70%); }
.step-index { align-self: flex-end; color: var(--faint); font-size: .62rem; }
.step-icon { width: 42px; height: 42px; margin-top: 1.25rem; display: grid; place-items: center; border: 1px solid var(--line-bright); border-radius: 10px; color: var(--faint); font-family: var(--mono); font-size: .85rem; transition: border .3s ease, color .3s ease, box-shadow .3s ease; }
.is-active .step-icon { border-color: var(--violet); color: var(--violet); box-shadow: 0 0 25px rgba(150,132,255,.23); }
.is-complete .step-icon { border-color: rgba(95,246,206,.55); color: var(--mint); }
.workflow-step h3 { margin: 1.35rem 0 .1rem; font-size: 1rem; }
.workflow-step > p { margin: 0; color: var(--faint); font-size: .74rem; }
.step-state { margin-top: auto; display: flex; align-items: center; gap: .45rem; color: var(--faint); font-family: var(--mono); font-size: .58rem; letter-spacing: .07em; text-transform: uppercase; }
.step-state i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.is-active .step-state { color: var(--violet); }
.is-complete .step-state { color: var(--mint); }
.workflow-caption { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--faint); font-size: .68rem; }
.workflow-caption span { color: var(--violet); font-size: .6rem; letter-spacing: .1em; }
.workflow-caption p { margin: 0; }

.experiment { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(4rem, 10vw, 9rem); align-items: center; }
.experiment-copy > p:not(.eyebrow) { max-width: 590px; margin: 1.8rem 0 0; color: var(--muted); }
blockquote { position: relative; margin: 2.5rem 0 0; padding: 1.6rem 1.6rem 1.6rem 3.2rem; border-left: 1px solid var(--violet); background: rgba(150,132,255,.055); }
blockquote span { position: absolute; left: 1rem; top: .9rem; color: var(--violet); font-family: Georgia, serif; font-size: 2.6rem; line-height: 1; }
blockquote p { margin: 0; color: #c9ced7; font-size: .95rem; font-style: italic; }
.constraint-list { border-top: 1px solid var(--line); }
.constraint-list > div { padding: 1.35rem .4rem; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 50px 1fr; gap: .75rem; align-items: start; transition: background .2s ease, padding .2s ease; }
.constraint-list > div:hover { padding-left: 1rem; background: rgba(255,255,255,.025); }
.constraint-list span { padding-top: .2rem; color: var(--violet); font-size: .62rem; }
.constraint-list p { margin: 0; color: var(--muted); font-size: .84rem; }
.constraint-list strong { display: block; margin-bottom: .15rem; color: var(--text); font-size: .95rem; }

.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.capability-grid article { position: relative; min-height: 270px; padding: clamp(1.5rem, 3vw, 2.2rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; background: rgba(9,11,16,.5); transition: background .25s ease; }
.capability-grid article:nth-child(3n) { border-right: 0; }
.capability-grid article:nth-last-child(-n+3) { border-bottom: 0; }
.capability-grid article:hover { background: rgba(150,132,255,.065); }
.capability-number { color: var(--faint); font-size: .66rem; }
.capability-grid h3 { margin: 2.6rem 0 .65rem; font-size: 1.2rem; }
.capability-grid p { margin: 0; color: var(--muted); font-size: .88rem; }
.capability-tag { margin-top: auto; padding-top: 1.6rem; color: var(--mint); font-family: var(--mono); font-size: .59rem; letter-spacing: .1em; }

.proof-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem, 9vw, 8rem); align-items: center; border-top: 1px solid var(--line); }
.proof-copy > p:not(.eyebrow) { max-width: 470px; margin: 1.7rem 0; color: var(--muted); }
.text-link { display: inline-flex; gap: .6rem; align-items: center; color: var(--mint); font-size: .82rem; font-weight: 750; text-decoration: none; border-bottom: 1px solid rgba(95,246,206,.3); }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translate(3px,-3px); }
.proof-panel { border: 1px solid var(--line-bright); border-radius: var(--radius); background: rgba(12,14,21,.82); box-shadow: 0 30px 100px rgba(0,0,0,.35); overflow: hidden; }
.proof-panel header, .proof-panel footer { min-height: 54px; padding: 0 1.35rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: rgba(255,255,255,.018); color: var(--muted); font-size: .64rem; letter-spacing: .08em; }
.proof-panel header { border-bottom: 1px solid var(--line); }
.proof-panel header > div { display: flex; align-items: center; gap: .65rem; }
.proof-panel header strong { color: var(--text); }
.proof-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.proof-panel dl { margin: 0; }
.proof-panel dl div { min-height: 50px; padding: .75rem 1.35rem; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.35fr; align-items: center; gap: 1rem; font-size: .75rem; }
.proof-panel dt { color: var(--faint); }
.proof-panel dd { margin: 0; color: #cad0d9; text-align: right; overflow-wrap: anywhere; }
.proof-panel dd.pass { color: var(--text); }
.proof-panel dd span { margin-left: .5rem; padding: .16rem .36rem; border: 1px solid rgba(95,246,206,.28); border-radius: 4px; color: var(--mint); font-family: var(--mono); font-size: .52rem; letter-spacing: .06em; }
.proof-panel footer { border-top: 0; }
.manifest-state { color: var(--orange); font-family: var(--mono); font-weight: 700; }

.site-footer { width: min(calc(100% - 3rem), var(--max)); min-height: 140px; margin: 0 auto; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; color: var(--faint); font-size: .73rem; }
.site-footer > :last-child { justify-self: end; font-size: .55rem; letter-spacing: .07em; }
.brand--footer { color: var(--text); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .45; box-shadow: 0 0 0 8px transparent, 0 0 10px var(--mint); } }
@keyframes signal { to { transform: scaleY(.55); opacity: .35; } }
@keyframes stageFlash { 0% { box-shadow: inset 0 0 0 1px var(--violet), 0 0 40px rgba(150,132,255,.16); } 100% { box-shadow: none; } }

@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr; padding-top: 6rem; }
  .hero-copy { position: relative; z-index: 2; }
  .hero-visual { min-height: 480px; }
  .workflow { grid-template-columns: repeat(3, 1fr); }
  .workflow-step { border-bottom: 1px solid var(--line); }
  .workflow-step:nth-child(3n) { border-right: 0; }
  .workflow-step:nth-last-child(-n+3) { border-bottom: 0; }
  .workflow-step:nth-child(3)::after { display: none; }
}

@media (max-width: 780px) {
  :root { --header: 70px; }
  body { background-size: 52px 52px; }
  .site-header, .hero, .section, .site-footer { width: min(calc(100% - 2rem), var(--max)); }
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero { min-height: auto; grid-template-columns: minmax(0,1fr); padding: 5rem 0 3rem; }
  .hero h1 { font-size: clamp(3.35rem, 17vw, 5rem); }
  .hero h1 br { display: none; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-metrics { justify-content: space-between; }
  .hero-metrics div { padding: 0 .8rem; }
  .hero-visual { min-height: 420px; }
  .orbit--outer { width: 420px; height: 420px; }
  .orbit--inner { width: 335px; height: 335px; }
  .system-card { transform: none; }
  .section-heading, .experiment, .proof-section { grid-template-columns: 1fr; gap: 2.4rem; }
  .section-heading > p { max-width: 650px; }
  .workflow { grid-template-columns: 1fr; }
  .workflow-step { min-height: 150px; padding: 1.2rem; border-right: 0; border-bottom: 1px solid var(--line) !important; display: grid; grid-template-columns: 42px 1fr auto; grid-template-rows: auto auto; gap: .1rem 1rem; align-items: center; }
  .workflow-step:last-child { border-bottom: 0 !important; }
  .workflow-step::after { display: block !important; top: auto; right: auto; left: 31px; bottom: -6px; transform: rotate(135deg); }
  .workflow-step:last-child::after { display: none !important; }
  .step-index { position: absolute; right: 1rem; top: 1rem; }
  .step-icon { grid-row: 1 / 3; margin: 0; }
  .workflow-step h3 { margin: 0; align-self: end; }
  .workflow-step > p { align-self: start; }
  .step-state { grid-column: 3; grid-row: 1 / 3; margin: 0; }
  .workflow-caption { align-items: start; flex-direction: column; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .capability-grid article:nth-child(3n) { border-right: 1px solid var(--line); }
  .capability-grid article:nth-child(2n) { border-right: 0; }
  .capability-grid article:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .capability-grid article:nth-last-child(-n+2) { border-bottom: 0; }
  .site-footer { padding: 2rem 0; grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .site-footer > :last-child { justify-self: center; }
}

@media (max-width: 520px) {
  .header-state span:last-child { display: none; }
  .hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-metrics div { padding: 0 .55rem; }
  .hero-metrics dt { font-size: .53rem; }
  .hero-visual { min-height: 390px; margin-inline: -.3rem; }
  .orbit--outer { width: 365px; height: 365px; }
  .orbit--inner { width: 290px; height: 290px; }
  .system-card__body { padding: 1.25rem; }
  .terminal p { grid-template-columns: 13px 1fr; }
  .terminal b { grid-column: 2; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 235px; border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .capability-grid article:last-child { border-bottom: 0 !important; }
  .proof-panel dl div { grid-template-columns: 1fr; gap: .15rem; }
  .proof-panel dd { text-align: left; }
  .proof-panel footer { padding-block: .9rem; align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
