:root {
  --surface: #0a141e;
  --surface-lowest: #050f19;
  --surface-low: #121c27;
  --surface-mid: #17202b;
  --surface-high: #212b35;
  --surface-highest: #2c3641;
  --text: #d9e3f2;
  --text-soft: #bbc9c7;
  --outline: #869491;
  --outline-variant: #3c4948;
  --primary: #57dacf;
  --primary-strong: #1bb2a8;
  --primary-dark: #003733;
  --secondary: #e9c349;
  --tertiary: #7bd0ff;
  --success: #10b981;
  --danger: #f43f5e;
  --border: rgba(255,255,255,.08);
  --border-active: rgba(87,218,207,.3);
  --shadow-teal: 0 8px 24px -4px rgba(27,178,168,.18);
  --shadow-deep: 0 22px 60px rgba(0,0,0,.28);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shell: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--surface);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 9%, rgba(15,171,229,.07), transparent 24%),
    radial-gradient(circle at 13% 18%, rgba(27,178,168,.06), transparent 24%),
    var(--surface);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  left: 12px;
  top: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-dark);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.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 {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 14px 0;
  background: rgba(10,20,30,.76);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, padding .18s ease;
}
.site-header.is-scrolled {
  padding: 9px 0;
  background: rgba(10,20,30,.92);
  border-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.brand img {
  width: 176px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
}
.main-nav > a:not(.button) {
  position: relative;
  transition: color .16s ease;
}
.main-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -8px;
  height: 2px;
  background: var(--primary);
  transition: right .18s ease;
}
.main-nav > a:not(.button):hover { color: var(--text); }
.main-nav > a:not(.button):hover::after { right: 0; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-low);
  color: var(--text);
}
.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 21px; height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: 600 14px/1 "Plus Jakarta Sans", sans-serif;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button-small { min-height: 40px; padding-inline: 15px; }
.button-primary {
  background: var(--primary);
  color: #06221f;
  box-shadow: 0 4px 16px rgba(27,178,168,.2);
}
.button-primary:hover {
  background: var(--primary-strong);
  color: #031815;
  box-shadow: 0 6px 20px rgba(27,178,168,.28);
}
.button-ghost {
  background: rgba(255,255,255,.02);
  border-color: rgba(255,255,255,.12);
  color: var(--text-soft);
}
.button-ghost:hover {
  border-color: rgba(87,218,207,.32);
  color: var(--primary);
  background: rgba(87,218,207,.05);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 86px;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}
.ambient {
  position: absolute;
  width: 470px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(95px);
  opacity: .14;
  pointer-events: none;
}
.ambient-a { top: -140px; right: -80px; background: var(--tertiary); }
.ambient-b { bottom: -230px; left: -170px; background: var(--primary); }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 68px;
  align-items: center;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
}
.status-chip,
.code-chip,
.live-pill,
.lock-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-low);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}
.status-chip { color: var(--primary); }
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(87,218,207,.08);
}
.code-chip {
  color: var(--secondary);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: .04em;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(46px, 6.4vw, 78px);
  line-height: .99;
  letter-spacing: -.045em;
  font-weight: 700;
}
.hero h1 .hero-line { display: block; color: inherit; }
.hero h1 .accent { color: var(--primary); }

