/* ==========================================================================
   CONTROL ZERO — redesigned in the spirit of entire.io
   Retro terminal · CRT · dark matter
   ========================================================================== */

:root {
  --bg: #070707;
  --surface-base: #111111;
  --surface-raised: #161616;
  --surface-floating: #1c1c1c;
  --surface-sunken: #0d0d0d;
  --surface-hover: #ffffff0d;

  --text-default: #f3f3f3;
  --text-muted: #949494;
  --text-dim: #6e6e6e;

  --border-default: rgba(255, 255, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --accent: #00e5ff;
  --accent-soft: #67e8f9;
  --accent-glow: rgba(0, 229, 255, 0.32);
  --orange: #f25533;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
  --red-strong: #fb2c36;

  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  --font-headline: "Space Grotesk", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", sans-serif;

  --frame-max: 1280px;
  --section-pad-y: 7.5rem;

  --text-swap-dur: 0.22s;
  --text-swap-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text-default);
  font-family: var(--font-headline);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #000;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.mono {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Scrollbar ------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 6px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

/* ==========================================================================
   CRT OVERLAYS
   ========================================================================== */
.crt {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

.crt-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

.crt-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 120% 90% at 50% 40%,
    transparent 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.crt-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 55% at 50% 45%,
    transparent 55%,
    rgba(0, 229, 255, 0.035) 100%
  );
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border-radius: 0.5rem;
  transition: transform 0.15s ease, background-color 0.15s ease,
    color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 18px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 28px var(--accent-glow);
}

.btn-solid {
  background: #fff;
  color: #161616;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.04);
}

.btn-solid:hover {
  background: #e6e6e6;
}

