/* ═════════════════════════════════════
   LOP — Liquidity On Passport (exchange-v2)
   Dark premium theme · Glass morphism · Cinematic animations
   ═════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --bg-primary: #07070f;
  --bg-secondary: #0b0d14;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-surface: rgba(255, 255, 255, 0.04);

  --text-primary: #e2e4ec;
  --text-secondary: #9094a8;
  --text-tertiary: #606478;
  --text-inverse: #0b0d14;

  --accent: #f0c040;
  --accent-dim: rgba(240, 192, 64, 0.15);
  --accent-glow: rgba(240, 192, 64, 0.3);
  --accent-alt: #ff8a50;
  --green: #4cd964;
  --red: #ff4757;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(240, 192, 64, 0.2);

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

  --font-sans: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);

  --nav-height: 72px;
}

/* ── Light Mode ── */
:root[data-theme="light"] {
  --bg-primary: #f2f3f7;
  --bg-secondary: #e8e9ee;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.92);
  --bg-surface: rgba(255, 255, 255, 0.65);

  --text-primary: #1a1a2e;
  --text-secondary: #555770;
  --text-tertiary: #8e8ea0;
  --text-inverse: #ffffff;

  --accent: #c8a030;
  --accent-dim: rgba(200, 160, 48, 0.12);
  --accent-glow: rgba(200, 160, 48, 0.15);
  --accent-alt: #e08030;

  --green: #34c759;
  --red: #ff3b30;

  --border: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.14);
  --border-accent: rgba(200, 160, 48, 0.2);
}

[data-theme="light"] body::before {
  opacity: 0.5;
}
[data-theme="light"] body::after { opacity: 0.008; }

[data-theme="light"] .currency-float {
  color: rgba(200, 160, 48, 0.12);
}
[data-theme="light"] .ccy-pair {
  border-color: rgba(200, 160, 48, 0.12);
  background: rgba(200, 160, 48, 0.04);
  color: rgba(200, 160, 48, 0.12);
}

[data-theme="light"] .nav__inner {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04);
}

[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-sm,
[data-theme="light"] .btn-accent {
  box-shadow: 0 2px 12px rgba(200, 160, 48, 0.25);
}

[data-theme="light"] #currencyBg { opacity: 0.25; }
[data-theme="light"] #scanlines { display: none; }

[data-theme="light"] .metric-card {
  background: rgba(255,255,255,0.6);
}
[data-theme="light"] .metric-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

[data-theme="light"] .badge-gray {
  background: rgba(0,0,0,0.04);
  color: var(--text-tertiary);
  border-color: var(--border);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.2);
}

[data-theme="light"] .glow-text,
[data-theme="light"] .glow-text--amber,
[data-theme="light"] .glow-text--teal {
  text-shadow: none;
}

[data-theme="light"] .stat-value {
  text-shadow: none;
}

[data-theme="light"] .badge-green { background: rgba(52, 199, 89, 0.1); }
[data-theme="light"] .badge-yellow { background: rgba(200, 160, 48, 0.1); }
[data-theme="light"] .badge-blue { background: rgba(90, 200, 250, 0.08); }

[data-theme="light"] .corridor-tag:hover {
  background: rgba(200, 160, 48, 0.08);
} 
[data-theme="light"] .step:hover,
[data-theme="light"] .feature:hover,
[data-theme="light"] .ex-card:hover,
[data-theme="light"] .rev-card:hover,
[data-theme="light"] .glm-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

[data-theme="light"] .q-field {
  background: rgba(255,255,255,0.6);
}

