/* KAVIQ Flagship Web Design System
 * Mirrors ReflexPalette (ReflexTheme.swift) across OLED Dark & Crisp Light modes.
 */

:root {
  --bg: #0B0E14;
  --bg-elevated: #0F141E;
  --surface: #131823;
  --surface-2: #192030;
  --border: #22293A;
  --border-strong: #2E3850;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --mint: #22E58B;
  --mint-soft: rgba(34, 229, 139, 0.14);
  --mint-glow: rgba(34, 229, 139, 0.35);
  --mint-ink: #06150E;
  --blue: #3B82F6;
  --blue-soft: rgba(59, 130, 246, 0.15);
  --coral: #FF4757;
  --coral-soft: rgba(255, 71, 87, 0.16);
  --amber: #FBBF24;
  --amber-soft: rgba(251, 191, 36, 0.16);
  --nav-bg: rgba(11, 14, 20, 0.82);
  --hero-radial-1: rgba(34, 229, 139, 0.14);
  --hero-radial-2: rgba(59, 130, 246, 0.16);
  --grid-line: rgba(148, 163, 184, 0.06);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

[data-theme="light"] {
  --bg: #F4F6FA;
  --bg-elevated: #EDF1F7;
  --surface: #FFFFFF;
  --surface-2: #EDF1F7;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --text: #0F172A;
  --muted: #526175;
  --mint: #10B981;
  --mint-soft: rgba(16, 185, 129, 0.13);
  --mint-glow: rgba(16, 185, 129, 0.25);
  --mint-ink: #FFFFFF;
  --blue: #2563EB;
  --blue-soft: rgba(37, 99, 235, 0.11);
  --coral: #EF4444;
  --coral-soft: rgba(239, 68, 68, 0.12);
  --amber: #D97706;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --nav-bg: rgba(244, 246, 250, 0.86);
  --hero-radial-1: rgba(16, 185, 129, 0.12);
  --hero-radial-2: rgba(37, 99, 235, 0.10);
  --grid-line: rgba(15, 23, 42, 0.045);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.11);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.07);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

a {
  color: inherit;
}

/* Background precision grid & ambient glow */
.hero-backdrop {
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 15% 5%, var(--hero-radial-1), transparent 60%),
    radial-gradient(ellipse 65% 48% at 88% 8%, var(--hero-radial-2), transparent 60%),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--text);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(34, 229, 139, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand span {
  color: var(--mint);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.18s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--mint);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

.btn-sm {
  padding: 9px 16px;
  font-size: 13.5px;
  border-radius: 11px;
}

.btn-primary {
  background: var(--mint);
  color: var(--mint-ink);
  box-shadow: 0 8px 24px var(--mint-glow);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--mint);
}

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

.btn-ghost:hover {
  background: var(--surface);
}

/* Pills & Badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--mint);
  background: var(--mint-soft);
  border: 1px solid rgba(34, 229, 139, 0.28);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-mint { background: var(--mint-soft); color: var(--mint); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-coral { background: var(--coral-soft); color: var(--coral); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }

/* Hero Section */
.hero {
  padding: 68px 0 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-top: 20px;
  margin-bottom: 20px;
}

.hero h1 .accent {
  background: linear-gradient(110deg, var(--mint) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.metric-item strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

.metric-item span {
  font-size: 12.5px;
  color: var(--muted);
}

/* Interactive Showcase Panel in Hero */
.showcase-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  background: var(--bg-elevated);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.showcase-tab {
  flex: 1 1 auto;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.showcase-tab.active {
  background: var(--mint);
  color: var(--mint-ink);
}

.showcase-stage {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #080B10;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.showcase-stage img.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

.showcase-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 0 4px;
  font-size: 13px;
  color: var(--muted);
}

.showcase-caption strong {
  color: var(--text);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.99); }
  to { opacity: 1; transform: scale(1); }
}

/* Section Layout */
.section {
  padding: 84px 0;
  border-top: 1px solid var(--border);
}

.section-alt {
  background: var(--bg-elevated);
}

.section-header {
  max-width: 700px;
  margin-bottom: 44px;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 16.5px;
  color: var(--muted);
}

/* Interactive Playable Reflex Arena (Always OLED Dark for Fair Contrast) */
.arena-shell {
  background: #0B0E14;
  color: #F8FAFC;
  border: 1px solid #22293A;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.arena-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #1E2638;
}

.arena-mode-switch {
  display: inline-flex;
  gap: 6px;
  background: #131823;
  padding: 5px;
  border-radius: 13px;
  border: 1px solid #22293A;
}

.arena-mode-btn {
  border: none;
  background: transparent;
  color: #94A3B8;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.arena-mode-btn.active {
  background: #22E58B;
  color: #06150E;
}

.arena-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.arena-stat {
  background: #131823;
  border: 1px solid #22293A;
  border-radius: 12px;
  padding: 8px 14px;
  min-width: 96px;
  text-align: center;
}

.arena-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #94A3B8;
}

.arena-stat-val {
  font-size: 18px;
  font-weight: 900;
  color: #22E58B;
}

.arena-panel {
  display: none;
}

.arena-panel.active {
  display: block;
}

/* Start Lights Playable UI */
.lights-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.lights-bar {
  display: flex;
  gap: 14px;
  padding: 18px 24px;
  background: #131823;
  border: 1px solid #22293A;
  border-radius: 22px;
}

.signal-bulb {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #1B2233;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
  transition: background-color 0.04s linear, box-shadow 0.04s linear;
}