.btn-ghost {
  color: var(--text-default);
  box-shadow: inset 0 0 0 1px var(--border-default);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 7, 7, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-frame {
  max-width: var(--frame-max);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 64px;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.brand-word {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-inline: auto;
}

.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color 0.15s ease;
  position: relative;
}

.main-nav a:hover {
  color: var(--text-default);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transition: right 0.2s ease;
}

.main-nav a:hover::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-signin {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-signin:hover {
  color: var(--text-default);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-default);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 24px 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.mobile-nav a {
  padding: 0.7rem 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav a:last-of-type {
  border-bottom: 0;
}

.mobile-nav .btn {
  margin-top: 0.75rem;
}

.mobile-nav.is-open {
  display: flex;
}

@media (min-width: 1280px) {
  .header-frame {
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
  }
}

/* ==========================================================================
   SECTIONS / FRAME
   ========================================================================== */
.site-section {
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.section-frame {
  max-width: var(--frame-max);
  margin-inline: auto;
  padding: var(--section-pad-y) 48px;
}

@media (min-width: 1280px) {
  .section-frame {
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
  }
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
  text-shadow: 0 0 12px var(--accent-glow);
}

.section-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.section-body {
  margin-top: 1.25rem;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 62ch;
}

.section-body.center {
  margin-inline: auto;
  text-align: center;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: max(84svh, 660px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  padding: 96px 24px 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: -2px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 20%, transparent 75%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.hero-glow-a {
  width: 620px;
  height: 620px;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 229, 255, 0.13), transparent 65%);
}

.hero-glow-b {
  width: 520px;
  height: 520px;
  bottom: -220px;
  right: -140px;
  background: radial-gradient(circle, rgba(242, 85, 51, 0.1), transparent 65%);
}

.hero-bot {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 520px);
  opacity: 0.35;
  filter: drop-shadow(0 0 60px rgba(0, 229, 255, 0.18));
  will-change: transform;
}

.hero-bot svg {
  width: 100%;
  height: auto;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 52% 55% at 50% 45%,
    rgba(7, 7, 7, 0.62) 0%,
    transparent 72%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
  max-width: 820px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.9rem 0.3rem 0.4rem;
  border-radius: 0.6rem;
  background: rgba(246, 246, 246, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease;
  max-width: 100%;
}

.hero-pill:hover {
  background: rgba(246, 246, 246, 0.14);
}

.pill-face {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pill-face svg {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
}

.pill-text {
  font-size: 0.92rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-arrow {
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.hero-pill:hover .pill-arrow {
  transform: translateX(3px);
}

.hero-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}

/* Rotating word swap */
.text-swap {
  position: relative;
  display: inline-grid;
  justify-items: start;
  align-items: baseline;
  color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
  font-variant-ligatures: none;
  vertical-align: bottom;
}

.swap-stack {
  display: contents;
}

.swap-word {
  grid-column: 1;
  grid-row: 1;
  visibility: hidden;
  white-space: nowrap;
}

.swap-visible {
  position: absolute;
  top: 0;
  left: 0;
  grid-column: 1;
  grid-row: 1;
  white-space: nowrap;
  display: inline-block;
  transition: opacity var(--text-swap-dur) var(--text-swap-ease),
    transform var(--text-swap-dur) var(--text-swap-ease),
    filter var(--text-swap-dur) var(--text-swap-ease);
}

.swap-visible.is-out {
  opacity: 0;
  transform: translateY(-6px);
  filter: blur(3px);
}

.hero-sub {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 56ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.35rem;
}

.hero-fine {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 26px;
  height: 42px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--border-default);
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero-scroll-line {
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrollHint 1.8s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent-glow);
}

@keyframes scrollHint {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(14px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

/* ==========================================================================
   INSTALL SECTION
   ========================================================================== */
#install .section-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.install-box {
  margin-top: 2.75rem;
  width: 100%;
  max-width: 640px;
  border-radius: 0.85rem;
  overflow: hidden;
  background: var(--surface-floating);
  box-shadow: 0 0 0 1px var(--border-default),
    0 8px 40px rgba(0, 0, 0, 0.55), 0 0 60px rgba(0, 229, 255, 0.05);
}

.install-tabs {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border-default);
  background: var(--surface-raised);
}

.install-tab {
  padding: 0.85rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  border-right: 1px solid var(--border-default);
  transition: color 0.15s ease, background-color 0.15s ease;
  position: relative;
}

.install-tab:hover {
  color: var(--text-default);
  background: var(--surface-hover);
}

.install-tab.is-active {
  color: var(--accent);
  background: var(--surface-hover);
  text-shadow: 0 0 10px var(--accent-glow);
}

.install-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.install-copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-left: 1px solid var(--border-default);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.install-copy:hover {
  color: var(--accent);
  background: var(--surface-hover);
}

.install-command {
  padding: 1.4rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-align: left;
  color: var(--text-default);
  overflow-x: auto;
  white-space: nowrap;
  min-height: 64px;
  display: flex;
  align-items: center;
}

.term-prompt {
  color: var(--green);
  margin-right: 0.6rem;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

/* Agent ticker */
.agent-ticker {
  margin-top: 3.25rem;
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.agent-track {
  display: flex;
  gap: 0.7rem;
  width: max-content;
  animation: tickerMove 32s linear infinite;
}

.agent-ticker:hover .agent-track {
  animation-play-state: paused;
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.agent-chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
  white-space: nowrap;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

.agent-chip:hover {
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 14px rgba(0, 229, 255, 0.15);
}

.ticker-note {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   TWO-COL (policy terminal)
   ========================================================================== */
.section-frame.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4rem;
  align-items: center;
}

.col-copy .section-body {
  margin-bottom: 1.75rem;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.check {
  color: var(--green);
  font-family: var(--font-mono);
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
  flex-shrink: 0;
}

.col-terminal {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ==========================================================================
   TERMINAL WINDOWS
   ========================================================================== */
.terminal {
  border-radius: 0.85rem;
  overflow: hidden;
  background: #0b0b0b;
  box-shadow: 0 0 0 1px var(--border-default),
    0 14px 44px rgba(0, 0, 0, 0.6), 0 0 70px rgba(0, 229, 255, 0.05);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border-subtle);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f56;
}
.dot-amber {
  background: #ffbd2e;
}
.dot-green {
  background: #27c93f;
}

.terminal-title {
  margin-left: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.terminal-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--green);
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.terminal-body {
  padding: 1.2rem 1.3rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.85;
  min-height: 210px;
}

.terminal-sm .terminal-body {
  min-height: 0;
  font-size: 0.78rem;
}

.t-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.t-line.t-in {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.t-line.t-in.is-shown {
  opacity: 1;
  transform: none;
}

.t-dim {
  color: var(--text-dim);
}

.t-k {
  color: var(--accent-soft);
  text-shadow: 0 0 10px rgba(103, 232, 249, 0.25);
}

.t-str {
  color: var(--amber);
}

.t-deny {
  color: var(--red);
}

.t-deny-strong {
  color: #fff;
  background: var(--red-strong);
  padding: 0.05rem 0.45rem;
  border-radius: 0.25rem;
  font-weight: 700;
  text-shadow: none;
  box-shadow: 0 0 14px rgba(251, 44, 54, 0.5);
}

.t-allow {
  color: var(--green);
}

.t-cursor-line {
  display: flex;
  align-items: center;
}

.t-cursor {
  display: inline-block;
  width: 8px;
  height: 1.15em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1.1s steps(2, start) infinite;
  box-shadow: 0 0 10px var(--accent-glow);
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

/* ==========================================================================
   PRIVATE BY DESIGN
   ========================================================================== */
#private .section-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.private-cards {
  margin-top: 3.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.private-card {
  background: var(--surface-raised);
  border-radius: 0.85rem;
  padding: 1.9rem 1.6rem;
  text-align: left;
  box-shadow: inset 0 0 0 1px var(--border-subtle);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.private-card:hover {
  box-shadow: inset 0 0 0 1px var(--border-default),
    0 12px 34px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 229, 255, 0.06);
  transform: translateY(-3px);
}

.private-icon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
  margin-bottom: 1rem;
}

.private-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.private-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ==========================================================================
   WHY LIST
   ========================================================================== */
.why-list {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
}

.why-item {
  display: grid;
  grid-template-columns: 90px 320px 1fr;
  gap: 2rem;
  padding: 2.6rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
}

.why-num {
  font-size: 0.9rem;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

.why-item h3 {
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 56ch;
}

/* ==========================================================================
   SHIFT + STATS
   ========================================================================== */
#shift .section-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.shift-title {
  max-width: 24ch;
}

.stat-row {
  margin-top: 3.75rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.stat {
  background: var(--surface-raised);
  border-radius: 0.85rem;
  padding: 2rem 1rem;
  box-shadow: inset 0 0 0 1px var(--border-subtle);
  transition: box-shadow 0.25s ease;
}

.stat:hover {
  box-shadow: inset 0 0 0 1px var(--border-default),
    0 0 44px rgba(0, 229, 255, 0.07);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 26px var(--accent-glow);
  line-height: 1;
}

.stat-label {
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   PATH GRID
   ========================================================================== */
.path-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.path-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-raised);
  border-radius: 0.85rem;
  padding: 1.7rem 1.6rem 1.5rem;
  box-shadow: inset 0 0 0 1px var(--border-subtle);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  min-height: 240px;
}

.path-card:hover {
  box-shadow: inset 0 0 0 1px var(--border-default),
    0 14px 38px rgba(0, 0, 0, 0.5), 0 0 44px rgba(0, 229, 255, 0.08);
  transform: translateY(-3px);
}

.path-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.path-icon {
  font-size: 0.85rem;
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
}

.path-status {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.55rem;
  border-radius: 0.35rem;
}

.status-ga {
  color: var(--green);
  background: rgba(34, 197, 94, 0.1);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.4);
}

.status-beta {
  color: var(--amber);
  background: rgba(234, 179, 8, 0.1);
  box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.4);
}

.status-soon {
  color: var(--accent-soft);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.4);
}

.status-private {
  color: var(--orange);
  background: rgba(242, 85, 51, 0.1);
  box-shadow: inset 0 0 0 1px rgba(242, 85, 51, 0.4);
}

.path-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.path-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
}

.path-cta {
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.path-card:hover .path-cta {
  text-shadow: 0 0 14px var(--accent-glow);
  transform: translateX(3px);
}

/* ==========================================================================
   MODES
   ========================================================================== */
#modes .section-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mode-tabs {
  margin-top: 2.75rem;
  display: inline-flex;
  border-radius: 0.6rem;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--border-default);
  background: var(--surface-raised);
}

.mode-tab {
  padding: 0.7rem 1.9rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  border-right: 1px solid var(--border-default);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.mode-tab:last-child {
  border-right: 0;
}

.mode-tab:hover {
  color: var(--text-default);
}

.mode-tab.is-active {
  color: #000;
  background: var(--accent);
  font-weight: 700;
  text-shadow: none;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.25);
}

.mode-desc {
  margin-top: 1.4rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 60ch;
  min-height: 3.2em;
  transition: opacity 0.2s ease;
}

.mode-desc-title {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.pattern-grid {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  text-align: left;
}

.pattern-card {
  background: var(--surface-raised);
  border-radius: 0.85rem;
  padding: 1.5rem;
  box-shadow: inset 0 0 0 1px var(--border-subtle);
  transition: box-shadow 0.25s ease;
}

.pattern-card:hover {
  box-shadow: inset 0 0 0 1px var(--border-default),
    0 0 50px rgba(0, 229, 255, 0.07);
}

.pattern-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.pattern-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.pattern-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding: 0.3rem 0.6rem;
  border-radius: 0.35rem;
  background: rgba(0, 229, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.3);
}

.pattern-terminal {
  border-radius: 0.6rem;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border-subtle);
  background: #0b0b0b;
}

.pattern-terminal .terminal-body {
  min-height: 0;
  font-size: 0.76rem;
}

.pattern-copy {
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.modes-note {
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ==========================================================================
   AGENTS DIAGRAM
   ========================================================================== */
#agents .section-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.agents-diagram {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 220px 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

.agent-group {
  background: var(--surface-raised);
  border-radius: 0.85rem;
  padding: 1.8rem 1.5rem;
  box-shadow: inset 0 0 0 1px var(--border-subtle);
}

.group-head {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-default);
}

.group-sub {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.agent-chips {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.policy-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0;
}

.policy-core svg {
  width: 84px;
  height: 84px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 24px var(--accent-glow));
  animation: coreFloat 4.5s ease-in-out infinite;
}

@keyframes coreFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.core-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-shadow: 0 0 14px var(--accent-glow);
}

.core-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.core-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.core-line {
  position: absolute;
  top: 50%;
  width: calc(50% - 40px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  opacity: 0.35;
}

.core-line::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -2.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.core-line-a {
  left: 0;
}

.core-line-b {
  right: 0;
  transform: scaleX(-1);
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how-list {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.how-item {
  display: flex;
  flex-direction: column;
  background: var(--surface-raised);
  border-radius: 0.85rem;
  padding: 1.8rem 1.6rem;
  box-shadow: inset 0 0 0 1px var(--border-subtle);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.how-item:hover {
  box-shadow: inset 0 0 0 1px var(--border-default),
    0 14px 38px rgba(0, 0, 0, 0.5), 0 0 44px rgba(0, 229, 255, 0.07);
  transform: translateY(-3px);
}

.how-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
  margin-bottom: 1rem;
}

.how-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.how-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
}

.how-code {
  margin-top: 1.25rem;
  background: #0b0b0b;
  border-radius: 0.5rem;
  box-shadow: inset 0 0 0 1px var(--border-subtle);
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--text-muted);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ==========================================================================
   FEATURE GRID
   ========================================================================== */
.feature-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface-raised);
  border-radius: 0.85rem;
  padding: 1.7rem 1.6rem;
  box-shadow: inset 0 0 0 1px var(--border-subtle);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  box-shadow: inset 0 0 0 1px var(--border-default),
    0 14px 38px rgba(0, 0, 0, 0.5), 0 0 44px rgba(0, 229, 255, 0.07);
  transform: translateY(-3px);
}

.feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.feature-head h3 {
  font-size: 1rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ==========================================================================
   CTA / NEWSLETTER
   ========================================================================== */
#get-started .section-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 720px;
}

.cta-title {
  max-width: 16ch;
}

.newsletter {
  margin-top: 2.5rem;
  width: 100%;
  max-width: 540px;
}

.newsletter-form {
  display: flex;
  gap: 0.7rem;
  background: var(--surface-raised);
  border-radius: 0.85rem;
  padding: 0.45rem;
  box-shadow: 0 0 0 1px var(--border-default),
    0 10px 34px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 229, 255, 0.05);
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0.75rem 1rem;
  color: var(--text-default);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: var(--text-dim);
}

.newsletter-form input:focus {
  outline: none;
}

.newsletter-status {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green);
  min-height: 1.4em;
}

.newsletter-status.is-error {
  color: var(--red);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 0;
}

.footer-frame {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 24ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.footer-col a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
  width: fit-content;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 1.4rem 0;
}

.footer-bottom .section-frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0;
  padding-bottom: 0;
  padding-block: 1.4rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-blip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .section-frame.two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .why-item {
    grid-template-columns: 70px 280px 1fr;
    gap: 1.5rem;
  }
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .path-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .agents-diagram {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .policy-core {
    order: -1;
    padding: 1rem 0;
  }
  .core-lines {
    display: none;
  }
  .footer-frame {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-bot {
    width: 60vw;
    right: -80px;
    opacity: 0.22;
  }
}

@media (max-width: 820px) {
  :root {
    --section-pad-y: 5rem;
  }
  .section-frame {
    padding-inline: 24px;
  }
  .main-nav {
    display: none;
  }
  .header-actions .nav-signin,
  .header-actions .btn-primary {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .why-item {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 2rem 0.25rem;
  }
  .path-grid {
    grid-template-columns: 1fr;
  }
  .pattern-grid {
    grid-template-columns: 1fr;
  }
  .how-list {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .private-cards {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-bot {
    display: none;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form .btn {
    width: 100%;
  }
  .hero {
    min-height: max(78svh, 600px);
  }
  .pill-text {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .stat-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
  .stat {
    padding: 1.4rem 0.8rem;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
  .hero-cta .btn {
    width: 100%;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .agent-track {
    animation: none;
  }
  .t-line.t-in {
    opacity: 1;
    transform: none;
  }
}
