/* ==========================================================================
   ForgePilot — dark control-room layer
   Loaded after styles.css. Editorial scale, borderless content, one console.
   ========================================================================== */

:root {
  --fp-bg: #05080c;
  --fp-bg-soft: #060a10;
  --fp-section: #070b11;
  --fp-panel: #0a1017;
  --fp-panel-2: #0d141c;
  --fp-text: #f3f4f6;
  --fp-text-soft: #d8dee7;
  --fp-muted: #a4adbc;
  --fp-dim: #77818f;
  --fp-faint: #4d5662;
  --fp-line: rgba(226, 235, 247, 0.09);
  --fp-line-strong: rgba(226, 235, 247, 0.17);
  --fp-cyan: #86eaff;
  --fp-cyan-soft: rgba(134, 234, 255, 0.1);
  --fp-gold: #efd0a0;
  --fp-blue: #82b5ff;
  --fp-mint: #a9e6b6;
  --fp-peach: #ffa17e;
  --fp-violet: #b4a7ff;
  --fp-red: #ff9a86;
  --fp-max: 1360px;
  --fp-gutter: clamp(20px, 4vw, 64px);
}

html {
  background: var(--fp-bg);
  color-scheme: dark;
  scrollbar-color: #26323f var(--fp-bg);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--fp-bg); }
::-webkit-scrollbar-thumb {
  border: 2px solid var(--fp-bg);
  border-radius: 999px;
  background: #26323f;
}
::-webkit-scrollbar-thumb:hover { background: #354556; }

body {
  background: var(--fp-bg);
  color: var(--fp-text);
  font-size: 14px;
  line-height: 1.72;
}

body::after {
  opacity: 0.035;
  mix-blend-mode: soft-light;
}

::selection {
  background: var(--fp-cyan);
  color: #05121a;
}

:focus-visible { outline-color: var(--fp-cyan); }
.console-section :focus-visible,
.site-footer :focus-visible,
.start-section :focus-visible,
.arch-board :focus-visible { outline-color: var(--fp-cyan); }

section[id] { scroll-margin-top: 84px; }

/* --------------------------------------------------------------- header -- */

.site-header {
  background: rgba(5, 8, 12, 0.82);
  border-bottom: 1px solid var(--fp-line);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.header-inner {
  max-width: var(--fp-max);
  height: 68px;
  padding: 0 var(--fp-gutter);
  gap: 30px;
}

.brand { gap: 10px; }
.brand-mark { width: 24px; height: 24px; filter: drop-shadow(0 0 12px rgba(130, 181, 255, 0.3)); }
.brand-word {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fp-text);
}
.brand:hover .brand-word { color: var(--fp-cyan); }

.site-nav { gap: 26px; }
.site-nav a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fp-muted);
  transition: color 0.18s ease;
}
.site-nav a::after {
  bottom: -3px;
  height: 1px;
  background: var(--fp-cyan);
}
.site-nav a:hover { color: var(--fp-text); }

.header-actions { gap: 16px; }
.sim-pill {
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(134, 234, 255, 0.2);
  border-radius: 999px;
  background: rgba(134, 234, 255, 0.05);
  color: var(--fp-cyan);
  font-size: 8px;
  letter-spacing: 0.13em;
}
.sim-pill .pulse-dot {
  background: var(--fp-cyan);
  animation-name: fp-pulse-cyan;
}
.source-link {
  color: var(--fp-muted);
  font-size: 9px;
  letter-spacing: 0.05em;
}
.source-link:hover { color: var(--fp-cyan); border-bottom-color: rgba(134, 234, 255, 0.5); }
.source-link span { color: var(--fp-gold); }

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: calc(100svh - 68px);
  padding: clamp(52px, 7vh, 86px) var(--fp-gutter) 0;
  background:
    radial-gradient(ellipse 54% 46% at 50% 44%, rgba(47, 86, 158, 0.2), transparent 68%),
    radial-gradient(ellipse 80% 60% at 50% 108%, rgba(134, 234, 255, 0.05), transparent 60%),
    linear-gradient(180deg, #05080c 0%, #060a11 62%, #05080c 100%);
  border-bottom: 1px solid var(--fp-line);
}

.hero::before {
  content: "";
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  width: auto;
  height: auto;
  font-size: 0;
  font-weight: 400;
  letter-spacing: 0;
  border: 0;
  background-image: radial-gradient(rgba(164, 173, 188, 0.22) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-text-stroke: 0;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 58% 52% at 50% 45%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 58% 52% at 50% 45%, #000 0%, transparent 72%);
}

.hero-orbit {
  position: absolute;
  left: 50%;
  top: 45%;
  z-index: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orbit-a {
  width: min(76vw, 860px);
  aspect-ratio: 1;
  border: 1px solid rgba(164, 173, 188, 0.06);
}
.orbit-b {
  width: min(55vw, 600px);
  aspect-ratio: 1;
  border: 1px dashed rgba(134, 234, 255, 0.08);
}
.orbit-b::before {
  content: "";
  position: absolute;
  top: 9%;
  right: 17%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fp-cyan);
  box-shadow: 0 0 12px rgba(134, 234, 255, 0.8);
}

.hero-cross {
  position: absolute;
  z-index: 0;
  width: 13px;
  height: 13px;
  opacity: 0.4;
  pointer-events: none;
}
.hero-cross::before,
.hero-cross::after {
  content: "";
  position: absolute;
  background: rgba(164, 173, 188, 0.6);
}
.hero-cross::before { left: 0; right: 0; top: 6px; height: 1px; }
.hero-cross::after { top: 0; bottom: 0; left: 6px; width: 1px; }
.cross-a { left: 7vw; top: 30%; }
.cross-b { right: 8vw; bottom: 27%; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--fp-max);
  margin: 0 auto;
  padding-bottom: clamp(34px, 5vh, 60px);
  text-align: center;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(34px, 6vh, 58px);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--fp-dim);
  animation: fp-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-eyebrow > span:first-child { color: var(--fp-cyan); }
