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

:root {
  /* Matcha Latte — Chromaverse */
  --yellow: #65A30D;
  --yellow-bright: #D9F99D;
  --yellow-png: #A3E635;
  --yellow-hover: #84CC16;
  --yellow-rgb: 101, 163, 13;
  --yellow-deep-rgb: 26, 29, 19;
  --accent-light: #84CC16;
  --accent-bright: #A3E635;
  --accent-pale: #D9F99D;
  --black: #0F110B;
  --black-soft: #1A1D13;
  --black-raised: #2D3220;
  --gray: #7A875A;
  --gray-muted: #5A6342;
  --gray-light: #C2DCA0;
  --white: #E8F5D8;
  --text-on-dark: #E8F5D8;
  --text-on-dark-muted: #C2DCA0;
  --text-on-yellow: #1A1D13;
  --text-on-yellow-muted: #6E7A52;
  --text-on-yellow-subtle: #9CB074;
  --border-dark: rgba(101, 163, 13, 0.14);
  --border-panel: rgba(101, 163, 13, 0.22);
  --border-yellow: rgba(101, 163, 13, 0.16);
  --accent-line: rgba(var(--yellow-rgb), 0.28);
  --radius-panel: 8px;
  --radius-box: 6px;
  --font-display: 'Lexend', system-ui, sans-serif;
  --font-brand: 'Lexend', system-ui, sans-serif;
  --font-body: 'Quicksand', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --nav-height: 80px;
  --hero-ticker-h: 3.5rem;
  --page-max: 1280px;
  --section-pad-y: clamp(5rem, 10vw, 8.5rem);
  --section-pad-x: clamp(1.75rem, 5vw, 3.5rem);
  --phi: 0.618;
  --terminal-stage: min(var(--page-max), calc(100vw - 2 * var(--section-pad-x)));
  --terminal-phi-width: calc(var(--terminal-stage) * var(--phi));
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1rem);
}

body {
  font-family: var(--font-body);
  background: var(--black-soft);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

.btn,
.platform-card,
.channel-item {
  touch-action: manipulation;
}

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

#install,
#channels,
#commands,
#features,
#faq,
#demo {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 300;
  padding: 0.75rem 1.25rem;
  background: var(--black);
  color: var(--accent-bright);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 250;
  background: rgba(var(--yellow-rgb), 0.15);
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

.scroll-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-light);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.nav--light :focus-visible,
.hero :focus-visible {
  outline-color: var(--black);
}

/* Scroll driver */
.scroll-spacer {
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 50;
  will-change: transform;
  overflow: hidden;
}

.overlay.is-revealed {
  pointer-events: none;
}

.overlay-bg {
  position: absolute;
  inset: -5% 0;
  background-color: #84CC16;
  background-image:
    radial-gradient(ellipse 80% 70% at 30% 50%, rgba(101, 163, 13, 0.6) 0%, transparent 60%),
    linear-gradient(160deg, rgba(15, 17, 11, 0.08) 0%, transparent 50%);
  will-change: transform;
}

.overlay-bg.is-shader-active {
  background-color: #FFFFFF;
  background-image: none;
}

.overlay-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.overlay-edge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Nav */
.nav {
  position: fixed;
  top: var(--hero-ticker-h);
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding-top: 0;
  padding-bottom: 0;
  padding-left: max(var(--section-pad-x), env(safe-area-inset-left));
  padding-right: max(var(--section-pad-x), env(safe-area-inset-right));
  transition: background 0.35s ease, backdrop-filter 0.35s ease, color 0.35s ease;
}

.nav--light {
  color: var(--black);
  background: transparent;
}

.nav--light .nav-links a {
  color: rgba(26, 29, 19, 0.52);
}

.nav--light .nav-links a:hover,
.nav--light .nav-links a.is-active {
  color: var(--black);
}

