/* ═══════════════════════════════════════════════════════
   Stablecoin Router — Landing Page Styles (Enhanced)
   ═══════════════════════════════════════════════════════ */

:root {
  /* Colors */
  --bg: #050814;
  --bg-2: #0a0f1f;
  --bg-3: #0f1525;
  --bg-card: #111827;
  --bg-hover: #1a2138;
  --border: #1f2a44;
  --border-strong: #2a3756;

  --text: #e8ecf5;
  --text-muted: #8b93a8;
  --text-dim: #5b6478;

  --accent: #5b8def;
  --accent-2: #a78bfa;
  --accent-3: #22d3ee;
  --accent-hover: #7aa0f5;

  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;

  --grad-primary: linear-gradient(135deg, #5b8def 0%, #a78bfa 100%);
  --grad-accent: linear-gradient(135deg, #22d3ee 0%, #5b8def 100%);
  --grad-warm: linear-gradient(135deg, #f472b6 0%, #a78bfa 100%);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, Menlo, Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px rgba(91, 141, 239, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ═══ Background Effects ═══ */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(91, 141, 239, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(91, 141, 239, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 100%);
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  top: -200px;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(91, 141, 239, 0.35), transparent 60%);
  animation: float-glow 20s ease-in-out infinite;
}

.bg-glow-2 {
  top: 10%;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.3), transparent 60%);
  animation: float-glow 25s ease-in-out infinite reverse;
}

@keyframes float-glow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
}

/* ═══ Navbar ═══ */

