/* ClearRoute — AI-Native Payment Infrastructure */
:root {
  --bg: #0a0e1a;
  --bg-2: #0f1629;
  --bg-card: #111827;
  --fg: #f1f5f9;
  --fg-2: #94a3b8;
  --accent: #f59e0b;
  --accent-dim: #f59e0b22;
  --border: #1e293b;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --font-head: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: #0a0e1ae6;
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, #f59e0b12 0%, transparent 70%);
}
.hero-glow-2 {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse at center, #3b82f608 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid #f59e0b40;
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -3px;
  margin-bottom: 24px;
}
.headline-accent {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-2);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
}
.tx-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  transition: all 0.3s;
}
.tx-card:hover {
  border-color: #f59e0b40;
  transform: translateX(4px);
}
.tx-card--route { border-left: 3px solid var(--green); }
.tx-card--fail { border-left: 3px solid var(--amber); }
.tx-card--fraud { border-left: 3px solid var(--red); }
.tx-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tx-icon--send { background: #22c55e20; color: var(--green); }
.tx-icon--fail { background: #f59e0b20; color: var(--amber); }
.tx-icon--fraud { background: #ef444420; color: var(--red); }
.tx-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tx-label { font-size: 12px; color: var(--fg-2); }
.tx-amount { font-size: 15px; font-weight: 600; font-family: var(--font-head); }
.tx-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}
.tx-badge--green { background: #22c55e20; color: var(--green); }
.tx-badge--amber { background: #f59e0b20; color: var(--amber); }
.tx-badge--red { background: #ef444420; color: var(--red); }

/* HOW IT WORKS */
.howitworks {
  padding: 120px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 64px;
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  padding: 32px 32px 32px 0;
}
.step-number {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.step-icon {
  margin-bottom: 20px;
}
.step h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.step p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.7;
}
.step-connector {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
  margin-top: 48px;
  flex-shrink: 0;
}

/* FEATURES */
.features {
  padding: 0 24px 120px;
  max-width: 1100px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s;
}
.feature-card:hover { border-color: #f59e0b50; }
.feature-card--large {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #111827, #0f1e36);
}
.feature-card--large:hover { border-color: var(--accent); }
.feature-icon { margin-bottom: 20px; }
.feature-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.7;
  margin-bottom: 24px;
}
.feature-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.f-stat { display: flex; flex-direction: column; gap: 4px; }
.f-val {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
}
.f-key { font-size: 12px; color: var(--fg-2); }

/* METRICS */
.metrics {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.metrics-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.metric { text-align: center; }
.metric-value {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.metric-label {
  font-size: 13px;
  color: var(--fg-2);
  margin-top: 6px;
  max-width: 140px;
}
.metric-sep {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* CLOSING */
.closing {
  padding: 120px 24px;
  text-align: center;
}
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing-badge {
  display: inline-block;
  font-size: 12px;
  color: var(--fg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 32px;
  letter-spacing: 0.3px;
}
.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 16px;
  color: var(--fg-2);
  line-height: 1.7;
  margin-bottom: 40px;
}
.closing-vision {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
}
.footer-tagline { font-size: 13px; color: var(--fg-2); }
.footer-copy { font-size: 12px; color: #475569; }

/* MOBILE */
@media (max-width: 768px) {
  .hero { padding: 100px 20px 60px; }
  .hero-headline { letter-spacing: -2px; }
  .hero-sub { font-size: 16px; }
  .steps { flex-direction: column; gap: 0; }
  .step-connector { width: 1px; height: 40px; margin: 0 auto; background: linear-gradient(var(--border), var(--accent), var(--border)); }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: auto; }
  .metrics-inner { flex-wrap: wrap; justify-content: center; }
  .metric-sep { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .nav-links { display: none; }
  .feature-stats { gap: 20px; }
}