[data-theme="light"] ::selection {
  background: rgba(200, 160, 48, 0.2);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection {
  background: rgba(240, 192, 64, 0.25);
  color: var(--text-primary);
}

/* ── Ambient Background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 60% at 15% 10%, rgba(240, 192, 64, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 85%, rgba(255, 138, 80, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(240, 192, 64, 0.03) 0%, transparent 40%);
  animation: ambientShift 25s ease-in-out infinite alternate;
  will-change: transform;
}

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

/* Subtle grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.025;
  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;
}

/* ── Floating Currency Symbols ── */
.currency-float {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  color: rgba(240, 192, 64, 0.08);
  font-family: var(--font-mono);
  font-weight: 700;
  animation: currencyRise linear infinite;
  will-change: transform;
}

@keyframes currencyRise {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  5% { opacity: 1; }
  50% { opacity: 1; }
  95% { opacity: 0.3; }
  100% { transform: translateY(-100vh) translateX(40px) rotate(15deg); opacity: 0; }
}

/* ── Currency Pair Badges (static decorative) ── */
.ccy-pair {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border: 1px solid rgba(240, 192, 64, 0.06);
  border-radius: 100px;
  background: rgba(240, 192, 64, 0.02);
  color: rgba(240, 192, 64, 0.06);
}

.ccy-pair--1 {
  top: 25%;
  left: 5%;
  animation: pairFloat1 35s ease-in-out infinite alternate;
}
.ccy-pair--2 {
  top: 65%;
  right: 3%;
  animation: pairFloat2 40s ease-in-out infinite alternate;
}
.ccy-pair--3 {
  top: 45%;
  left: 50%;
  animation: pairFloat3 30s ease-in-out infinite alternate;
}
.ccy-pair--4 {
  top: 15%;
  right: 15%;
  animation: pairFloat4 38s ease-in-out infinite alternate;
}
.ccy-pair--5 {
  top: 80%;
  left: 20%;
  animation: pairFloat5 32s ease-in-out infinite alternate;
}

@keyframes pairFloat1 {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(10px, -25px) rotate(3deg); }
}
@keyframes pairFloat2 {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-15px, -15px) rotate(-2deg); }
}
@keyframes pairFloat3 {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(8px, -20px) rotate(2deg); }
}
@keyframes pairFloat4 {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-12px, -10px) rotate(-4deg); }
}
@keyframes pairFloat5 {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(20px, -30px) rotate(3deg); }
}
/* ── Entrance Animations ── */
.animate-in {
  animation: fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.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.28s; }
.animate-in--5 { animation-delay: 0.36s; }
.animate-in--6 { animation-delay: 0.44s; }
.animate-in--7 { animation-delay: 0.52s; }
.animate-in--8 { animation-delay: 0.6s; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Shimmer sweep for badges */
.sweep {
  position: relative;
  overflow: hidden;
}

.sweep::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(240, 192, 64, 0.12), transparent);
  animation: sweepShimmer 4s ease-in-out infinite;
}

@keyframes sweepShimmer {
  0% { transform: translateX(-100%); }
  60% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 16px;
  z-index: 1000;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 24px;
  background: rgba(11, 13, 20, 0.75);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-inverse);
  flex-shrink: 0;
}

.logo-cn {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 1px;
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { transform: scaleX(1); }

/* Animated nav gradient line */
.nav__inner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent) 20%,
    var(--accent-alt) 50%,
    var(--accent) 80%,
    transparent 100%
  );
  opacity: 0;
  animation: navGlow 6s ease-in-out infinite;
}

@keyframes navGlow {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.7; }
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── Theme Toggle ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.9rem;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.theme-toggle:active {
  transform: scale(0.93);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.nav-toggle:hover { background: var(--bg-card); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn:hover::before { opacity: 1; }

.btn:active { transform: scale(0.97); }

.btn-primary {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: var(--text-inverse);
  font-weight: 700;
  border-radius: var(--radius-md);
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(240, 192, 64, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(240, 192, 64, 0.3);
}

.btn-secondary {
  padding: 14px 32px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.btn-outline-sm {
  padding: 7px 18px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.btn-outline-sm:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 7px 18px;
  background: linear-gradient(135deg, var(--accent), #e0a030);
  color: var(--text-inverse);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(240, 192, 64, 0.2);
}

.btn-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(240, 192, 64, 0.3);
}

.btn-accent {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: var(--text-inverse);
  font-weight: 700;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font-sans);
  box-shadow: 0 4px 16px rgba(240, 192, 64, 0.15);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(240, 192, 64, 0.25);
}

/* ── Hero ── */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px 24px 60px;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-bottom: 48px;
}

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── Quote Bar ── */
.quote-bar {
  padding: 32px 24px;
  position: relative;
}

.quote-bar::before {
  content: '';
  position: absolute;
  inset: 0 20px;
  top: 0;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  pointer-events: none;
}

.quote-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.quote-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  white-space: nowrap;
  padding: 4px 12px;
  background: var(--accent-dim);
  border-radius: 100px;
}

.quote-inputs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex: 1; }
.q-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 180px; }
.q-field label { font-size: 0.72rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.5px; }

.q-row {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2px;
  transition: border-color var(--transition-fast);
}

.q-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.1), 0 0 20px rgba(240, 192, 64, 0.04);
}

.q-amount {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  padding: 10px 14px;
  width: 140px;
  font-family: var(--font-sans);
  outline: none;
}