.nav--dark {
  color: var(--white);
  background: rgba(26, 29, 19, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

.nav--dark .nav-links a {
  color: rgba(255, 255, 255, 0.55);
}

.nav--dark .nav-links a:hover,
.nav--dark .nav-links a.is-active {
  color: var(--accent-bright);
}

.nav--yellow,
.nav--cream {
  color: var(--text-on-yellow);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-yellow);
}

.nav--yellow {
  background: rgba(var(--yellow-rgb), 0.94);
}

.nav--cream {
  background: rgba(217, 249, 157, 0.94);
}

.nav--yellow .nav-links a,
.nav--cream .nav-links a {
  color: rgba(26, 29, 19, 0.55);
}

.nav--yellow .nav-links a:hover,
.nav--cream .nav-links a:hover,
.nav--yellow .nav-links a.is-active,
.nav--cream .nav-links a.is-active {
  color: var(--black);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.25s ease;
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-logo-text {
  font-family: var(--font-brand);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-logo-sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--gray);
  margin-left: 0.125rem;
}

.nav--light .nav-logo-sub {
  color: rgba(26, 29, 19, 0.45);
}

.nav--yellow .nav-logo-sub,
.nav--cream .nav-logo-sub {
  color: rgba(26, 29, 19, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.25s ease, left 0.25s ease;
  opacity: 0.85;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
  left: 0;
}

/* Hero */
.hero {
  position: relative;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 2;
  overflow: visible;
}

.hero-layout {
  width: 100%;
  margin: 0 auto;
}

.hero-layout--centered {
  --hero-terminal-stage: calc(100vw - 2 * var(--section-pad-x));
  --hero-terminal-width: calc(var(--hero-terminal-stage) * var(--phi));
  --hero-terminal-peek: 0.52;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 6vh, 4rem);
  height: 100%;
  min-height: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding:
    calc(var(--nav-height) + clamp(2rem, 5vh, 3.5rem))
    max(var(--section-pad-x), env(safe-area-inset-right))
    clamp(1.5rem, 4vh, 2.75rem)
    max(var(--section-pad-x), env(safe-area-inset-left));
}

.hero-subgrid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  width: 100%;
  flex: 1 1 auto;
}

.hero-intro {
  width: calc(46% - clamp(1.25rem, 3vw, 2.25rem));
  flex: 0 0 calc(46% - clamp(1.25rem, 3vw, 2.25rem));
  text-align: left;
  color: var(--black);
  animation: hero-enter 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-terminal-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: calc(54% - clamp(1.25rem, 3vw, 2.25rem));
  flex: 0 0 calc(54% - clamp(1.25rem, 3vw, 2.25rem));
  max-width: 100%;
  align-self: center;
  animation: hero-enter 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-terminal {
  position: relative;
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  aspect-ratio: 16 / 12;
  height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.hero-terminal .mac-terminal {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.hero-terminal .mac-terminal-toolbar {
  flex-shrink: 0;
}

.hero-terminal .mac-terminal-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-terminal .mac-terminal .terminal-session {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: auto;
  scroll-behavior: auto;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 0 0 0.75rem;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.hero-headline em {
  font-style: normal;
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--black);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

.hero-eyebrow,
.hero-headline,
.hero-subline,
.hero-trust {
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.6vw, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(26, 29, 19, 0.62);
  margin: 0 0 0.875rem;
}

.hero-subline {
  font-family: var(--font-mono);
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(26, 29, 19, 0.82);
  margin: 0 0 1.75rem;
  max-width: 34rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.625rem;
  margin-bottom: 1rem;
  max-width: 34rem;
}

.hero-github-btn {
  align-self: flex-start;
  padding: 0.6875rem 1.125rem;
  font-size: 0.8125rem;
}

.hero-layout--centered .hero-github-btn {
  align-self: center;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(26, 29, 19, 0.58);
}

.hero-trust a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.hero-trust a:hover {
  color: var(--black);
}

.hero-trust-sep {
  opacity: 0.45;
}

.hero-command-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 34rem;
  min-width: 0;
  margin-bottom: 0;
  padding: 1.0625rem 1.0625rem 1.0625rem 1.5rem;
  background: var(--black);
  border: 1px solid rgba(26, 29, 19, 0.45);
  border-radius: 8px;
  box-shadow:
    0 20px 40px rgba(15, 17, 11, 0.3),
    0 0 0 1px rgba(217, 249, 157, 0.12);
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-command-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 48px rgba(15, 17, 11, 0.35),
    0 0 0 1px rgba(217, 249, 157, 0.2);
}

.hero-demo-cta {
  margin: 0 0 0.25rem;
}

.hero-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(26, 29, 19, 0.62);
  text-decoration: none;
  transition: color 0.2s;
}

.hero-demo-link:hover {
  color: var(--black);
}

.hero-demo-link .ui-icon {
  color: rgba(26, 29, 19, 0.5);
}

.hero-demo-link:hover .ui-icon {
  color: var(--black);
}

.hero-command-text {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.9375rem, 1.5vw, 1.1875rem);
  font-weight: 600;
  color: var(--accent-pale);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-command-text::before {
  content: "$ ";
  color: var(--accent-bright);
  opacity: 0.8;
  margin-right: 0.5rem;
  user-select: none;
}

.copy-btn-hero {
  background: rgba(217, 249, 157, 0.1);
  border-color: rgba(217, 249, 157, 0.22);
  color: var(--accent-pale);
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  border-radius: 6px;
}

.copy-btn-hero:hover {
  background: rgba(217, 249, 157, 0.18);
  color: var(--white);
}

.hero-terminal.is-highlighted .mac-terminal {
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.14),
    0 28px 80px rgba(0, 0, 0, 0.52),
    0 0 0 2px rgba(132, 204, 22, 0.28);
  transition: box-shadow 0.35s ease;
}

/* Hero ticker — dark band slicing across the swirl */
.hero-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hero-ticker-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
  border-bottom: 1px solid rgba(217, 249, 157, 0.16);
  box-shadow: 0 16px 48px rgba(15, 17, 11, 0.28);
  z-index: 300;
}

