/* ============================================================
   ARGUS — neural watchhouse
   Deep-black (#030303) neural treatment over the watchhouse
   skeleton: glass navbar, centered hero with violet+cyan radial
   atmospheres, massive Instrument Serif with a shimmer on the
   headline's last word, shiny-border CTA, staggered entry.
   Mono panels still prove the product; serif still tells the
   story; one eye only; every animation reduced-motion gated.
   ============================================================ */

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg-base: #030303;
  --bg-surface: #0a0a0c;
  --bg-card: #101013;
  --bg-inset: #08080a;
  --border: #232329;
  --border-deep: #1a1a1f;
  --accent: #8b5cf6;
  --accent-mid: #7c3aed;
  --accent-soft: #a78bfa;
  --accent-cyan: #06b6d4;
  --glow: rgba(139, 92, 246, 0.4);
  --glow-cyan: rgba(6, 182, 212, 0.08);
  --shadow: rgba(0, 0, 0, 0.45);
  --text-primary: #ededf0;
  --text-muted: #9c9ca6;
  --text-dim: #6e6e78;
  --text-ghost: #4b4b54;
  --text-cmd: #e8e8ee;
  --text-sub: #b4b4bd;
  --text-path: #84848e;
  --text-ok: #3ecf8e;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --max-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  overflow-x: clip;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ============================================================
   SCROLL ANIMATION (useAnimateOnScroll hook contract)
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--border-deep);
}

.alt-bg {
  background-color: var(--bg-surface);
}

/* ============================================================
   NAVBAR — top rail of the instrument
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  background: rgba(8, 8, 10, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.25s;
}
.navbar.scrolled {
  background: rgba(8, 8, 10, 0.72);
}
.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  flex-shrink: 0;
}
.navbar-wordmark-arg {
  color: var(--text-primary);
}
.navbar-wordmark-us {
  color: var(--text-muted);
}
.navbar-links {
  display: flex;
  gap: 26px;
  margin: 0 auto;
}
.navbar-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.navbar-links a:hover {
  color: var(--text-primary);
}
.btn-nav {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  color: var(--text-sub);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 14px;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.btn-nav:hover {
  color: var(--text-primary);
  border-color: var(--text-dim);
}

/* ============================================================
   HERO — neural, centered (Synapse direction)
   Radial atmospheres: violet at top-center, cyan whisper at
   left-center. Massive serif, last word shimmers. Staggered
   entry; secondary link lands last at 1s.
   ============================================================ */
.hero {
  padding: 64px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 1020px;
  width: 100%;
  min-width: 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-sub);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: #fff;
}
/* last word of the headline */
.hero h1 .accent {
  font-style: italic;
  background: linear-gradient(
    110deg,
    var(--accent) 15%,
    #efeaff 38%,
    var(--accent-cyan) 60%,
    var(--accent) 85%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .accent {
    animation: shimmer 4s linear infinite;
  }
}
@keyframes shimmer {
  from {
    background-position: 250% 0;
  }
  to {
    background-position: -250% 0;
  }
}
.hero-sub {
  font-family: var(--font-sans);
  font-size: 18px;
  color: #a3a3a3;
  line-height: 1.65;
  max-width: 42rem;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  max-width: 620px;
  min-width: 0;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}
/* shiny-border primary button: rotating conic highlight on the border */
@property --btn-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.btn-primary {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    conic-gradient(
        from var(--btn-angle),
        rgba(139, 92, 246, 0.15),
        var(--accent) 18%,
        #e9e6ff 28%,
        var(--accent-cyan) 45%,
        rgba(139, 92, 246, 0.15) 70%
      )
      border-box;
  transition: color 0.2s;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary {
    animation: btn-spin 4s linear infinite;
  }
}
@keyframes btn-spin {
  to {
    --btn-angle: 360deg;
  }
}
.btn-primary:hover {
  color: var(--accent-soft);
}

/* the watchman himself — iris follows the cursor (WatchingEye component) */
.hero-eye {
  color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.35));
}
/* hero entry stagger — secondary link lands at 1s */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    opacity: 0;
    animation: hero-enter 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  }
  .hero-copy > :nth-child(1) {
    animation-delay: 0s;
  }
  .hero-copy > :nth-child(2) {
    animation-delay: 0.1s;
  }
  .hero-copy > :nth-child(3) {
    animation-delay: 0.2s;
  }
  .hero-copy > :nth-child(4) {
    animation-delay: 0.45s;
  }
  .hero-copy > :nth-child(5) {
    animation-delay: 0.7s;
  }
  .hero-copy .btn-secondary {
    opacity: 0;
    animation: hero-enter 0.8s cubic-bezier(0.23, 1, 0.32, 1) 1s forwards;
  }
}
@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-panel {
  margin-top: 56px;
  width: 100%;
  max-width: 860px;
  position: relative;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-panel {
    opacity: 0;
    animation: hero-enter 0.9s cubic-bezier(0.23, 1, 0.32, 1) 0.9s forwards;
  }
}
.btn-secondary {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: var(--text-sub);
  border: none;
  padding: 12px 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s;
}
.btn-secondary:hover {
  color: #fff;
}
.hero-snippet {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 10px 18px;
  width: 100%;
  max-width: 560px;
  min-width: 0;
}
.hero-snippet::before {
  content: '$';
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-ghost);
}
.hero-snippet code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-sub);
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.hero-snippet button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-dim);
  padding: 4px 9px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.hero-snippet button:hover,
