/* ============================================
   TETHER — Website Styles
   Dark mode, modern, professional
   ============================================ */

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

:root {
  --bg:          #080c14;
  --bg-alt:      #0b1018;
  --surface:     #0f1520;
  --surface-2:   #131d2a;
  --surface-3:   #182433;
  --border:      #1e2d40;
  --border-2:    #243650;

  --text:        #e2e8f4;
  --text-2:      #8ba0bc;
  --text-3:      #4d6480;

  --blue:        #00d4ff;
  --blue-dim:    rgba(0, 212, 255, 0.1);
  --blue-glow:   rgba(0, 212, 255, 0.25);
  --cyan:        #818cf8;
  --cyan-dim:    rgba(129, 140, 248, 0.12);
  --green:       #34d399;
  --green-dim:   rgba(52, 211, 153, 0.1);
  --purple:      #a78bfa;
  --purple-dim:  rgba(167, 139, 250, 0.1);
  --orange:      #fb923c;
  --orange-dim:  rgba(251, 146, 60, 0.1);
  --red:         #f87171;
  --red-dim:     rgba(248, 113, 113, 0.1);
  --yellow:      #fbbf24;

  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --nav-h: 60px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============ UTILITIES ============ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 60%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--cyan);
}

/* ============ NAV ============ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
}

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

.logo-icon { font-size: 20px; }
.logo-text { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-2);
}

.nav-links a {
  transition: color 0.2s;
}

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

.nav-github {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  color: var(--text-2) !important;
  font-size: 13px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.nav-github:hover {
  border-color: var(--blue);
  color: var(--text) !important;
  background: var(--blue-dim);
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.3), 0 2px 8px rgba(0,0,0,0.3);
}

.btn-primary:hover {
  background: #00b8e0;
  box-shadow: 0 0 36px rgba(0, 212, 255, 0.45), 0 4px 12px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-2);
  background: var(--surface);
  transform: translateY(-1px);
}

/* ============ SECTION COMMONS ============ */

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 18px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-2);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ============ HERO ============ */

.hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.35;
}

.hero-glow-1 {
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.35), transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-glow-2 {
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(129, 140, 248, 0.2), transparent 70%);
  top: 200px;
  right: -100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--surface);
  margin-bottom: 32px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 24px;
  position: relative;
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

/* ============ TERMINAL WINDOW ============ */

.terminal-window {
  position: relative;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 40px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(0, 212, 255, 0.08);
  text-align: left;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

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

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.terminal-body {
  min-height: 260px;
}

.terminal-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 260px;
}

.terminal-pane {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

.pane-work {
  border-right: 1px solid var(--border);
}

.pane-label {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pane-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
}

.tether-name {
  font-weight: 600;
  color: var(--text);
}

.mode-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.mode-assist {
  background: rgba(0, 212, 255, 0.2);
  color: var(--blue);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.watching {
  color: var(--text-3);
  font-size: 11px;
  margin-left: auto;
}

.terminal-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tline {
  color: var(--text-2);
}

.tline .prompt {
  color: var(--green);
  margin-right: 6px;
}

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

.cursor-blink {
  color: var(--green);
  animation: blink 1.1s step-end infinite;
}

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

.chat-you {
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-radius: 8px 8px 2px 8px;
  padding: 8px 12px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  margin-bottom: 10px;
  align-self: flex-end;
}

.chat-claude {
  font-family: var(--font-sans);
  font-size: 13px;
}

.claude-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.claude-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chat-ts {
  font-size: 10px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.chat-token-cost {
  font-size: 10px;
  color: var(--text-3);
  font-family: var(--font-mono);
  margin-top: 6px;
}

.chat-claude p {
  color: var(--text-2);
  margin-bottom: 10px;
}

.proposal-box {
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
}

.proposal-header {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  padding: 6px 12px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
}

.proposal-cmd {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.proposal-keys {
  padding: 6px 12px;
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.key {
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-2);
}

.tether-input {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  margin-top: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.input-prompt { color: var(--blue); }

/* ============ HOW IT WORKS ============ */

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.how-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.how-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-dim);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 18px;
}

.how-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.how-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
}

/* ============ MODES ============ */

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
  margin-bottom: 40px;
}

.mode-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s;
}

.mode-card:hover { transform: translateY(-2px); }

.mode-watch-card  { background: linear-gradient(145deg, var(--surface), var(--surface-2)); }
.mode-assist-card {
  background: linear-gradient(145deg, var(--surface), rgba(0, 212, 255, 0.06));
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.06);
}
.mode-act-card    { background: linear-gradient(145deg, var(--surface), var(--surface-2)); }

.mode-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.mode-pill {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.pill-watch  { background: var(--surface-3); color: var(--text-3); border: 1px solid var(--border-2); }
.pill-assist { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(0, 212, 255, 0.3); }
.pill-act    { background: var(--green-dim); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.3); }