.hero-eyebrow-sep { color: var(--fp-faint); }
.hero-eyebrow-version {
  padding-left: 12px;
  border-left: 1px solid var(--fp-line-strong);
  color: var(--fp-faint);
  letter-spacing: 0.1em;
}

.hero-stage {
  position: relative;
  width: 100%;
  margin-bottom: clamp(30px, 4.5vh, 44px);
  animation: fp-rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.hero .hero-title {
  --core-space: clamp(150px, 13vw, 226px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--core-space) minmax(0, 1fr);
  align-items: center;
  width: 100%;
  margin: 0;
  font-size: clamp(36px, 4.6vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--fp-text);
}
.hero-side { display: block; white-space: nowrap; }
.hero-side-left {
  grid-column: 1;
  padding-right: clamp(16px, 2.2vw, 34px);
  text-align: right;
}
.hero-side-right {
  grid-column: 3;
  padding-left: clamp(16px, 2.2vw, 34px);
  text-align: left;
}
.hero-side em {
  font-style: normal;
  color: var(--fp-cyan);
  text-shadow: 0 0 42px rgba(134, 234, 255, 0.35);
}
.hero-core-slot { grid-column: 2; }

.hero-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(150px, 13vw, 186px);
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--fp-text);
  transform: translate(-50%, -50%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-core:hover { transform: translate(-50%, -50%) scale(1.045); }
.hero-core-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image: radial-gradient(circle, rgba(134, 234, 255, 0.9) 1.1px, transparent 1.2px);
  background-size: 9px 9px;
  opacity: 0.62;
  -webkit-mask-image: radial-gradient(circle, transparent 0 56%, #000 57% 74%, transparent 75%);
  mask-image: radial-gradient(circle, transparent 0 56%, #000 57% 74%, transparent 75%);
  transition: opacity 0.35s ease;
}
.hero-core::before {
  content: "";
  position: absolute;
  inset: 20%;
  border: 1px solid rgba(134, 234, 255, 0.24);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(134, 234, 255, 0.11), rgba(5, 8, 12, 0.55) 72%);
  box-shadow: inset 0 0 40px rgba(134, 234, 255, 0.06), 0 0 64px rgba(47, 107, 255, 0.14);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.hero-core::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px dashed rgba(239, 208, 160, 0.16);
  border-radius: 50%;
}
.hero-core-label {
  position: relative;
  z-index: 1;
  padding-left: 0.24em;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.24em;
  color: var(--fp-cyan);
  text-align: center;
}
.hero-core-arrow {
  position: absolute;
  bottom: 18%;
  z-index: 1;
  color: var(--fp-gold);
  font-size: 12px;
  animation: fp-bob 2.6s ease-in-out infinite;
}
.hero-core:hover .hero-core-ring { opacity: 1; }
.hero-core:hover::before {
  border-color: rgba(134, 234, 255, 0.48);
  box-shadow: inset 0 0 48px rgba(134, 234, 255, 0.12), 0 0 90px rgba(134, 234, 255, 0.16);
}

.hero-lede {
  max-width: 640px;
  margin: 0 0 30px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--fp-muted);
  animation: fp-rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  margin-bottom: clamp(42px, 6vh, 64px);
  animation: fp-rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}
.hero-cta-primary,
.hero-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
}
.hero-cta-primary {
  background: var(--fp-cyan);
  color: #05121a;
  box-shadow: 0 0 0 1px rgba(134, 234, 255, 0.35), 0 14px 44px rgba(134, 234, 255, 0.14);
}
.hero-cta-primary:hover {
  background: #a9f2ff;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(134, 234, 255, 0.55), 0 18px 54px rgba(134, 234, 255, 0.2);
}
.hero-cta-primary span { color: #123b47; font-size: 13px; }
.hero-cta-ghost {
  border: 1px solid var(--fp-line-strong);
  color: var(--fp-muted);
}
.hero-cta-ghost:hover {
  border-color: rgba(134, 234, 255, 0.36);
  background: rgba(134, 234, 255, 0.04);
  color: var(--fp-text);
}
.hero-cta-ghost span { color: var(--fp-gold); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 1080px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--fp-line);
  text-align: left;
  animation: fp-rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}
.hero-stat { padding: 4px 26px; border-left: 1px solid var(--fp-line); }
.hero-stat:first-child { padding-left: 0; border-left: 0; }
.hero-stat dt {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  color: var(--fp-dim);
}
.hero-stat dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}
.hero-stat strong {
  font-family: var(--font-mono);
  font-size: clamp(23px, 2.1vw, 29px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fp-text);
}
.hero-stat span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--fp-faint);
}

.hero-footline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--fp-max);
  margin: clamp(44px, 6vh, 68px) auto 0;
  padding: 16px 0;
  border-top: 1px solid var(--fp-line);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--fp-faint);
}
.hero-foot-mark { color: var(--fp-cyan); }
.hero-foot-note { color: var(--fp-dim); }
.hero-footline a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fp-dim);
  transition: color 0.18s ease;
}
.hero-footline a span { color: var(--fp-gold); }
.hero-footline a:hover { color: var(--fp-cyan); }

/* ------------------------------------------------------- shared sections -- */

.section-inner {
  max-width: var(--fp-max);
  padding: 0 var(--fp-gutter);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: clamp(46px, 5.5vw, 70px);
  padding: 0;
  border: 0;
  text-align: center;
}

.section-title-block,
.start-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
}
.section-title-block::before,
.start-copy::before {
  content: attr(data-ghost);
  display: block;
  width: 100%;
  overflow: hidden;
  margin-bottom: clamp(14px, 2vw, 24px);
  font-family: var(--font-sans);
  font-size: clamp(30px, 9.2vw, 138px);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: rgba(243, 244, 246, 0.03);
  -webkit-text-stroke: 1px rgba(164, 173, 188, 0.24);
  user-select: none;
  pointer-events: none;
}
.section-head-dark .section-title-block::before {
  color: rgba(134, 234, 255, 0.025);
  -webkit-text-stroke-color: rgba(134, 234, 255, 0.19);
}

