/* ============================================
   PANGEA PLATFORM — Shared Design System
   ============================================ */

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

/* Design Tokens */
:root {
  --bg-deep: #06090f;
  --bg-card: #0c1017;
  --bg-elevated: #111720;
  --border-subtle: rgba(255,255,255,0.06);
  --text-primary: #f0f2f5;
  --text-secondary: #9ca3b4;
  --text-muted: #7a8698;
  --text-dark: #1a1f2e;
  --text-dark-secondary: #5a6275;
  --accent: #2dd4bf;
  --accent-dim: rgba(45,212,191,0.15);
  --accent-glow: rgba(45,212,191,0.3);
  --accent-bright: #5eead4;
  --gradient-accent: linear-gradient(135deg, #2dd4bf, #06b6d4);
}

/* Base */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Typography utilities */
.serif { font-family: 'Instrument Serif', Georgia, serif; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
/* Hero content should be visible immediately — no scroll-trigger delay */
.hero .reveal { opacity: 1; transform: translateY(0); animation: hero-fade 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero .reveal-delay-1 { animation-delay: 0.1s; }
.hero .reveal-delay-2 { animation-delay: 0.2s; }
.hero .reveal-delay-3 { animation-delay: 0.3s; }
.hero .reveal-delay-4 { animation-delay: 0.5s; }
@keyframes hero-fade { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============ NAVIGATION ============ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(6,9,15,0.8);
  border-bottom: 1px solid var(--border-subtle);
  will-change: transform;
}
nav .inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
nav a { text-decoration: none; transition: color 0.2s; }
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-brand svg {
  height: 24px;
  width: auto;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--accent); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  align-items: center;
  justify-content: center;
}

/* ============ LAYOUT ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 32px; }
section { position: relative; }

/* ============ SECTION HEADERS ============ */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.section-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  background: rgba(45,212,191,0.06);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}
.hero-label .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  max-width: 800px;
  margin-bottom: 24px;
}
.hero h1 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 48px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 48%;
  max-width: 620px;
  opacity: 0.06;
  pointer-events: none;
}

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gradient-accent);
  color: var(--bg-deep);
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 32px var(--accent-glow); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.15); color: var(--text-primary); }

/* ============ CALLOUT ============ */
.callout {
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  gap: 16px;
}
.callout-bar {
  width: 4px;
  min-height: 40px;
  border-radius: 2px;
  background: var(--gradient-accent);
  flex-shrink: 0;
}
.callout p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
.callout strong { color: var(--text-primary); }

/* ============ CHART SYSTEM ============ */
.chart-container {
  position: relative;
  padding: 24px 0 32px;
}
.chart-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.chart-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.chart-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.chart-value small {
  font-size: 14px;
  font-weight: 500;
  -webkit-text-fill-color: var(--text-muted);
}
.chart-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart-grid-line {
  stroke: rgba(255,255,255,0.04);
  stroke-width: 1;
}
.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition: stroke-dashoffset 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.chart-area {
  opacity: 0;
  transition: opacity 1.8s ease-out 0.4s;
}
.chart-dot {
  fill: var(--accent);
  opacity: 0;
  transition: opacity 0.6s ease-out 2.2s;
}
.chart-label-start,
.chart-label-end {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  fill: var(--text-muted);
  opacity: 0;
  transition: opacity 0.6s ease-out 2s;
}
.chart-label-end {
  fill: var(--accent);
  font-weight: 600;
  font-size: 12px;
}
.chart-year-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  fill: var(--text-muted);
  text-anchor: middle;
}
.chart-visible .chart-line { stroke-dashoffset: 0; }
.chart-visible .chart-area { opacity: 1; }
.chart-visible .chart-dot { opacity: 1; }
.chart-visible .chart-label-start,
.chart-visible .chart-label-end { opacity: 1; }