.signal-bulb.lit {
  background: radial-gradient(circle at 35% 35%, #FF8A95 0%, #FF4757 58%, #B91C2C 100%);
  box-shadow: 0 0 22px rgba(255, 71, 87, 0.9);
}

.lights-readout {
  text-align: center;
}

.lights-status {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 4px;
}

.lights-value {
  font-size: clamp(44px, 7vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #F8FAFC;
}

.lights-tier {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(34, 229, 139, 0.14);
  color: #22E58B;
  min-height: 26px;
}

.lights-pad {
  width: 100%;
  max-width: 580px;
  height: 165px;
  border-radius: 24px;
  border: 2px solid #2A344B;
  background: #131823;
  color: #F8FAFC;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: background-color 0.05s linear, border-color 0.05s linear;
}

.lights-pad strong {
  font-size: 20px;
  font-weight: 900;
}

.lights-pad span {
  font-size: 13px;
  color: #94A3B8;
}

.lights-pad.state-staging {
  border-color: #FF4757;
  background: rgba(255, 71, 87, 0.14);
}

.lights-pad.state-go {
  border-color: #22E58B;
  background: #22E58B;
  color: #06150E;
  box-shadow: 0 0 40px rgba(34, 229, 139, 0.45);
}

.lights-pad.state-go span {
  color: #06150E;
  opacity: 0.85;
}

.lights-pad.state-false {
  border-color: #FF4757;
  background: rgba(255, 71, 87, 0.22);
}

/* Reflex Wall 3x3 Playable UI */
.wall-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.wall-grid {
  width: 100%;
  max-width: 360px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  background: #131823;
  border: 1px solid #22293A;
  border-radius: 28px;
}

.wall-pod {
  aspect-ratio: 1;
  border-radius: 999px;
  border: 2px solid #263046;
  background: #192030;
  cursor: pointer;
  position: relative;
  touch-action: manipulation;
  user-select: none;
  transition: transform 0.06s ease, background-color 0.05s linear, box-shadow 0.05s linear;
}

.wall-pod:active {
  transform: scale(0.95);
}

.wall-pod.center-anchor::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #33415C;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.wall-pod.lit {
  background: #22E58B;
  border-color: #22E58B;
  box-shadow: 0 0 28px rgba(34, 229, 139, 0.75);
}

.wall-pod.lit.center-anchor::after {
  display: none;
}

.wall-pod.miss {
  border-color: #FF4757;
  background: rgba(255, 71, 87, 0.22);
}

.wall-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.arena-note {
  margin-top: 20px;
  font-size: 12.5px;
  color: #94A3B8;
  text-align: center;
}

/* Filter Pills & Drill Cards */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--mint);
  color: var(--text);
}

.filter-btn.active {
  background: var(--mint);
  color: var(--mint-ink);
}

.drills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.drill-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drill-card.hidden {
  display: none;
}

.drill-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.drill-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.drill-card h3 {
  font-size: 17px;
  font-weight: 800;
}

.drill-card p {
  font-size: 13.5px;
  color: var(--muted);
  flex-grow: 1;
}

.drill-meta {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

/* Ecosystem Grid */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.eco-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.eco-visual {
  background: #080B10;
  border-bottom: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.eco-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eco-body {
  padding: 24px;
}

.eco-body h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 10px 0 8px;
}

.eco-body p {
  font-size: 14.5px;
  color: var(--muted);
}

.eco-specs {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eco-specs li {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 8px;
}

/* Privacy / Architecture Strip */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.privacy-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 12px 0 8px;
}

.privacy-card p {
  font-size: 14px;
  color: var(--muted);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 20px;
}

.price-card.featured {
  border: 2px solid var(--mint);
  box-shadow: 0 18px 48px var(--mint-glow);
}

.price-amount {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 14px 0 4px;
  white-space: nowrap;
}

.price-amount small {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.price-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 20px;
}

.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.price-list li {
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.price-list li::before {
  content: "✓";
  color: var(--mint);
  font-weight: 900;
  flex-shrink: 0;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 600;
  color: var(--mint);
  flex-shrink: 0;
}

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

.faq-item p {
  padding: 0 22px 18px;
  font-size: 14.5px;
  color: var(--muted);
}

/* CTA Banner */
.cta-banner {
  background:
    radial-gradient(ellipse 80% 100% at 85% 50%, var(--hero-radial-1), transparent 60%),
    radial-gradient(ellipse 70% 90% at 15% 50%, var(--hero-radial-2), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 16px;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 28px;
}

/* Legal / Subpage Article Styling */
.page-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin: 12px 0 10px;
}

.page-meta {
  font-size: 14px;
  color: var(--muted);
}

.prose {
  padding: 40px 0 72px;
}

.prose h2 {
  font-size: 21px;
  font-weight: 800;
  margin-top: 34px;
  margin-bottom: 12px;
  color: var(--text);
}

.prose p,
.prose li {
  font-size: 15.5px;
  color: var(--muted);
  margin-bottom: 13px;
}

.prose ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.prose a:not(.btn) {
  color: var(--mint);
  font-weight: 600;
}

.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13.5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--text);
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--mint);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 22px 0;
}

.callout p {
  margin: 0;
  color: var(--text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 56px;
  background: var(--bg);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.footer-links a {
  text-decoration: none;
}

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

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .drills-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero {
    padding: 42px 0 56px;
  }
  .section {
    padding: 60px 0;
  }
  .drills-grid,
  .ecosystem-grid,
  .privacy-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .metric-item strong {
    font-size: 18px;
  }
  .lights-bar {
    gap: 10px;
    padding: 14px 16px;
  }
  .signal-bulb {
    width: 34px;
    height: 34px;
  }
  .arena-shell {
    padding: 18px;
  }
}
