:root {
  --bg: #0a0a0b;
  --bg-2: #131315;
  --bg-3: #1c1c20;
  --bg-4: #26262b;
  --border: #2a2a2e;
  --border-strong: #3a3a40;
  --text: #e8e6e3;
  --text-2: #a8a49f;
  --text-3: #706d67;
  --text-4: #4a4843;
  --accent: #f0b429;
  --accent-dim: #8a6818;
  --accent-glow: rgba(240, 180, 41, 0.12);
  --teal: #2dd4bf;
  --teal-dim: #0f766e;
  --success: #4ade80;
  --danger: #f87171;
  --warn: #fb923c;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
  --max-w: 1200px;
  --radius: 4px;
  --radius-lg: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* Decorative grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center top, black 30%, transparent 70%);
}

main, header, footer { position: relative; z-index: 1; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ==================== HEADER ==================== */
header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 11, 0.75);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 22px;
  height: 22px;
  display: inline-block;
  position: relative;
}

.logo-mark::before, .logo-mark::after {
  content: '';
  position: absolute;
  background: var(--accent);
}

.logo-mark::before {
  width: 22px;
  height: 2px;
  top: 10px;
  left: 0;
}

.logo-mark::after {
  width: 2px;
  height: 22px;
  top: 0;
  left: 10px;
}

.nav-right {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
}

.nav-link {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
  font-weight: 400;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #1a1200;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #f5c13e;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--bg-2);
  border-color: var(--text-3);
}

.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ==================== HERO ==================== */
.hero {
  padding: 80px 0 120px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  padding: 6px 12px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  animation: fadeUp 0.6s ease 0.1s both;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px transparent; }
}

h1.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeUp 0.7s ease 0.2s both;
}

h1.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.55;
  margin-bottom: 36px;
  animation: fadeUp 0.7s ease 0.3s both;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  animation: fadeUp 0.7s ease 0.4s both;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-3);
  animation: fadeUp 0.7s ease 0.5s both;
}

.hero-trust strong {
  color: var(--text-2);
  font-weight: 500;
}

.hero-trust-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  flex-shrink: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero terminal */
.terminal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(240,180,41,0.08);
  animation: fadeUp 0.8s ease 0.4s both;
}

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

.terminal-dots { display: flex; gap: 6px; }
.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-4);
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.terminal-body {
  padding: 20px 20px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
}

.code-line {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}

.c-comment { color: var(--text-3); }
.c-prompt { color: var(--accent); user-select: none; }
.c-method { color: var(--teal); }
.c-url { color: var(--text-2); }
.c-flag { color: var(--warn); }
.c-key { color: #d4b3ff; }
.c-string { color: var(--success); }
.c-num { color: var(--warn); }
.c-punct { color: var(--text-3); }

/* ==================== SECTION COMMON ==================== */
section { padding: 100px 0; }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
  display: block;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--text-3);
  vertical-align: middle;
  margin-right: 10px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 800px;
}

.section-title em { font-style: italic; color: var(--accent); }

.section-intro {
  font-size: 18px;
  color: var(--text-2);
  max-width: 620px;
  line-height: 1.55;
  margin-bottom: 56px;
}

/* ==================== DEMO SECTION ==================== */
.demo-section { padding-top: 40px; }

.demo-shell {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.4);
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.demo-toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.demo-method {
  background: var(--teal-dim);
  color: var(--teal);
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
}

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

.demo-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scenario-select {
  background: var(--bg-4);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 6px 30px 6px 12px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23a8a49f' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.btn-run {
  background: var(--accent);
  color: #1a1200;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-run:hover { background: #f5c13e; }
.btn-run:active { transform: scale(0.97); }

.demo-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}

.demo-panel {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
}

.demo-panel + .demo-panel {
  border-left: 1px solid var(--border);
  background: var(--bg);
  position: relative;
}

.demo-panel-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.latency-badge {
  font-family: var(--font-mono);
  color: var(--success);
  text-transform: none;
  letter-spacing: 0;
}

.demo-request {
  min-height: 280px;
  white-space: pre;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  resize: none;
  caret-color: var(--accent);
}

.demo-response {
  min-height: 280px;
  opacity: 0.3;
  transition: opacity 0.3s;
  white-space: pre-wrap;
}

.demo-response.loaded { opacity: 1; }

.demo-response .resp-key { color: #d4b3ff; }
.demo-response .resp-str { color: var(--success); }
.demo-response .resp-num { color: var(--warn); }
.demo-response .resp-ok { color: var(--success); }
.demo-response .resp-err { color: var(--danger); }
.demo-response .resp-punct { color: var(--text-3); }

.demo-footer {
  padding: 12px 20px;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  justify-content: space-between;
}

/* ==================== FLOW VISUALIZATION ==================== */
.flow-viz {
  padding: 32px 20px 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.flow-track {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  align-items: flex-start;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.node-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: all 0.3s ease;
  position: relative;
}

.node-circle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  transition: all 0.3s ease;
}

.flow-node.active .node-circle {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: scale(1.08);
}

.flow-node.active .node-circle::before {
  border-color: var(--accent-dim);
  inset: -8px;
  opacity: 0.4;
}

.flow-node.active-response .node-circle {
  border-color: var(--success);
  color: var(--success);
  background: rgba(74, 222, 128, 0.08);
  transform: scale(1.08);
}

.flow-node.active-response .node-circle::before {
  border-color: rgba(74, 222, 128, 0.3);
  inset: -8px;
  opacity: 0.4;
}

.node-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.flow-node.active .node-label,
.flow-node.active-response .node-label {
  color: var(--text);
}

.node-sub {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-4);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 2px;
}