.hero-ticker-track {
  display: flex;
  width: max-content;
  animation: hero-ticker-scroll 38s linear infinite;
}

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

@keyframes hero-ticker-scroll {
  to { transform: translateX(-50%); }
}

.hero-ticker-group {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  padding-right: 2.75rem;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 245, 216, 0.66);
}

.hero-ticker-item--cmd {
  color: var(--accent-bright);
}

.hero-ticker-sep {
  color: var(--yellow);
  font-size: 0.625rem;
  opacity: 0.85;
}

/* Shared stroke icon pack */
.ui-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.ui-icon--sm {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-1px);
  }
}

.btn-dark {
  background: var(--black);
  color: var(--yellow-bright);
}

.btn-dark:hover {
  background: var(--black-soft);
}

.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border: 2px solid rgba(26, 29, 19, 0.25);
}

.btn-outline-dark:hover {
  border-color: var(--black);
  background: rgba(26, 29, 19, 0.06);
}

.btn-hero-primary {
  background: var(--black);
  color: var(--yellow-bright);
  border-radius: 2px;
  padding: 0.9375rem 1.625rem;
  font-size: 0.875rem;
}

.btn-hero-primary:hover {
  background: var(--black-soft);
}

.btn-hero-outline {
  background: rgba(26, 29, 19, 0.04);
  color: var(--black);
  border: 1px solid rgba(26, 29, 19, 0.22);
  border-radius: 2px;
  padding: 1rem 1.75rem;
  font-size: 0.9375rem;
}

.btn-hero-outline:hover {
  border-color: var(--black);
  background: rgba(26, 29, 19, 0.08);
}

.btn-mono {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--accent-light);
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--yellow);
  color: var(--text-on-yellow);
  border: 1px solid var(--yellow);
  border-radius: 2px;
}

.btn-discord:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.btn-discord-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-light);
  border: 1px solid var(--border-dark);
  border-radius: 2px;
  background: transparent;
  transition: border-color 0.2s, color 0.2s;
}

.btn-discord-ghost:hover {
  border-color: rgba(var(--yellow-rgb), 0.35);
  color: var(--accent-bright);
}

.btn-lg {
  padding: 1.125rem 2.375rem;
  font-size: 0.9375rem;
}

/* Reveal on scroll */
.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Under page */
.under-page {
  position: relative;
  z-index: 10;
  background: var(--black-soft);
}

/* Install */
.install {
  padding: var(--section-pad-y) var(--section-pad-x) calc(var(--section-pad-y) + 1rem);
  position: relative;
}

.install::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--page-max), 100%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}

.install-inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

.install-header,
.channels-header {
  text-align: left;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.install-header .section-title,
.channels-header .section-title {
  max-width: 800px;
  margin-left: 0;
  margin-right: 0;
}

.install-header .section-desc,
.channels-header .section-desc {
  max-width: 680px;
  margin-left: 0;
  margin-right: 0;
}

.install-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 100%;
}

.install-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding: 0;
  list-style: none;
}

.install-stepper-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  background: var(--black-raised);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-panel);
  color: var(--gray-muted);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.install-stepper-item.is-current {
  border-color: rgba(101, 163, 13, 0.35);
  background: rgba(101, 163, 13, 0.08);
  color: var(--gray-light);
}

.install-stepper-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50%;
  background: rgba(101, 163, 13, 0.12);
  color: var(--accent-bright);
}

.install-stepper-item.is-current .install-stepper-num {
  background: var(--yellow);
  color: var(--black);
}

.install-stepper-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 3.5rem);
}

.install-step {
  padding-top: 0.25rem;
  border-top: 1px solid var(--border-dark);
}

.install-step:first-child {
  border-top: none;
  padding-top: 0;
}

.install-step-head {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.install-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  color: var(--accent-bright);
  background: rgba(101, 163, 13, 0.1);
  border: 1px solid rgba(101, 163, 13, 0.22);
  border-radius: var(--radius-box);
}

.install-step-icon .ui-icon {
  width: 22px;
  height: 22px;
}

.install-step-num {
  display: none;
}

.install-step-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.375rem;
}

.install-step-desc {
  font-size: 1rem;
  color: var(--text-on-dark-muted);
  line-height: 1.55;
  max-width: 52ch;
}

.install-step-desc a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.install-step-desc a:hover {
  color: var(--accent-pale);
}

.install-step-note {
  font-size: 0.9375rem;
  color: var(--gray-muted);
  line-height: 1.55;
  max-width: 60ch;
}

