/* =========================================
   PayForge — AI-Native BaaS Platform
   ========================================= */

:root {
  --bg: #0d0f14;
  --bg-card: #151820;
  --bg-surface: #1c2030;
  --fg: #e8e6e0;
  --fg-muted: #6b7280;
  --accent: #00e5c3;
  --accent-dim: rgba(0, 229, 195, 0.12);
  --accent-border: rgba(0, 229, 195, 0.25);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w: 1200px;
  --radius: 6px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  background: rgba(13,15,20,0.85);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.5px;
}

.nav-tagline {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  padding: 100px 40px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-inner {
  max-width: 780px;
}

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 28px;
  background: var(--accent-dim);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 14px;
  border-radius: 20px;
}

/* Stats */
.stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.stat {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.stat:first-child { text-align: left; }
.stat:last-child { text-align: right; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* Agents */
.agents {
  padding: 100px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.agents-inner {}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.7;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.agent-card {
  padding: 40px 36px;
  background: var(--bg-card);
  border-right: 1px solid rgba(255,255,255,0.06);
}

.agent-card:last-child { border-right: none; }

.agent-icon {
  margin-bottom: 20px;
}

.agent-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.agent-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.agent-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Platform */
.platform {
  padding: 100px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.platform-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.platform-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--fg);
}

.pf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.platform-code {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 32px;
}

.code-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.code-block {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.75;
  color: var(--fg);
  white-space: pre;
  overflow-x: auto;
}

.code-caption {
  margin-top: 16px;
  font-size: 12px;
  color: var(--fg-muted);
  font-style: italic;
}

/* Difference */
.difference {
  padding: 100px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.diff-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.diff-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 52px;
}

.comparison-table {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
}

.comp-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--bg-surface);
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.comp-header .comp-col {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comp-header .comp-highlight {
  color: var(--accent);
}

.comp-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.comp-row:last-child { border-bottom: none; }
.comp-row:nth-child(even) { background: rgba(255,255,255,0.015); }

.comp-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.comp-val {
  font-size: 14px;
  color: var(--fg-muted);
}

.comp-val.comp-highlight {
  color: var(--accent);
  font-weight: 500;
}

/* Closing */
.closing {
  padding: 100px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.closing-inner {
  max-width: 700px;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 580px;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--fg);
}

.footer-tagline {
  font-size: 12px;
  color: var(--fg-muted);
}

.footer-note {
  font-size: 12px;
  color: var(--fg-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .agent-grid {
    grid-template-columns: 1fr;
  }

  .agent-card {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .agent-card:last-child {
    border-bottom: none;
  }

  .platform-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stats-row {
    flex-wrap: wrap;
    gap: 32px;
  }

  .stat {
    flex: none;
    width: calc(50% - 16px);
    text-align: left;
  }

  .stat:last-child {
    text-align: left;
  }

  .stat-divider {
    display: none;
  }

  .comp-header,
  .comp-row {
    grid-template-columns: 1fr 1fr;
  }

  .comp-header .comp-col:first-child,
  .comp-row .comp-label {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 72px 24px 60px;
  }

  .stats-row {
    padding: 32px 24px;
  }

  .agents,
  .platform,
  .difference,
  .closing {
    padding: 72px 24px;
  }

  .hero-headline {
    font-size: 38px;
  }

  .nav-inner {
    padding: 16px 24px;
  }
}