.navbar {
  position: sticky;
  top: 0;
  background: rgba(5, 8, 20, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 14px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo-text {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.logo-accent {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-text {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.btn-text:hover {
  color: var(--text);
}

/* ═══ Buttons ═══ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(91, 141, 239, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(91, 141, 239, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ═══ Hero ═══ */

.hero {
  padding: 80px 0 0;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(91, 141, 239, 0.1);
  border: 1px solid rgba(91, 141, 239, 0.25);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #5b8def 0%, #a78bfa 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
  display: inline-block;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-label {
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.trust-logos {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.trust-item {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  letter-spacing: 0.02em;
}

/* ═══ Terminal Mockup ═══ */

.hero-terminal {
  position: relative;
}

.terminal-frame {
  background: #0a0f1e;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  z-index: 2;
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  gap: 14px;
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
}

.terminal-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--success);
  padding: 2px 8px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 4px;
  letter-spacing: 0.1em;
}

.terminal-body {
  padding: 24px 20px;
  min-height: 420px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  overflow: hidden;
}

.terminal-code {
  color: #e8ecf5;
  white-space: pre;
}

.terminal-code .tok-k { color: #c792ea; }
.terminal-code .tok-s { color: #c3e88d; }
.terminal-code .tok-n { color: #f78c6c; }
.terminal-code .tok-cm { color: #546e7a; font-style: italic; }
.terminal-code .tok-fn { color: #82aaff; }
.terminal-code .tok-cls { color: #ffcb6b; }
.terminal-code .tok-c { color: #ff5370; }

.terminal-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at center, rgba(91, 141, 239, 0.3), transparent 60%);
  filter: blur(60px);
  z-index: 1;
}

/* ═══ Metrics Strip ═══ */

.metrics-strip {
  background: rgba(15, 21, 37, 0.6);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  backdrop-filter: blur(20px);
}

.metrics-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-item {
  text-align: center;
  flex: 1;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric-unit {
  font-size: 20px;
  margin-left: 2px;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ═══ Sections (shared) ═══ */

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  padding: 4px 12px;
  background: rgba(91, 141, 239, 0.1);
  border-radius: 100px;
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-description {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══ Problem Section ═══ */

.problem-section {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 21, 37, 0.4) 50%, transparent 100%);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(91, 141, 239, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.problem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 141, 239, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.problem-card:hover::before {
  opacity: 1;
}

.problem-visual {
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.problem-visual svg {
  width: 100%;
  height: 100%;
}

.problem-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  position: relative;
}

.problem-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  position: relative;
}

/* ═══ Features Section ═══ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 141, 239, 0.4);
  background: rgba(17, 24, 39, 0.8);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.icon-blue { background: rgba(91, 141, 239, 0.15); color: #5b8def; }
.icon-purple { background: rgba(167, 139, 250, 0.15); color: #a78bfa; }
.icon-green { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.icon-amber { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.icon-pink { background: rgba(244, 114, 182, 0.15); color: #f472b6; }
.icon-cyan { background: rgba(34, 211, 238, 0.15); color: #22d3ee; }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.feature-metric {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding: 4px 10px;
  background: rgba(91, 141, 239, 0.1);
  border: 1px solid rgba(91, 141, 239, 0.2);
  border-radius: 6px;
  display: inline-block;
  font-weight: 600;
}

/* ═══ Flow Section ═══ */

.flow-section {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 21, 37, 0.4) 50%, transparent 100%);
}

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 48px 32px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.flow-diagram::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(91, 141, 239, 0.08), transparent 70%);
  pointer-events: none;
}

.flow-step {
  text-align: center;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.flow-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: rgba(91, 141, 239, 0.1);
  border: 1px solid rgba(91, 141, 239, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.flow-icon svg {
  width: 32px;
  height: 32px;
}

.flow-icon-lg {
  width: 96px;
  height: 96px;
  background: var(--grad-primary);
  border: none;
  color: #fff;
  box-shadow: 0 10px 40px rgba(91, 141, 239, 0.4);
}

.flow-icon-lg svg {
  width: 48px;
  height: 48px;
}

.flow-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.flow-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.flow-sub {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.flow-router {
  padding: 0 12px;
}

.flow-router .flow-label {
  font-size: 14px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.flow-steps-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 6px;
}

.mini-step {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.flow-arrow {
  flex: 1;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-arrow svg {
  width: 100%;
  height: 20px;
  max-width: 100px;
}

.flow-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.flow-mode-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(20px);
  transition: all 0.3s;
}

.flow-mode-card:hover {
  border-color: rgba(91, 141, 239, 0.4);
  transform: translateY(-2px);
}

.mode-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.mode-badge-rt {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.mode-badge-batch {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.mode-badge-net {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.flow-mode-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.flow-mode-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ═══ Architecture Section ═══ */

.arch-layers {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arch-layer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  transition: all 0.3s;
  position: relative;
}

.arch-layer::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-primary);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  opacity: 0.4;
}

.arch-layer:hover {
  border-color: rgba(91, 141, 239, 0.4);
  transform: translateX(4px);
}

.arch-layer:hover::before {
  opacity: 1;
}

.arch-layer[data-layer="5"]::before { background: linear-gradient(180deg, #22d3ee, #5b8def); }
.arch-layer[data-layer="4"]::before { background: linear-gradient(180deg, #5b8def, #a78bfa); }
.arch-layer[data-layer="3"]::before { background: linear-gradient(180deg, #a78bfa, #f472b6); }
.arch-layer[data-layer="2"]::before { background: linear-gradient(180deg, #f472b6, #fbbf24); }
.arch-layer[data-layer="1"]::before { background: linear-gradient(180deg, #fbbf24, #4ade80); }

.layer-label {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  width: 40px;
  flex-shrink: 0;
}

.layer-content {
  flex: 1;
}

.layer-content h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.layer-components {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comp {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.arch-layer:hover .comp {
  color: var(--text);
  border-color: var(--border-strong);
}

/* ═══ Benchmarks Section ═══ */

.bench-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bench-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(20px);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.bench-card:hover {
  border-color: rgba(91, 141, 239, 0.4);
  transform: translateY(-3px);
}

.bench-highlight {
  background: linear-gradient(135deg, rgba(91, 141, 239, 0.08), rgba(167, 139, 250, 0.08));
  border-color: rgba(91, 141, 239, 0.3);
}

.bench-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.bench-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.bench-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.bench-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.bench-badge-pass {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.bench-value {
  font-family: var(--font-mono);
  margin-bottom: 14px;
  line-height: 1;
}

.bench-num {
  font-size: 32px;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.bench-unit {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 6px;
  font-weight: 500;
}

.bench-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.bench-bar-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 2px;
  animation: fill-bar 1.5s ease-out forwards;
}

@keyframes fill-bar {
  from { width: 0 !important; }
}

.bench-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ═══ Quick Start (Tabs) ═══ */

.code-tabs {
  max-width: 880px;
  margin: 0 auto;
  background: rgba(10, 15, 30, 0.8);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.tab-headers {
  display: flex;
  background: rgba(15, 21, 37, 0.8);
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 16px 24px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(91, 141, 239, 0.05);
}

.tab-icon {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(91, 141, 239, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.tab-content {
  display: none;
  padding: 28px;
  background: #0a0f1e;
}

.tab-content.active {
  display: block;
}

.tab-content pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: #e8ecf5;
  overflow-x: auto;
  white-space: pre;
}

.tab-content .tok-k { color: #c792ea; }
.tab-content .tok-s { color: #c3e88d; }
.tab-content .tok-n { color: #f78c6c; }
.tab-content .tok-cm { color: #546e7a; font-style: italic; }
.tab-content .tok-fn { color: #82aaff; }
.tab-content .tok-cls { color: #ffcb6b; }
.tab-content .tok-c { color: #ff5370; }

/* ═══ Pricing Section ═══ */

.pricing-section {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 21, 37, 0.4) 50%, transparent 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pricing-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  backdrop-filter: blur(20px);
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 141, 239, 0.4);
}

.pricing-featured {
  background: linear-gradient(135deg, rgba(91, 141, 239, 0.08), rgba(167, 139, 250, 0.08));
  border-color: rgba(91, 141, 239, 0.4);
  box-shadow: 0 20px 60px rgba(91, 141, 239, 0.2);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.price-currency {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 600;
}

.price-amount {
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-period {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}

.pricing-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
  position: relative;
  padding-left: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--grad-primary);
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══ CTA Section ═══ */

.cta-section {
  padding: 80px 0;
}

.cta-card {
  background: linear-gradient(135deg, rgba(91, 141, 239, 0.15), rgba(167, 139, 250, 0.15));
  border: 1px solid rgba(91, 141, 239, 0.3);
  border-radius: var(--radius-xl);
  padding: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(91, 141, 239, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(91, 141, 239, 0.3), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-content {
  position: relative;
  flex: 1;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-content p {
  font-size: 17px;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  gap: 14px;
  position: relative;
  flex-shrink: 0;
}

/* ═══ Docs Section ═══ */

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.doc-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  backdrop-filter: blur(20px);
  display: block;
}

.doc-card:hover {
  border-color: rgba(91, 141, 239, 0.4);
  transform: translateY(-3px);
  background: rgba(17, 24, 39, 0.8);
}

.doc-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.doc-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.doc-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.doc-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: transform 0.2s;
}

.doc-card:hover .doc-link {
  transform: translateX(4px);
}

/* ═══ Footer ═══ */

.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  background: rgba(10, 15, 30, 0.4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-tag {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-green {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

/* ═══ Live Demo Widget ═══ */

.demo-section {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 21, 37, 0.4) 50%, transparent 100%);
}

.demo-widget {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 36px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.demo-form {
  margin-bottom: 24px;
}

.demo-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.demo-row-2 {
  gap: 16px;
  margin-bottom: 0;
}

.demo-field {
  flex: 1;
  min-width: 0;
}

.demo-field-amount {
  flex: 2;
}

.demo-field label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.demo-select,
.demo-input {
  position: relative;
}

.demo-select select,
.demo-input input {
  width: 100%;
  background: rgba(10, 15, 30, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-mono);
  font-weight: 600;
  outline: none;
  transition: all 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.demo-select select {
  padding-right: 34px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%238b93a8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.demo-select select:focus,
.demo-input input:focus {
  border-color: var(--accent);
  background: rgba(91, 141, 239, 0.05);
}

.demo-arrow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  margin-bottom: 12px;
}

.demo-btn {
  padding: 13px 28px;
  flex-shrink: 0;
}

.demo-result {
  min-height: 180px;
  background: rgba(10, 15, 30, 0.6);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.demo-result-placeholder {
  text-align: center;
}

.demo-placeholder-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.demo-placeholder-text {
  color: var(--text-muted);
  font-size: 14px;
}

.demo-result-success {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
}

.demo-result-stat {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.demo-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 6px;
}

.demo-stat-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.demo-stat-value.highlight {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.demo-route {
  grid-column: 1 / -1;
  padding: 14px 16px;
  background: rgba(91, 141, 239, 0.05);
  border: 1px solid rgba(91, 141, 239, 0.2);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.demo-route-step {
  color: var(--accent);
  font-weight: 700;
}

.demo-result-error {
  color: var(--danger);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
}

.demo-loading {
  color: var(--text-muted);
  font-size: 14px;
}

/* ═══ Comparison Table ═══ */

.comparison-section {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 21, 37, 0.4) 50%, transparent 100%);
}

.comparison-table-wrap {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: rgba(10, 15, 30, 0.8);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

.comp-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

.comp-sub {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 4px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.comparison-table .comp-us {
  background: rgba(91, 141, 239, 0.05);
  border-left: 1px solid rgba(91, 141, 239, 0.2);
  border-right: 1px solid rgba(91, 141, 239, 0.2);
}

.comp-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  font-weight: 800;
  font-size: 12px;
}

.comp-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  font-weight: 700;
  font-size: 12px;
}

.comp-partial {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table tbody tr:hover .comp-us {
  background: rgba(91, 141, 239, 0.1);
}

/* ═══ FAQ Section ═══ */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: rgba(91, 141, 239, 0.4);
}

.faq-item summary {
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.3s, color 0.3s;
  line-height: 1;
  margin-left: 16px;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-content {
  padding: 0 28px 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
}

.faq-content p {
  margin-bottom: 12px;
}

.faq-content p:last-child {
  margin-bottom: 0;
}

.faq-content ul {
  padding-left: 22px;
  margin: 12px 0;
}

.faq-content li {
  margin-bottom: 6px;
}

.faq-content strong {
  color: var(--text);
  font-weight: 600;
}

.faq-content code {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  background: rgba(91, 141, 239, 0.1);
  border-radius: 4px;
  color: var(--accent);
}

/* ═══ Mobile Menu ═══ */

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(5, 8, 20, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.mobile-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-menu-cta {
  margin-top: 8px;
  background: var(--grad-primary);
  color: #fff !important;
  text-align: center;
  font-weight: 700 !important;
}

/* ═══ Scroll Reveal ═══ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ Responsive ═══ */

@media (max-width: 1000px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-title { font-size: 44px; }
  .feature-grid,
  .problem-grid,
  .bench-grid,
  .docs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .flow-modes {
    grid-template-columns: 1fr;
  }
  .flow-diagram {
    flex-direction: column;
    gap: 20px;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
  .nav-links { display: none; }
  .metrics-strip-inner {
    flex-wrap: wrap;
    gap: 20px;
  }
  .metric-divider { display: none; }
  .cta-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .problem-grid,
  .bench-grid,
  .docs-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .section { padding: 64px 0; }
  .hero-title { font-size: 36px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-content h2 { font-size: 28px; }
}