.terminal-body--stacked {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.terminal-body--stacked .command-panel {
  border-bottom: 1px solid var(--border-dark);
}

.terminal-body--stacked .command-panel:last-child {
  border-bottom: none;
}

.install-group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding: 0 0.125rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-muted);
}

.install-group-label span:first-child {
  color: var(--gray-light);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

.section-label--dark,
.features .section-label {
  color: var(--text-on-yellow-subtle);
}

.section-title--channels {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.625rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.125rem;
  max-width: 640px;
  padding-bottom: 0.05em;
  overflow: visible;
}

.section-desc {
  font-size: 1.1875rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 3.25rem;
  max-width: 560px;
  line-height: 1.55;
}

/* Rigid panels */
.panel {
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-panel);
  background: var(--black-soft);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8125rem 1.125rem;
  background: var(--black-raised);
  border-bottom: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.panel-header-label {
  color: var(--gray-light);
}

.panel-header-meta {
  color: var(--gray-muted);
}

.panel-header-meta--live {
  color: var(--accent-bright);
}

.panel-header-meta--live::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.375rem;
  border-radius: 50%;
  background: var(--yellow);
  vertical-align: middle;
}

.panel-body {
  padding: 1.25rem;
}

.panel-body--flush {
  padding: 0;
}

.panel-body--compact {
  padding: 0.875rem;
}

.panel-body--center {
  padding: 2.5rem 2rem;
  text-align: center;
}

.panel-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  border-top: 1px solid var(--border-dark);
  background: var(--black-raised);
}

.panel--on-yellow {
  background: rgba(10, 9, 8, 0.04);
  border-color: rgba(10, 9, 8, 0.16);
}

.panel--on-yellow .panel-body {
  background: rgba(163, 230, 53, 0.14);
}

.panel-header--yellow {
  background: rgba(10, 9, 8, 0.06);
  border-bottom-color: var(--border-yellow);
  color: var(--text-on-yellow-subtle);
}

.panel-header--yellow .panel-header-label {
  color: var(--text-on-yellow-muted);
}

.panel-header--yellow .panel-header-meta {
  color: var(--text-on-yellow-subtle);
}

.panel--features {
  max-width: var(--page-max);
  margin: 0 auto;
}

.panel--features .feature-grid {
  border: none;
  margin: 0;
}

.platform-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.375rem;
  background: transparent;
  border: 1px solid rgba(163, 230, 53, 0.14);
  border-radius: var(--radius-panel);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.platform-card:hover {
  background: rgba(101, 163, 13, 0.08);
  border-color: rgba(163, 230, 53, 0.28);
}

.platform-card.active {
  background: rgba(101, 163, 13, 0.08);
  border-color: rgba(var(--yellow-rgb), 0.35);
}

.platform-card:focus-visible {
  border-color: var(--yellow);
}

.platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  color: var(--gray-light);
  flex-shrink: 0;
}

.platform-icon .ui-icon {
  width: 28px;
  height: 28px;
}

.platform-card.active .platform-icon {
  color: var(--accent-bright);
}

.platform-card-main {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.platform-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--gray);
  margin-bottom: 0;
}

.platform-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.125rem;
  line-height: 1.2;
}

.platform-select {
  display: inline-block;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.375rem 0.625rem;
  background: transparent;
  border: 1px solid rgba(163, 230, 53, 0.2);
  border-radius: 2px;
  color: var(--gray-light);
}

.platform-card.active .platform-select {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

@media (min-width: 900px) {
  .platform-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .platform-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.375rem 1.5rem;
    min-height: 100%;
  }

  .platform-card-main {
    width: 100%;
    margin-bottom: 1rem;
  }

  .platform-select {
    margin-top: auto;
  }

  .platform-card h3 {
    font-size: 1.25rem;
  }
}

/* Terminal */
.terminal-block {
  background: var(--black-raised);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-panel);
  overflow: hidden;
  margin-bottom: 0;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.875rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(163, 230, 53, 0.1);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(163, 230, 53, 0.22);
}

.terminal-dot:first-child { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-label {
  margin-left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.terminal-body {
  position: relative;
  min-height: 80px;
  overflow-x: auto;
}

.command-panel {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.625rem 1.5rem;
}

.command-panel.active {
  display: flex;
}

.command-line {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.prompt {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.9375rem;
  color: var(--gray);
  flex-shrink: 0;
  user-select: none;
}

.install-command {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: clamp(0.875rem, 2.2vw, 1.0625rem);
  color: var(--accent-bright);
  word-break: break-word;
}

.copy-btn {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: rgba(101, 163, 13, 0.12);
  border: 1px solid rgba(163, 230, 53, 0.2);
  border-radius: var(--radius-box);
  color: var(--gray-light);
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: rgba(101, 163, 13, 0.22);
  color: var(--accent-pale);
}

.copy-btn.copied {
  background: rgba(40, 200, 64, 0.15);
  border-color: rgba(40, 200, 64, 0.3);
  color: #28c840;
}

.gh-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.375rem 1.5rem;
  background: var(--black-soft);
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-panel);
  overflow-x: auto;
}

.gh-command code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.875rem;
  color: var(--gray-light);
  word-break: break-word;
}

