/* ════════════════════════════════════════════════════════
   CashCross — Complete Redesigned Stylesheet v3
   Aesthetic: Premium fintech / currency exchange marketplace
   ════════════════════════════════════════════════════════ */

/* ── 1. CSS Variables (Dark Default) ── */
:root {
  --bg-primary: #050510;
  --bg-secondary: #0a0a1a;
  --bg-surface: #0f0f20;
  --bg-elevated: #181830;
  --bg-hover: #1e1e38;

  --text-primary: #f0f4f8;
  --text-secondary: #8899b4;
  --text-tertiary: #5a6a8a;

  --accent: #f0b429;
  --accent-rgb: 240, 180, 41;
  --accent-dim: rgba(240, 180, 41, 0.08);
  --accent-hover: #d4941e;

  --green: #10b981;
  --green-rgb: 16, 185, 129;
  --green-dim: rgba(16, 185, 129, 0.08);
  --red: #ef4444;
  --blue: #3b82f6;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(var(--accent-rgb), 0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --font-display: 'Inter', -apple-system, sans-serif;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 60px;
  --container: 1200px;
  --content: 800px;
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #f0f4f8;
  --bg-secondary: #e2e8f0;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-hover: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;

  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.16);
  --border-accent: rgba(var(--accent-rgb), 0.2);

  --accent: #d4941e;
  --accent-rgb: 212, 148, 30;
  --accent-dim: rgba(212, 148, 30, 0.08);
  --accent-hover: #b87d14;
}

/* ── 2. Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }
strong { color: var(--text-primary); }
::selection { background: rgba(var(--accent-rgb), 0.25); color: var(--text-primary); }

/* ── 3. Ambient Background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 15% 15%, rgba(var(--accent-rgb), 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 85%, rgba(var(--green-rgb), 0.03) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(99, 102, 241, 0.02) 0%, transparent 40%);
  animation: ambientShift 30s ease-in-out infinite alternate;
  will-change: transform;
}
[data-theme="light"] body::before { opacity: 0.6; }

@keyframes ambientShift {
  0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  50% { transform: translate(-0.5%, 1%) scale(1.02); opacity: 1; }
  100% { transform: translate(0.5%, -0.5%) scale(0.98); opacity: 0.85; }
}

/* Grain Overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
}
[data-theme="light"] body::after { opacity: 0.01; }

/* ── 4. Currency Network Background ── */
#ccNetwork {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
}
[data-theme="light"] #ccNetwork { opacity: 0.15; }

/* ── 5. Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(5, 5, 16, 0.6);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s;
}
[data-theme="light"] .nav {
  background: rgba(240, 244, 248, 0.75);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--accent), var(--green));
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s var(--ease-smooth);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-spring);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  transition: color 0.25s;
}
.theme-toggle:hover { color: var(--text-primary); }

.btn-outline-sm {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-smooth);
  cursor: pointer;
  font-family: inherit;
  background: transparent;
}
.btn-outline-sm:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm {
  padding: 6px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s var(--ease-smooth);
}
.btn-sm:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.25);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 6px;
}

/* ── 6. Hero — Split Layout ── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  align-items: center;
}
.hero-left { position: relative; z-index: 2; }
.hero-right { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.hero__eyebrow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.08), transparent);
  animation: eyebrowShimmer 4s ease-in-out infinite;
}
@keyframes eyebrowShimmer {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

.hero-left h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hero-left h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.3);
}
.btn-primary:active { transform: translateY(0) scale(0.97); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-spring);
  cursor: pointer;
  font-family: inherit;
  background: transparent;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.hero-metrics {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.metric {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 20px;
  border-right: 1px solid var(--border);
}
.metric:last-child { border-right: none; }
.metric-num {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.metric-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.3;
}

/* ── 7. Hero Visual — Currency Globe ── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-globe {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 35% 35%, rgba(var(--accent-rgb), 0.06), transparent 70%);
  animation: globePulse 8s ease-in-out infinite alternate;
}
@keyframes globePulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.05); opacity: 0.9; }
}
.hero-globe-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  animation: ringSpin 20s linear infinite;
}
.hero-globe-ring:nth-child(2) {
  inset: 25px;
  border-color: rgba(var(--green-rgb), 0.06);
  animation-direction: reverse;
  animation-duration: 25s;
}
.hero-globe-ring:nth-child(3) {
  inset: 50px;
  border-style: dashed;
  animation-duration: 30s;
}
@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-ccy-badge {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(5, 5, 16, 0.8);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  animation: badgeFloat 6s ease-in-out infinite alternate;
  white-space: nowrap;
}
.hero-ccy-badge--1 { top: 5%; left: -10%; animation-delay: 0s; }
.hero-ccy-badge--2 { top: 20%; right: -5%; animation-delay: -1.5s; }
.hero-ccy-badge--3 { bottom: 25%; left: -5%; animation-delay: -3s; }
.hero-ccy-badge--4 { bottom: 5%; right: 10%; animation-delay: -4.5s; }
@keyframes badgeFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* ── 8. Quick Swap Bar ── */
.quote-bar {
  padding: 20px 24px 40px;
  position: relative;
}
.quote-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
[data-theme="light"] .quote-inner { box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.quote-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.q-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-dim);
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.quote-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
}
.q-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 140px;
}
.q-field label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.q-row {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s;
}
.q-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}
.q-amount {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 14px;
  width: 120px;
  font-family: var(--font-sans);
  outline: none;
}
.q-amount::-webkit-outer-spin-button,
.q-amount::-webkit-inner-spin-button { -webkit-appearance: none; }
.q-amount[type="number"] { -moz-appearance: textfield; }
.q-amount[readonly] { color: var(--accent); font-weight: 600; }
.q-ccy {
  background: var(--bg-elevated);
  border: none;
  color: var(--text-primary);
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-family: var(--font-sans);
  cursor: pointer;
  outline: none;
  min-width: 72px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%235a6a8a' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}
.q-arrow {
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  padding: 6px;
}
.btn-accent {
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  white-space: nowrap;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.25);
}

