/* ============================================
   O1DMatch Investor Deck — Design System
   Per 03-DESIGN.md
   ============================================ */

/* ============================================
   Tokens
   ============================================ */
:root {
  /* Core neutrals */
  --black: #0a0a0f;
  --dark: #12121a;
  --dark-light: #1a1a2e;
  --dark-card: #1f1f2e;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-visible: rgba(255, 255, 255, 0.16);

  /* Text */
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;

  /* Brand */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #a855f7;

  /* Status */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-subtle: linear-gradient(180deg, #12121a 0%, #0a0a0f 100%);
  --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);

  /* Fonts */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type scale */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;
  --text-5xl: 48px;
  --text-6xl: 60px;
  --text-7xl: 72px;
  --text-8xl: 90px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.25);
}

/* ============================================
   Reset (minimal, Josh Comeau-style)
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--black);
  color: var(--gray-300);
  font-family: var(--font-body);
  font-size: var(--text-base);
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
#root, #__next { isolation: isolate; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: 72px;
  line-height: 1.05;
}

h2 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

p { line-height: 1.7; }
p.lead { font-size: 18px; line-height: 1.8; color: var(--gray-300); }
small { font-size: 14px; line-height: 1.6; color: var(--gray-400); }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================
   Layout primitives
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section {
  padding: 96px 0;
  position: relative;
}

.section-alt { background: var(--dark-light); }
.section-subtle { background: var(--gradient-subtle); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--gray-400); font-size: 18px; }

.section-eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  display: inline-block;
}

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  height: 72px;
  transition: background 0.2s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.95);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo span { color: var(--primary); }
.logo:hover { color: var(--white); }

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

.nav-links a {
  color: var(--gray-300);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.nav-cta {
  padding: 10px 20px;
  background: var(--gradient-primary);
  color: var(--white) !important;
  border-radius: var(--radius-md);
  font-weight: 600 !important;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.4);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* ============================================
   Page header (hero on subpages)
   ============================================ */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse at center top, rgba(99, 102, 241, 0.15), transparent 70%);
}

.page-header h1 {
  margin-bottom: 24px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.page-header .lead {
  max-width: 720px;
  margin: 0 auto;
}

/* ============================================
   Hero (landing)
   ============================================ */
.hero {
  padding: 160px 0 120px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(99, 102, 241, 0.2), transparent 50%);
  pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: 72px;
  line-height: 1.05;
  max-width: 960px;
  margin: 0 auto 24px;
}

.hero .lead {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 20px;
  color: var(--gray-300);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 64px auto 0;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.hero-stat-label {
  color: var(--gray-400);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.4);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-visible);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  color: var(--white);
}

.btn-lg { padding: 16px 32px; font-size: 17px; }

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--border-visible);
}

.card h3 { margin-bottom: 12px; }
.card p { color: var(--gray-300); }

.card-icon {
  font-size: 32px;
  margin-bottom: 20px;
  display: inline-block;
}

.card-gradient {
  background: var(--gradient-card);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 500;
  font-size: 14px;
  margin-top: 16px;
  text-decoration: none;
}

.card-link:hover { color: var(--accent); gap: 10px; }

/* ============================================
   Badges
   ============================================ */
.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--warning);
}

/* ============================================
   Stat cards (traction)
   ============================================ */
.stat-card {
  text-align: center;
  padding: 32px;
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--gray-400);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-sub {
  color: var(--gray-500);
  font-size: 13px;
  margin-top: 12px;
}

/* ============================================
   Lists
   ============================================ */
.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  color: var(--gray-300);
  line-height: 1.6;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 16px;
}

.feature-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  color: var(--gray-300);
  list-style: none;
}

.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ============================================
   Tables
   ============================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.data-table th,
.data-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--gray-300);
}

.data-table th {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: rgba(99, 102, 241, 0.04); }