.section-kicker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--fp-cyan);
}
.section-kicker::before {
  width: 18px;
  height: 1px;
  background: var(--fp-cyan);
  opacity: 0.7;
}

.section-title-block h2,
.section-head-dark .section-title-block h2 {
  font-size: clamp(27px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.025em;
  color: var(--fp-text);
}
.section-title-block h2 em,
.section-head-dark .section-title-block h2 em {
  font-style: normal;
  color: var(--fp-cyan);
}
.section-lede {
  max-width: 660px;
  margin-top: 20px;
  padding: 0;
  border: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--fp-muted);
  text-wrap: pretty;
}
.section-head-dark .section-lede { color: var(--fp-muted); border: 0; }
.section-head-dark .section-kicker { color: var(--fp-cyan); }
.section-head-dark .section-kicker::before { background: var(--fp-cyan); }

/* -------------------------------------------------------------- console -- */

.console-section {
  --blue: #4f8dff;
  --blue-deep: #2f6bff;
  --blue-light: #86eaff;
  --amber: #efd0a0;
  --amber-deep: #b98545;
  --mint: #74d6b0;
  --mint-light: #a9e6b6;
  --red: #ff9a86;
  --paper: #f3f4f6;
  --ink: #05080c;
  --ink-soft: #cfd7e1;
  --term-bg: #05090e;
  --term-panel: #080d13;
  --term-raised: #0c131b;
  --term-text: #c8d2de;
  --term-dim: #6f7d8e;
  --term-bright: #f3f4f6;
  --line-dark: rgba(226, 235, 247, 0.1);
  --line-dark-strong: rgba(226, 235, 247, 0.2);
  position: relative;
  overflow: hidden;
  padding: clamp(92px, 10vw, 132px) 0 clamp(72px, 8vw, 104px);
  border-top: 1px solid var(--fp-line);
  border-bottom: 1px solid var(--fp-line);
  background-color: var(--fp-section);
  background-image:
    radial-gradient(ellipse 52% 40% at 50% 0%, rgba(47, 86, 158, 0.12), transparent 65%),
    radial-gradient(rgba(164, 173, 188, 0.11) 1px, transparent 1px);
  background-size: auto, 24px 24px;
  color: var(--fp-text);
}
.console-section::before {
  background: radial-gradient(ellipse at 80% 0%, rgba(134, 234, 255, 0.06), transparent 55%);
}

.console-meta {
  justify-content: center;
  gap: 0;
  margin-bottom: 38px;
  padding: 0;
  border: 0;
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--fp-faint);
}
.console-meta span { display: inline-flex; align-items: center; gap: 8px; }
.console-meta span:first-child { color: var(--fp-cyan); }
.console-meta span:first-child::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fp-mint);
  box-shadow: 0 0 8px rgba(169, 230, 182, 0.7);
}
.console-meta span + span::before {
  content: "/";
  margin: 0 13px;
  color: var(--fp-faint);
}

.console-shell {
  border: 1px solid rgba(226, 235, 247, 0.13);
  border-radius: 20px;
  background: var(--term-panel);
  box-shadow:
    0 0 0 1px rgba(134, 234, 255, 0.03) inset,
    0 34px 100px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(47, 107, 255, 0.11);
  overflow: hidden;
}
.console-shell::before {
  content: "";
  position: absolute;
  inset: 0 12% auto;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(134, 234, 255, 0.55), transparent);
  pointer-events: none;
}

.console-titlebar {
  height: 50px;
  padding: 0 18px;
  gap: 14px;
  border-top: 0;
  border-bottom: 1px solid rgba(226, 235, 247, 0.1);
  background: #090e15;
}
.console-live {
  padding: 2px 7px;
  border: 1px solid rgba(134, 234, 255, 0.24);
  border-radius: 999px;
  background: rgba(134, 234, 255, 0.05);
  color: var(--fp-cyan);
  font-size: 7px;
}
.console-live i { background: currentColor; animation-name: fp-pulse-cyan; }
.console-name { color: var(--fp-text); font-weight: 600; }
.console-path {
  border-left-color: rgba(226, 235, 247, 0.14);
  color: var(--fp-dim);
}
.console-sim {
  padding: 4px 8px;
  border: 1px solid rgba(239, 208, 160, 0.22);
  border-radius: 999px;
  background: rgba(239, 208, 160, 0.04);
  color: var(--fp-gold);
}
.window-btn {
  border-color: rgba(226, 235, 247, 0.14);
  border-radius: 8px;
  color: var(--fp-muted);
}
.window-btn:hover {
  border-color: rgba(134, 234, 255, 0.4);
  background: rgba(134, 234, 255, 0.06);
  color: var(--fp-cyan);
}
.window-btn-quiet { border-color: transparent; color: var(--fp-faint); }
.window-btn-quiet:hover { border-color: rgba(226, 235, 247, 0.14); background: transparent; color: var(--fp-muted); }

.console-body { grid-template-columns: 236px minmax(0, 1fr) 272px; height: 700px; }