/* ── 9. Sections ── */
.section {
  padding: 80px 24px;
  position: relative;
}
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-sub {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1rem;
  line-height: 1.7;
}

/* ── 10. How It Works — Alternating Flow ── */
.flow-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.flow-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  align-items: start;
}
.flow-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(var(--accent-rgb), 0.15);
  line-height: 1;
  text-align: right;
}
.flow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  transition: all 0.3s var(--ease-spring);
  position: relative;
}
.flow-card:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.flow-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.flow-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── 11. Feature Cards — 3-col grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s var(--ease-spring);
}
.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.feature-card-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius-md);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── 12. Value Props / Metrics Row ── */
.value-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
}
.value-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all 0.3s var(--ease-spring);
}
.value-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.value-card .num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.value-card .label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.value-card .desc {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 6px;
  line-height: 1.5;
}

/* ── 13. CTA Section ── */
.cta-section { padding-bottom: 60px; }
.cta-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 52px 40px;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--green), transparent);
}
.cta-card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cta-card p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 0.95rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── 14. Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 280px; }
.footer-desc {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 10px;
  line-height: 1.6;
}
.footer-links { display: flex; gap: 48px; }
.fl-col { display: flex; flex-direction: column; gap: 10px; }
.fl-col h4 {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.fl-col a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  font-weight: 400;
}
.fl-col a:hover { color: var(--text-primary); }
.footer-bottom {
  max-width: var(--container);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* ── 15. Inner Pages ── */
.page-header {
  padding: calc(var(--nav-height) + 40px) 24px 40px;
  text-align: center;
  position: relative;
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.page-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── 16. Table ── */
.table-wrap {
  max-width: var(--container);
  margin: 0 auto 60px;
  padding: 0 24px;
  overflow-x: auto;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.table-wrap thead th {
  text-align: left;
  padding: 14px 16px;
  color: var(--text-tertiary);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--border);
}
.table-wrap tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.table-wrap tbody tr:hover td {
  background: rgba(var(--accent-rgb), 0.03);
}
.rate-best { color: var(--green); font-weight: 600; }
.rate-mid { color: var(--text-primary); }
.rate-worst { color: var(--red); }
.num-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ── 17. Corridor Tags ── */
.corridor-tags {
  max-width: var(--container);
  margin: 0 auto 60px;
  padding: 0 24px;
}
.corridor-tags h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.corridor-tag {
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.corridor-tag:hover {
  border-color: rgba(var(--accent-rgb), 0.25);
  background: rgba(var(--accent-rgb), 0.1);
}

/* ── 18. Badges ── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge-green { background: var(--green-dim); color: var(--green); }
.badge-yellow { background: var(--accent-dim); color: var(--accent); }
.badge-blue { background: rgba(59, 130, 246, 0.1); color: var(--blue); }
.badge-gray { background: rgba(255, 255, 255, 0.04); color: var(--text-tertiary); }
[data-theme="light"] .badge-gray { background: rgba(0,0,0,0.04); }

/* ── 19. Exchange Cards (Marketplace) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto 60px;
  padding: 0 24px;
}
.ex-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: start;
  transition: all 0.3s var(--ease-spring);
}
.ex-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.ex-avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ex-body { flex: 1; }
.ex-name {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ex-meta {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin: 6px 0 10px;
}
.ex-rate {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ex-rate-num {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
}
.ex-rate-label { font-size: 0.72rem; color: var(--text-tertiary); }
.ex-action {
  padding: 6px 16px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border-accent);
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
  font-family: inherit;
}
.ex-action:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── 20. How It Works Content Page ── */
.content-section {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px 80px;
}
.content-section h2 {
  font-size: 1.4rem;
  margin: 48px 0 16px;
  color: var(--accent);
  font-weight: 700;
}
.content-section h3 {
  font-size: 1.05rem;
  margin: 24px 0 12px;
  color: var(--text-primary);
  font-weight: 600;
}
.content-section p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.75;
  font-size: 0.92rem;
}
.content-section > ul {
  list-style: none;
  margin-bottom: 20px;
}
.content-section > ul li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.content-section > ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ── 21. Filter Bar ── */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar select {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 36px 10px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%235a6a8a' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 160px;
}
.filter-bar select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.1);
}