.mode-recommended {
  font-size: 11px;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 2px 8px;
  border-radius: 100px;
}

.mode-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}

.mode-tagline {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 14px;
}

.mode-card > p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 20px;
}

.mode-can {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.can-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}

.can-item::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.can-yes::before {
  content: '✓';
  background: var(--green-dim);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--green);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.can-no::before {
  content: '✕';
  background: var(--red-dim);
  border: 1px solid rgba(248, 113, 113, 0.2);
  color: var(--red);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mode-switch-demo {
  max-width: 600px;
}

/* ============ HANDOFF CALLOUT ============ */

.handoff-callout {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
}

.handoff-callout-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) {
  .handoff-callout-inner { grid-template-columns: 1fr; }
}

.handoff-callout-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.handoff-callout-title {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 16px;
}

.handoff-callout-text p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

.handoff-callout-example {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.handoff-review-box {
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.handoff-review-header {
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  padding: 7px 12px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.03em;
}

.handoff-review-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-bottom: 1px solid var(--border);
}

.handoff-review-row {
  display: flex;
  gap: 10px;
}

.handoff-review-key {
  color: var(--text-3);
  width: 52px;
  flex-shrink: 0;
}

.handoff-review-val {
  color: var(--text-2);
}

/* ============ CODE BLOCKS ============ */

.code-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.code-block pre {
  padding: 18px 20px;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  line-height: 1.75;
}

.c-dim     { color: var(--text-3); }
.c-comment { color: var(--text-3); }

/* ============ FEATURES GRID ============ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.icon-blue   { background: var(--blue-dim); border: 1px solid rgba(0,212,255,0.2); color: var(--blue); }
.icon-cyan   { background: var(--cyan-dim); border: 1px solid rgba(34,211,238,0.2); color: var(--cyan); }
.icon-green  { background: var(--green-dim); border: 1px solid rgba(52,211,153,0.2); color: var(--green); }
.icon-purple { background: var(--purple-dim); border: 1px solid rgba(167,139,250,0.2); color: var(--purple); }
.icon-orange { background: var(--orange-dim); border: 1px solid rgba(251,146,60,0.2); color: var(--orange); }

.feature-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============ SECURITY ============ */

.security-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
  align-items: start;
}

@media (max-width: 720px) {
  .security-layout { grid-template-columns: 1fr; }
}

.security-rules {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-item {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.rule-deny    { border-left: 3px solid var(--red); background: var(--red-dim); }
.rule-protect { border-left: 3px solid var(--orange); background: var(--orange-dim); }
.rule-config  { border-left: 3px solid var(--blue); background: var(--blue-dim); }

.rule-session { border-left: 3px solid var(--green); background: var(--green-dim); }

.rule-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.rule-deny .rule-label    { color: var(--red); }
.rule-protect .rule-label { color: var(--orange); }
.rule-config .rule-label  { color: var(--blue); }
.rule-session .rule-label { color: var(--green); }

.rule-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
}

.flow-diagram {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.flow-node {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font-mono);
  text-align: center;
  min-width: 200px;
}

.flow-start    { background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); }
.flow-classify { background: var(--blue-dim); border: 1px solid rgba(0,212,255,0.3); color: var(--blue); }
.flow-block    { background: var(--red-dim); border: 1px solid rgba(248,113,113,0.3); color: var(--red); }
.flow-propose  { background: var(--orange-dim); border: 1px solid rgba(251,146,60,0.3); color: var(--orange); }
.flow-allow    { background: var(--green-dim); border: 1px solid rgba(52,211,153,0.3); color: var(--green); }

.flow-result-block   { background: var(--red-dim); border: 1px solid rgba(248,113,113,0.3); color: var(--red); font-weight: 600; }
.flow-result-propose { background: var(--orange-dim); border: 1px solid rgba(251,146,60,0.3); color: var(--orange); font-weight: 600; }
.flow-result-run     { background: var(--green-dim); border: 1px solid rgba(52,211,153,0.3); color: var(--green); font-weight: 600; }

.flow-arrow {
  font-size: 18px;
  color: var(--text-3);
}

.flow-branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.flow-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.flow-branch .flow-node {
  min-width: unset;
  width: 100%;
  font-size: 11px;
  padding: 6px 8px;
}

.privacy-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.privacy-note svg {
  flex-shrink: 0;
  color: var(--green);
  margin-top: 2px;
}

/* ============ INSTALL ============ */

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
  margin-bottom: 48px;
}

.install-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  align-items: start;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--blue-dim);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  font-family: var(--font-mono);
  flex-shrink: 0;
  margin-top: 6px;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.install-deps {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}

.dep-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 16px;
}

.deps-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.dep-item {
  flex: 1;
  min-width: 160px;
}

.dep-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  font-family: var(--font-mono);
}