.data-table-wrap {
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ============================================
   Video cards (how-it-works)
   ============================================ */
.video-card {
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

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

.video-thumb {
  aspect-ratio: 16 / 9;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.video-thumb img { width: 100%; height: 100%; object-fit: cover; }

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.3);
  color: var(--white);
  font-size: 48px;
  transition: background 0.2s ease;
}

.video-card:hover .video-play { background: rgba(10, 10, 15, 0.5); }

.video-body { padding: 24px; }
.video-body h3 { color: var(--white); margin-bottom: 8px; }
.video-body p { font-size: 14px; color: var(--gray-400); }

.video-meta {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   Tabs
   ============================================ */
.tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1px;
}

.tab {
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: var(--gray-400);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.2s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab:hover { color: var(--white); }
.tab.active {
  color: var(--white);
  border-bottom-color: var(--primary);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================
   Numbered steps
   ============================================ */
.steps {
  display: grid;
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  padding-left: 88px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 28px;
  top: 32px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { margin-bottom: 8px; }

/* ============================================
   Logo grid
   ============================================ */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: center;
}

.logo-item {
  aspect-ratio: 2 / 1;
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: var(--gray-400);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.logo-item:hover { border-color: var(--border-visible); }
.logo-item img { max-height: 40px; max-width: 100%; object-fit: contain; filter: grayscale(1) brightness(1.5); opacity: 0.75; transition: all 0.2s ease; }
.logo-item:hover img { filter: none; opacity: 1; }

.logo-group-label {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-weight: 600;
}

/* ============================================
   Timeline (traction — last 60 days)
   ============================================ */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), rgba(99, 102, 241, 0.1));
}

.timeline-item {
  padding: 0 0 32px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.timeline-item h4 { color: var(--white); margin-bottom: 4px; }
.timeline-item p { color: var(--gray-400); font-size: 15px; margin: 0; }
.timeline-item .date { color: var(--primary); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; display: block; }

/* ============================================
   Forms (invest page contact form)
   ============================================ */
.form {
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  color: var(--gray-300);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group label .req { color: var(--primary); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-success,
.form-error {
  display: none;
  padding: 24px;
  border-radius: var(--radius-lg);
  margin-top: 16px;
  text-align: center;
}

.form-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
}

.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

/* ============================================
   Team cards
   ============================================ */
.team-card {
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  margin: 0 auto 20px;
  overflow: hidden;
}

.team-avatar img { width: 100%; height: 100%; object-fit: cover; }

.team-card h3 { margin-bottom: 4px; }
.team-card .role { color: var(--primary); font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.team-card p { font-size: 14px; line-height: 1.6; color: var(--gray-400); }

/* ============================================
   Close CTA (repeating section)
   ============================================ */
.close-cta {
  text-align: center;
  padding: 96px 24px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1), transparent 70%);
}

.close-cta h2 { margin-bottom: 16px; max-width: 720px; margin-left: auto; margin-right: auto; }
.close-cta p { max-width: 640px; margin: 0 auto 32px; font-size: 18px; color: var(--gray-300); }

/* ============================================
   Big Ask (invest hero)
   ============================================ */
.big-ask {
  text-align: center;
  padding: 60px 0 40px;
}

.big-ask-amount {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.big-ask-label {
  font-size: 20px;
  color: var(--gray-400);
  letter-spacing: 0.02em;
}

/* ============================================
   Screenshot frames
   ============================================ */
.screenshot-frame {
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px;
  overflow: hidden;
}

.screenshot-frame img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

/* ============================================
   Chart containers
   ============================================ */
.chart-container {
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.chart-title {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 16px;
}

.chart-canvas-wrap {
  position: relative;
  height: 320px;
}

.chart-canvas-wrap canvas { max-width: 100%; }

/* ============================================
   Callout (solution autonomous operation)
   ============================================ */
.callout {
  background: var(--gradient-card);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
}

.callout h3 { color: var(--white); margin-bottom: 12px; }
.callout p { color: var(--gray-300); max-width: 720px; margin: 0 auto; }

/* ============================================
   Collapsible ("All 37 walkthroughs")
   ============================================ */
.collapsible {
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.collapsible-header {
  padding: 24px 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  user-select: none;
  transition: background 0.2s ease;
}

.collapsible-header:hover { background: rgba(99, 102, 241, 0.05); }

.collapsible-toggle {
  color: var(--primary);
  font-size: 20px;
  transition: transform 0.2s ease;
}

.collapsible.open .collapsible-toggle { transform: rotate(45deg); }

.collapsible-body {
  display: none;
  padding: 0 32px 32px;
  border-top: 1px solid var(--border-subtle);
}

.collapsible.open .collapsible-body { display: block; padding-top: 24px; }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
  color: var(--gray-400);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 16px; display: inline-block; }
.footer-brand p { max-width: 360px; font-size: 14px; color: var(--gray-400); }

.footer-col h4 {
  font-size: 13px;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--gray-400);
  font-size: 14px;
  text-decoration: none;
}
.footer-col a:hover { color: var(--white); }

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

/* ============================================
   Focus states (accessibility)
   ============================================ */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ============================================
   Responsive breakpoints
   ============================================ */
@media (max-width: 1024px) {
  .hero h1 { font-size: 56px; }
  h2 { font-size: 34px; }
  .big-ask-amount { font-size: 96px; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 16px; }
  .section { padding: 64px 0; }
  .page-header { padding: 120px 0 60px; }
  .hero { padding: 120px 0 80px; }

  .hero h1 { font-size: 44px; }
  h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  h3 { font-size: 20px; }
  .big-ask-amount { font-size: 72px; }

  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav.mobile-open .nav-links {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero-stat-number { font-size: 32px; }

  .stat-number { font-size: 48px; }

  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }

  .step { padding-left: 68px; }
  .step::before { left: 20px; width: 32px; height: 32px; font-size: 15px; }

  .form { padding: 24px; }
}

@media (max-width: 375px) {
  .hero h1 { font-size: 38px; }
  .big-ask-amount { font-size: 56px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Print (optional, polish)
   ============================================ */
@media print {
  .nav, .footer, .close-cta { display: none; }
  body { background: white; color: black; }
}
