/* GroundPulse Landing Page Styles
   Uses the same design tokens as the app (--gp-*) */

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

/* --- SELF-HOSTED FONTS (matches frontend/src/index.css) --- */
@font-face {
  font-family: 'Instrument Sans';
  src: url('./fonts/InstrumentSans-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('./fonts/InstrumentSans-Italic-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('./fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('./fonts/JetBrainsMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Amber Accent (shared across themes) */
  --gp-amber-50:  #FFFBEB;
  --gp-amber-100: #FEF3C7;
  --gp-amber-200: #FDE68A;
  --gp-amber-400: #FBBF24;
  --gp-amber-500: #F59E0B;
  --gp-amber-600: #D97706;
  --gp-amber-700: #B45309;
  --gp-amber-900: #78350F;

  /* Typography */
  --font-sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  /* Semantic tokens — dark mode (default) */
  --page-bg: #0C0A09;
  --surface-inset: #1C1917;
  --text-primary: #FAFAF9;
  --text-secondary: #E7E5E4;
  --text-muted: #A8A29E;
  --text-faint: #78716C;

  --nav-bg: rgba(12,10,9,0.8);
  --nav-border: rgba(68,64,60,0.3);
  --nav-mobile-bg: rgba(12,10,9,0.95);

  --card-bg: rgba(250,250,249,0.03);
  --card-bg-alt: rgba(250,250,249,0.04);
  --card-bg-hover: rgba(250,250,249,0.14);
  --card-border: rgba(250,250,249,0.08);
  --card-border-subtle: rgba(250,250,249,0.06);
  --card-border-strong: rgba(250,250,249,0.1);

  --glass-bg: rgba(250,250,249,0.08);
  --glass-border: rgba(250,250,249,0.12);

  --section-border: rgba(68,64,60,0.3);
  --section-border-light: rgba(68,64,60,0.2);

  --input-bg: rgba(250,250,249,0.06);
  --input-border: rgba(250,250,249,0.1);

  --table-row-hover: rgba(250,250,249,0.02);
  --shadow-screenshot: 0 25px 80px rgba(0,0,0,0.5), 0 0 120px rgba(245,158,11,0.05);

  --amber-glow-bg: rgba(245,158,11,0.04);
  --amber-glow-border: rgba(245,158,11,0.1);
  --amber-card-bg: rgba(245,158,11,0.04);
  --amber-card-border: rgba(245,158,11,0.15);
  --amber-hover-border: rgba(245,158,11,0.3);
  --amber-badge-bg: rgba(245,158,11,0.1);
  --amber-badge-border: rgba(245,158,11,0.2);
  --amber-pill-bg: rgba(250,250,249,0.04);
  --amber-pill-border: rgba(250,250,249,0.12);
  --amber-pill-active-bg: rgba(245,158,11,0.12);
  --amber-pill-active-border: rgba(245,158,11,0.45);
  --amber-pill-hover-border: rgba(245,158,11,0.35);

  --screenshot-dot-bg: rgba(250,250,249,0.1);
  --error-border: rgba(239,68,68,0.3);
  --error-bg: rgba(239,68,68,0.08);
  --error-text: #fecaca;
  --risk-critical-bg: rgba(220,38,38,0.15);
  --risk-critical-text: #FCA5A5;
  --risk-warning-bg: rgba(245,158,11,0.15);
  --risk-warning-text: #FDE68A;
  --problem-icon-red-bg: rgba(220,38,38,0.1);
}

@media (prefers-color-scheme: light) {
  html:not(.dark) {
    --page-bg: #FAFAF9;
    --surface-inset: #F5F5F4;
    --text-primary: #1C1917;
    --text-secondary: #44403C;
    --text-muted: #57534E;
    --text-faint: #78716C;

    --nav-bg: rgba(250,250,249,0.85);
    --nav-border: rgba(0,0,0,0.08);
    --nav-mobile-bg: rgba(250,250,249,0.97);

    --card-bg: #fff;
    --card-bg-alt: rgba(0,0,0,0.02);
    --card-bg-hover: rgba(0,0,0,0.04);
    --card-border: rgba(0,0,0,0.08);
    --card-border-subtle: rgba(0,0,0,0.05);
    --card-border-strong: rgba(0,0,0,0.12);

    --glass-bg: rgba(0,0,0,0.04);
    --glass-border: rgba(0,0,0,0.1);

    --section-border: rgba(0,0,0,0.06);
    --section-border-light: rgba(0,0,0,0.04);

    --input-bg: #fff;
    --input-border: rgba(0,0,0,0.15);

    --table-row-hover: rgba(0,0,0,0.02);
    --shadow-screenshot: 0 25px 80px rgba(0,0,0,0.1), 0 0 60px rgba(245,158,11,0.04);

    --amber-glow-bg: rgba(245,158,11,0.06);
    --amber-glow-border: rgba(245,158,11,0.15);
    --amber-card-bg: rgba(245,158,11,0.05);
    --amber-card-border: rgba(245,158,11,0.2);
    --amber-hover-border: rgba(245,158,11,0.4);
    --amber-badge-bg: rgba(245,158,11,0.1);
    --amber-badge-border: rgba(245,158,11,0.25);
    --amber-pill-bg: rgba(0,0,0,0.03);
    --amber-pill-border: rgba(0,0,0,0.1);
    --amber-pill-active-bg: rgba(245,158,11,0.1);
    --amber-pill-active-border: rgba(245,158,11,0.5);
    --amber-pill-hover-border: rgba(245,158,11,0.4);

    --screenshot-dot-bg: rgba(0,0,0,0.1);
    --error-border: rgba(220,38,38,0.3);
    --error-bg: rgba(220,38,38,0.06);
    --error-text: #991b1b;
    --risk-critical-bg: rgba(220,38,38,0.1);
    --risk-critical-text: #991b1b;
    --risk-warning-bg: rgba(245,158,11,0.1);
    --risk-warning-text: #92400E;
    --problem-icon-red-bg: rgba(220,38,38,0.08);
  }
}

html.light {
  --page-bg: #FAFAF9;
  --surface-inset: #F5F5F4;
  --text-primary: #1C1917;
  --text-secondary: #44403C;
  --text-muted: #57534E;
  --text-faint: #78716C;

  --nav-bg: rgba(250,250,249,0.85);
  --nav-border: rgba(0,0,0,0.08);
  --nav-mobile-bg: rgba(250,250,249,0.97);

  --card-bg: #fff;
  --card-bg-alt: rgba(0,0,0,0.02);
  --card-bg-hover: rgba(0,0,0,0.04);
  --card-border: rgba(0,0,0,0.08);
  --card-border-subtle: rgba(0,0,0,0.05);
  --card-border-strong: rgba(0,0,0,0.12);

  --glass-bg: rgba(0,0,0,0.04);
  --glass-border: rgba(0,0,0,0.1);

  --section-border: rgba(0,0,0,0.06);
  --section-border-light: rgba(0,0,0,0.04);

  --input-bg: #fff;
  --input-border: rgba(0,0,0,0.15);

  --table-row-hover: rgba(0,0,0,0.02);
  --shadow-screenshot: 0 25px 80px rgba(0,0,0,0.1), 0 0 60px rgba(245,158,11,0.04);

  --amber-glow-bg: rgba(245,158,11,0.06);
  --amber-glow-border: rgba(245,158,11,0.15);
  --amber-card-bg: rgba(245,158,11,0.05);
  --amber-card-border: rgba(245,158,11,0.2);
  --amber-hover-border: rgba(245,158,11,0.4);
  --amber-badge-bg: rgba(245,158,11,0.1);
  --amber-badge-border: rgba(245,158,11,0.25);
  --amber-pill-bg: rgba(0,0,0,0.03);
  --amber-pill-border: rgba(0,0,0,0.1);
  --amber-pill-active-bg: rgba(245,158,11,0.1);
  --amber-pill-active-border: rgba(245,158,11,0.5);
  --amber-pill-hover-border: rgba(245,158,11,0.4);

  --screenshot-dot-bg: rgba(0,0,0,0.1);
  --error-border: rgba(220,38,38,0.3);
  --error-bg: rgba(220,38,38,0.06);
  --error-text: #991b1b;
  --risk-critical-bg: rgba(220,38,38,0.1);
  --risk-critical-text: #991b1b;
  --risk-warning-bg: rgba(245,158,11,0.1);
  --risk-warning-text: #92400E;
  --problem-icon-red-bg: rgba(220,38,38,0.08);
}

html { scroll-behavior: smooth; color-scheme: light dark; }

body {
  font-family: var(--font-sans);
  color: var(--text-secondary);
  background: var(--page-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Prevent scroll when mobile nav is open */
body.nav-overlay { overflow: hidden; }

/* --- NAV (glass) --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 64px;
}
.nav-logo {
  font-size: 20px; font-weight: 700; color: var(--text-primary);
  text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-toggle {
  display: none; background: none; border: none; color: var(--text-muted);
  cursor: pointer; padding: 4px;
}
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: none; border: 1px solid var(--glass-border);
  border-radius: 6px; color: var(--text-muted); cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { color: var(--text-primary); border-color: var(--text-faint); }
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
html.light .theme-toggle .icon-sun { display: none; }
html.light .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: light) {
  html:not(.dark) .theme-toggle .icon-sun { display: none; }
  html:not(.dark) .theme-toggle .icon-moon { display: block; }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 14px; font-weight: 600;
  border-radius: 6px; padding: 10px 20px; cursor: pointer;
  text-decoration: none; transition: all 0.15s; border: none;
}
.btn-primary { background: var(--gp-amber-600); color: #fff; }
.btn-primary:hover { background: var(--gp-amber-700); }
.btn-secondary {
  background: var(--glass-bg); color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover { background: var(--card-bg-hover); color: var(--text-primary); }
.btn-glass {
  background: var(--glass-bg); color: var(--text-secondary);
  border: 1px solid var(--glass-border); backdrop-filter: blur(8px);
}
.btn-glass:hover { background: var(--card-bg-hover); color: var(--text-primary); }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; text-align: center; }

/* --- HERO --- */
.hero {
  padding: 160px 32px 80px;
  text-align: center; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gp-amber-400); background: var(--amber-badge-bg);
  border: 1px solid var(--amber-badge-border);
  padding: 6px 16px; border-radius: 9999px; margin-bottom: 28px;
}
.hero h1 {
  font-size: 56px; font-weight: 700; line-height: 1.1;
  color: var(--text-primary); margin-bottom: 20px; letter-spacing: -0.02em;
}
.hero h1 em { font-style: normal; color: var(--gp-amber-400); }
.hero p {
  font-size: 18px; color: var(--text-muted);
  max-width: 600px; margin: 0 auto 40px; line-height: 1.7;
}
.hero p em { font-style: normal; color: var(--gp-amber-400); }
.hero-personas {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 20px;
  flex-wrap: wrap;
}
.hero-persona {
  border: 1px solid var(--amber-pill-border);
  background: var(--amber-pill-bg);
  color: var(--text-secondary);
  border-radius: 9999px;
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.hero-persona:hover {
  border-color: var(--amber-pill-hover-border);
  color: var(--text-primary);
}
.hero-persona.is-active {
  background: var(--amber-pill-active-bg);
  border-color: var(--amber-pill-active-border);
  color: var(--text-primary);
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- METRIC STRIP --- */
.metric-strip { display: flex; justify-content: center; gap: 2px; margin-top: 64px; }
.metric-card {
  background: var(--card-bg-alt);
  border: 1px solid var(--card-border);
  padding: 28px 36px; text-align: center; backdrop-filter: blur(8px);
}
.metric-card:first-child { border-radius: 12px 0 0 12px; }
.metric-card:last-child { border-radius: 0 12px 12px 0; }
.metric-value {
  font-family: var(--font-mono);
  font-size: 36px; font-weight: 500; color: var(--text-primary);
}
.metric-label { font-size: 13px; color: var(--text-faint); margin-top: 4px; }
.hero-community {
  background: var(--amber-glow-bg);
  border: 1px solid var(--amber-card-border);
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 720px;
  margin: 32px auto 0;
}
.hero-community p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  text-align: left;
}

/* --- SCREENSHOT SECTION --- */
.screenshot { padding: 0 32px 80px; }
.screenshot-frame {
  max-width: 1100px; margin: 0 auto;
  border: 1px solid var(--card-border-strong); border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-screenshot);
}
.screenshot-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--surface-inset);
  border-bottom: 1px solid var(--card-border-subtle);
}
.screenshot-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--screenshot-dot-bg);
}
.screenshot-dot:first-child { background: #EF4444; opacity: 0.7; }
.screenshot-dot:nth-child(2) { background: #FBBF24; opacity: 0.7; }
.screenshot-dot:nth-child(3) { background: #22C55E; opacity: 0.7; }
.screenshot-url {
  font-size: 12px; color: var(--text-faint); margin-left: 12px;
  font-family: var(--font-mono);
}
.screenshot-placeholder { background: var(--page-bg); }
.screenshot-placeholder svg { display: block; width: 100%; height: auto; }
.screenshot-frame img {
  display: block; width: 100%; height: auto; border-radius: 0 0 12px 12px;
}

/* --- SECTIONS --- */
section { padding: 120px 32px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gp-amber-500); margin-bottom: 12px;
}
.section-title {
  font-size: 36px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 16px; line-height: 1.2; letter-spacing: -0.01em;
}
h2.section-title { margin-top: 0; }
.section-subtitle {
  font-size: 16px; color: var(--text-muted); max-width: 560px;
  margin-bottom: 56px; line-height: 1.7;
}

/* --- PROBLEM / SOLUTION --- */
.problem { border-top: 1px solid var(--section-border); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.problem-card {
  padding: 32px; border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card-bg); backdrop-filter: blur(8px);
}
.problem-card.solution {
  border-color: var(--amber-card-border); background: var(--amber-card-bg);
}
.problem-icon {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.problem-icon-red { background: var(--problem-icon-red-bg); color: #EF4444; }
.problem-icon-amber { background: var(--amber-badge-bg); color: var(--gp-amber-400); }
.problem-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.problem-card p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

/* --- MODULES --- */
.modules { border-top: 1px solid var(--section-border); }
.modules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.module-card {
  border: 1px solid var(--card-border); border-radius: 12px;
  padding: 40px; background: var(--card-bg);
  backdrop-filter: blur(8px); transition: border-color 0.2s;
}
.module-card:hover { border-color: var(--amber-hover-border); }
.module-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.module-icon-pipeline { background: var(--amber-badge-bg); color: var(--gp-amber-400); }
.module-icon-bridge { background: var(--amber-badge-bg); color: var(--gp-amber-500); }
.module-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.module-card > p { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.module-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.module-features li {
  font-size: 14px; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 10px;
}
.module-features li::before {
  content: '';
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px;
  border-radius: 50%; background: rgba(245,158,11,0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23F59E0B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.module-scenario {
  margin-top: 20px; padding: 16px; border-radius: 8px;
  background: var(--amber-glow-bg); border: 1px solid var(--amber-glow-border);
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
}
.module-scenario strong { color: var(--gp-amber-400); font-weight: 600; }
.module-urgency {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--amber-glow-bg);
  border-left: 3px solid var(--gp-amber-500);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}
.module-urgency a {
  color: var(--gp-amber-400);
  text-decoration: none;
}
.module-urgency a:hover { color: var(--text-primary); }

/* --- HOW IT WORKS --- */
.how { border-top: 1px solid var(--section-border); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  text-align: center; padding: 32px; border-radius: 12px;
  border: 1px solid var(--card-border-subtle); background: var(--table-row-hover);
}
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gp-amber-600); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; margin-bottom: 20px;
}
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.step p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

/* --- WHY GROUNDPULSE (COMPARISON TABLE) --- */
.why { border-top: 1px solid var(--section-border); }
.comparison-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  min-width: 640px;
}
.comparison-table th, .comparison-table td {
  padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--card-border-subtle);
}
.comparison-table thead th {
  font-size: 13px; font-weight: 600; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1px solid var(--card-border-strong);
}
.comparison-table thead th.highlight {
  color: var(--gp-amber-400);
  background: var(--amber-glow-bg);
}
.comparison-table td { color: var(--text-muted); }
.comparison-table td:first-child { color: var(--text-secondary); font-weight: 500; }
.comparison-table td.highlight {
  color: var(--text-primary); font-weight: 600;
  background: var(--amber-glow-bg);
}
.comparison-table tbody tr:hover { background: var(--table-row-hover); }

/* --- REGULATORY --- */
.regulatory { border-top: 1px solid var(--section-border); }
.regulatory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.regulatory-card {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 28px;
  background: var(--card-bg);
}
.regulatory-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.regulatory-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.regulatory-cta { margin-top: 28px; }

/* --- TRUST --- */
.trust { border-top: 1px solid var(--section-border); text-align: center; }
.trust-logos {
  display: flex; justify-content: center; align-items: center; gap: 32px; flex-wrap: wrap;
}
.trust-logo {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-faint);
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 16px 24px; border: 1px solid var(--card-border-subtle); border-radius: 8px;
  min-width: 120px;
}
.trust-logo svg { color: var(--text-faint); }
.trust-logo small {
  display: block;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.trust-traction {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* --- DEMO REPORTS --- */
.demos { border-top: 1px solid var(--section-border); }
.demos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.demo-card {
  display: block; text-decoration: none;
  border: 1px solid var(--card-border); border-radius: 12px;
  padding: 28px; background: var(--card-bg);
  backdrop-filter: blur(8px); transition: border-color 0.2s, transform 0.15s;
}
.demo-card:hover { border-color: var(--amber-hover-border); transform: translateY(-2px); }
.demo-card-type {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gp-amber-400); margin-bottom: 10px;
}
.demo-card h3 { font-size: 17px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.demo-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.demo-card-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--text-faint);
  font-family: var(--font-mono);
}
.demo-risk {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px; border-radius: 9999px;
}
.demo-risk-critical { background: var(--risk-critical-bg); color: var(--risk-critical-text); }
.demo-risk-warning { background: var(--risk-warning-bg); color: var(--risk-warning-text); }

/* --- PRICING --- */
.pricing { border-top: 1px solid var(--section-border); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-grid-2col { grid-template-columns: repeat(2, 1fr); }
.pricing-card {
  border: 1px solid var(--card-border); border-radius: 12px;
  padding: 36px; background: var(--card-bg);
  display: flex; flex-direction: column; position: relative;
}
.pricing-card-featured {
  border-color: var(--amber-hover-border);
  background: var(--amber-card-bg);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: #fff; white-space: nowrap;
  background: var(--gp-amber-600); padding: 4px 16px; border-radius: 9999px;
}
.pricing-tier {
  font-size: 14px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gp-amber-400); margin-bottom: 12px;
}
.pricing-price {
  font-size: 36px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px;
}
.pricing-unit {
  font-size: 16px; font-weight: 500; color: var(--text-muted);
}
.pricing-term {
  font-size: 13px; color: var(--text-faint); margin-bottom: 24px; line-height: 1.5;
}
.pricing-features {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 24px; flex: 1;
}
.pricing-features li {
  font-size: 14px; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 10px;
}
.pricing-features li::before {
  content: '';
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px;
  border-radius: 50%; background: rgba(245,158,11,0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23F59E0B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.pricing-examples {
  margin-bottom: 24px; padding: 16px; border-radius: 8px;
  background: var(--card-bg-alt); border: 1px solid var(--card-border-subtle);
}
.pricing-example {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: 13px;
  border-bottom: 1px solid var(--card-bg-alt);
}
.pricing-example:last-child { border-bottom: none; }
.pricing-example span:first-child { color: var(--text-muted); }
.pricing-example span:last-child { color: var(--text-primary); font-weight: 600; font-family: var(--font-mono); }

/* Modules grid */
.pricing-modules {
  margin-top: 64px;
}
.pricing-modules h3 {
  font-size: 20px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px;
}
.pricing-modules > p {
  font-size: 14px; color: var(--text-muted); margin-bottom: 24px;
}
.pricing-modules-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.pricing-module {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px; border-radius: 8px;
  border: 1px solid var(--card-border-subtle); background: var(--table-row-hover);
}
.pricing-module-name {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
}
.pricing-module-desc {
  font-size: 13px; color: var(--text-faint); line-height: 1.5; flex: 1;
}
.pricing-module-price {
  font-size: 14px; font-weight: 600; color: var(--gp-amber-400);
  font-family: var(--font-mono); margin-top: 8px;
}

/* Community tier */
.pricing-community { margin-top: 32px; }
.pricing-community-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 28px 32px; border-radius: 12px;
  border: 1px solid var(--card-border-subtle); background: var(--table-row-hover);
}
.pricing-community h3 {
  font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px;
}
.pricing-community p {
  font-size: 13px; color: var(--text-muted); line-height: 1.6; max-width: 700px;
}
.pricing-community .btn { flex-shrink: 0; }

/* --- CONTACT / DEMO REQUEST --- */
.contact { border-top: 1px solid var(--section-border); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.contact-info p {
  font-size: 16px; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 32px; max-width: 440px;
}
.contact-details { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--text-secondary); text-decoration: none;
  transition: color 0.15s;
}
.contact-link:hover { color: var(--gp-amber-400); }
.contact-link svg { color: var(--gp-amber-500); flex-shrink: 0; }

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border); border-radius: 12px;
  padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; font-family: inherit; font-size: 14px;
  color: var(--text-primary); background: var(--input-bg);
  border: 1px solid var(--input-border); border-radius: 6px;
  padding: 10px 14px; transition: border-color 0.15s;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--gp-amber-500);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2378716C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px;
}
.form-group select option { background: var(--surface-inset); color: var(--text-primary); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-note {
  font-size: 12px; color: var(--text-faint); text-align: center; margin-top: 12px;
}
.form-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--error-border);
  background: var(--error-bg);
  color: var(--error-text);
  font-size: 13px;
}
.form-success {
  text-align: center; padding: 40px 0;
}
.form-success h3 {
  font-size: 20px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px;
}
.form-success p { font-size: 14px; color: var(--text-muted); }

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--section-border);
  padding: 64px 32px 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 64px;
  padding-bottom: 32px;
}
.footer-brand .nav-logo { margin-bottom: 8px; }
.footer-tagline {
  font-size: 13px; color: var(--text-faint); margin-left: 42px;
}
.footer-columns { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px; color: var(--text-faint); text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text-secondary); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 24px; border-top: 1px solid var(--section-border-light);
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: var(--text-faint); }