.hero-lead {
  max-width: 660px;
  margin: 26px 0 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 26px;
  color: var(--outline);
  font-size: 12px;
  font-weight: 600;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.hero-stage {
  position: relative;
  overflow: visible;
  border-radius: 18px;
  background: var(--surface-lowest);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-deep);
}
.stage-toolbar {
  height: 50px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(18,28,39,.82);
  border-radius: 18px 18px 0 0;
}
.toolbar-left { display: flex; gap: 6px; }
.window-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--surface-highest);
}
.window-dot:nth-child(1){ background:#f87171; }
.window-dot:nth-child(2){ background:#facc15; }
.window-dot:nth-child(3){ background:#34d399; }
.toolbar-title {
  color: var(--text-soft);
  font: 600 11px/1 "JetBrains Mono", monospace;
}
.toolbar-status {
  justify-self: end;
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--primary);
  font: 600 10px/1 "JetBrains Mono", monospace;
}
.toolbar-status span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.stage-body {
  display: grid;
  grid-template-columns: 66px 1fr;
  min-height: 460px;
}
.mini-rail {
  padding: 18px 13px;
  background: rgba(18,28,39,.66);
  border-right: 1px solid var(--border);
}
.rail-logo {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  border-radius: 10px;
  background: rgba(87,218,207,.14);
  border: 1px solid rgba(87,218,207,.24);
  color: var(--primary);
  font-weight: 700;
}
.rail-item {
  display: block;
  width: 34px; height: 34px;
  margin: 10px auto;
  border-radius: 9px;
  background: var(--surface-mid);
  border: 1px solid transparent;
}
.rail-item.active {
  background: rgba(87,218,207,.12);
  border-color: rgba(87,218,207,.2);
  box-shadow: inset 2px 0 0 var(--primary);
}

.dashboard {
  min-width: 0;
  padding: 26px;
}
.dash-head,
.dash-card-head,
.card-top,
.access-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.micro-label,
.eyebrow,
.card-code,
.signal-code,
.principle-number,
.arch-kicker {
  font-family: "JetBrains Mono", monospace;
}
.micro-label {
  color: var(--outline);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
}
.micro-label.teal,
.arch-kicker.teal { color: var(--primary); }
.dash-head h2 {
  margin: 3px 0 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
}
.live-pill {
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
}
.live-pill i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.metric-grid article {
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-mid);
  border: 1px solid var(--border);
}
.metric-label {
  color: var(--outline);
  font: 600 10px/1 "JetBrains Mono", monospace;
}
.metric-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 19px;
  font-weight: 600;
}
.metric-grid small {
  display: block;
  margin-top: 4px;
  color: var(--outline);
  font-size: 11px;
}

.dash-card {
  margin-top: 12px;
  padding: 17px;
  border-radius: 14px;
  background: var(--surface-low);
  border: 1px solid var(--border);
}
.dash-card-head strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
}
.code-link {
  color: var(--primary);
  font: 600 10px/1 "JetBrains Mono", monospace;
}

.activity-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}
.activity-row:first-of-type { margin-top: 12px; }
.activity-icon {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(87,218,207,.12);
  color: var(--primary);
  font: 600 10px/1 "JetBrains Mono", monospace;
}
.activity-icon.cyan {
  background: rgba(123,208,255,.1);
  color: var(--tertiary);
}
.activity-icon.gold {
  background: rgba(233,195,73,.1);
  color: var(--secondary);
}
.activity-row strong,
.activity-row small { display: block; }
.activity-row strong { font-size: 12px; font-weight: 600; }
.activity-row small { margin-top: 2px; color: var(--outline); font-size: 10px; }
.activity-state {
  color: var(--primary);
  font: 600 9px/1 "JetBrains Mono", monospace;
}
.activity-state.neutral { color: var(--text-soft); }
.activity-state.gold { color: var(--secondary); }

.float-panel {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 175px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(29,45,61,.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-active);
  box-shadow: var(--shadow-teal);
}
.float-panel strong,
.float-panel small { display: block; }
.float-panel strong { font-size: 11px; }
.float-panel small { margin-top: 2px; color: var(--outline); font-size: 9px; }
.float-icon {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: rgba(87,218,207,.1);
  font-weight: 700;
}
.float-signal {
  width: 12px; height: 12px;
  margin: 9px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 6px rgba(233,195,73,.08);
}
.float-a { left: -30px; bottom: 40px; }
.float-b { right: -24px; top: 82px; }

.signal-strip {
  background: var(--surface-lowest);
  border-bottom: 1px solid var(--border);
}
.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.signal-grid > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  padding: 22px 24px;
  border-left: 1px solid var(--border);
}
.signal-grid > div:last-child { border-right: 1px solid var(--border); }
.signal-code {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--outline);
  font-size: 10px;
}
.signal-grid strong {
  font-size: 12px;
  letter-spacing: .04em;
}
.signal-grid small {
  margin-top: 3px;
  color: var(--outline);
  font-size: 10px;
}

.section { padding: 104px 0; }
.section-layer {
  background: var(--surface-lowest);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,.92fr);
  gap: 84px;
  align-items: start;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 17px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
}
.gold-text { color: var(--secondary); }

.section-heading h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 600;
}
.section-heading > p,
.section-heading-row > p {
  color: var(--text-soft);
  line-height: 1.75;
}
.section-heading.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-heading.centered > p {
  max-width: 720px;
  margin: 18px auto 0;
}
.section-heading-row {
  display: grid;
  grid-template-columns: 1fr .7fr;
  gap: 70px;
  align-items: end;
}
.section-heading-row > p { margin: 0 0 4px; }