/* Chart annotation */
.chart-annotation {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  fill: var(--text-muted);
  opacity: 0;
  transition: opacity 0.6s ease-out 2.4s;
}
.chart-visible .chart-annotation { opacity: 1; }
.chart-annotation-line {
  stroke: rgba(255,255,255,0.08);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

/* ============ PRESENT TOGGLE ============ */
.present-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.2s;
  margin-left: 8px;
}
.present-toggle:hover { border-color: rgba(255,255,255,0.15); color: var(--text-primary); }
.present-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.present-toggle.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* ============ PRESENTATION MODE ============ */
body.presenting { overflow: hidden; }
body.presenting nav { display: none; }
body.presenting .skip-link { display: none; }
body.presenting main { display: flex; flex-direction: column; height: 100vh; }
body.presenting main > section,
body.presenting main > footer {
  display: none;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding-top: 0;
  overflow-y: auto;
}
body.presenting main > section.slide-active,
body.presenting main > footer.slide-active {
  display: flex;
}
body.presenting .hero { min-height: 100vh; padding-top: 0; }
body.presenting .hero-acquirer { min-height: 100vh; }
body.presenting .reveal { opacity: 1; transform: none; transition: none; }
body.presenting .chart-line { stroke-dashoffset: 0 !important; }
body.presenting .chart-area { opacity: 1 !important; }
body.presenting .chart-dot { opacity: 1 !important; }
body.presenting .chart-label-start,
body.presenting .chart-label-end { opacity: 1 !important; }
body.presenting .chart-annotation { opacity: 1 !important; }

.present-controls {
  display: none;
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  gap: 8px;
  align-items: center;
}
body.presenting .present-controls { display: flex; }
.present-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(6,9,15,0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}
.present-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.present-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.present-counter {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  padding: 0 8px;
}
.present-exit {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  display: none;
}
body.presenting .present-exit { display: flex; }

/* ============ FOOTER ============ */
.site-footer {
  padding: 100px 0 60px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}
.footer-tagline {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.footer-sub { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; }
.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border: 1px solid rgba(45,212,191,0.2);
  border-radius: 10px;
  transition: all 0.25s;
}
.footer-email:hover { background: rgba(45,212,191,0.06); border-color: var(--accent); }
.footer-copy { margin-top: 48px; font-size: 13px; color: var(--text-muted); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 32px 16px;
    background: rgba(6,9,15,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links a:last-child { border-bottom: none; }
  .hero-visual { display: none; }
}
@media (max-width: 600px) {
  .container, .container-narrow { padding: 0 20px; }
  .hero h1 { font-size: 36px; }
}


/* ============================================
   PANGEA PLATFORM — Section Styles
   ============================================ */

/* ============ HERO — Acquirer Modifier ============ */
.hero-acquirer { min-height: 80vh; }
.hero-acquirer h1 {
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.08;
  max-width: 750px;
}
.hero-context {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(45,212,191,0.06);
  border: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--text-secondary);
}
.hero-context strong { color: var(--accent); }
.hero-clients {
  margin-top: 40px;
}
.hero-clients-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.hero-client-list {
  display: flex;
  gap: 2px;
  border-radius: 12px;
  overflow: hidden;
}
.hero-client-item {
  padding: 16px 20px;
  background: var(--bg-card);
  flex: 1;
  transition: background 0.3s;
}
.hero-client-item:hover { background: var(--bg-elevated); }
.hero-client-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.hero-client-detail {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============ OPPORTUNITY CARDS ============ */
.opp-section { padding: 72px 0; border-top: 1px solid var(--border-subtle); }
.opp-list { margin-top: 56px; display: flex; flex-direction: column; gap: 16px; }
.opp-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.3s;
}
.opp-card:hover { border-color: rgba(45,212,191,0.15); }
.opp-num {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  background: var(--accent-dim);
  color: var(--accent);
  flex-shrink: 0;
}
.opp-content h3 {
  font-size: 20px; font-weight: 700;
  margin-bottom: 10px; letter-spacing: -0.01em;
}
.opp-content p {
  font-size: 15px; line-height: 1.7;
  color: var(--text-secondary);
}
.opp-content strong { color: var(--text-primary); }
.opp-content em { font-family: 'Instrument Serif', Georgia, serif; color: var(--accent-bright); }
.opp-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 14px;
}
.opp-tag {
  font-size: 12px; font-weight: 500;
  padding: 4px 12px; border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.formula-inline {
  display: inline-block;
  padding: 8px 14px; border-radius: 8px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  font-size: 13px; color: var(--accent);
  margin-top: 12px;
}

/* ============ PLATFORM PIPELINE ============ */
.platform-section { padding: 72px 0; border-top: 1px solid var(--border-subtle); }

/* Two-layer layout: agent overlay above, pipeline below */
.pipeline-with-agents {
  margin-top: 56px;
}

/* Agent overlay — sits above the pipeline track */
.agent-overlay {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 8px;
}
.agent-coverage {
  border-radius: 10px;
  padding: 10px 14px;
  position: relative;
}
.agent-coverage-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
.agent-coverage-inner svg {
  flex-shrink: 0;
}
.agent-coverage-inner > span:first-of-type {
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Live agent coverage */
.agent-coverage-live {
  background: rgba(45,212,191,0.06);
  border: 1px solid rgba(45,212,191,0.2);
  color: var(--accent);
}
/* Coming-soon agent coverage */
.agent-coverage-next {
  background: rgba(251,191,36,0.04);
  border: 1px dashed rgba(251,191,36,0.25);
  color: #fbbf24;
}
.coverage-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  flex-shrink: 0;
  margin-left: auto;
}
.coverage-badge-live {
  background: rgba(52,211,153,0.15);
  color: #34d399;
}
.coverage-badge-next {
  background: rgba(251,191,36,0.12);
  color: #fbbf24;
}

/* Pipeline base — uniform steps, all native */
.pipeline-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  overflow: hidden;
  border-radius: 14px;
}
.pipeline-step {
  padding: 24px 12px;
  background: var(--bg-card);
  text-align: center;
  transition: all 0.3s;
  position: relative;
}
.pipeline-step:hover { background: var(--bg-elevated); }
.pipeline-step .step-num {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.pipeline-step .step-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.pipeline-flow {
  height: 2px;
  margin-top: 3px;
  border-radius: 1px;
  background: linear-gradient(to right, transparent, var(--accent-dim), var(--accent), var(--accent-dim), transparent);
}

/* Agent detail — compact inline cards within platform section */
.agent-inline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
}
.agent-inline {
  padding: 24px;
  background: var(--bg-card);
  transition: background 0.3s;
}
.agent-inline:hover { background: var(--bg-elevated); }
.agent-inline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}
.agent-inline h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.agent-inline p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.agent-inline-roadmap {
  background: rgba(251,191,36,0.02);
}
.agent-inline-roadmap:hover { background: rgba(251,191,36,0.04); }