.mission-rail {
  padding: 15px 12px 12px;
  border-right: 1px solid rgba(226, 235, 247, 0.08);
  background: #070b10;
}
.rail-head {
  border-bottom-color: rgba(226, 235, 247, 0.09);
  color: var(--fp-faint);
}
.rail-scroll { scrollbar-color: #1c2836 transparent; }
.mission {
  padding: 9px 9px;
  border: 1px solid transparent;
  border-left: 0;
  border-radius: 8px;
  color: var(--fp-muted);
}
.mission:hover {
  background: rgba(243, 244, 246, 0.04);
  color: var(--fp-text);
}
.mission.is-active {
  background: linear-gradient(90deg, rgba(134, 234, 255, 0.11), rgba(134, 234, 255, 0.015));
  border-color: transparent;
  box-shadow: inset 2px 0 0 var(--fp-cyan);
  color: var(--fp-text);
}
.mission-index { color: var(--fp-faint); }
.mission.is-active .mission-index { color: var(--fp-cyan); }
.mission-copy em { color: var(--fp-dim); }
.mission.is-active .mission-copy em { color: rgba(134, 234, 255, 0.64); }
.mission-dot { background: #2b3542; }
.mission.is-active .mission-dot { background: var(--fp-cyan); box-shadow: 0 0 9px rgba(134, 234, 255, 0.7); }
.mission.is-complete .mission-dot { background: var(--fp-mint); }
.rail-foot {
  border-top-color: rgba(226, 235, 247, 0.09);
  color: var(--fp-faint);
}

.terminal-column { background: #05090e; }
.mode-line {
  height: 42px;
  padding: 0 16px;
  border-bottom-color: rgba(226, 235, 247, 0.09);
  background: #080d13;
}
.mode-chip {
  padding: 5px 9px;
  border: 1px solid rgba(134, 234, 255, 0.28);
  border-radius: 999px;
  background: rgba(134, 234, 255, 0.07);
  color: var(--fp-cyan);
}
.mode-chip:hover {
  border-color: rgba(134, 234, 255, 0.55);
  background: rgba(134, 234, 255, 0.13);
  color: #d9f9ff;
}
.mode-caption { color: var(--fp-dim); }
.terminal-env { color: var(--fp-faint); }

.terminal-screen {
  padding: 20px 20px 12px;
  background: radial-gradient(circle at 76% 0%, rgba(47, 107, 255, 0.06), transparent 42%);
  color: var(--term-text);
  font-size: 12px;
  line-height: 1.7;
  scrollbar-color: #1c2836 transparent;
}
.terminal-screen::-webkit-scrollbar-thumb {
  background: #1c2836;
  border-color: var(--term-bg);
}
.terminal-screen:focus-visible { outline-color: rgba(134, 234, 255, 0.5); }

.terminal-activity {
  background: var(--term-bg);
  color: var(--fp-dim);
}
.spinner { border-color: #253141; border-top-color: var(--fp-cyan); }

.slash-palette {
  border: 1px solid rgba(134, 234, 255, 0.18);
  border-radius: 10px;
  background: #080e15;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.palette-head {
  border-bottom-color: rgba(226, 235, 247, 0.09);
  color: var(--fp-faint);
}
.palette-item { border-top-color: rgba(226, 235, 247, 0.05); color: var(--fp-muted); }
.palette-item:hover,
.palette-item.is-active {
  background: rgba(134, 234, 255, 0.08);
  border-left-color: var(--fp-cyan);
  color: var(--fp-text);
}
.palette-cmd { color: var(--fp-cyan); }
.palette-desc { color: var(--fp-dim); }

.terminal-input-row {
  border: 1px solid rgba(226, 235, 247, 0.15);
  border-radius: 8px;
  background: #090f16;
}
.terminal-input-row:focus-within {
  border-color: rgba(134, 234, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(134, 234, 255, 0.18);
}
.prompt-glyph { color: var(--fp-cyan); }
#commandInput { color: var(--fp-text); }
#commandInput::placeholder { color: var(--fp-faint); }
.enter-key {
  border-color: rgba(226, 235, 247, 0.14);
  border-radius: 4px;
  color: var(--fp-faint);
}

.terminal-status { border-top-color: rgba(226, 235, 247, 0.09); background: #05080c; }
.status-top { border-bottom-color: rgba(226, 235, 247, 0.05); }
.status-mode { color: var(--fp-gold); }
.status-env { color: rgba(134, 234, 255, 0.62); }
.status-brand { color: var(--fp-violet); }
.status-model { color: #8fd3e8; }
.status-phase { color: var(--fp-mint); }
.ctx-label { color: rgba(134, 234, 255, 0.62); }
.ctx-track { background: #17212c; }
.ctx-track i { background: var(--fp-cyan); }
.status-tokens, .status-elapsed { color: rgba(239, 208, 160, 0.62); }
.status-cwd { color: var(--fp-faint); }

.inspector {
  padding: 15px 14px 12px;
  border-left: 1px solid rgba(226, 235, 247, 0.08);
  background: #070b10;
}
.inspector-head { color: var(--fp-faint); }
.rec { color: var(--fp-peach); }
.inspector-scene {
  border-bottom-color: rgba(226, 235, 247, 0.09);
}
.inspector-scene strong { color: var(--fp-text); }
.inspector-scene > span:last-child { color: var(--fp-dim); }
.mono-label { color: var(--fp-faint); }
.inspector-meta { border-bottom-color: rgba(226, 235, 247, 0.09); }
.inspector-meta dt { color: var(--fp-faint); }
.inspector-meta dd { color: var(--fp-muted); }
.inspector-subhead { color: var(--fp-faint); }
.trace-empty { color: var(--fp-faint); }
.trace-item { border-left-color: #2b394a; }
.trace-item.is-ok { border-left-color: var(--fp-mint); }
.trace-item.is-fail { border-left-color: var(--fp-peach); }
.trace-item.is-blocked { border-left-color: var(--fp-red); }
.trace-item.is-agent { border-left-color: var(--fp-cyan); }
.trace-item.is-hitl { border-left-color: var(--fp-gold); }
.trace-name { color: rgba(243, 244, 246, 0.72); }
.trace-param, .trace-ms { color: var(--fp-faint); }
.inspector-foot {
  border-top-color: rgba(226, 235, 247, 0.09);
  color: var(--fp-faint);
}
.inspector-foot span { border-color: rgba(226, 235, 247, 0.1); }

.console-caption { color: var(--fp-faint); }
.console-caption kbd {
  border-color: rgba(226, 235, 247, 0.14);
  background: #0a1017;
  color: var(--fp-muted);
}
.caption-keys { color: var(--fp-dim); }
.console-caption span { color: var(--fp-faint); }

/* --------------------------------------------------------- capabilities -- */

.capabilities-section {
  padding: clamp(100px, 10vw, 140px) 0 clamp(74px, 8vw, 106px);
  background: var(--fp-bg);
}

.cap-table { border-top: 1px solid var(--fp-line-strong); }
.cap-grid { display: flex; flex-direction: column; }

.cap-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 122px;
  align-items: center;
  gap: 26px;
  padding: 26px 18px;
  border-bottom: 1px solid var(--fp-line);
  background: transparent;
  color: var(--fp-text);
  transition: background 0.24s ease;
}
.cap-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: transparent;
  transition: background 0.24s ease;
}
.cap-card:hover { background: linear-gradient(90deg, rgba(134, 234, 255, 0.045), transparent 62%); }
.cap-card:hover::before { background: var(--fp-cyan); }
.cap-index {
  align-self: start;
  padding-top: 1px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--fp-faint);
  transition: color 0.24s ease;
}
.cap-card:hover .cap-index { color: var(--fp-cyan); }
.cap-main { min-width: 0; }
.cap-heading {
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 8px;
}
.cap-type {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--fp-dim);
  transition: color 0.24s ease;
}
.cap-card:hover .cap-type { color: var(--fp-cyan); }
.cap-card h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--fp-text);
}
.cap-main p {
  max-width: 720px;
  font-size: 12.5px;
  line-height: 1.82;
  color: var(--fp-muted);
  transition: color 0.24s ease;
}
.cap-card:hover .cap-main p { color: var(--fp-text-soft); }
.cap-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 0;
}
.cap-tags span {
  padding: 0;
  border: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  color: var(--fp-faint);
  transition: color 0.24s ease;
}
.cap-tags span::before {
  content: "·";
  margin-right: 7px;
  color: var(--fp-cyan);
  opacity: 0.65;
}
.cap-card:hover .cap-tags span { border: 0; color: var(--fp-dim); }
.cap-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--fp-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.cap-action i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  color: var(--fp-cyan);
  transition: transform 0.18s ease;
}
.cap-card:hover .cap-action { border-color: transparent; color: var(--fp-text); }
.cap-card:hover .cap-action i { color: var(--fp-cyan); }
.cap-card .cap-action:hover {
  border-color: rgba(134, 234, 255, 0.35);
  background: transparent;
  color: var(--fp-cyan);
}
.cap-card .cap-action:hover i { color: var(--fp-cyan); transform: translate(2px, -2px); }

.cap-card.is-feature {
  background: linear-gradient(90deg, rgba(239, 208, 160, 0.05), transparent 58%);
  border-bottom-color: var(--fp-line);
  box-shadow: none;
  color: var(--fp-text);
}
.cap-card.is-feature::before { background: linear-gradient(180deg, var(--fp-gold), rgba(239, 208, 160, 0.06)); }
.cap-card.is-feature .cap-index { color: var(--fp-gold); }
.cap-card.is-feature .cap-type { color: var(--fp-gold); }
.cap-card.is-feature .cap-main p { color: var(--fp-text-soft); }
.cap-card.is-feature .cap-tags span { border: 0; color: var(--fp-dim); }
.cap-card.is-feature .cap-tags span::before { color: var(--fp-gold); }
.cap-card.is-feature .cap-action { border-color: transparent; background: transparent; color: var(--fp-gold); }
.cap-card.is-feature .cap-action i { color: var(--fp-gold); }
.cap-card.is-feature .cap-action:hover { border-color: rgba(239, 208, 160, 0.4); background: transparent; color: var(--fp-gold); }
.cap-card.is-feature .cap-action:hover i { color: var(--fp-gold); }

.more-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 24px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--fp-line);
}
.more-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--fp-dim);
}
.more-items { display: flex; flex-wrap: wrap; gap: 9px 22px; }
.more-items span {
  padding: 0;
  border: 0;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--fp-faint);
}
.more-items span::before {
  content: "/";
  margin-right: 8px;
  color: var(--fp-cyan);
  opacity: 0.55;
}