.dep-desc {
  font-size: 13px;
  color: var(--text-3);
}

.dep-sep {
  color: var(--border-2);
  font-size: 20px;
}

.step-note {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 10px;
}

.dep-manual-link {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}

.dep-manual-link a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dep-manual-link a:hover { color: var(--cyan); }

.copy-btn {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-3);
  padding: 2px 10px;
  border-radius: 5px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-sans);
}

.copy-btn:hover {
  color: var(--text);
  border-color: var(--blue);
  background: var(--blue-dim);
}

.copy-btn.copied {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-dim);
}

/* ============ COMMANDS ============ */

.cmd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.cmd-group-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 14px;
}

.cmd-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cmd-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cmd-item code {
  display: block;
  padding: 6px 10px;
  background: var(--surface);
  border-color: var(--border);
  font-size: 12.5px;
  color: var(--cyan);
}

.cmd-item span {
  font-size: 12.5px;
  color: var(--text-3);
  padding-left: 2px;
}

/* ============ FOOTER ============ */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-left {
  max-width: 340px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-3);
  margin-top: 12px;
  margin-bottom: 16px;
  line-height: 1.55;
}

.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 9px;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  color: var(--text-3);
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
}

.footer-bottom a {
  color: var(--text-3);
  transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--text-2); }

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
  .terminal-split { grid-template-columns: 1fr; }
  .pane-work { border-right: none; border-bottom: 1px solid var(--border); }

  .nav-links a:not(.nav-github) { display: none; }

  .install-step {
    grid-template-columns: 32px 1fr;
    gap: 14px;
  }

  .step-num {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .footer-inner { flex-direction: column; }

  .flow-branches { grid-template-columns: 1fr; }

  .deps-row { flex-direction: column; }
  .dep-sep { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .btn { justify-content: center; }
  .modes-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ============ STAR BUTTON ============ */

.btn-star {
  background: transparent;
  color: var(--yellow);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 11px 18px;
  gap: 7px;
}

.btn-star:hover {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.6);
  transform: translateY(-1px);
}

.star-count {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--yellow);
  opacity: 0.8;
}

/* ============ COMPARE CALLOUT ============ */

.compare-callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 48px;
}

.compare-callout strong { color: var(--text); }
.compare-callout em { color: var(--cyan); font-style: normal; font-weight: 500; }

.compare-icon {
  flex-shrink: 0;
  color: var(--blue);
  margin-top: 2px;
}

/* ============ PRIVACY STRIP ============ */

.privacy-strip {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.04), rgba(129, 140, 248, 0.04));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}

.privacy-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.privacy-pillar {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.privacy-pillar svg {
  flex-shrink: 0;
  color: var(--green);
  margin-top: 2px;
}

.privacy-pillar strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.privacy-pillar span {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.55;
}

/* ============ KEYBINDINGS ============ */

.keybinds-block {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.keybinds-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 20px;
}

.keybinds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.kb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}

.kb-item span {
  color: var(--text-2);
}

kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============ FAQ ============ */

.faq-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.faq-q:hover { background: var(--surface-2); }
.faq-item.open .faq-q { color: var(--blue); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--blue); }

.faq-a {
  display: none;
  padding: 0 24px 20px;
}

.faq-item.open .faq-a { display: block; }

.faq-a p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

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

.faq-a a:hover { color: var(--cyan); }

/* ============ SMART CONTEXT PIPELINE ============ */

.context-pipeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin: 48px auto 0;
}

.pipeline-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
}

.pipeline-step-result {
  border-color: var(--blue);
  background: var(--blue-dim);
}

.pipeline-arrow {
  text-align: center;
  color: var(--text-3);
  font-size: 18px;
  line-height: 1;
  padding: 6px 0;
  margin-left: 32px;
}

.pipeline-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  margin-top: 2px;
}

.pipeline-num-result {
  background: var(--blue);
  color: #fff;
}

.pipeline-body { flex: 1; }

.pipeline-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.pipeline-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 10px;
}

.pipeline-stat {
  display: inline-block;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 4px;
  padding: 2px 8px;
}

.pipeline-stat-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pipeline-stat-item { text-align: center; }

.stat-val {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--text-2);
  line-height: 1.1;
}

.stat-label {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

.stat-arrow {
  font-size: 18px;
  color: var(--text-3);
}

.stat-item-good .stat-val  { color: var(--cyan); }
.stat-item-savings .stat-val { color: var(--green); }

.context-debug-note {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  margin: 20px auto 0;
  font-size: 13px;
  color: var(--text-3);
}

.context-debug-note svg { flex-shrink: 0; }
.context-debug-note code { color: var(--text-2); }

/* ============ SCROLLBAR ============ */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ============ SELECTION ============ */

::selection {
  background: rgba(0, 212, 255, 0.3);
  color: var(--text);
}