/* ── 22. GLM / Info Card ── */
.glm-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  text-align: center;
}

/* ── 23. Animations ── */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeSlideUp 0.7s var(--ease-spring) forwards;
}
.animate-in--1 { animation-delay: 0.05s; }
.animate-in--2 { animation-delay: 0.12s; }
.animate-in--3 { animation-delay: 0.2s; }
.animate-in--4 { animation-delay: 0.3s; }
.animate-in--5 { animation-delay: 0.4s; }
.animate-in--6 { animation-delay: 0.5s; }
.animate-in--7 { animation-delay: 0.6s; }
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── 24. Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.16); }

/* ── 25. Interaction Layer ── */
#cursorGlow {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.03) 0%, transparent 60%);
  transform: translate(-200px, -200px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
@media (pointer: coarse) { #cursorGlow { display: none; } }

/* ── 26. Focus ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.theme-toggle:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── 27. Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .animate-in { opacity: 1; transform: none; }
}

/* ── 28. Responsive ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { display: none; }
  .hero { min-height: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .value-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-inner { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 20px;
    z-index: 100;
  }
  [data-theme="light"] .nav-links.open { background: rgba(240, 244, 248, 0.95); }
  .nav-toggle { display: flex; }
  .btn-outline-sm, .btn-sm { font-size: 0.78rem; padding: 5px 12px; }

  .hero { padding: calc(var(--nav-height) + 24px) 16px 40px; }
  .hero-left h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .hero-metrics { gap: 12px; }
  .metric { padding-right: 12px; }
  .metric:last-child { border-right: none; }
  .metric-num { font-size: 1.1rem; }

  .quote-inner { flex-direction: column; align-items: stretch; padding: 16px; }
  .quote-inputs { flex-direction: column; }
  .q-amount { width: 100%; }
  .q-arrow { transform: rotate(90deg); align-self: center; }

  .section { padding: 48px 16px; }
  .section-title { font-size: clamp(1.3rem, 5vw, 1.6rem); }
  .section-sub { margin-bottom: 32px; }

  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .value-row { grid-template-columns: 1fr; gap: 12px; }
  .flow-step { grid-template-columns: 40px 1fr; gap: 16px; }
  .flow-number { font-size: 1.5rem; text-align: left; }

  .card-grid { grid-template-columns: 1fr; gap: 12px; padding: 0 16px; }
  .footer-links { gap: 24px; flex-wrap: wrap; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .table-wrap { padding: 0 12px; }
  .table-wrap td, .table-wrap th { padding: 10px 8px; font-size: 0.78rem; }
  .cta-card { padding: 36px 24px; }
  .page-header { padding: calc(var(--nav-height) + 24px) 16px 32px; }
  .content-section { padding: 0 16px 60px; }
  .filter-bar select { min-width: 140px; }
}