/* Mid-page CTA */
.mid-cta-section { padding: 0; }
.mid-cta {
  padding: 24px 32px;
  border-radius: 12px;
  background: rgba(45,212,191,0.04);
  border: 1px solid rgba(45,212,191,0.12);
  text-align: center;
  margin: 48px 0;
}
.mid-cta p {
  font-size: 15px;
  color: var(--text-secondary);
}
.mid-cta a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.mid-cta a:hover { color: var(--accent-bright); }

/* ============ ECONOMICS ============ */
.economics-section {
  padding: 72px 0;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 5%, rgba(45,212,191,0.2) 50%, transparent 95%) 1;
}
.economics-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
  border-radius: 14px;
  overflow: hidden;
}
.economics-metric {
  padding: 36px 28px;
  background: var(--bg-card);
  text-align: center;
  transition: background 0.3s;
}
.economics-metric:hover { background: var(--bg-elevated); }
.economics-metric .metric-value {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.economics-metric .metric-label {
  font-size: 13px; color: var(--text-secondary);
}
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.chart-card {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

/* ============ AGENTS ============ */
.agents-section {
  padding: 72px 0;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 5%, rgba(45,212,191,0.2) 50%, transparent 95%) 1;
}
.agents-live-label {
  margin-top: 48px;
  margin-bottom: 16px;
}
.agents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.agent-card {
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: all 0.3s;
}
.agent-card:hover { border-color: rgba(45,212,191,0.15); transform: translateY(-2px); }
.agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.agent-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.agent-cost {
  font-size: 12px;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(45,212,191,0.06);
  border: 1px solid rgba(45,212,191,0.1);
}
.agent-badge {
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: 100px; letter-spacing: 0.03em;
}
.badge-live { background: rgba(52,211,153,0.1); color: #34d399; }
.badge-planned { background: rgba(251,191,36,0.1); color: #fbbf24; }
.agent-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.agent-card .agent-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.agent-card .agent-sub strong { color: var(--text-primary); }
.agent-outcomes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.agent-outcomes li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}
.agent-outcomes .check {
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
}
.agent-roadmap {
  margin-top: 48px;
  padding: 36px 40px;
  border-radius: 16px;
  border: 1px solid rgba(251,191,36,0.12);
  background: rgba(251,191,36,0.02);
}
.agent-roadmap-header {
  margin-bottom: 28px;
}
.agent-roadmap-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 8px;
}
.agent-roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 24px;
}
.agent-roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(251,191,36,0.2);
  border-radius: 1px;
}
.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  position: relative;
}
.roadmap-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  flex-shrink: 0;
  margin-top: 6px;
  position: absolute;
  left: -24px;
  margin-left: 0;
}
.roadmap-content strong {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.roadmap-content span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============ AI INTEROPERABILITY ============ */
.interop-section { padding: 72px 0; border-top: 1px solid var(--border-subtle); }
.interop-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 56px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.interop-layer {
  width: 100%;
  border-radius: 14px;
  transition: all 0.3s;
}
.interop-layer:hover { transform: translateY(-1px); }
.interop-layer-inner {
  padding: 28px 32px;
}
.interop-layer-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 10px 0 6px;
}
.interop-layer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.interop-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.interop-status-live {
  background: rgba(52,211,153,0.15);
  color: #34d399;
  box-shadow: 0 0 12px rgba(52,211,153,0.1);
}
.interop-status-building {
  background: rgba(251,191,36,0.12);
  color: #fbbf24;
}
.interop-status-roadmap {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
}
/* Foundation layer — solid, grounded */
.interop-layer-foundation {
  background: rgba(45,212,191,0.06);
  border: 2px solid rgba(45,212,191,0.2);
}
/* Middle layer — being built */
.interop-layer-middle {
  background: var(--bg-card);
  border: 1px solid rgba(251,191,36,0.15);
  border-style: dashed;
}
/* Vision layer — aspirational, lighter */
.interop-layer-vision {
  background: transparent;
  border: 1px solid var(--border-subtle);
  opacity: 0.75;
}
.interop-layer-vision:hover { opacity: 1; }
/* Connectors */
.interop-connector {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  width: 100%;
  max-width: 300px;
}
.interop-connector-line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}
.interop-connector-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
/* Thesis statement */
.interop-thesis {
  margin-top: 48px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.interop-thesis-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.interop-thesis-text strong {
  color: var(--accent);
}

/* ============ MATCHING ENGINE ============ */
.matching-section { padding: 72px 0; background: var(--bg-card); border-top: 1px solid var(--border-subtle); }
.matching-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
  align-items: start;
}
.matching-layers { display: flex; flex-direction: column; gap: 3px; }
.matching-layer {
  padding: 24px 28px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s;
}
.matching-layer:hover { border-color: rgba(45,212,191,0.2); }
.matching-layer.primary { border-color: rgba(45,212,191,0.2); background: rgba(45,212,191,0.04); }
.layer-info .layer-num {
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.layer-info .layer-name {
  font-size: 17px; font-weight: 700; color: var(--text-primary); margin: 3px 0;
}
.layer-info .layer-tech {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.5;
}
.matching-right { display: flex; flex-direction: column; gap: 16px; }
.formula-card {
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}
.formula-card h4 {
  font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px;
}
.funnel-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.funnel-row:last-child { margin-bottom: 0; }
.funnel-num {
  width: 48px; text-align: right; font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.funnel-bar {
  flex: 1; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,0.04); overflow: hidden;
}
.funnel-bar-fill {
  height: 100%; border-radius: 4px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.funnel-label { font-size: 13px; color: var(--text-secondary); width: 110px; flex-shrink: 0; }
.portability-note {
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(45,212,191,0.04);
  border: 1px solid rgba(45,212,191,0.1);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.portability-note strong { color: var(--accent); }

/* ============ TEAM ============ */
.team-section { padding: 72px 0; border-top: 1px solid var(--border-subtle); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.team-card {
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}
.team-card-founder {
  border-color: rgba(45,212,191,0.15);
}
.team-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.team-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.team-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.team-note {
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}
.team-note p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============ COMPARISON TABLE ============ */
.compare-section { padding: 72px 0; border-top: 1px solid var(--border-subtle); }
.compare-scroll-wrap {
  position: relative;
  overflow: hidden;
}
.compare-scroll-wrap::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 48px;
  background: linear-gradient(to left, var(--bg-deep), transparent);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s;
}
.compare-scroll-wrap.scrolled-end::after { opacity: 0; }
.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  margin-top: 56px; width: 100%; min-width: 600px;
  border-collapse: collapse;
}
.compare-table th {
  text-align: left; padding: 16px 20px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid rgba(45,212,191,0.15);
}
.compare-table th:last-child { color: var(--accent); }
.compare-table td {
  padding: 18px 20px; font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s;
}
.compare-table tr:hover td { background: rgba(45,212,191,0.02); }
.compare-table td:first-child { font-weight: 600; color: var(--text-primary); font-size: 13px; }
.compare-table td:last-child { color: var(--accent); font-weight: 600; }
.compare-table tr:last-child td { border-bottom: none; }
/* Mobile: stacked cards instead of table */
.compare-cards { display: none; margin-top: 56px; }
.compare-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 12px;
}
.compare-card-dim {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.compare-card-row {
  margin-bottom: 8px;
}
.compare-card-row:last-child { margin-bottom: 0; }
.compare-card-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.compare-card-value {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.compare-card-row.combined .compare-card-value { color: var(--accent); font-weight: 600; }

/* ============ BUILD VS BUY ============ */
.acquire-section { padding: 72px 0; background: var(--bg-card); border-top: 1px solid var(--border-subtle); }
.acquire-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 56px;
  border-radius: 16px;
  overflow: hidden;
}
.acquire-card {
  padding: 36px 28px;
  background: var(--bg-elevated);
  transition: background 0.3s;
}
.acquire-card:hover { background: rgba(45,212,191,0.03); }
.acquire-num {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.acquire-card h3 {
  font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px;
}
.acquire-card p {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
}

/* ============ BUILD VS BUY — Moat Callout ============ */
.acquire-moat {
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.acquire-moat p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.acquire-moat strong { color: var(--text-primary); }

/* ============ TECH STACK ============ */
.stack-section { padding: 56px 0; border-top: 1px solid var(--border-subtle); }
.stack-toggle {
  width: 100%;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  transition: all 0.3s;
  color: inherit;
}
.stack-toggle:hover { border-color: rgba(45,212,191,0.15); background: var(--bg-card); }
.stack-toggle[aria-expanded="true"] { border-color: rgba(45,212,191,0.15); background: var(--bg-card); }
.stack-toggle-summary {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 400;
}
.stack-toggle-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.stack-toggle[aria-expanded="true"] .stack-toggle-icon { transform: rotate(180deg); }
.stack-detail {
  display: none;
  margin-top: 20px;
}
.stack-detail.open { display: block; }
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 56px;
  border-radius: 16px;
  overflow: hidden;
}
.stack-card {
  padding: 28px 24px;
  background: var(--bg-card);
  transition: background 0.3s;
}
.stack-card:hover { background: var(--bg-elevated); }
.stack-card h3 {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.stack-card ul { list-style: none; }
.stack-card li {
  font-size: 14px; color: var(--text-secondary); padding: 3px 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .opp-card { grid-template-columns: 1fr; gap: 16px; }
  .pipeline-track { grid-template-columns: repeat(4, 1fr); }
  .agent-overlay { display: none; }
  .agent-inline-grid { grid-template-columns: 1fr; }
  .matching-layout { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: 1fr; }
  .agent-roadmap { padding: 28px 24px; }
  .economics-metrics { grid-template-columns: 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .acquire-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  /* Integration table → stacked cards on mobile */
  .compare-scroll-wrap { display: none; }
  .compare-cards { display: block; }
  .hero-client-list { flex-direction: column; }
}
@media (max-width: 600px) {
  .hero-acquirer h1 { font-size: 32px; }
  .hero h1 { font-size: 36px; }
  .hero-context {
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
  }
  .hero-sub { font-size: 16px; }
  .pipeline-track { grid-template-columns: repeat(2, 1fr); }
  .acquire-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}