.hero-snippet button.copied {
  border-color: var(--text-ok);
  color: var(--text-ok);
}

/* Live feed panel — the instrument's recording channel */
.terminal-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 24px 48px -24px var(--shadow);
  overflow: hidden;
  position: relative;
}
.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-deep);
  background: var(--bg-surface);
}
.terminal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.terminal-dot.red {
  background: var(--text-ghost);
}
.terminal-dot.amber {
  background: var(--text-ghost);
}
.terminal-dot.green {
  background: var(--text-ok);
}
@media (prefers-reduced-motion: no-preference) {
  .terminal-dot.green {
    animation: pulse 2.4s ease-in-out infinite;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-left: 6px;
}
.terminal-live {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-ok);
}
.terminal-body {
  padding: 18px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 2;
  min-height: 280px;
  background: var(--bg-inset);
}
.feed-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  white-space: nowrap;
  overflow: hidden;
}
.feed-row > * {
  flex-shrink: 0;
}
.t-time {
  color: var(--text-ghost);
  font-size: 11px;
}
.t-cmd {
  color: var(--text-cmd);
}
.t-sub {
  color: var(--text-sub);
}
.t-path {
  color: var(--text-path);
}
.t-ok {
  color: var(--text-ok);
}
.t-dim {
  color: var(--text-ghost);
}
.t-accent {
  color: var(--accent-soft);
}
.terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 1.1em;
  background: var(--text-sub);
  vertical-align: text-bottom;
}
@media (prefers-reduced-motion: no-preference) {
  .terminal-cursor {
    animation: blink 1.1s step-end infinite;
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* staggered row reveal on load — the recording starts */
@media (prefers-reduced-motion: no-preference) {
  .terminal-body .feed-row {
    opacity: 0;
    animation: feed-in 0.3s ease-out forwards;
  }
  .terminal-body .feed-row:nth-child(1) {
    animation-delay: 0.2s;
  }
  .terminal-body .feed-row:nth-child(2) {
    animation-delay: 0.5s;
  }
  .terminal-body .feed-row:nth-child(3) {
    animation-delay: 0.8s;
  }
  .terminal-body .feed-row:nth-child(4) {
    animation-delay: 1.1s;
  }
  .terminal-body .feed-row:nth-child(5) {
    animation-delay: 1.4s;
  }
  .terminal-body .feed-row:nth-child(6) {
    animation-delay: 1.9s;
  }
  .terminal-body .feed-row:nth-child(7) {
    animation-delay: 2.4s;
  }
  .terminal-body .feed-row:nth-child(8) {
    animation-delay: 2.9s;
  }
  .terminal-body .feed-row:nth-child(9) {
    animation-delay: 3.4s;
  }
  .terminal-body .feed-row:nth-child(10) {
    animation-delay: 3.8s;
  }
  .terminal-body .feed-row:nth-child(11) {
    animation-delay: 4.2s;
  }
}
@keyframes feed-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   SECTION HEADERS — panel etching
   ============================================================ */
.how-it-works {
  padding: 96px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-deep);
}
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}
.section-eyebrow::after {
  content: '';
  flex: 1;
  max-width: 160px;
  height: 1px;
  background: var(--border-deep);
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.005em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 48px;
}
.section-title .accent {
  font-style: italic;
  color: var(--accent-soft);
}

/* ============================================================
   HOW IT WORKS — signal chain
   ============================================================ */