/* --------------------------------------------------------- architecture -- */

.architecture-section {
  padding: clamp(100px, 10vw, 140px) 0 clamp(86px, 9vw, 118px);
  border-top: 1px solid var(--fp-line);
  border-bottom: 1px solid var(--fp-line);
  background:
    radial-gradient(ellipse 55% 40% at 50% 0%, rgba(47, 86, 158, 0.1), transparent 65%),
    var(--fp-section);
}

.arch-board {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fp-line);
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% -10%, rgba(130, 181, 255, 0.07), transparent 55%), #080d13;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.arch-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.arch-stage {
  position: relative;
  min-width: 0;
  padding: 32px 28px 36px;
  border-left: 1px solid var(--fp-line);
}
.arch-stage:first-child { border-left: 0; }
.arch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fp-line);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--fp-dim);
}
.arch-label::after {
  content: "";
  width: 5px;
  height: 5px;
  border: 1px solid rgba(164, 173, 188, 0.5);
  transform: rotate(45deg);
}
.arch-stage h3 {
  margin-bottom: 20px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--fp-text);
}
.arch-stage ul { display: flex; flex-direction: column; gap: 13px; }
.arch-stage li {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: var(--fp-muted);
}
.arch-stage li b { display: block; font-weight: 500; color: var(--fp-text-soft); font-size: 12.5px; }
.arch-stage li span {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  color: var(--fp-dim);
}
.arch-stage code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(134, 234, 255, 0.06);
  color: var(--fp-cyan);
  font-size: 0.9em;
}
.arch-stage.is-key {
  background: linear-gradient(180deg, rgba(134, 234, 255, 0.05), transparent 62%);
}
.arch-stage.is-key h3 { color: var(--fp-cyan); }
.arch-stage.is-key li b { color: var(--fp-cyan); }
.arch-foot {
  margin: 0;
  padding: 15px 28px;
  border-top: 1px solid var(--fp-line);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--fp-faint);
  text-align: center;
}