.copy-btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

/* Mac Terminal (hero) */
.mac-terminal {
  --mac-bg: #1b1b1b;
  --mac-toolbar: #2d2d2d;
  --mac-text: #f5f5f7;
  --mac-dim: #8e8e93;
  --mac-prompt: #ebebf0;
  --mac-accent: #64d2ff;
  --mac-brand: #84CC16;
  --mac-ok: #30d158;
  --mac-fail: #ff453a;
  background: var(--mac-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.1),
    0 22px 70px rgba(0, 0, 0, 0.48);
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'JetBrains Mono', 'Fira Code', monospace;
  -webkit-font-smoothing: antialiased;
}

.mac-terminal-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  background: linear-gradient(180deg, #3a3a3c 0%, var(--mac-toolbar) 100%);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.55);
}

.mac-terminal-traffic {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mac-traffic {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0.5px solid rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}

.mac-traffic--close { background: #ff5f57; }
.mac-traffic--min { background: #febc2e; }
.mac-traffic--zoom { background: #28c840; }

.mac-terminal-title {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(235, 235, 245, 0.72);
  text-align: center;
  white-space: nowrap;
}

.mac-terminal-toolbar-spacer {
  width: 52px;
}

.mac-terminal-body {
  background: var(--mac-bg);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.mac-terminal .terminal-session {
  padding: 0.875rem 1rem 1rem;
  font-family: inherit;
  font-size: clamp(0.6875rem, 1.35vw, 0.75rem);
  line-height: 1.45;
  color: var(--mac-text);
  background: var(--mac-bg);
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.hero-terminal .mac-terminal .terminal-session {
  max-height: none;
}

.mac-terminal .terminal-session::-webkit-scrollbar {
  width: 8px;
}

.mac-terminal .terminal-session::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.mac-terminal .t-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--mac-text);
  animation: blink 1s step-end infinite;
}

.mac-terminal.is-typing .terminal-session {
  scroll-behavior: auto;
}

.mac-terminal .t-prompt,
.mac-terminal .t-cmd {
  color: var(--mac-prompt);
}

.mac-terminal .t-brand { color: var(--mac-brand); }
.mac-terminal .t-accent { color: var(--mac-accent); }
.mac-terminal .t-dim { color: var(--mac-dim); }
.mac-terminal .t-faint { color: #636366; }
.mac-terminal .t-ok { color: var(--mac-ok); }
.mac-terminal .t-fail { color: var(--mac-fail); }

.mac-terminal .t-box {
  margin: 0.875rem 0;
  padding: 0.625rem 0.75rem;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}

.mac-terminal .t-prose {
  color: rgba(245, 245, 247, 0.88);
}

.mac-terminal .t-prose code,
.mac-terminal .t-elbow code {
  color: var(--mac-accent);
  background: rgba(100, 210, 255, 0.08);
  border-radius: 3px;
}

/* Hero + session terminal */
.terminal-block--hero {
  margin-bottom: 0;
}

.terminal-block--session {
  margin-bottom: 0;
}

.terminal-session {
  padding: 1.125rem 1.125rem 1.25rem;
  font-family: var(--font-mono);
  font-size: clamp(0.6875rem, 1.4vw, 0.8125rem);
  line-height: 1.5;
  color: var(--gray-light);
  overflow-x: auto;
  max-height: min(calc(100vh - var(--nav-height) - 7rem), 520px);
  overflow-y: auto;
}

.hero-terminal .terminal-session {
  max-height: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(163, 230, 53, 0.35) transparent;
}

.terminal-session::-webkit-scrollbar {
  width: 6px;
}

.terminal-session::-webkit-scrollbar-thumb {
  background: rgba(163, 230, 53, 0.35);
  border-radius: 999px;
}

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

.terminal-session .t-line + .t-line {
  margin-top: 0.125rem;
}

.terminal-session .t-box {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(46, 125, 70, 0.55);
  border-radius: var(--radius-box);
  background: rgba(15, 17, 11, 0.35);
}

.terminal-session .t-box-line + .t-box-line {
  margin-top: 0.25rem;
}

.terminal-session .t-cmd {
  margin-bottom: 0.75rem;
  color: var(--text-on-dark);
}

.terminal-session .t-prompt {
  color: var(--gray);
  user-select: none;
}

.terminal-session .t-brand { color: #84CC16; }
.terminal-session .t-accent { color: #5eead4; }
.terminal-session .t-dim { color: #7A875A; }
.terminal-session .t-faint { color: #5A6342; }
.terminal-session .t-ok { color: #84CC16; }
.terminal-session .t-fail { color: #f87171; }
.terminal-session .t-warn { color: #facc15; }
.terminal-session .t-bold { font-weight: 600; }

.terminal-session .t-card {
  margin-top: 1rem;
  color: var(--text-on-dark);
}

.terminal-session .t-card:first-of-type {
  margin-top: 0.5rem;
}

.terminal-session .t-elbow {
  padding-left: 0.125rem;
}

.terminal-session .t-indent {
  padding-left: 0.5rem;
}

.terminal-session .t-reason {
  padding-left: 0.5rem;
  font-size: 0.92em;
}

.terminal-session .t-prose {
  margin: 0.625rem 0 0.125rem;
  font-family: var(--font-body);
  font-size: 0.9em;
  line-height: 1.55;
  color: var(--text-on-dark-muted);
  max-width: none;
}

.terminal-session .t-prose code,
.terminal-session .t-elbow code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: #5eead4;
  background: rgba(101, 163, 13, 0.1);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.terminal-session .t-confirm {
  padding-left: 0.5rem;
  margin: 0.375rem 0 0.25rem;
  color: var(--text-on-dark);
}

.terminal-session .t-verify {
  margin-top: 1.25rem;
  color: var(--text-on-dark);
}

/* Channels */
.shader-banner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(400px, 52vw, 720px);
  overflow: hidden;
  background: var(--yellow);
  margin-top: -4px;
}

.shader-banner-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.shader-banner--fallback {
  background-color: rgb(101, 163, 13);
  background-image:
    linear-gradient(var(--black) 20px, transparent 20px),
    linear-gradient(90deg, var(--black) 20px, transparent 20px);
  background-size: 24px 24px;
  background-position: 0 0;
}

.channels {
  padding: var(--section-pad-y) var(--section-pad-x);
}

.channels-inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

.section-desc--channels {
  margin-bottom: 0;
}

.channels-body {
  margin-bottom: 2rem;
}

.channels-group-label {
  max-width: 100%;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  max-width: 100%;
  margin: 0 0 2rem;
}

@media (min-width: 768px) {
  .channel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .channel-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.875rem;
  }
}

.channel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.625rem;
  padding: 1.25rem 1rem;
  min-height: 5.5rem;
  background: transparent;
  border: 1px solid rgba(163, 230, 53, 0.14);
  border-radius: var(--radius-panel);
  transition: border-color 0.2s, background 0.2s;
}

.channel-item:hover,
.channel-item--link:hover {
  background: rgba(101, 163, 13, 0.08);
  border-color: rgba(163, 230, 53, 0.28);
}

.channel-item--link {
  text-decoration: none;
  color: inherit;
}

.channel-item--link:hover .channel-icon,
.channel-item--link:hover .channel-name {
  color: var(--accent-bright);
}

.channel-icon {
  color: var(--gray-light);
  transition: color 0.2s;
}

.channel-item:hover .channel-icon {
  color: var(--accent-bright);
}

.channel-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color 0.2s;
}

.channel-item:hover .channel-name {
  color: var(--white);
}

.channels-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.channels-note {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--gray);
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.channels-note a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.channels-note a:hover {
  color: var(--yellow-bright);
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent-bright);
}

.inline-code--hero {
  color: var(--text-on-yellow);
  background: rgba(26, 29, 19, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* Features Brain Integration */
.features-brain {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: var(--page-max);
  width: 100%;
  margin: clamp(3.5rem, 8vw, 5.5rem) auto 0;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--border-yellow);
}

@media (min-width: 900px) {
  .features-brain {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.features-brain-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
}

.brain-merge-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-yellow-muted);
  margin-bottom: 1rem;
}

.features-brain-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  padding-bottom: 0.04em;
  overflow: visible;
}

.features-brain-desc {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text-on-yellow-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.features-brain-desc a {
  color: var(--text-on-yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.features-brain .inline-code {
  color: var(--text-on-yellow);
  background: rgba(26, 29, 19, 0.06);
  padding: 0.125rem 0.25rem;
  border-radius: var(--radius-box);
}

.features-brain-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.brain-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem 1.125rem;
  background: rgba(10, 9, 8, 0.04);
  border: 1px solid rgba(10, 9, 8, 0.12);
  border-radius: var(--radius-panel);
}

.brain-meta-item .meta-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-yellow-subtle);
}

.brain-meta-item .meta-value {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-on-yellow);
}

.features-brain-models {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
}

.models-title {
  font-family: var(--font-brand);
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.models-desc {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-on-yellow-muted);
  margin-bottom: 1.5rem;
}

.models-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.model-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(10, 9, 8, 0.06);
  border: 1px solid rgba(10, 9, 8, 0.1);
  color: var(--text-on-yellow);
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-box);
}

.provider-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(10, 9, 8, 0.12);
  width: 100%;
}

.provider-logo {
  height: 22px;
  width: 22px;
  color: var(--text-on-yellow-muted);
  opacity: 0.7;
  transition: all 0.2s ease;
}

.provider-logo:hover {
  color: var(--text-on-yellow);
  opacity: 1;
  transform: scale(1.05);
}

/* Features */
.features {
  background: var(--yellow-bright);
  color: var(--text-on-yellow);
  padding: var(--section-pad-y) var(--section-pad-x);
}

.features-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  max-width: var(--page-max);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.features-header-main {
  flex: 1 1 280px;
  min-width: 0;
}

.features-title--header {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  padding-bottom: 0.05em;
  overflow: visible;
}

.features-header-aside {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-on-yellow-subtle);
  max-width: 320px;
  margin: 0;
  flex: 0 1 320px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: var(--page-max);
  margin: 0 auto;
  background: var(--border-yellow);
  border: 1px solid var(--border-yellow);
}

.feature-card {
  background: var(--yellow-bright);
  padding: 2.5rem 2.125rem;
  transition: background 0.2s;
}

.feature-card:hover {
  background: var(--yellow-hover);
}

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

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-on-yellow-subtle);
}

