:root {
  --white: #ffffff;
  --ink-25: #fbfefe;
  --ink-50: #f4f8f7;
  --ink-100: #e6eeec;
  --ink-150: #d7e2df;
  --ink-200: #b8c8c4;
  --ink-300: #859a95;
  --ink-400: #5d706c;
  --ink-600: #30413d;
  --ink-700: #24332f;
  --ink-800: #172522;
  --ink-900: #101a18;
  --ink-950: #07110f;
  --quantum-300: #67ead6;
  --quantum-400: #38e0c6;
  --quantum-500: #22d3b8;
  --quantum-600: #14b8a1;
  --pulse-400: #ffbd62;
  --pulse-500: #ffa833;
  --red-500: #ef4444;
  --green-500: #22c55e;
  --bg-base: #f7fbfa;
  --bg-subtle: #eef6f4;
  --surface-card: #ffffff;
  --surface-sunken: #eef6f4;
  --text-strong: #07110f;
  --text-body: #30413d;
  --text-muted: #647872;
  --text-faint: #8aa09b;
  --border-subtle: rgba(48, 65, 61, .12);
  --border-default: rgba(48, 65, 61, .2);
  --border-strong: rgba(48, 65, 61, .34);
  --accent-soft-bg: rgba(34, 211, 184, .16);
  --accent-soft-fg: #0f8f7d;
  --focus-ring: rgba(34, 211, 184, .28);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font-display: "Space Grotesk", "Hanken Grotesk", system-ui, sans-serif;
  --font-sans: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow-lg: 0 28px 80px rgba(16, 26, 24, .12);
  --glow-quantum: 0 0 0 1px rgba(34, 211, 184, .18), 0 22px 70px rgba(34, 211, 184, .12);
  --transition-control: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-body);
  font-family: var(--font-sans);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 16px 32px;
  background: color-mix(in srgb, var(--bg-base) 88%, transparent);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
}
.brand-mark svg { width: 36px; height: 36px; }
.brand-mark path {
  fill: none;
  stroke: var(--ink-950);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-mark .mark-ring {
  fill: none;
  stroke: var(--quantum-500);
  stroke-width: 1.4;
  opacity: .5;
}
.mark-node { fill: var(--ink-950); }
.mark-pulse { fill: var(--pulse-500); }
.mark-core { fill: var(--quantum-500); }
.mark-cut { fill: var(--surface-card); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}
.nav-links a { transition: color 160ms ease; }
.nav-links a:hover { color: var(--text-strong); }
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition-control);
}
.menu-toggle:hover {
  background: var(--bg-subtle);
  color: var(--text-strong);
}
.header-controls {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}
.lang-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .72);
}
.lang-option {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition-control);
}
.lang-option.active {
  background: var(--accent-soft-bg);
  color: var(--accent-soft-fg);
}
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-strong);
  background: var(--surface-card);
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition-control);
}
.button:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}
.button:active { transform: translateY(.5px); }
.button-primary {
  color: var(--ink-950);
  background: var(--quantum-500);
  border-color: var(--quantum-500);
  box-shadow: 0 16px 38px rgba(34, 211, 184, .18);
}
.button-primary:hover {
  background: var(--quantum-400);
  border-color: var(--quantum-400);
}
.button-secondary {
  background: transparent;
  color: var(--text-body);
}

.hero {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 570px) 1fr;
  gap: 58px;
  align-items: center;
  padding: 86px 32px 56px;
}
.hero-copy, .product-shot { position: relative; z-index: 1; }
.eyebrow, .section-kicker {
  margin: 0 0 14px;
  color: var(--quantum-400);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  color: var(--text-strong);
  font-family: var(--font-display);
  text-wrap: balance;
}
h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(48px, 6vw, 82px);
  line-height: .96;
  letter-spacing: 0;
}
h2 {
  max-width: 840px;
  margin-bottom: 14px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}