.q-amount[readonly] { color: var(--accent); font-weight: 700; }

.q-ccy {
  background: var(--bg-card-hover);
  border: none;
  color: var(--text-secondary);
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  cursor: pointer;
  outline: none;
}

.q-ccy option { background: var(--bg-secondary); color: var(--text-primary); }
.q-arrow { font-size: 1.3rem; color: var(--text-tertiary); }

/* ── Sections ── */
.section {
  padding: 120px 24px;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
  color: var(--text-primary);
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.step:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--accent-dim);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  transition: all var(--transition);
}

.step:hover .step-icon {
  background: var(--accent);
  color: var(--text-inverse);
  transform: scale(1.05);
}

.step h3 { font-size: 1.15rem; margin-bottom: 10px; font-weight: 700; }
.step p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

/* ── Features ── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1050px;
  margin: 0 auto;
}

.feature {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
}

.feature:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all var(--transition);
}

.feature:hover .feature-icon {
  background: var(--accent);
  color: var(--text-inverse);
}

.feature h3 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 700; }
.feature p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }

/* ── Core concept section (traveler liquidity) ── */
.concept-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.concept-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  max-width: 280px;
  flex: 1;
  min-width: 220px;
  transition: all var(--transition);
}

.concept-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.concept-card.highlight {
  border-color: var(--border-accent);
  background: rgba(240, 192, 64, 0.04);
}

.concept-card .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.concept-card h3 { margin: 12px 0 8px; font-weight: 700; }
.concept-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }

/* ── CTA ── */
.cta-section { padding-bottom: 80px; }