.feature-icon {
  color: rgba(26, 29, 19, 0.42);
  width: 28px;
  height: 28px;
}

.feature-card:hover .feature-icon {
  color: rgba(26, 29, 19, 0.62);
}

.feature-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-yellow-subtle);
  margin-bottom: 0.625rem;
}

.feature-headline {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 1rem;
  color: var(--text-on-yellow-muted);
  line-height: 1.55;
  margin: 0;
}

/* FAQ */
.faq {
  padding: var(--section-pad-y) var(--section-pad-x);
  border-top: 1px solid var(--border-dark);
  background: var(--black-soft);
}

.faq-inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

.faq-header {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.faq-header .section-title,
.faq-header .section-desc {
  max-width: 640px;
  margin-left: 0;
  margin-right: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-panel);
  background: var(--black-raised);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--accent-light);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border-dark);
}

.faq-item p {
  padding: 1rem 1.25rem 1.25rem;
  font-size: 1rem;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
  max-width: 68ch;
}

.faq-item a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-item a:hover {
  color: var(--accent-pale);
}

/* Footer */
.footer {
  position: relative;
  border-top: 1px solid var(--border-dark);
  background: var(--black);
  overflow-x: clip;
  overflow-y: visible;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(163, 230, 53, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 230, 53, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 55%, black, transparent);
  pointer-events: none;
}