h3 {
  margin-bottom: 10px;
  font-size: 21px;
  letter-spacing: 0;
}
.lead {
  max-width: 590px;
  margin-bottom: 30px;
  color: var(--text-muted);
  font-size: 19px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.product-shot { margin: 0; }
.shot-frame {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--glow-quantum);
  overflow: hidden;
}
.shot-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
  object-position: top center;
}
.product-shot figcaption {
  max-width: 720px;
  padding: 14px 4px 0;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.45;
}

.trust-strip {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border-subtle);
}
.trust-strip div {
  padding: 24px 24px 24px 0;
  border-right: 1px solid var(--border-subtle);
}
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: 36px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.trust-strip span {
  color: var(--text-muted);
  font-size: 14px;
}

.section {
  max-width: 1360px;
  margin: 0 auto;
  padding: 84px 32px;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 72px;
  align-items: end;
}
.intro-grid p, .section-heading p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
}
.value-grid {
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.value-grid article {
  min-height: 260px;
  padding: 30px 28px;
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  background: rgba(255,255,255,.72);
  transition: var(--transition-control);
}
.value-grid article:hover {
  border-color: var(--border-default);
  background: rgba(34, 211, 184, .07);
}
.value-grid article:last-child { border-right: 0; }
.value-grid svg {
  width: 32px;
  height: 32px;
  margin-bottom: 34px;
  color: var(--quantum-400);
  stroke-width: 1.7;
}
.value-grid p, .region-zone p, .agent-detail p, .method-grid p {
  color: var(--text-muted);
  line-height: 1.58;
}

.section-heading {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 54px;
  align-items: start;
  margin-bottom: 34px;
}
.section-heading .section-kicker { margin-top: 8px; }
.sovereignty-map {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 340px) 1fr;
  gap: 18px;
  align-items: stretch;
}
.region-zone {
  padding: 30px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
}
.region-zone span {
  display: block;
  margin-bottom: 54px;
  color: var(--quantum-400);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.gate {
  padding: 30px 20px;
  display: grid;
  align-content: center;
  gap: 18px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.gate > div {
  min-height: 86px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.72);
}
.gate svg { width: 24px; height: 24px; }
.blocked-flow { color: var(--red-500); border: 1px dashed rgba(239,68,68,.38); }
.allowed-flow { color: var(--quantum-400); border: 1px dashed rgba(34,211,184,.38); }

.architecture-layers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.architecture-layers article {
  min-height: 220px;
  padding: 26px 22px;
  border-right: 1px solid var(--border-subtle);
}
.architecture-layers article:last-child { border-right: 0; }
.architecture-layers span {
  display: block;
  margin-bottom: 42px;
  color: var(--accent-soft-fg);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
.architecture-layers p {
  color: var(--text-muted);
  line-height: 1.58;
}

.agent-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.module-steps { grid-template-columns: repeat(5, 1fr); }
.module-steps .agent-step {
  min-height: 208px;
  padding: 24px 20px;
}
.module-steps .agent-step span { margin-bottom: 30px; }
.module-steps .agent-step b { font-size: 18px; }
.agent-step {
  min-height: 190px;
  padding: 28px;
  border: 0;
  border-right: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-body);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-control);
}
.agent-step:hover {
  background: rgba(34,211,184,.07);
}
.agent-step:last-child { border-right: 0; }
.agent-step span {
  display: block;
  margin-bottom: 38px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
.agent-step b {
  display: block;
  margin-bottom: 10px;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 20px;
}
.agent-step small {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}
.agent-step.active {
  background: var(--accent-soft-bg);
  box-shadow: inset 0 1px 0 rgba(34, 211, 184, .18);
}
.agent-detail {
  min-height: 210px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: center;
  padding: 34px 0 0;
}
.agent-detail ul {
  margin: 0;
  padding-left: 18px;
  columns: 2;
  color: var(--text-body);
  line-height: 1.9;
}
.agent-detail li::marker { color: var(--quantum-400); }

.sample-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.sample-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition-control);
}
.sample-tab:hover {
  color: var(--text-strong);
  background: var(--bg-subtle);
}
.sample-tab.active {
  color: var(--ink-950);
  background: var(--quantum-500);
  border-color: var(--quantum-500);
}
.sample-panel {
  display: none;
  grid-template-columns: 1.15fr .85fr;
  gap: 34px;
  align-items: center;
  padding: 28px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
}
.sample-panel.active { display: grid; }
.sample-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.sample-panel p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
}
.mini-screen {
  padding: 18px;
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.mini-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.mini-row:last-child { border-bottom: 0; }
.mini-row span { color: var(--text-faint); }
.mini-row b { color: var(--text-strong); }
.mini-row.warning b { color: var(--red-500); }

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-subtle);
}
.method-grid article {
  min-height: 240px;
  padding: 28px 24px;
  border-right: 1px solid var(--border-subtle);
}
.method-grid article:last-child { border-right: 0; }
.method-grid span {
  display: block;
  margin-bottom: 52px;
  color: var(--quantum-400);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
.quote-section {
  padding-top: 26px;
  padding-bottom: 26px;
}

.whitepaper-section {
  max-width: 1360px;
  margin: 58px auto 0;
  padding: 58px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 48px;
  background: var(--ink-950);
  color: var(--ink-100);
}
.whitepaper-section h2 {
  max-width: 900px;
  color: var(--white);
}
.whitepaper-section p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink-200);
  font-size: 17px;
  line-height: 1.65;
}
.whitepaper-section .button { gap: 9px; white-space: nowrap; }
.whitepaper-section .button svg { width: 18px; height: 18px; }
blockquote {
  margin: 0;
  padding: 54px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
blockquote p {
  max-width: 1000px;
  margin-bottom: 18px;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}
cite {
  color: var(--quantum-400);
  font-style: normal;
  font-weight: 800;
}
.cta-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: 86px 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid var(--border-subtle);
}
.cta-section h2 { margin-bottom: 0; }
.site-footer {
  max-width: 1360px;
  margin: 0 auto;
  padding: 34px 32px 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}