.flow-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 152px;
  padding: 18px 10px;
}
.flow-icon-box {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-sub);
}
.flow-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}
.flow-desc {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}
.flow-arrow {
  align-self: center;
  flex-shrink: 0;
  color: var(--text-ghost);
}

/* ============================================================
   FEATURES — module cards
   ============================================================ */
.feature-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  background: var(--bg-card);
}

/* ============================================================
   QUICK INSTALL
   ============================================================ */
.quick-install {
  padding: 96px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-deep);
}
.quick-install-header {
  margin-bottom: 36px;
}
.quick-install-header p {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-muted);
  margin-top: -32px;
  max-width: 56ch;
}
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-deep);
  padding-bottom: 10px;
}
.tab-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 7px 14px;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s;
}
.tab-btn:hover {
  color: var(--text-primary);
}
.tab-btn.active {
  color: var(--text-primary);
  border-color: var(--border);
  background: var(--bg-card);
}
.code-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-inset);
  margin-top: 16px;
  overflow: hidden;
}
.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-deep);
  background: var(--bg-card);
}
.code-block-lang {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.code-copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 10px;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.code-copy-btn:hover,
.code-copy-btn.copied {
  color: var(--text-ok);
  border-color: var(--text-ok);
}
.code-block pre {
  padding: 18px 16px;
  overflow-x: auto;
}
.code-block code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
  white-space: pre;
}

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy {
  padding: 96px 0;
  border-top: 1px solid var(--border-deep);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border-deep);
  padding: 28px 0;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-ghost);
}

/* ============================================================
   PAGE HERO (sub-pages)
   ============================================================ */
.page-hero {
  padding: 80px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -16%;
  width: 700px;
  height: 700px;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0,
    transparent 47px,
    var(--border-deep) 47px,
    var(--border-deep) 48px
  );
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle at center, #000 0%, transparent 62%);
  opacity: 0.7;
  pointer-events: none;
}
.page-hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 56px);
  letter-spacing: -0.005em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 16px;
  position: relative;
}
.page-hero-sub {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-muted);
  max-width: 56ch;
  line-height: 1.65;
  margin-bottom: 0;
  position: relative;
}

/* ============================================================
   FEATURE ROWS (FeaturesPage)
   ============================================================ */
.feature-row-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.feature-row-inner.flip {
  direction: rtl;
}
.feature-row-inner.flip > * {
  direction: ltr;
}
.feature-row-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.feature-row-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  line-height: 1.2;
}
.feature-row-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}
.feature-row-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-row-bullets li {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-sub);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

/* ============================================================
   INSTALL PAGE
   ============================================================ */
.requirements-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
}
.req-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}
.req-item {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 6px;
}
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.install-step {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.install-step-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}
.install-step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-ghost);
  flex-shrink: 0;
}
.install-step-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}
.install-step-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 0;
}
.step-desc {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}
.step-desc code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sub);
  background: var(--bg-card);
  padding: 1px 6px;
  border: 1px solid var(--border-deep);
  border-radius: 4px;
}
.tab-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 6px 12px;
  border: 1px solid var(--border-deep);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: var(--bg-card);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.trouble-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.trouble-card {
  background: var(--bg-card);
  border: 1px solid var(--border-deep);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trouble-problem {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
}
.trouble-fix {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   TICKER — full-width infinite marquee
   ============================================================ */
.ticker {
  border-top: 1px solid var(--border-deep);
  border-bottom: 1px solid var(--border-deep);
  background: var(--bg-surface);
  overflow: hidden;
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
}
@media (prefers-reduced-motion: no-preference) {
  .ticker-track {
    animation: ticker-scroll 36s linear infinite;
  }
  .ticker:hover .ticker-track {
    animation-play-state: paused;
  }
}
@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.ticker-group {
  display: flex;
  flex-shrink: 0;
}
.ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 28px;
  white-space: nowrap;
  border-right: 1px solid var(--border-deep);
}
.ticker-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-soft);
}
.ticker-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ============================================================
   PILLARS — three duties, typography not cards
   ============================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.pillar {
  border-left: 1px solid var(--border-deep);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.pillar-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  color: var(--text-primary);
  line-height: 1.2;
}
.pillar-body {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}
.pillar-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
  margin-top: auto;
  transition: color 0.15s;
}
.pillar-link:hover {
  color: var(--text-primary);
}

/* ============================================================
   MYTH INTERLUDE — typography only, no imagery
   ============================================================ */
.myth {
  padding: 96px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-deep);
}
.myth-text {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 27px);
  line-height: 1.5;
  color: var(--text-primary);
  max-width: 30em;
}
.myth-footnote {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.myth-footnote code {
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-sub);
}