.guardrail-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
  margin-top: 24px;
  padding: 18px 24px;
  border: 1px solid var(--fp-line);
  border-radius: 14px;
  background: rgba(239, 208, 160, 0.035);
}
.guardrail-seq {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  color: var(--fp-text-soft);
}
.guardrail-seq span { padding: 0; border: 0; background: none; }
.guardrail-seq i { font-style: normal; color: var(--fp-gold); opacity: 0.6; }
.guardrail-band p {
  flex: 1;
  min-width: 280px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--fp-muted);
}

.guard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 54px;
  border-top: 1px solid var(--fp-line-strong);
}
.guard-card {
  display: flex;
  flex-direction: column;
  padding: 28px 30px 2px;
  border: 0;
  border-right: 1px solid var(--fp-line);
  background: transparent;
}
.guard-card:first-child { padding-left: 0; }
.guard-card:last-child { padding-right: 0; border-right: 0; }
.guard-index {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--fp-cyan);
}
.guard-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--fp-text);
}
.guard-card > p:not(.guard-index) {
  margin-bottom: 24px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--fp-muted);
}
.mode-demo { display: flex; gap: 16px; margin-top: auto; }
.mode-tag {
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--fp-faint);
}
.mode-tag.is-on { border: 0; background: none; color: var(--fp-cyan); }
.mode-tag.is-on::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--fp-cyan);
  vertical-align: 2px;
}
.guard-code {
  margin: 0;
  margin-top: auto;
  padding: 15px;
  border: 1px solid var(--fp-line);
  border-radius: 10px;
  background: #05090e;
  color: var(--fp-muted);
  font-size: 9px;
  line-height: 1.9;
}
.guard-block { color: var(--fp-peach); }
.mini-timeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--fp-dim);
}
.mini-node { padding: 0; border: 0; background: none; }
.mini-node.is-changed { border: 0; background: none; color: var(--fp-gold); }
.mini-timeline i { width: 14px; height: 1px; background: var(--fp-line-strong); }
.mini-rollback { margin-left: 2px; color: var(--fp-cyan); }

/* ----------------------------------------------------------- quickstart -- */

.start-section {
  position: relative;
  overflow: hidden;
  padding: clamp(100px, 10vw, 150px) 0 clamp(90px, 9vw, 122px);
  background:
    radial-gradient(ellipse 50% 46% at 50% 100%, rgba(134, 234, 255, 0.05), transparent 65%),
    var(--fp-bg);
  border-bottom: 1px solid var(--fp-line);
  color: var(--fp-text);
}
.start-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(164, 173, 188, 0.14) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 50% 46% at 50% 84%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 50% 46% at 50% 84%, #000, transparent 70%);
  pointer-events: none;
}

.start-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
  max-width: 900px;
  margin: 0 auto;
}
.start-copy { width: 100%; }
.start-copy::before {
  color: rgba(243, 244, 246, 0.03);
  -webkit-text-stroke-color: rgba(164, 173, 188, 0.22);
}
.start-copy .section-kicker { color: var(--fp-cyan); }
.start-copy .section-kicker::before { background: var(--fp-cyan); }
.start-copy h2 {
  margin: 0;
  font-size: clamp(28px, 2.9vw, 36px);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.025em;
  color: var(--fp-text);
}
.start-lede {
  max-width: 620px;
  margin: 20px auto 26px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--fp-muted);
  text-wrap: pretty;
}
.start-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.start-section .button {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: none;
}
.start-section .button-paper {
  border: 1px solid var(--fp-cyan);
  background: var(--fp-cyan);
  color: #05121a;
}
.start-section .button-paper:hover {
  background: #a9f2ff;
  color: #05121a;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(134, 234, 255, 0.16);
}
.start-section .button-outline-light {
  border: 1px solid var(--fp-line-strong);
  background: transparent;
  color: var(--fp-muted);
}
.start-section .button-outline-light:hover {
  border-color: rgba(134, 234, 255, 0.36);
  background: rgba(134, 234, 255, 0.04);
  color: var(--fp-text);
}
.start-tagline {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--fp-faint);
}

.install-panel {
  width: 100%;
  border: 1px solid var(--fp-line-strong);
  border-radius: 16px;
  background: #070c12;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  text-align: left;
}
.install-head {
  padding: 12px 18px;
  border-bottom: 1px solid var(--fp-line);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--fp-faint);
}
.copy-btn {
  padding: 5px 10px;
  border: 1px solid rgba(226, 235, 247, 0.16);
  border-radius: 999px;
  color: var(--fp-muted);
  font-size: 8px;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.copy-btn:hover {
  border-color: rgba(134, 234, 255, 0.4);
  background: rgba(134, 234, 255, 0.06);
  color: var(--fp-cyan);
}
.install-code {
  padding: 22px 20px;
  color: var(--fp-text-soft);
  font-size: 11px;
  line-height: 2;
  scrollbar-color: #1c2836 transparent;
}
.c-comment { color: var(--fp-dim); }
.install-note {
  padding: 12px 18px;
  border-top: 1px solid var(--fp-line);
  font-size: 8px;
  color: var(--fp-dim);
}
.install-note .pulse-dot {
  background: var(--fp-mint);
  animation-name: fp-pulse-mint;
}

/* --------------------------------------------------------------- footer -- */

.site-footer {
  padding: 46px var(--fp-gutter) 30px;
  border-top: 1px solid var(--fp-line);
  background: #04070b;
  color: var(--fp-muted);
}
.footer-inner { max-width: var(--fp-max); margin: 0 auto; }
.footer-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--fp-line);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 26px; height: 26px; }
.footer-brand div { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.footer-brand strong { font-size: 14px; font-weight: 600; color: var(--fp-text); }
.footer-brand span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--fp-faint);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--fp-muted);
}
.footer-links a { transition: color 0.18s ease; }
.footer-links a:hover { color: var(--fp-cyan); }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--fp-faint);
}
.footer-note { color: var(--fp-dim); }