.site-footer strong {
  color: var(--text-strong);
  font-family: var(--font-display);
}
.site-footer a {
  color: var(--quantum-400);
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 17, 15, .32);
  backdrop-filter: blur(10px);
}
.modal[hidden] { display: none; }
.modal-panel {
  position: relative;
  width: min(560px, 100%);
  padding: 28px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.modal-panel h2 { font-size: 40px; }
.modal-panel p { color: var(--text-muted); line-height: 1.55; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition-control);
}
.modal-close:hover {
  color: var(--text-strong);
  background: var(--bg-subtle);
}
.demo-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.demo-form label {
  display: grid;
  gap: 7px;
  color: var(--text-body);
  font-size: 13px;
  font-weight: 700;
}
.demo-form input {
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  color: var(--text-strong);
}
.demo-form input::placeholder { color: var(--text-faint); }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav-links, .header-controls { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .site-header.open .nav-links,
  .site-header.open .header-controls {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-content: start;
  }
  .hero, .intro-grid, .section-heading, .sovereignty-map, .agent-detail, .sample-panel.active, .cta-section, .whitepaper-section {
    grid-template-columns: 1fr;
  }
  .trust-strip, .value-grid, .method-grid, .architecture-layers, .module-steps { grid-template-columns: repeat(2, 1fr); }
  .value-grid article:nth-child(2), .method-grid article:nth-child(2) { border-right: 0; }
  .architecture-layers article:nth-child(2), .module-steps .agent-step:nth-child(2), .module-steps .agent-step:nth-child(4) { border-right: 0; }
  .gate {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 640px) {
  .site-header { padding: 14px 18px; }
  .brand { font-size: 22px; }
  .hero, .section, .cta-section, .site-footer, .whitepaper-section { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 54px; }
  .trust-strip, .value-grid, .method-grid, .agent-steps, .architecture-layers { grid-template-columns: 1fr; }
  .trust-strip { padding-left: 18px; padding-right: 18px; }
  .trust-strip div, .value-grid article, .method-grid article, .agent-step, .architecture-layers article {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .agent-detail ul { columns: 1; }
  .mini-row { grid-template-columns: 1fr; gap: 6px; }
  .site-footer { grid-template-columns: 1fr; }
  .hero-actions, .cta-section { align-items: stretch; }
  .hero-actions .button, .cta-section .button { width: 100%; }
}