.intro-copy {
  padding-top: 34px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.8;
}
.intro-copy p { margin: 0 0 18px; }
.callout {
  margin-top: 30px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  align-items: center;
  padding: 17px;
  border-radius: 12px;
  background: var(--surface-low);
  border: 1px solid var(--border);
}
.callout-index {
  min-width: 68px;
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--primary);
  background: rgba(87,218,207,.08);
  font: 600 10px/1 "JetBrains Mono", monospace;
  text-align: center;
}
.callout strong,
.callout span { display: block; }
.callout strong { color: var(--text); font-size: 14px; }
.callout div span { margin-top: 2px; color: var(--outline); font-size: 12px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin-top: 48px;
}
.feature-card {
  min-height: 255px;
  padding: 22px;
  border-radius: 14px;
  background: var(--surface-low);
  border: 1px solid var(--border);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  background: var(--surface-mid);
  border-color: rgba(87,218,207,.38);
  box-shadow: var(--shadow-teal);
}
.card-code {
  color: var(--outline);
  font-size: 11px;
}
.card-pill {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  font: 700 10px/1 "Plus Jakarta Sans", sans-serif;
  letter-spacing: .05em;
}
.card-pill.teal { color: var(--primary); background: rgba(87,218,207,.08); }
.card-pill.cyan { color: var(--tertiary); background: rgba(123,208,255,.08); }
.card-pill.gold { color: var(--secondary); background: rgba(233,195,73,.08); }
.feature-card h3 {
  margin: 28px 0 0;
  font-size: 19px;
  font-weight: 600;
}
.feature-card p {
  margin: 11px 0 26px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--outline);
  font-size: 11px;
}
.card-foot i {
  color: var(--primary);
  font-style: normal;
}

.integration-section {
  background:
    radial-gradient(circle at 50% 50%, rgba(27,178,168,.045), transparent 35%),
    var(--surface);
}
.architecture {
  display: grid;
  grid-template-columns: 1fr .7fr 1.15fr .7fr 1.3fr;
  gap: 12px;
  align-items: center;
  margin-top: 54px;
}
.arch-node,
.arch-targets > div {
  padding: 24px;
  border-radius: 14px;
  background: var(--surface-low);
  border: 1px solid var(--border);
}
.arch-node { text-align: center; }
.arch-kicker {
  display: block;
  color: var(--outline);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
}
.arch-node strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
  font-weight: 600;
}
.arch-node small {
  display: block;
  margin-top: 5px;
  color: var(--outline);
  font-size: 10px;
}
.arch-core {
  padding-block: 34px;
  background: linear-gradient(145deg, rgba(27,178,168,.13), rgba(15,171,229,.06)), var(--surface-low);
  border-color: rgba(87,218,207,.26);
  box-shadow: var(--shadow-teal);
}
.arch-link {
  display: flex;
  align-items: center;
  gap: 6px;
}
.arch-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--outline-variant), transparent);
}
.arch-badge {
  white-space: nowrap;
  color: var(--outline);
  font: 600 9px/1 "JetBrains Mono", monospace;
}
.arch-targets {
  display: grid;
  gap: 8px;
}
.arch-targets > div {
  display: grid;
  grid-template-columns: 30px 1fr;
  padding: 13px 15px;
}
.arch-targets span {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--primary);
  font: 600 9px/1 "JetBrains Mono", monospace;
}
.arch-targets strong { font-size: 12px; }
.arch-targets small { margin-top: 2px; color: var(--outline); font-size: 10px; }

.principles {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
  margin-top: 28px;
}
.principle-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 18px;
  border-radius: 12px;
  background: rgba(18,28,39,.72);
  border: 1px solid var(--border);
}
.principle-number {
  color: var(--outline);
  font-size: 10px;
}
.principle-card strong {
  display: block;
  font-size: 12px;
}
.principle-card p {
  margin: 5px 0 0;
  color: var(--outline);
  font-size: 10px;
  line-height: 1.55;
}