/* --- SCROLL ANIMATIONS --- */
.reveal-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-ready .reveal.visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE (mobile-first) --- */
.btn { min-height: 44px; }
.nav-inner {
  padding: 0 16px;
}
.nav-logo {
  font-size: 18px;
}
.nav-toggle {
  display: flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-links {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  align-items: stretch;
  background: var(--nav-mobile-bg);
  backdrop-filter: blur(20px);
  padding: 20px 16px;
  gap: 8px;
  overflow-y: auto;
}
.nav-links.nav-open {
  display: flex;
}
.nav-links a {
  font-size: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border-subtle);
}
.nav-links .btn {
  width: 100%;
  margin-top: 8px;
}
.nav-links .theme-toggle {
  width: auto;
  align-self: flex-start;
  margin-top: 8px;
  border-bottom: none;
}

.hero {
  padding: 120px 16px 56px;
  text-align: left;
}
.hero-inner {
  max-width: 100%;
}
.hero-personas {
  justify-content: flex-start;
}
.hero h1 {
  font-size: 36px;
}
.hero p {
  margin: 0 0 32px;
  max-width: none;
  font-size: 16px;
}
.hero-actions {
  flex-direction: column;
  align-items: stretch;
}
.hero-actions .btn {
  width: 100%;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}