.cta-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 60px 44px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cta-card h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.02em; }
.cta-card p { color: var(--text-secondary); margin-bottom: 28px; font-size: 1.05rem; }
.cta-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-note { font-size: 0.8rem; margin-top: 20px; color: var(--text-tertiary) !important; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-brand { max-width: 260px; }
.footer-desc { font-size: 0.85rem; color: var(--text-tertiary); margin-top: 10px; line-height: 1.7; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.fl-col { display: flex; flex-direction: column; gap: 10px; }
.fl-col h4 { font-size: 0.8rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.fl-col a { font-size: 0.88rem; color: var(--text-secondary); transition: color var(--transition-fast); }
.fl-col a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ── Page Header (inner pages) ── */
.page-header {
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.page-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Tables ── */
.table-wrap {
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 0 24px;
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table-wrap th {
  text-align: left;
  padding: 14px 16px;
  color: var(--text-tertiary);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.table-wrap td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:hover td { background: rgba(240, 192, 64, 0.04); }

.rate-best { color: var(--green); font-weight: 600; }
.rate-mid { color: var(--text-primary); }
.rate-worst { color: var(--red); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-green { background: rgba(76, 217, 100, 0.12); color: var(--green); }
.badge-yellow { background: var(--accent-dim); color: var(--accent); }
.badge-blue { background: rgba(0, 122, 255, 0.12); color: #409cff; }
.badge-gray { background: rgba(255, 255, 255, 0.05); color: var(--text-tertiary); }

/* ── Exchanger Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.ex-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: start;
  transition: all var(--transition);
}

.ex-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.ex-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: var(--accent-dim);
  color: var(--accent);
}

.ex-body { flex: 1; }
.ex-name {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ex-meta {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin: 6px 0 10px;
}

.ex-rate {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ex-rate-num { font-size: 1.05rem; font-weight: 700; color: var(--green); }
.ex-rate-label { font-size: 0.75rem; color: var(--text-tertiary); }

.ex-action {
  padding: 7px 18px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border-accent);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.ex-action:hover {
  background: var(--accent);
  color: var(--text-inverse);
  transform: translateY(-1px);
}

/* ── Content Section (how-it-works) ── */
.content-section {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 56px 0 20px;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.content-section h2:first-child { margin-top: 0; }

.content-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

.content-section p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.content-section strong {
  color: var(--text-primary);
}

.content-section ul { list-style: none; margin-bottom: 24px; }
.content-section ul li {
  padding: 12px 0 12px 28px;
  position: relative;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.content-section ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Content section table */
.content-section table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 16px 0; }
.content-section table th { text-align: left; padding: 12px 10px; color: var(--text-tertiary); font-weight: 600; border-bottom: 1px solid var(--border); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.3px; }
.content-section table td { padding: 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.03); color: var(--text-secondary); }

/* ── Rev Cards (how-it-works) ── */
.rev-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.rev-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}

.rev-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.rev-card .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.rev-card .label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.rev-card .desc {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 6px;
  line-height: 1.6;
}

/* ── Global liquidity map card ── */
.glm-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 24px 0;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
}

.glm-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(240, 192, 64, 0.06);
}

/* ── Marketplace styles ── */
.filter-bar {
  max-width: 1000px;
  margin: 0 auto 32px;
  padding: 0 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar select,
.filter-bar input {
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.filter-bar select:focus,
.filter-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.08);
}

.filter-bar select option { background: var(--bg-secondary); color: var(--text-primary); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }

/* ── Selection ── */
::selection { background: rgba(240, 192, 64, 0.25); color: var(--text-primary); }

/* ═════════════════════════════════════
   HIGH-TECH ENHANCEMENTS
   ═════════════════════════════════════ */

/* ── Currency Exchange Network Background ── */
#currencyBg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Connection lines: subtle gold diagonal strokes */
  background-image:
    /* Line 1: top-left to bottom-right */
    linear-gradient(135deg,
      transparent 35%,
      rgba(240, 192, 64, 0.012) 36%,
      rgba(240, 192, 64, 0.012) 37%,
      transparent 38%),
    /* Line 2: top-right to bottom-left */
    linear-gradient(225deg,
      transparent 42%,
      rgba(240, 192, 64, 0.008) 43%,
      rgba(240, 192, 64, 0.008) 44%,
      transparent 45%),
    /* Line 3: horizontal */
    linear-gradient(90deg,
      transparent 20%,
      rgba(240, 192, 64, 0.006) 21%,
      rgba(240, 192, 64, 0.006) 22%,
      transparent 23%),
    /* Hub nodes */
    radial-gradient(ellipse 140px 100px at 22% 28%, rgba(240, 192, 64, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 120px 80px at 78% 22%, rgba(69, 183, 209, 0.03) 0%, transparent 70%),
    radial-gradient(ellipse 100px 100px at 50% 55%, rgba(240, 192, 64, 0.025) 0%, transparent 70%),
    radial-gradient(ellipse 80px 120px at 15% 72%, rgba(255, 138, 80, 0.02) 0%, transparent 60%),
    radial-gradient(ellipse 90px 90px at 85% 78%, rgba(240, 192, 64, 0.02) 0%, transparent 60%);
  animation: networkPulse 20s ease-in-out infinite alternate;
}

@keyframes networkPulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* ── Scan Line Overlay ── */
#scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* ── Floating Currency Symbols Container ── */
#currencySymbols {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Glow Text Utility ── */
.glow-text {
  text-shadow: 0 0 20px rgba(240, 192, 64, 0.15), 0 0 60px rgba(240, 192, 64, 0.05);
}

.glow-text--amber {
  text-shadow: 0 0 30px rgba(240, 192, 64, 0.25), 0 0 80px rgba(240, 192, 64, 0.08);
}

.glow-text--teal {
  text-shadow: 0 0 30px rgba(69, 183, 209, 0.25), 0 0 80px rgba(69, 183, 209, 0.08);
}

/* ── Live Pulse Dot ── */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4cd964;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 6px rgba(76, 217, 100, 0.6);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 4px rgba(76, 217, 100, 0.4); opacity: 1; }
  50% { box-shadow: 0 0 14px rgba(76, 217, 100, 0.9); opacity: 0.7; }
}

/* ── Digital Readout Stats ── */
.stat-value {
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #e8b020);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(240, 192, 64, 0.15);
  animation: statGlow 3s ease-in-out infinite alternate;
}

@keyframes statGlow {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.15); }
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-top: 4px;
}

.stat-unit {
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* ── Neon Button Pulse ── */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt), var(--accent));
  background-size: 200% 200%;
  z-index: -1;
  animation: neonBorderPulse 3s ease-in-out infinite;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.btn-primary:hover::after {
  opacity: 0.6;
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
}

@keyframes neonBorderPulse {
  0%, 100% { background-position: 0% 50%; opacity: 0.3; }
  50% { background-position: 100% 50%; opacity: 0.5; }
}

