:root {
  --bg: #090e0b;
  --surface: #101713;
  --surface-light: #151e19;
  --ink: #f4f1e8;
  --muted: #a3aaa5;
  --line: #2b352f;
  --acid: #b9ff63;
  --acid-dark: #101d0e;
  --orange: #e86732;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; color: var(--ink); background: var(--bg); }
a { color: inherit; }
button { font: inherit; }
.brand:focus-visible,
.site-header nav a:focus-visible,
.button:focus-visible,
.demo-steps button:focus-visible,
.demo-control:focus-visible,
.demo-stage:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 10px 14px; color: var(--acid-dark); background: var(--acid); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header, main > section, footer { width: min(1500px, calc(100% - 64px)); margin-inline: auto; }
.site-header { min-height: 94px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; color: var(--acid-dark); background: var(--acid); border-radius: 8px; }
nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); font-size: .9rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }
.nav-source { padding: 11px 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; }

.hero { min-height: calc(100vh - 94px); display: grid; grid-template-columns: 1.05fr .95fr; column-gap: clamp(40px, 6vw, 100px); align-content: center; padding-block: clamp(80px, 11vw, 170px) 48px; }
.kicker, .section-index { color: var(--acid); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 25px; }
.kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(185, 255, 99, .1); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 800px; margin-bottom: 30px; font-size: clamp(4.1rem, 8.6vw, 9.4rem); line-height: .82; letter-spacing: -.085em; }
.hero-lede { max-width: 680px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.32rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; min-height: 52px; padding: 0 19px; font-size: .9rem; font-weight: 800; text-decoration: none; border-radius: 9px; }
.button-primary { color: var(--acid-dark); background: var(--acid); }
.button-secondary { color: var(--ink); border: 1px solid var(--line); }
.button:hover { transform: translateY(-2px); }