/* ----------------------------------------------------------------- toast -- */

.toast {
  padding: 10px 16px;
  border: 1px solid rgba(134, 234, 255, 0.35);
  border-radius: 999px;
  background: #0a1119;
  color: var(--fp-text);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
  font-size: 9px;
}

/* -------------------------------------------------------------- motion -- */

@keyframes fp-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes fp-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@keyframes fp-pulse-cyan {
  0%, 100% { box-shadow: 0 0 0 0 rgba(134, 234, 255, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(134, 234, 255, 0); }
}
@keyframes fp-pulse-mint {
  0%, 100% { box-shadow: 0 0 0 0 rgba(169, 230, 182, 0.32); }
  50% { box-shadow: 0 0 0 5px rgba(169, 230, 182, 0); }
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1180px) {
  .console-body { grid-template-columns: 220px minmax(0, 1fr) 254px; }
  .cap-card { grid-template-columns: 52px minmax(0, 1fr) 108px; gap: 20px; padding: 24px 12px; }
  .arch-stage { padding: 28px 22px 32px; }
  .arch-stage h3 { font-size: 20px; }
}

@media (max-width: 1120px) {
  .console-body {
    grid-template-columns: 208px minmax(0, 1fr);
    grid-template-rows: 660px auto;
    grid-template-areas:
      "rail terminal"
      "inspector inspector";
    height: auto;
  }
  .terminal-column { height: 660px; }
  .inspector {
    border-top: 1px solid rgba(226, 235, 247, 0.08);
    border-left: 0;
  }
  .inspector-head { border-bottom-color: rgba(226, 235, 247, 0.09); }
  .inspector-meta { border-left-color: rgba(226, 235, 247, 0.09); }
  .trace-list { border-left-color: rgba(226, 235, 247, 0.09); }
}

@media (max-width: 1020px) {
  .hero .hero-title {
    --core-space: clamp(144px, 15vw, 170px);
    font-size: clamp(34px, 5vw, 50px);
  }
  .hero-core { width: clamp(136px, 15vw, 160px); }

  .cap-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px 20px;
    padding: 24px 8px;
  }
  .cap-index { align-self: start; }
  .cap-tags {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 9px;
  }
  .cap-action {
    grid-column: 2;
    justify-self: start;
    margin-top: 6px;
  }

  .arch-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch-stage { padding: 26px 24px 30px; }
  .arch-stage:nth-child(2n + 1) { border-left: 0; }
  .arch-stage:nth-child(n + 3) { border-top: 1px solid var(--fp-line); }

  .guard-grid { grid-template-columns: 1fr; margin-top: 44px; }
  .guard-card {
    display: block;
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid var(--fp-line);
  }
  .guard-card:last-child { border-bottom: 0; padding-bottom: 0; }
  .guard-card > p:not(.guard-index) { max-width: 640px; }
  .mode-demo, .guard-code, .mini-timeline { margin-top: 16px; }

  .start-panel { gap: 38px; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .hero { padding-top: 54px; }
  .hero-eyebrow { font-size: 8px; letter-spacing: 0.14em; }

  .console-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 620px auto;
    grid-template-areas:
      "rail"
      "terminal"
      "inspector";
    height: auto;
  }
  .mission-rail {
    display: block;
    overflow: hidden;
    padding: 9px 11px;
    border-right: 0;
    border-bottom: 1px solid rgba(226, 235, 247, 0.09);
  }
  .rail-head,
  .rail-foot { display: none; }
  .rail-scroll {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 5px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .rail-scroll::-webkit-scrollbar { display: none; }
  .mission {
    flex: 0 0 auto;
    width: auto;
    min-width: 168px;
    grid-template-columns: 20px minmax(0, 1fr) 5px;
    padding: 8px 9px;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }
  .terminal-column { grid-area: terminal; height: 620px; }
  .mission.is-active { border-bottom: 2px solid var(--fp-cyan); }

  .console-section { padding: 82px 0 62px; }
  .capabilities-section,
  .architecture-section { padding: 84px 0 72px; }
}

@media (max-width: 860px) {
  .hero-stats { grid-template-columns: 1fr 1fr; max-width: 620px; }
  .hero-stat { padding: 18px 0 18px 22px; }
  .hero-stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero-stat:nth-child(n + 3) { border-top: 1px solid var(--fp-line); }
  .hero-footline { margin-top: 48px; }
}

@media (max-width: 760px) {
  .header-inner { height: 60px; }
  .site-header .sim-pill { display: none; }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }
  .hero-inner { padding-bottom: 8px; }
  .hero-eyebrow { margin-bottom: 34px; font-size: 7.5px; gap: 8px; }
  .hero-eyebrow-version { display: none; }

  .hero-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
  }
  .hero .hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: clamp(32px, 8.8vw, 48px);
    line-height: 1.2;
    letter-spacing: -0.04em;
  }
  .hero-side-left,
  .hero-side-right { padding: 0; text-align: center; }
  .hero-core-slot { display: none; }
  .hero-core {
    position: relative;
    left: auto;
    top: auto;
    width: 124px;
    margin: 28px auto 0;
    transform: none;
  }
  .hero-core:hover { transform: scale(1.04); }
  .hero-core::after { inset: -7px; }

  .hero-lede {
    margin-top: 28px;
    margin-bottom: 24px;
    font-size: 13.5px;
    line-height: 1.85;
  }
  .hero-br { display: none; }
  .hero-actions { gap: 10px; margin-bottom: 38px; }
  .hero-cta-primary,
  .hero-cta-ghost { min-height: 44px; padding: 0 19px; font-size: 12.5px; }

  .hero-stats { max-width: 100%; }
  .hero-stat strong { font-size: 23px; }
  .hero-stat span { font-size: 7.5px; }

  .hero-footline {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 16px;
    margin-top: 38px;
    padding: 14px 0;
    font-size: 7.5px;
  }
  .hero-footline a { display: none; }
  .hero-foot-note { width: 100%; }

  .hero-orbit { display: none; }
  .cross-a { top: 22%; left: 4vw; }
  .cross-b { right: 4vw; bottom: 18%; }

  .section-head { margin-bottom: 40px; }
  .section-title-block::before,
  .start-copy::before {
    margin-bottom: 18px;
    font-size: clamp(34px, 9.6vw, 58px);
    -webkit-text-stroke-width: 1px;
  }
  .section-kicker { margin-bottom: 11px; font-size: 8px; }
  .section-title-block h2,
  .section-head-dark .section-title-block h2 { font-size: clamp(24px, 6.4vw, 29px); line-height: 1.42; }
  .section-lede { margin-top: 16px; font-size: 13px; line-height: 1.8; }

  .console-section { padding: 68px 0 50px; }
  .console-meta {
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 28px;
    font-size: 7px;
    letter-spacing: 0.1em;
  }
  .console-meta span + span::before { margin: 0 8px; }
  .console-shell { border-radius: 14px; }
  .console-titlebar { padding: 0 12px; }
  .console-body { grid-template-rows: auto 600px auto; }
  .mission { min-width: 152px; padding: 7px 8px; }
  .terminal-column { height: 600px; }
  .mission.is-active { box-shadow: none; border-bottom-color: var(--fp-cyan); }

  .capabilities-section,
  .architecture-section { padding: 68px 0 58px; }
  .cap-card { grid-template-columns: 32px minmax(0, 1fr); gap: 5px 14px; padding: 21px 0; }
  .cap-index { font-size: 10px; padding-top: 3px; }
  .cap-heading { gap: 6px; margin-bottom: 7px; }
  .cap-card h3 { font-size: 18px; }
  .cap-type { font-size: 7.5px; }
  .cap-main p { font-size: 12px; line-height: 1.78; }
  .cap-tags { gap: 5px 14px; margin-top: 8px; }
  .cap-tags span { font-size: 8px; }
  .cap-action { margin-top: 4px; font-size: 8.5px; }
  .more-strip { margin-top: 28px; padding-top: 20px; }
  .more-items { gap: 8px 16px; }
  .more-items span { font-size: 8px; }

  .arch-board { border-radius: 16px; }
  .arch-flow { grid-template-columns: 1fr; }
  .arch-stage { padding: 24px 0; border-left: 0; border-top: 1px solid var(--fp-line); }
  .arch-stage:first-child { border-top: 0; }
  .arch-stage:nth-child(n + 3) { border-top: 1px solid var(--fp-line); }
  .arch-stage { padding: 24px 20px; }
  .arch-stage:first-child { padding-top: 26px; }
  .arch-label { margin-bottom: 20px; }
  .arch-stage h3 { font-size: 19px; margin-bottom: 16px; }
  .arch-stage ul { gap: 11px; }
  .arch-foot { padding: 13px 20px; text-align: left; }

  .guardrail-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 16px 0;
    border: 0;
    border-top: 1px solid var(--fp-line);
    border-bottom: 1px solid var(--fp-line);
    border-radius: 0;
    background: none;
  }
  .guardrail-seq { gap: 7px; font-size: 7.5px; }
  .guardrail-band p { min-width: 0; font-size: 11.5px; }
  .guard-grid { margin-top: 34px; }
  .guard-card { padding: 22px 0; }
  .guard-card h3 { font-size: 17px; }
  .guard-card > p:not(.guard-index) { font-size: 12px; margin-bottom: 18px; }

  .start-section { padding: 72px 0 64px; }
  .start-panel { gap: 32px; }
  .start-copy::before { -webkit-text-stroke-color: rgba(164, 173, 188, 0.2); }
  .start-copy h2 { font-size: clamp(25px, 7vw, 31px); }
  .start-lede { margin: 16px auto 22px; font-size: 13px; }
  .start-section .button { min-height: 43px; padding: 0 18px; font-size: 12px; }
  .start-tagline { margin-top: 18px; font-size: 7.5px; }
  .install-panel { border-radius: 12px; }
  .install-head { padding: 10px 13px; font-size: 7px; }
  .copy-btn { font-size: 7px; }
  .install-code { padding: 18px 14px; font-size: 9.5px; line-height: 1.95; }
  .install-note { padding: 10px 13px; font-size: 7px; }

  .site-footer { padding-top: 36px; }
  .footer-primary { flex-direction: column; align-items: flex-start; gap: 22px; padding-bottom: 24px; }
  .footer-links { gap: 18px; }
  .footer-meta { padding-top: 16px; }
}

@media (max-width: 520px) {
  .header-actions { margin-left: auto; }

  .hero .hero-title { font-size: clamp(30px, 9vw, 40px); }
  .hero-core { width: 112px; margin-top: 24px; }
  .hero-core-label { font-size: 9px; }
  .hero-stat { padding-left: 16px; }
  .hero-stat dd { gap: 6px; }

  .console-titlebar { height: 46px; padding: 0 10px; gap: 8px; }
  .console-name { font-size: 11px; }
  .console-path, .console-sim { display: none; }
  .console-meta span:last-child { display: inline-flex; }
  .console-meta { justify-content: center; text-align: center; }

  .more-label { min-width: 100%; }

  .start-links { flex-direction: column; width: 100%; }
  .start-section .button { width: 100%; }
  .install-code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .footer-meta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .hero .hero-title { font-size: 29px; }
  .hero-eyebrow > span:nth-child(3) { display: none; }
  .hero-eyebrow-sep { display: none; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-cta-primary, .hero-cta-ghost { width: 100%; }
  .console-meta { font-size: 6.5px; }
  .cap-card h3 { font-size: 17px; }
  .start-copy h2 { font-size: 24px; }
}