.btn-sm::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(240,192,64,0.4), rgba(69,183,209,0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-sm:hover::before {
  opacity: 1;
}

/* ── Digital Badge ── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

.badge-green { background: rgba(76, 217, 100, 0.12); color: #4cd964; border: 1px solid rgba(76, 217, 100, 0.15); }
.badge-yellow { background: rgba(255, 204, 0, 0.1); color: #ffcc00; border: 1px solid rgba(255, 204, 0, 0.15); }
.badge-blue { background: rgba(90, 200, 250, 0.1); color: #5ac8fa; border: 1px solid rgba(90, 200, 250, 0.15); }
.badge-gray { background: rgba(255, 255, 255, 0.04); color: var(--text-tertiary); border: 1px solid rgba(255, 255, 255, 0.06); }

/* ── Tech Divider ── */
.tech-divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(240, 192, 64, 0.15) 20%,
    rgba(240, 192, 64, 0.3) 50%,
    rgba(240, 192, 64, 0.15) 80%,
    transparent 100%
  );
  margin: 60px auto;
  max-width: 400px;
  position: relative;
}

.tech-divider::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(240, 192, 64, 0.6), 0 0 30px rgba(240, 192, 64, 0.2);
  animation: dividerDot 3s ease-in-out infinite;
}

@keyframes dividerDot {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(0.8); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

/* ── Holographic Card Edge ── */
.holo-edge {
  position: relative;
  overflow: hidden;
}

.holo-edge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(240, 192, 64, 0.15) 45%,
    rgba(69, 183, 209, 0.1) 50%,
    rgba(240, 192, 64, 0.15) 55%,
    transparent 60%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background-size: 200% 200%;
  animation: holoShift 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes holoShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ═════════════════════════════════════
   LOP INTERACTION ENGINE
   Animations · Tilt · Scroll Reveal · Cursor
   ═════════════════════════════════════ */

/* ── Canvas Background (interactive network) ── */
#fxCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  will-change: transform;
}

/* ── Cursor Glow ── */
#cursorGlow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,192,64,0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  transition: opacity 0.4s ease;
}
@media (pointer: coarse) { #cursorGlow { display: none; } }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.42s; }
.reveal-delay-6 { transition-delay: 0.52s; }
.reveal-delay-7 { transition-delay: 0.64s; }
.reveal-delay-8 { transition-delay: 0.76s; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92) translateY(10px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── 3D Tilt Cards ── */
.tilt-card {
  perspective: 800px;
  transform-style: preserve-3d;
}
.tilt-card__inner {
  transition: transform 0.15s cubic-bezier(0.03, 0.98, 0.52, 0.99);
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt-card__glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(240,192,64,0.08) 0%, transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.tilt-card:hover .tilt-card__glow {
  opacity: 1;
}

/* ── Magnetic Buttons ── */
.magnetic {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* ── Nav Hover Indicator ── */
.nav-indicator {
  position: absolute;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* ── Hover Glow overlay for cards ── */
.hover-glow {
  position: relative;
  overflow: hidden;
}
.hover-glow::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(240,192,64,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: inherit;
}
.hover-glow:hover::after {
  opacity: 1;
}

/* ── Ripple Click Effect ── */
.ripple {
  position: relative;
  overflow: hidden;
}
.ripple::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(240,192,64,0.25);
  width: 120px;
  height: 120px;
  margin-top: -60px;
  margin-left: -60px;
  top: var(--ripple-y, 50%);
  left: var(--ripple-x, 50%);
  transform: scale(0);
  opacity: 1;
  pointer-events: none;
}
.ripple:not(:active)::after {
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}
.ripple:active::after {
  transform: scale(4);
  opacity: 0;
  transition: none;
}

/* ── Smooth Counter Digit ── */
.counter-digit {
  display: inline-block;
  transition: transform 0.15s ease;
}

/* ── Light mode overrides for interaction effects ── */
[data-theme="light"] #cursorGlow {
  background: radial-gradient(circle, rgba(200,160,48,0.04) 0%, transparent 65%);
}
[data-theme="light"] #fxCanvas { opacity: 0.15; }
[data-theme="light"] .tilt-card__glow {
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(200,160,48,0.06) 0%, transparent 65%);
}

/* ── Cursor flash for data elements ── */
.data-cursor::after {
  content: '█';
  animation: cursorBlink 1s step-end infinite;
  color: var(--accent);
  font-size: 0.65em;
  vertical-align: middle;
  margin-left: 2px;
  opacity: 0.5;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0; }
}

/* ── Enhanced Hero Gradient Text ── */
.hero h1 .highlight {
  background: linear-gradient(135deg, #f0c040 0%, #e8a020 50%, #f0c040 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero h1 .highlight--accent {
  background: linear-gradient(135deg, #5ac8fa 0%, #45b7d1 50%, #5ac8fa 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease-in-out infinite;
}

/* ── Animated Progress Bar ── */
.progress-glow {
  height: 3px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent), var(--accent-dim));
  background-size: 200% 100%;
  border-radius: 2px;
  animation: progressSweep 3s linear infinite;
  position: relative;
  overflow: visible;
}

.progress-glow::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(240, 192, 64, 0.6);
  animation: progressDot 2s ease-in-out infinite;
}