/* Switchbench internal indicators */
.node-internals {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.flow-node.processing .node-internals {
  opacity: 1;
}

.internal-chip {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 3px 6px;
  border-radius: 3px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-3);
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.flow-node.processing .internal-chip.active {
  background: var(--accent-glow);
  border-color: var(--accent-dim);
  color: var(--accent);
}

/* Connection paths — anchored to circle vertical center (28px = half of 56px circle) */
.flow-path {
  position: absolute;
  top: 28px;
  height: 40px;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.flow-path-1 {
  left: calc(16.66% + 32px);
  right: calc(50% + 32px);
}

.flow-path-2 {
  left: calc(50% + 32px);
  right: calc(16.66% + 32px);
}

.flow-line {
  position: absolute;
  height: 1px;
  width: 100%;
  background: var(--border-strong);
}

.flow-line-req { top: 8px; }
.flow-line-res { bottom: 8px; }

/* Animated packets */
.flow-packet {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0;
  top: 8px;
  transform: translateY(-50%) translateX(-5px);
  box-shadow: 0 0 12px currentColor;
}

.flow-packet-req {
  background: var(--accent);
  color: var(--accent);
}

.flow-packet-res {
  background: var(--success);
  color: var(--success);
  top: auto;
  bottom: 8px;
  transform: translateY(50%) translateX(-5px);
}

/* Packet label */
.packet-label {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
  background: var(--bg);
  padding: 0 6px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s;
}

.flow-path.active .packet-label { opacity: 1; }

.packet-label-res {
  top: auto;
  bottom: -14px;
  color: var(--success);
}

/* Animations triggered by .animating class on .flow-viz */
@keyframes packetMoveRight {
  0% { left: 0; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes packetMoveLeft {
  0% { right: 0; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { right: 100%; opacity: 0; }
}

.flow-viz.animating .flow-path-1 .flow-packet-req {
  animation: packetMoveRight 0.55s cubic-bezier(0.4, 0.0, 0.2, 1) 0.1s both;
}

.flow-viz.animating .flow-path-2 .flow-packet-req {
  animation: packetMoveRight 0.55s cubic-bezier(0.4, 0.0, 0.2, 1) var(--path2-delay, 0.75s) both;
}

.flow-viz.animating .flow-path-2 .flow-packet-res {
  animation: packetMoveLeft 0.55s cubic-bezier(0.4, 0.0, 0.2, 1) 1.95s both;
}

.flow-viz.animating .flow-path-1 .flow-packet-res {
  animation: packetMoveLeft 0.55s cubic-bezier(0.4, 0.0, 0.2, 1) 2.55s both;
}

/* Responsive */
@media (max-width: 700px) {
  .flow-viz { padding: 24px 16px 20px; }
  .node-circle { width: 44px; height: 44px; }
  .node-label { font-size: 9px; }
  .node-sub { display: none; }
  .flow-track .node-internals,
  .flow-track .node-internals[data-mode] { display: none !important; }
  .packet-label { display: none; }
  .flow-path { top: 22px; }
  .flow-path-1 { left: calc(16.66% + 26px); right: calc(50% + 26px); }
  .flow-path-2 { left: calc(50% + 26px); right: calc(16.66% + 26px); }
  .demo-method, .demo-endpoint { display: none; }
  .demo-toolbar { gap: 8px; }
  .demo-toolbar-left { flex-wrap: wrap; gap: 8px; }
  .demo-controls { flex: 1 1 100%; min-width: 0; gap: 8px; }
  .scenario-select { flex: 1 1 auto; min-width: 0; width: 100%; }
  .btn-run { flex: 0 0 auto; }
}

/* ==================== MODE TOGGLE ==================== */
.mode-toggle {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  gap: 2px;
}

.mode-btn {
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-3);
  background: transparent;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: uppercase;
}

.mode-btn:hover:not(.active) {
  color: var(--text-2);
}

.mode-btn.active {
  background: var(--bg);
  color: var(--accent);
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

/* Mode-aware node ordering via CSS order (swaps Integration and Switchbench) */
.flow-track.mode-acquiring #nodeApp { order: 2; }
.flow-track.mode-acquiring #nodeSwitchbench { order: 3; }
.flow-track.mode-issuing #nodeSwitchbench { order: 2; }
.flow-track.mode-issuing #nodeApp { order: 3; }
.flow-track #nodeCaller { order: 1; }

/* Mode-aware chip visibility */
.flow-track .node-internals[data-mode="acquiring"] { display: none; }
.flow-track .node-internals[data-mode="issuing"] { display: none; }
.flow-track.mode-acquiring #nodeSwitchbench .node-internals[data-mode="acquiring"] { display: flex; opacity: 0; }
.flow-track.mode-acquiring #nodeSwitchbench.processing .node-internals[data-mode="acquiring"] { opacity: 1; }
.flow-track.mode-issuing #nodeApp .node-internals[data-mode="issuing"] { display: flex; opacity: 0; }
.flow-track.mode-issuing #nodeApp.processing .node-internals[data-mode="issuing"] { opacity: 1; }
.flow-track.mode-issuing #nodeSwitchbench .node-internals[data-mode="issuing"] { display: flex; opacity: 0; }
.flow-track.mode-issuing #nodeSwitchbench.processing .node-internals[data-mode="issuing"] { opacity: 1; }

/* Mode-aware sub-labels */
.node-sub[data-mode="acquiring"] { display: none; }
.node-sub[data-mode="issuing"] { display: none; }
.flow-track.mode-acquiring .node-sub[data-mode="acquiring"] { display: block; }
.flow-track.mode-issuing .node-sub[data-mode="issuing"] { display: block; }

/* ==================== PROBLEM SECTION ==================== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.problem-card {
  background: var(--bg-2);
  padding: 36px 28px;
  transition: background 0.2s;
}

.problem-card:hover { background: var(--bg-3); }

.problem-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.problem-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.problem-text {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ==================== ARCHITECTURE ==================== */
.arch-section { background: var(--bg-2); padding: 100px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.arch-container {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.arch-diagram {
  width: 100%;
  height: auto;
}

/* ==================== FEATURES ==================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

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

.feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.25;
}

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

/* ==================== FAQ ==================== */
.faq-list {
  border-top: 1px solid var(--border);
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  list-style: none;
  user-select: none;
}

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

.faq-icon {
  width: 16px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-2);
  transition: transform 0.3s ease;
}

.faq-icon::before {
  width: 16px; height: 1px;
  top: 8px; left: 0;
}

.faq-icon::after {
  width: 1px; height: 16px;
  top: 0; left: 8px;
}

details[open] .faq-icon::after { transform: rotate(90deg); }

.faq-answer {
  padding: 0 0 24px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
  max-width: 780px;
}

.faq-answer code {
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

/* ==================== FINAL CTA ==================== */
.final-cta {
  padding: 120px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, var(--accent-glow) 0%, transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(45, 212, 191, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.final-cta-content {
  text-align: center;
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.final-cta h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.final-cta h2 em { font-style: italic; color: var(--accent); }

.final-cta-sub {
  font-size: 17px;
  color: var(--text-2);
  margin-bottom: 40px;
  line-height: 1.55;
}

.waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto 20px;
  flex-wrap: wrap;
}

.waitlist-input {
  flex: 1;
  min-width: 240px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s;
}

.waitlist-input:focus {
  border-color: var(--accent);
}

.waitlist-input::placeholder { color: var(--text-3); }

.waitlist-btn {
  background: var(--accent);
  color: #1a1200;
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.waitlist-btn:hover { background: #f5c13e; transform: translateY(-1px); }

.waitlist-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.waitlist-note strong { color: var(--accent); font-weight: 500; }

.waitlist-success {
  display: none;
  padding: 20px 24px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--radius-lg);
  color: var(--success);
  max-width: 480px;
  margin: 0 auto 20px;
  font-size: 15px;
}

.waitlist-success.show { display: block; animation: fadeUp 0.4s ease; }

.counter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.counter {
  text-align: center;
}

.counter-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.01em;
}

.counter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
}

/* ==================== FOUNDER BLOCK ==================== */
.founder {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.founder-card {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 36px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.founder-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 24px;
  color: #1a1200;
  font-weight: 500;
  flex-shrink: 0;
}

.founder-text { flex: 1; }

.founder-quote {
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 16px;
}

.founder-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.founder-meta strong { color: var(--text-2); font-weight: 500; }

/* ==================== FOOTER ==================== */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left { display: flex; align-items: center; gap: 24px; font-family: var(--font-mono); }

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

.footer-links a { color: var(--text-3); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--text-2); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .hero-grid, .problem-grid, .features-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .problem-grid, .features-grid { gap: 16px; }
  .problem-grid { gap: 2px; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-panel + .demo-panel { border-left: none; border-top: 1px solid var(--border); }
  .hero { padding: 48px 0 80px; }
  section { padding: 72px 0; }
  .nav-link { display: none; }
  .founder-card { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 600px) {
  .container, .nav { padding: 0 20px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .waitlist-form { flex-direction: column; margin-bottom: 16px; }
  .waitlist-input { min-width: auto; width: 100%; }
  .waitlist-btn { width: 100%; }
  h1.hero-title { font-size: 42px; }
  .final-cta { padding: 72px 0; }
  .final-cta-sub { margin-bottom: 28px; font-size: 16px; }
  .counter-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 28px;
    overflow-x: auto;
    padding: 32px 20px 0;
    margin: 48px -20px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .counter-row::-webkit-scrollbar { display: none; }
  .counter { flex: 0 0 auto; scroll-snap-align: start; min-width: 88px; }
}