.metric-card,
.metric-card:first-child,
.metric-card:last-child {
  border-radius: 12px;
}
.metric-card {
  padding: 24px 16px;
}
.metric-value {
  font-size: 28px;
}
.hero-community {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.hero-community .btn {
  width: 100%;
}

.screenshot {
  padding: 0 16px 56px;
}
section {
  padding: 80px 16px;
}
.section-title {
  font-size: 28px;
}
.section-subtitle {
  margin-bottom: 40px;
}
.problem-grid,
.modules-grid,
.regulatory-grid,
.steps,
.demos-grid,
.pricing-grid,
.pricing-grid-2col,
.pricing-modules-grid,
.contact-grid {
  grid-template-columns: 1fr;
}
.pricing-grid,
.pricing-grid-2col {
  max-width: 520px;
  margin: 0 auto;
}
.pricing-community-inner,
.footer-inner,
.footer-columns {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer {
  padding: 56px 16px 32px;
}
.comparison-table {
  margin: 0 -16px;
  padding: 0 16px;
}
.contact-form {
  padding: 24px 20px;
}

@media (max-width: 639px) {
  .hero {
    padding-top: 112px;
  }
  .hero h1 {
    font-size: 30px;
    line-height: 1.15;
  }
  .hero p {
    font-size: 15px;
  }
  .hero-badge {
    margin-bottom: 20px;
  }
  .metric-strip {
    grid-template-columns: 1fr;
  }
  .metric-card {
    padding: 20px 16px;
  }
  .pricing-card,
  .module-card,
  .problem-card,
  .demo-card,
  .regulatory-card,
  .contact-form {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }
  .hero-actions .btn {
    width: auto;
  }
  section {
    padding: 88px 24px;
  }
  .screenshot {
    padding: 0 24px 64px;
  }
}

@media (min-width: 768px) {
  .nav-inner {
    padding: 0 24px;
  }
  .nav-toggle {
    display: none;
  }
  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    gap: 16px;
    overflow: visible;
  }
  .nav-links a {
    font-size: 14px;
    padding: 0;
    border-bottom: 0;
  }
  .nav-links .btn {
    width: auto;
    margin-top: 0;
  }
  .hero {
    padding: 144px 24px 72px;
    text-align: center;
  }
  .hero-inner {
    max-width: 800px;
  }
  .hero-personas {
    justify-content: center;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero p {
    margin: 0 auto 36px;
    max-width: 600px;
    font-size: 18px;
  }
  .metric-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
  }
  .metric-card,
  .metric-card:first-child,
  .metric-card:last-child {
    border-radius: 0;
  }
  .metric-card:first-child {
    border-radius: 12px 0 0 12px;
  }
  .metric-card:last-child {
    border-radius: 0 12px 12px 0;
  }
  .hero-community .btn {
    width: auto;
  }
  .problem-grid,
  .modules-grid,
  .regulatory-grid,
  .demos-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .pricing-modules-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (min-width: 1024px) {
  .nav-inner {
    max-width: 1200px;
    padding: 0 32px;
  }
  .nav-links {
    gap: 24px;
  }
  .hero {
    padding: 160px 32px 80px;
  }
  .hero h1 {
    font-size: 56px;
  }
  .screenshot {
    padding: 0 32px 80px;
  }
  section {
    padding: 120px 32px;
  }
  .pricing-grid-2col {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }
  .pricing-modules-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pricing-community-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .footer-inner {
    grid-template-columns: 1fr auto;
    gap: 64px;
  }
  .footer-columns {
    flex-direction: row;
    gap: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- LIGHT MODE OVERRIDES --- */
@media (prefers-color-scheme: light) {
  html:not(.dark) .hero-bg { opacity: 0.5; }
  html:not(.dark) .nav-logo svg rect { fill: var(--gp-amber-600); }
  html:not(.dark) .nav-logo svg circle[stroke], html:not(.dark) .nav-logo svg path { stroke: #fff; }
  html:not(.dark) .nav-logo svg circle[fill="#F59E0B"] { fill: #fff; }
  html:not(.dark) .screenshot-dot:first-child { opacity: 1; }
  html:not(.dark) .screenshot-dot:nth-child(2) { opacity: 1; }
  html:not(.dark) .screenshot-dot:nth-child(3) { opacity: 1; }
}
html.light .hero-bg { opacity: 0.5; }
html.light .nav-logo svg rect { fill: var(--gp-amber-600); }
html.light .nav-logo svg circle[stroke], html.light .nav-logo svg path { stroke: #fff; }
html.light .nav-logo svg circle[fill="#F59E0B"] { fill: #fff; }
html.light .screenshot-dot:first-child { opacity: 1; }
html.light .screenshot-dot:nth-child(2) { opacity: 1; }
html.light .screenshot-dot:nth-child(3) { opacity: 1; }