.access-section {
  background: var(--surface-lowest);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.access-grid {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 72px;
  align-items: center;
}
.access-copy h2 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(32px,4.2vw,50px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 600;
}
.access-copy p {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}
.access-card {
  padding: 22px;
  border-radius: 16px;
  background: var(--surface-low);
  border: 1px solid rgba(87,218,207,.2);
  box-shadow: var(--shadow-teal);
}
.access-card-head strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
}
.lock-chip {
  color: var(--secondary);
  font-family: "JetBrains Mono", monospace;
  background: rgba(233,195,73,.06);
}
.fake-input {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 14px;
  border-radius: 8px;
  background: #101c26;
  border: 1px solid rgba(255,255,255,.12);
}
.fake-input span {
  color: var(--outline);
  font-size: 12px;
}
.fake-input strong {
  color: var(--text);
  font: 600 13px/1 "JetBrains Mono", monospace;
  letter-spacing: .05em;
}
.fake-button {
  width: 100%;
  height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-dark);
  font-weight: 700;
}
.access-card > small {
  display: block;
  margin-top: 11px;
  color: var(--outline);
  font-size: 10px;
  text-align: center;
}

.contact-section { padding-top: 72px; }
.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 42px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 95% 5%, rgba(123,208,255,.1), transparent 26%),
    var(--surface-low);
  border: 1px solid rgba(87,218,207,.18);
}
.contact-card h2 {
  margin: 0;
  font-size: clamp(30px,4vw,48px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 600;
}
.contact-card p {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 210px;
}
.site-footer {
  background: var(--surface-lowest);
  border-top: 1px solid var(--border);
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  padding: 54px 0 42px;
}
.footer-brand img { width: 170px; }
.footer-brand p {
  max-width: 460px;
  margin: 16px 0 0;
  color: var(--outline);
  font-size: 12px;
  line-height: 1.7;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px,1fr));
  gap: 48px;
}
.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links strong {
  margin-bottom: 5px;
  color: var(--text);
  font-size: 11px;
}
.footer-links a {
  color: var(--outline);
  font-size: 11px;
}
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 24px;
  border-top: 1px solid var(--border);
  color: var(--outline);
  font-size: 10px;
}
.footer-code {
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1040px) {
  .hero-grid,
  .intro-grid,
  .access-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero-copy { max-width: 760px; }
  .hero-stage { max-width: 780px; margin: 0 auto; }
  .section-heading-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .section-heading-row > p { max-width: 680px; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .architecture {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin-inline: auto;
  }
  .arch-link {
    min-height: 44px;
    flex-direction: column;
    justify-content: center;
  }
  .arch-line {
    width: 1px;
    min-height: 13px;
    flex: 1;
    background: linear-gradient(180deg, transparent, var(--outline-variant), transparent);
  }
  .arch-targets { grid-template-columns: repeat(3,1fr); }
  .principles { grid-template-columns: repeat(2,1fr); }
  .contact-card { grid-template-columns: 1fr; }
  .contact-actions { width: fit-content; }
}

@media (max-width: 820px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .site-header { padding: 9px 0; }
  .brand img { width: 154px; }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 102;
  }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 86px 28px;
    background: rgba(10,20,30,.98);
    backdrop-filter: blur(18px);
    font-size: 17px;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav .button { margin-top: 4px; min-width: 210px; }

  .hero { padding: 118px 0 66px; }
  .hero h1 { font-size: clamp(42px, 11vw, 62px); }

  .signal-grid { grid-template-columns: repeat(2,1fr); }
  .signal-grid > div:nth-child(odd) { border-left: 0; }
  .signal-grid > div:nth-child(n+3) { border-top: 1px solid var(--border); }

  .section { padding: 82px 0; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 640px) {
  .hero { padding-top: 108px; }
  .hero h1 { font-size: clamp(40px, 13.5vw, 54px); }
  .hero-lead { font-size: 15px; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-actions .button { width: 100%; }

  .float-panel { display: none; }

  .stage-toolbar { grid-template-columns: 1fr auto; }
  .toolbar-status { display: none; }
  .stage-body { grid-template-columns: 1fr; min-height: 0; }
  .mini-rail { display: none; }
  .dashboard { padding: 17px; }
  .dash-head h2 { font-size: 20px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid article {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .metric-grid strong {
    grid-row: 1 / span 2;
    grid-column: 2;
    margin: 0;
  }

  .signal-grid { grid-template-columns: 1fr; }
  .signal-grid > div {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 17px 4px;
  }
  .signal-grid > div:first-child { border-top: 0; }

  .section { padding: 68px 0; }
  .section-heading h2,
  .access-copy h2,
  .contact-card h2 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .intro-copy { padding-top: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }

  .arch-targets { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }

  .access-card { padding: 18px; }
  .contact-card { padding: 26px 20px; }
  .contact-actions { width: 100%; }
  .contact-actions .button { width: 100%; }

  .footer-links { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