.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.footer-scene {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:
    clamp(5rem, 12vh, 8rem)
    var(--section-pad-x)
    max(clamp(5rem, 12vh, 8rem), env(safe-area-inset-bottom));
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.25rem, 5vh, 3.25rem);
  width: var(--terminal-phi-width);
  max-width: 100%;
  text-align: center;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-muted);
}

.footer-hero {
  position: relative;
  display: block;
  width: 100%;
  text-align: center;
  padding: clamp(0.5rem, 3vw, 1.5rem) 0 clamp(2rem, 6vw, 3.5rem);
  overflow: visible;
}

.footer-watermark {
  position: absolute;
  font-family: var(--font-brand);
  font-size: clamp(6rem, 24vw, 16rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.035em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(163, 230, 53, 0.12);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.footer-headline {
  position: relative;
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-on-dark);
  overflow: visible;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-light);
  max-width: 28rem;
  margin: 0 auto;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.125rem;
  width: 100%;
}

.footer-actions .btn-mono {
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  margin-top: clamp(1.5rem, 3.5vh, 2.5rem);
  padding-top: clamp(2.25rem, 5vh, 3.5rem);
  border-top: 1px solid var(--border-dark);
  width: 100%;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: clamp(0.8125rem, 1.6vw, 0.9375rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s;
  padding-bottom: 4px;
}

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

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: clamp(2rem, 4vh, 3rem);
  padding-top: clamp(2rem, 4vh, 3rem);
  border-top: 1px solid var(--border-dark);
}

.footer-social a {
  color: var(--gray);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  color: var(--white);
}