.hero-console { position: relative; align-self: center; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 35px 100px rgba(0, 0, 0, .32); }
.hero-console::after { position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, transparent 8%, var(--acid) 50%, transparent 92%); content: ""; opacity: .72; }
.console-bar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; color: #68716c; border-bottom: 1px solid var(--line); font: .72rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.console-bar div { display: flex; gap: 6px; }
.console-bar i { width: 8px; height: 8px; border-radius: 50%; background: #354039; }
.console-body { padding: clamp(22px, 4vw, 48px); font: clamp(.77rem, 1vw, .95rem)/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; }
.console-body p { display: grid; grid-template-columns: 32px 78px minmax(0, 1fr); gap: 0; margin-bottom: 18px; overflow-wrap: anywhere; }
.console-body .line-no { color: #4e5852; }
.console-message { min-width: 0; }
.token-label { color: var(--acid); }
.console-success { padding-top: 18px; border-top: 1px solid var(--line); }
.console-success b { color: var(--acid); }
.hero-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(70px, 10vw, 150px); border: 1px solid var(--line); background: var(--line); }
.hero-meta div { position: relative; padding: 26px 28px; background: var(--bg); }
.hero-meta span { position: absolute; top: 12px; right: 14px; color: #4d5751; font: .7rem ui-monospace, monospace; }
.hero-meta strong, .hero-meta small { display: block; }
.hero-meta strong { margin-bottom: 6px; font-size: 1.25rem; }
.hero-meta small { color: var(--muted); }

.statement { display: grid; grid-template-columns: minmax(130px, .25fr) 1.5fr .55fr; gap: 32px; padding-block: clamp(110px, 15vw, 230px); border-top: 1px solid var(--line); }
.section-index { margin-bottom: 18px; }
.statement h2, .demo-heading h2, .security h2, .build h2 { margin-bottom: 0; font-size: clamp(3.6rem, 7.4vw, 8rem); line-height: .9; letter-spacing: -.075em; }
em { color: var(--acid); font-style: normal; }
.section-intro { align-self: end; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }

.architecture { padding-block: 0 clamp(110px, 13vw, 200px); }
.section-heading { display: grid; grid-template-columns: .5fr 1fr; gap: 32px; align-items: end; margin-bottom: 45px; }
.section-heading h3 { max-width: 760px; margin-bottom: 0; font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1; letter-spacing: -.06em; }
.flow { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.flow li { display: grid; grid-template-columns: 120px .5fr 1fr; padding: 30px 0; border-bottom: 1px solid var(--line); }
.flow li > span { color: var(--acid); font: .8rem ui-monospace, monospace; }
.flow div { display: contents; }
.flow strong { font-size: 1.5rem; }
.flow p { max-width: 570px; margin-bottom: 0; color: var(--muted); line-height: 1.6; }

.demo-section { padding-block: clamp(100px, 13vw, 190px); border-top: 1px solid var(--line); }
.demo-heading { grid-template-columns: 1.3fr .6fr; }
.demo-heading > p { color: var(--muted); line-height: 1.65; }
.demo { display: grid; grid-template-columns: .32fr 1fr; min-width: 0; min-height: 600px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.demo-steps { min-width: 0; display: flex; flex-direction: column; padding: 14px; border-right: 1px solid var(--line); }
.demo-steps button { display: flex; gap: 18px; padding: 22px 18px; color: var(--muted); text-align: left; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.demo-steps button[aria-selected="true"] { color: var(--acid-dark); background: var(--acid); }
.demo-steps span { font: .75rem ui-monospace, monospace; }
.demo-stage { min-width: 0; display: grid; grid-template-rows: auto 1fr auto auto; padding: clamp(28px, 5vw, 72px); background: radial-gradient(circle at 80% 20%, #1c2a21 0, transparent 28rem); }
.demo-topline { display: flex; justify-content: space-between; color: var(--acid); font: .75rem ui-monospace, monospace; text-transform: uppercase; letter-spacing: .12em; }
.demo-content { min-width: 0; align-self: center; max-width: 850px; }
.demo-content > p { color: var(--muted); font-size: 1.1rem; line-height: 1.65; }
.demo-content .demo-command { color: var(--ink); font-size: clamp(2.2rem, 4.5vw, 5rem); font-weight: 750; line-height: 1.02; letter-spacing: -.055em; }
.demo-content pre, .build pre { overflow: auto; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: #090e0b; font: .9rem/1.7 ui-monospace, monospace; }
.demo-content pre span, .build pre span { color: var(--acid); }
.snapshot { display: grid; grid-template-columns: .5fr 1fr; gap: 1px; margin-bottom: 25px; background: var(--line); border: 1px solid var(--line); }
.snapshot span, .snapshot strong { padding: 18px; background: var(--bg); }
.snapshot span { color: var(--muted); font: .78rem ui-monospace, monospace; }
.result { display: grid; grid-template-columns: 1fr auto; align-items: center; margin-bottom: 25px; padding: 28px; border: 1px solid var(--acid); border-radius: 14px; }
.result small { color: var(--muted); }
.result strong { grid-row: 1 / 3; grid-column: 2; font-size: clamp(4rem, 7vw, 7rem); line-height: 1; }
.result span { color: var(--acid); font: .75rem ui-monospace, monospace; text-transform: uppercase; }
.demo-progress { height: 2px; margin-top: 20px; background: var(--line); }
.demo-progress span { display: block; width: 25%; height: 100%; background: var(--acid); transition: width .35s ease; }
.demo-control { justify-self: start; margin-top: 22px; padding: 0; color: var(--muted); border: 0; background: none; cursor: pointer; }

.capabilities { padding-block: 0 clamp(120px, 14vw, 210px); }
.matrix { border-top: 1px solid var(--line); }
.matrix-row { display: grid; grid-template-columns: 1.3fr .85fr .85fr; border-bottom: 1px solid var(--line); }
.matrix-row > * { padding: 24px 16px; }
.matrix-row > * + * { border-left: 1px solid var(--line); }
.matrix-row span { color: var(--muted); }
.matrix-row small { display: none; }
.matrix-head { color: #68716c; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.matrix-row .yes { color: var(--acid); }
.matrix-row .no { color: #8d9690; }

.security { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(50px, 8vw, 130px); padding-block: clamp(110px, 14vw, 220px); border-top: 1px solid var(--line); }
.security-copy > p:last-child { max-width: 680px; margin-top: 34px; color: var(--muted); line-height: 1.7; }
.tiers article { padding: 28px 0; border-top: 1px solid var(--line); }
.tiers article:last-child { border-bottom: 1px solid var(--line); }
.tiers span { color: var(--acid); font: .72rem ui-monospace, monospace; text-transform: uppercase; }
.tiers h3 { margin: 9px 0; font-size: 2rem; }
.tiers p { margin-bottom: 0; color: var(--muted); line-height: 1.6; }

.build { padding-block: clamp(110px, 14vw, 210px); border-top: 1px solid var(--line); }
.build-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(50px, 8vw, 130px); }
.build-grid > div { min-width: 0; }
.build-grid > div:last-child { align-self: end; }
.build-grid p { color: var(--muted); line-height: 1.7; }
.text-link { display: inline-block; margin-top: 18px; padding-bottom: 5px; text-decoration: none; border-bottom: 1px solid var(--acid); }

footer { min-height: 160px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 30px; color: var(--muted); border-top: 1px solid var(--line); }
footer p { margin-bottom: 0; text-align: center; }
footer > div:last-child { display: flex; gap: 22px; }

@media (max-width: 900px) {
  .hero, .statement, .security, .build-grid { grid-template-columns: 1fr; }
  .hero-console { margin-top: 55px; }
  .statement { gap: 25px; }
  .section-intro { max-width: 680px; }
  .demo { grid-template-columns: 1fr; }
  .demo-steps { width: 100%; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-steps button { min-width: 145px; }
  footer { grid-template-columns: 1fr; padding-block: 45px; }
  footer p { text-align: left; }
}

@media (max-width: 680px) {
  .site-header, main > section, footer { width: min(100% - 28px, 1500px); }
  .site-header { min-height: 76px; }
  nav > a:not(.nav-source) { display: none; }
  .brand > span:last-child { font-size: .86rem; }
  h1 { font-size: clamp(3.7rem, 18vw, 6rem); }
  .hero { padding-top: 70px; }
  .hero-console { transform: none; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-meta { grid-template-columns: 1fr; }
  .statement h2, .demo-heading h2, .security h2, .build h2 { font-size: clamp(3rem, 14vw, 5rem); }
  .section-heading, .demo-heading { grid-template-columns: 1fr; align-items: start; }
  .flow li { grid-template-columns: 45px 1fr; gap: 12px; }
  .flow div { display: block; }
  .flow p { margin-top: 8px; }
  .demo-stage { min-height: 580px; padding: 25px 20px; }
  .demo-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; padding: 8px; }
  .demo-steps button { min-width: 0; gap: 8px; padding: 16px 12px; }
  .matrix { display: grid; gap: 12px; overflow: visible; border-top: 0; }
  .matrix-head { display: none; }
  .matrix-row:not(.matrix-head) { min-width: 0; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
  .matrix-row:not(.matrix-head) strong { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .matrix-row > * { padding: 16px 14px; }
  .matrix-row small { display: block; margin-bottom: 8px; color: #68716c; font: .62rem ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
  .build pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}

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