/* ============================================================
   SURFACE TOUR — scrollytelling: chapters scroll, panel pins
   ============================================================ */
.tour-stage {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: start;
}
.tour-chapter {
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 32px 0;
  border-top: 1px solid var(--border-deep);
  opacity: 0.35;
  transition: opacity 0.45s ease;
}
.tour-chapter.active {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .tour-chapter {
    opacity: 1;
    transition: none;
  }
}
.tour-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: var(--text-primary);
}
.tour-body {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}
.tour-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tour-bullets li {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-sub);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
/* pinned panel column */
.tour-sticky {
  position: sticky;
  top: calc(50vh - 220px);
}
.tour-panel-stack {
  position: relative;
  min-height: 440px;
}
.tour-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}
.tour-panel.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .tour-panel {
    transition: none;
    transform: none;
  }
}
/* inline per-chapter panel — mobile only */
.tour-chapter-panel {
  display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    padding: 72px 0 64px;
  }
  .hero-panel {
    margin-top: 40px;
  }
  .flow-row {
    flex-direction: column;
    align-items: center;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
  .feature-row-inner {
    grid-template-columns: 1fr;
  }
  .feature-row-inner.flip {
    direction: ltr;
  }
  .trouble-grid {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .tour-stage {
    grid-template-columns: 1fr;
  }
  .tour-sticky {
    display: none;
  }
  .tour-chapter {
    min-height: 0;
    opacity: 1;
  }
  .tour-chapter-panel {
    display: block;
    margin-top: 18px;
  }
}

/* ============================================================
   SCROLL-DRIVEN REVEAL (progressive enhancement)
   IO fallback keeps .animate-on-scroll contract untouched
   ============================================================ */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pillar {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}
@keyframes rise {
  from {
    opacity: 0.2;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   WHY — numbered problems, one thesis
   ============================================================ */
.why {
  background: var(--bg-surface);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 8px;
}
.why-problems {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.why-problems li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--border-deep);
}
.why-problems li:last-child {
  border-bottom: 1px solid var(--border-deep);
}
.why-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-ghost);
  flex-shrink: 0;
}
.why-text {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}
.why-thesis {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.35;
  color: var(--text-primary);
}
.why-thesis .accent {
  font-style: italic;
  color: var(--accent-soft);
}

/* ============================================================
   FOOTER — multi-column
   ============================================================ */
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 28px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-tag {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-dim);
  max-width: 24ch;
  line-height: 1.6;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-head {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-ghost);
  margin-bottom: 4px;
}
.footer-col a {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   RESPONSIVE — tablet and phone
   ============================================================ */
@media (max-width: 900px) {
  .section,
  .how-it-works,
  .quick-install,
  .privacy,
  .features,
  .myth,
  .why {
    padding: 64px 0;
  }
  .section-title {
    margin-bottom: 32px;
  }
}

@media (max-width: 720px) {
  /* nav: keep logo + GitHub, drop center links (anchors live in footer) */
  .navbar-links {
    display: none;
  }
  .navbar-inner {
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .container,
  .navbar-inner,
  .hero-inner,
  .footer-grid,
  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }
  .hero {
    padding: 48px 0 56px;
  }
  .hero-copy {
    gap: 18px;
  }
  .hero-eye {
    width: 56px;
    height: 56px;
  }
  .hero-badge {
    font-size: 9px;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }
  .hero-badge-extra {
    display: none;
  }
  .hero-sub {
    font-size: 15.5px;
  }
  .hero-ctas {
    width: 100%;
    flex-direction: column;
    gap: 6px;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-snippet {
    width: 100%;
    border-radius: 12px;
  }
  .hero-panel {
    margin-top: 32px;
  }
  .terminal-body {
    font-size: 11px;
    padding: 14px 12px;
    overflow-x: auto;
  }
  .pillar {
    padding-left: 18px;
  }
  .pillar-title {
    font-size: 25px;
  }
  .tour-title {
    font-size: 25px;
  }
  .myth-text {
    font-size: 24px;
    line-height: 1.45;
  }
  .tabs {
    flex-wrap: wrap;
    gap: 6px;
  }
  .code-block code {
    font-size: 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 40px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .why-thesis {
    font-size: 24px;
  }
  .install-step-header {
    flex-wrap: wrap;
  }
  .requirements-bar {
    gap: 12px;
  }
  .feature-row-bullets li,
  .tour-bullets li {
    font-size: 13.5px;
  }
}