.footer-copy {
  position: absolute;
  bottom: max(2rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--gray-muted);
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --nav-height: 72px;
    --hero-ticker-h: 3rem;
    --section-pad-y: clamp(3.5rem, 8vw, 5rem);
    --section-pad-x: 1.25rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .nav-links a[data-scroll-target="install"] {
    display: none;
  }

  .nav-logo-sub {
    display: none;
  }

  .overlay-bg {
    background-position: 70% center;
  }

  .hero-layout--centered {
    --hero-terminal-stage: min(92vw, calc(100vw - 2 * var(--section-pad-x)));
    --hero-terminal-width: var(--hero-terminal-stage);
    --hero-terminal-peek: 0.72;
    padding-top: calc(var(--nav-height) + clamp(1rem, 3vh, 1.75rem));
    padding-bottom: max(clamp(1rem, 3vh, 1.75rem), env(safe-area-inset-bottom));
    gap: clamp(1.375rem, 3.5vh, 1.75rem);
  }

  .hero-headline {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
    margin-bottom: 0.625rem;
  }

  .hero-eyebrow {
    margin-bottom: 0.75rem;
  }

  .hero-subline {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
  }

  .hero-ticker-group {
    font-size: 0.71875rem;
    gap: 2rem;
    padding-right: 2rem;
  }

  .hero-command-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
  }

  .hero-github-btn,
  .hero-layout--centered .hero-github-btn {
    align-self: stretch;
    text-align: center;
  }

  .hero-command-text {
    white-space: normal;
    text-align: left;
  }

  .copy-btn-hero {
    width: 100%;
    justify-content: center;
  }

  .install-stepper {
    grid-template-columns: 1fr;
  }

  .install-step-head {
    gap: 0.75rem;
  }





  .section-title {
    font-size: clamp(2.25rem, 9vw, 3.25rem);
    margin-bottom: 1rem;
  }

  .section-title--channels {
    font-size: clamp(2.125rem, 8.5vw, 3rem);
  }

  .section-desc {
    font-size: 1.0625rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
  }

  .install-header,
  .channels-header {
    margin-bottom: 2.25rem;
    text-align: center;
  }

  .install-header .section-title,
  .channels-header .section-title,
  .install-header .section-desc,
  .channels-header .section-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .install-stack {
    gap: 1.375rem;
  }

  .features-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.875rem;
    margin-bottom: 1.75rem;
  }

  .features-header-main {
    flex: 0 0 auto;
    width: 100%;
  }

  .features-header-aside {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
    text-align: center;
  }

  .features-title--header {
    margin-bottom: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .channel-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 0.5rem;
  }

  .channel-item {
    padding: 0.9375rem 1.125rem;
  }

  .channels-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.625rem;
  }

  .channels-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .platform-card {
    padding: 0.9375rem 1rem;
  }

  .footer-scene {
    min-height: auto;
    padding:
      clamp(4rem, 14vw, 6rem)
      var(--section-pad-x)
      max(clamp(4rem, 14vw, 6rem), env(safe-area-inset-bottom));
  }

  .footer-inner {
    gap: clamp(1.75rem, 5vh, 2.5rem);
  }

  .footer-headline {
    font-size: clamp(2.35rem, 10vw, 4rem);
  }

  .footer-watermark {
    font-size: clamp(4rem, 26vw, 9rem);
  }

  .footer-tagline {
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
  }

  .footer-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.625rem;
  }

  .footer-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .footer-links {
    gap: 0.875rem 1.25rem;
  }

  .footer-copy {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 2rem;
    white-space: normal;
    text-align: center;
    width: 100%;
    padding: 0;
  }

  .panel-body--center {
    padding: 2rem 1.25rem;
  }

  .command-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
    padding: 1.25rem 1.125rem;
  }

  .copy-btn {
    width: 100%;
    justify-content: center;
  }

  .gh-command {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
    padding: 1.125rem 1.125rem;
  }

  .js .reveal-on-scroll {
    transform: translateY(14px);
  }
}

@media (max-width: 1024px) {
  .hero-layout--centered {
    gap: clamp(1.5rem, 3vh, 2.5rem);
  }

  .hero-subgrid {
    flex-direction: column;
    justify-content: center;
    gap: clamp(1.5rem, 3vh, 2.5rem);
  }

  .hero-intro {
    width: 100%;
    flex: 0 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-headline {
    margin: 0 auto 0.75rem;
  }

  .hero-subline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-intro .hero-actions {
    width: 100%;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-terminal-group {
    width: var(--hero-terminal-width);
    flex: 0 0 auto;
  }

  .hero-terminal {
    height: calc(var(--hero-terminal-stage) * 10 / 16 * var(--hero-terminal-peek));
    aspect-ratio: auto;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-height: 700px) {
  :root {
    --hero-ticker-h: 2.75rem;
  }

  .hero-layout--centered {
    padding-top: calc(var(--nav-height) + 0.375rem);
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    gap: clamp(1rem, 2vh, 1.25rem);
  }

  .hero-headline {
    font-size: clamp(1.875rem, 7vw, 2.75rem);
    margin-bottom: 0.75rem;
  }

  .hero-eyebrow {
    margin-bottom: 0.5rem;
  }

  .hero-subline {
    margin-bottom: 1rem;
  }

  .hero-layout--centered {
    --hero-terminal-peek: 0.44;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-intro,
  .hero-terminal,
  .hero-ticker,
  .hero-ticker-track,
  .mac-terminal .t-cursor {
    animation: none;
  }

  .overlay,
  .overlay-bg {
    will-change: auto;
  }

  .js .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}