@keyframes progressSweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes progressDot {
  0%, 100% { box-shadow: 0 0 8px rgba(240, 192, 64, 0.4); transform: scale(1); }
  50% { box-shadow: 0 0 20px rgba(240, 192, 64, 0.8); transform: scale(1.3); }
}

/* ── Swap Calculator Terminal Style ── */
.q-field {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(240, 192, 64, 0.08);
  transition: all 0.3s ease;
}

.q-field:focus-within {
  border-color: rgba(240, 192, 64, 0.3);
  box-shadow: 0 0 20px rgba(240, 192, 64, 0.06), inset 0 0 20px rgba(240, 192, 64, 0.03);
}

.q-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(76, 217, 100, 0.08);
  border: 1px solid rgba(76, 217, 100, 0.12);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #4cd964;
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  letter-spacing: 0.03em;
}

/* ── Tech Corner Brackets ── */
.tech-corner {
  position: relative;
}

.tech-corner::before,
.tech-corner::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(240, 192, 64, 0.12);
  border-style: solid;
  pointer-events: none;
}

.tech-corner::before {
  top: -8px;
  left: -8px;
  border-width: 1px 0 0 1px;
}

.tech-corner::after {
  bottom: -8px;
  right: -8px;
  border-width: 0 1px 1px 0;
}

/* ── Dashboard Metric Card ── */
.metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.metric-card:hover {
  border-color: rgba(240, 192, 64, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.metric-card:hover::before {
  opacity: 1;
}

/* ── Corridor tags (rates page) ── */
.corridor-tag {
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.corridor-tag:hover {
  background: rgba(240, 192, 64, 0.2);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ── prefers-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; }
}

/* ═════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════ */

/* Tablet & below */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .nav { top: 12px; padding: 0 12px; }
  .nav__inner { height: 52px; padding: 0 16px; border-radius: var(--radius-md); }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(11, 13, 20, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    gap: 0;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .nav-links a:last-child { border-bottom: none; }
  .nav-links a::after { display: none; }

  .nav-toggle { display: flex; }

  .hero {
    min-height: 80vh;
    padding: 32px 20px 40px;
  }

  .hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-sub { font-size: 1rem; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }

  .quote-bar { padding: 20px 16px; }
  .quote-bar::before { inset: 0 12px; border-radius: var(--radius-lg); }
  .quote-inner { flex-direction: column; gap: 12px; }
  .quote-inputs { flex-direction: column; align-items: stretch; }
  .q-field { min-width: unset; }
  .q-amount { width: 100%; }
  .q-arrow { transform: rotate(90deg); align-self: center; }

  .section { padding: 80px 20px; }
  .section-title { font-size: clamp(1.4rem, 6vw, 1.8rem); margin-bottom: 40px; }

  .steps, .features { grid-template-columns: 1fr; gap: 16px; }

  .step { padding: 28px 20px; }
  .feature { padding: 24px 20px; }

  .concept-cards { flex-direction: column; align-items: center; }
  .concept-card { max-width: 100%; }

  .cta-card { padding: 36px 24px; border-radius: var(--radius-lg); }
  .cta-card h2 { font-size: 1.4rem; }

  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .ex-card { padding: 20px; }

  .table-wrap { padding: 16px; margin: 0 12px 60px; }
  .table-wrap td, .table-wrap th { padding: 10px 8px; font-size: 0.78rem; }

  .rev-row { grid-template-columns: 1fr; }

  .page-header { padding: 60px 20px 40px; }

  .content-section { padding: 0 20px 60px; }
  .content-section h2 { font-size: 1.3rem; }

  .nav-actions .btn-outline-sm,
  .nav-actions .btn-sm {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  .filter-bar { padding: 0 16px; }

  .footer { padding: 40px 20px 20px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 24px; }

  .btn-primary, .btn-secondary {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(1.6rem, 8vw, 2rem); }

  .stat-num { font-size: 1.5rem; }
  .hero-stats { gap: 20px; }

  .nav-actions .btn-outline-sm { display: none; }
}
