/* ==========================================================================
   Backpack AEO Network — Design System v2
   Glassmorphism · Dynamic Depth · Motion · H5 Interactive
   ========================================================================== */

/* ===== 1. Design Tokens ===== */
:root {
  /* Backgrounds — layered depth, not flat */
  --bg-void: #08090D;
  --bg-base: #0E0F14;
  --bg-surface: rgba(20, 21, 28, 0.6);
  --bg-elevated: rgba(26, 27, 35, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  /* Borders — glassmorphism */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-strong: rgba(255, 255, 255, 0.14);
  --border-brand: rgba(227, 62, 63, 0.35);

  /* Text */
  --text-primary: #F4F4F6;
  --text-secondary: #A0A8B8;
  --text-muted: #5C6577;
  --text-dim: #3D4452;
  --text-on-brand: #FFFFFF;

  /* Brand — Backpack Red */
  --brand: #E33E3F;
  --brand-bright: #FF4D4E;
  --brand-deep: #C32D2E;
  --brand-glow: rgba(227, 62, 63, 0.15);
  --brand-glow-strong: rgba(227, 62, 63, 0.3);

  /* Accents */
  --accent-emerald: #00D9A3;
  --accent-sky: #38BDF8;
  --accent-violet: #A78BFA;
  --accent-amber: #FBBF24;
  --accent-rose: #FB7185;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #E33E3F 0%, #FF6B4A 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(227,62,63,0.12) 0%, rgba(255,107,74,0.06) 100%);
  --grad-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(227, 62, 63, 0.12), transparent);
  --grad-text: linear-gradient(135deg, #FFFFFF 0%, #A0A8B8 100%);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing — 4px base */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
  --sp-32: 128px;

  /* Layout */
  --container-max: 1180px;
  --container-pad: 24px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 60px rgba(227, 62, 63, 0.12);
  --shadow-card-glow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.04) inset;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 200ms var(--ease-out);
  --t-normal: 400ms var(--ease-out);
  --t-slow: 700ms var(--ease-out);
}

/* ===== 2. Font Face ===== */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/plus-jakarta-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/plus-jakarta-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/plus-jakarta-sans-2.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/plus-jakarta-sans-2.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/plus-jakarta-sans-2.woff2') format('woff2');
}

/* ===== 3. Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
img, svg { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* ===== 4. Animated Background (H5) ===== */
.bg-canvas {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: var(--bg-void);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, black 30%, transparent 80%);
}
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none;
  border-radius: 50%; filter: blur(80px); opacity: 0.5;
}
.bg-glow-1 {
  width: 500px; height: 500px; top: -100px; left: -100px;
  background: radial-gradient(circle, rgba(227,62,63,0.18), transparent 70%);
  animation: float-glow 18s ease-in-out infinite;
}
.bg-glow-2 {
  width: 400px; height: 400px; top: 30%; right: -100px;
  background: radial-gradient(circle, rgba(56,189,248,0.08), transparent 70%);
  animation: float-glow 22s ease-in-out infinite reverse;
}
@keyframes float-glow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 30px) scale(1.1); }
  66% { transform: translate(-30px, 50px) scale(0.95); }
}

/* ===== 5. Typography ===== */
h1, h2, h3, h4 {
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; color: var(--text-primary);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
p { line-height: 1.7; }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.text-brand-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-mono { font-family: var(--font-mono); }

/* ===== 6. Layout ===== */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.section { padding: var(--sp-24) 0; position: relative; }
.section-tight { padding: var(--sp-16) 0; }

/* ===== 7. Components ===== */

/* --- Skip Link --- */
.skip-link {
  position: absolute; top: -48px; left: 0;
  background: var(--brand); color: #fff;
  padding: var(--sp-2) var(--sp-4); z-index: 3000;
  font-size: 0.875rem; border-radius: 0 0 var(--r-sm) 0;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

/* --- Header (Glassmorphism) --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(8, 9, 13, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all var(--t-normal);
}
.site-header.scrolled {
  background: rgba(8, 9, 13, 0.85);
  border-bottom-color: var(--border-glass);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.header-logo { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }
.header-logo svg { height: 26px; color: var(--text-primary); }
.header-nav {
  display: none; align-items: center; gap: var(--sp-1);
  margin-left: auto; margin-right: var(--sp-4);
}
.header-nav a {
  font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.header-nav a:hover { color: var(--text-primary); background: var(--bg-glass); }
.header-actions { display: flex; align-items: center; gap: var(--sp-3); }
.header-lang {
  display: flex; align-items: center; gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  font-size: 0.8125rem; color: var(--text-secondary);
  transition: all var(--t-fast); cursor: pointer;
  position: relative; z-index: 1001;
}
.header-lang:hover { background: var(--bg-glass-hover); color: var(--text-primary); }
.header-lang svg { width: 14px; height: 14px; }
.header-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  color: var(--text-secondary); transition: all var(--t-fast);
}
.header-toggle:hover { background: var(--bg-glass-hover); color: var(--text-primary); }
.header-toggle svg { width: 20px; height: 20px; }

@media (min-width: 1024px) {
  .header-nav { display: flex; }
  .header-toggle { display: none; }
}

/* --- Language Dropdown --- */
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: rgba(20, 21, 28, 0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass); border-radius: var(--r-md);
  padding: var(--sp-2); min-width: 180px;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: all var(--t-fast);
  z-index: 1100;
}
.lang-dropdown.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-dropdown a {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  font-size: 0.8125rem; color: var(--text-secondary);
  transition: all var(--t-fast);
}
.lang-dropdown a:hover { background: var(--bg-glass); color: var(--text-primary); }
.lang-dropdown a.active { color: var(--brand); }
.lang-dropdown a .lang-code { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-muted); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-size: 0.9375rem; font-weight: 600;
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r-sm);
  transition: all var(--t-fast); white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0; transition: opacity var(--t-fast);
}
.btn:hover::before { opacity: 1; }
.btn-primary {
  background: var(--grad-brand); color: var(--text-on-brand);
  box-shadow: 0 4px 20px rgba(227, 62, 63, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(227, 62, 63, 0.4);
}
.btn-glass {
  background: var(--bg-glass); color: var(--text-primary);
  border-color: var(--border-glass); backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: var(--bg-glass-hover); border-color: var(--border-glass-strong);
  transform: translateY(-1px);
}
.btn-lg { padding: var(--sp-4) var(--sp-6); font-size: 1rem; }
.btn-sm { padding: var(--sp-2) var(--sp-4); font-size: 0.8125rem; }
.btn-block { width: 100%; }

/* --- Badge / Pill --- */
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: 0.8125rem; font-weight: 500;
  padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill);
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  color: var(--text-secondary); backdrop-filter: blur(10px);
}
.badge-brand {
  background: var(--brand-glow); border-color: var(--border-brand); color: var(--brand-bright);
}
.badge-emerald {
  background: rgba(0,217,163,0.1); border-color: rgba(0,217,163,0.25); color: var(--accent-emerald);
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; }
  50% { opacity: 0.6; box-shadow: 0 0 0 4px transparent; }
}

/* --- Glass Card --- */
.glass-card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card-glow);
  transition: all var(--t-normal);
}
.glass-card:hover {
  border-color: var(--border-glass-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.06) inset;
}

/* ===== 8. Hero ===== */
.hero {
  position: relative; padding: 140px 0 80px; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-12);
  align-items: center; position: relative; z-index: 1;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--sp-16); }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  animation: fade-up 600ms var(--ease-out) both;
}
.hero h1 {
  margin-bottom: var(--sp-5);
  animation: fade-up 700ms var(--ease-out) 100ms both;
}
.hero h1 .highlight {
  position: relative; display: inline-block;
}
.hero h1 .highlight::after {
  content: ''; position: absolute; bottom: 2px; left: 0; right: 0;
  height: 3px; background: var(--grad-brand);
  border-radius: 2px; opacity: 0.8;
}
.hero-subtitle {
  font-size: 1.1875rem; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: var(--sp-6); max-width: 540px;
  animation: fade-up 700ms var(--ease-out) 200ms both;
}
.hero-direct-answer {
  font-size: 0.9375rem; color: var(--text-secondary);
  padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md);
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-left: 3px solid var(--brand);
  margin-bottom: var(--sp-6); max-width: 560px;
  backdrop-filter: blur(10px);
  animation: fade-up 700ms var(--ease-out) 300ms both;
}
.hero-direct-answer strong { color: var(--text-primary); }
.hero-cta-group {
  display: flex; flex-direction: column; gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  animation: fade-up 700ms var(--ease-out) 400ms both;
}
@media (min-width: 480px) { .hero-cta-group { flex-direction: row; } }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  animation: fade-up 700ms var(--ease-out) 500ms both;
}
.hero-trust-item {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 0.8125rem; color: var(--text-secondary);
  padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill);
  background: var(--bg-glass); border: 1px solid var(--border-glass);
}
.hero-trust-item svg { width: 14px; height: 14px; color: var(--accent-emerald); }

/* --- Registration Card (Glassmorphism H5) --- */
.reg-card {
  background: var(--bg-elevated);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass-strong);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04) inset;
  position: relative;
  animation: fade-up 800ms var(--ease-out) 300ms both;
}
.reg-card::before {
  content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
.reg-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-5); padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border-glass);
}
.reg-card-title { font-size: 0.9375rem; font-weight: 600; }
.reg-card-badge {
  font-size: 0.75rem; display: flex; align-items: center; gap: 4px;
  color: var(--accent-emerald);
}
.reg-field { margin-bottom: var(--sp-3); }
.reg-field-label {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: var(--sp-1);
  display: block;
}
.reg-field-input {
  width: 100%; height: 46px; padding: 0 var(--sp-3);
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--r-sm); color: var(--text-primary);
  font-size: 0.9375rem; font-family: var(--font-sans);
  display: block; transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none; -webkit-appearance: none;
}
.reg-field-input::placeholder { color: var(--text-dim); }
.reg-field-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.reg-field-input:hover { border-color: var(--border-glass-strong); }
.reg-form { width: 100%; }
.reg-card-cta { margin-top: var(--sp-4); }
.reg-card-divider {
  display: flex; align-items: center; gap: var(--sp-3);
  margin: var(--sp-4) 0; font-size: 0.75rem; color: var(--text-muted);
}
.reg-card-divider::before, .reg-card-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-glass);
}
.reg-social { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.reg-social-btn {
  height: 42px; background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 0.75rem; font-weight: 500;
  transition: all var(--t-fast);
}
.reg-social-btn:hover {
  background: var(--bg-glass-hover); color: var(--text-primary);
  border-color: var(--border-glass-strong); transform: translateY(-1px);
}
.reg-card-footer {
  margin-top: var(--sp-4); padding-top: var(--sp-3);
  border-top: 1px solid var(--border-glass);
  font-size: 0.6875rem; color: var(--text-muted); text-align: center; line-height: 1.5;
}

/* ===== 9. Stats Bar (Animated Counters) ===== */
.stats-bar {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border-glass); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border-glass);
}
@media (min-width: 768px) { .stats-bar { grid-template-columns: repeat(4, 1fr); } }
.stat-item {
  background: var(--bg-base); padding: var(--sp-6) var(--sp-4);
  text-align: center; transition: background var(--t-fast);
}
.stat-item:hover { background: var(--bg-surface); }
.stat-value {
  font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800;
  font-family: var(--font-mono); color: var(--text-primary);
  margin-bottom: 2px; letter-spacing: -0.03em;
}
.stat-label { font-size: 0.8125rem; color: var(--text-muted); }

/* ===== 10. Section Header ===== */
.section-header {
  text-align: center; margin-bottom: var(--sp-12);
  max-width: 660px; margin-left: auto; margin-right: auto;
}
.section-header h2 { margin-bottom: var(--sp-3); }
.section-header p { font-size: 1.0625rem; color: var(--text-secondary); }
.section-eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-bright);
  margin-bottom: var(--sp-3);
}

/* ===== 11. Steps Grid ===== */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

.step-card {
  background: var(--bg-surface); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass); border-radius: var(--r-lg);
  padding: var(--sp-6); position: relative; overflow: hidden;
  transition: all var(--t-normal);
}
.step-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-normal);
}
.step-card:hover { border-color: var(--border-glass-strong); transform: translateY(-4px); }
.step-card:hover::before { transform: scaleX(1); }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--brand-glow); border: 1px solid var(--border-brand);
  color: var(--brand-bright); font-family: var(--font-mono);
  font-size: 0.9375rem; font-weight: 700; margin-bottom: var(--sp-4);
}
.step-card h3 { margin-bottom: var(--sp-2); }
.step-card p { font-size: 0.9375rem; color: var(--text-secondary); }
.step-note {
  margin-top: var(--sp-3); padding: var(--sp-2) var(--sp-3);
  background: rgba(56,189,248,0.08); border-radius: var(--r-sm);
  font-size: 0.8125rem; color: var(--accent-sky);
  display: flex; align-items: center; gap: var(--sp-2);
}
.step-note svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ===== 12. Features Grid ===== */
.features-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 600px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--bg-surface); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass); border-radius: var(--r-lg);
  padding: var(--sp-6); position: relative; overflow: hidden;
  transition: all var(--t-normal);
}
.feature-card::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow), transparent 70%);
  opacity: 0; transition: opacity var(--t-normal);
  pointer-events: none;
}
.feature-card:hover { border-color: var(--border-glass-strong); transform: translateY(-4px); }
.feature-card:hover::after { opacity: 1; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--brand-glow); border: 1px solid var(--border-brand);
  margin-bottom: var(--sp-4);
}
.feature-icon svg { width: 22px; height: 22px; color: var(--brand-bright); }
.feature-card h3 { font-size: 1.0625rem; margin-bottom: var(--sp-2); }
.feature-card p { font-size: 0.875rem; color: var(--text-secondary); }

/* ===== 13. Download Section ===== */
.download-wrap {
  background: var(--bg-surface); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass); border-radius: var(--r-xl);
  padding: var(--sp-12); position: relative; overflow: hidden;
}
.download-wrap::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, var(--brand-glow), transparent 60%);
  pointer-events: none;
}
.download-content {
  display: flex; flex-wrap: wrap; gap: var(--sp-8);
  align-items: center; justify-content: center; position: relative;
}
.download-platforms {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-3);
  max-width: 400px; margin: var(--sp-6) auto 0;
}
@media (min-width: 600px) { .download-platforms { grid-template-columns: repeat(3, 1fr); } }
.platform-btn {
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--r-md); padding: var(--sp-4);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  transition: all var(--t-fast);
}
.platform-btn:hover {
  background: var(--bg-glass-hover); border-color: var(--border-glass-strong);
  transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.platform-btn svg { width: 30px; height: 30px; }
.platform-name { font-weight: 600; font-size: 0.875rem; }
.platform-meta { font-size: 0.75rem; color: var(--text-muted); }

/* ===== 14. CSS Phone Mockup (H5 Animated) ===== */
.phone-mockup {
  width: 240px; margin: 0 auto; position: relative;
  animation: float-phone 6s ease-in-out infinite;
}
@keyframes float-phone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.phone-frame {
  background: linear-gradient(145deg, #1a1b22, #0e0f14);
  border: 2px solid var(--border-glass-strong); border-radius: 32px;
  padding: var(--sp-2); box-shadow: var(--shadow-lg), 0 0 60px rgba(227,62,63,0.08);
}
.phone-screen {
  background: var(--bg-base); border-radius: 24px;
  padding: var(--sp-4) var(--sp-3); aspect-ratio: 9 / 16;
  display: flex; flex-direction: column; gap: var(--sp-2); overflow: hidden;
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 18px; background: #000; border-radius: 0 0 12px 12px; z-index: 2;
}
.phone-header {
  display: flex; align-items: center; justify-content: space-between; padding-top: var(--sp-3);
}
.phone-logo { display: flex; align-items: center; gap: 4px; }
.phone-logo-icon {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--grad-brand); position: relative;
}
.phone-logo-icon::after {
  content: ''; position: absolute; top: 3px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.8);
}
.phone-logo-text { font-size: 0.625rem; font-weight: 800; }
.phone-avatar { width: 18px; height: 18px; border-radius: 50%; background: var(--border-glass-strong); }
.phone-balance {
  background: var(--bg-elevated); border: 1px solid var(--border-glass);
  border-radius: var(--r-md); padding: var(--sp-3);
}
.phone-balance-label { font-size: 0.5625rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.phone-balance-value {
  font-size: 1rem; font-weight: 800; font-family: var(--font-mono);
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.phone-balance-change { font-size: 0.5625rem; color: var(--accent-emerald); font-family: var(--font-mono); }
.phone-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.phone-action {
  background: var(--bg-elevated); border: 1px solid var(--border-glass);
  border-radius: var(--r-sm); padding: 6px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.phone-action-icon {
  width: 14px; height: 14px; border-radius: 4px; opacity: 0.7;
}
.phone-action-label { font-size: 0.5rem; color: var(--text-muted); }
.phone-list-item {
  background: var(--bg-elevated); border: 1px solid var(--border-glass);
  border-radius: var(--r-sm); padding: 6px 8px;
  display: flex; align-items: center; justify-content: space-between;
  transition: transform var(--t-fast);
}
.phone-list-item:hover { transform: translateX(4px); }
.phone-list-left { display: flex; align-items: center; gap: 6px; }
.phone-list-icon { width: 18px; height: 18px; border-radius: 50%; }
.phone-list-name { font-size: 0.5625rem; font-weight: 600; }
.phone-list-value { font-size: 0.5625rem; font-family: var(--font-mono); }

/* ===== 15. FAQ (Glassmorphism Accordion) ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--bg-surface); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass); border-radius: var(--r-md);
  margin-bottom: var(--sp-2); overflow: hidden;
  transition: all var(--t-fast);
}
.faq-item:hover { border-color: var(--border-glass-strong); }
.faq-item.open { border-color: var(--border-brand); background: var(--bg-elevated); }
.faq-question {
  width: 100%; text-align: left; padding: var(--sp-4) var(--sp-5);
  font-size: 0.9375rem; font-weight: 600; color: var(--text-primary);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
}
.faq-question-icon {
  flex-shrink: 0; width: 20px; height: 20px; color: var(--text-muted);
  transition: transform var(--t-normal), color var(--t-fast);
}
.faq-item.open .faq-question-icon { transform: rotate(135deg); color: var(--brand-bright); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--t-normal); }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner {
  padding: 0 var(--sp-5) var(--sp-4); font-size: 0.9375rem;
  color: var(--text-secondary); line-height: 1.7;
}

/* ===== 16. Risk Notice ===== */
.risk-notice {
  background: var(--bg-surface); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass); border-left: 3px solid var(--accent-amber);
  border-radius: var(--r-md); padding: var(--sp-5) var(--sp-6);
  max-width: 780px; margin: 0 auto;
}
.risk-notice h3 {
  font-size: 0.9375rem; color: var(--accent-amber); margin-bottom: var(--sp-2);
  display: flex; align-items: center; gap: var(--sp-2);
}
.risk-notice p { font-size: 0.875rem; color: var(--text-muted); }

/* ===== 17. Final CTA ===== */
.final-cta { text-align: center; position: relative; overflow: hidden; }
.final-cta-inner {
  background: var(--bg-surface); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass); border-radius: var(--r-xl);
  padding: var(--sp-16) var(--sp-6); position: relative; overflow: hidden;
}
.final-cta-inner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, var(--brand-glow), transparent 70%);
  pointer-events: none;
}
.final-cta h2 { margin-bottom: var(--sp-3); position: relative; }
.final-cta p {
  font-size: 1.0625rem; color: var(--text-secondary);
  margin-bottom: var(--sp-6); position: relative;
}
.final-cta-group {
  display: flex; flex-direction: column; gap: var(--sp-3);
  justify-content: center; position: relative;
}
@media (min-width: 480px) { .final-cta-group { flex-direction: row; } }
.final-cta-benefits {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--sp-4); margin-top: var(--sp-5); position: relative;
}
.final-cta-benefit {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 0.8125rem; color: var(--text-muted);
}
.final-cta-benefit svg { width: 14px; height: 14px; color: var(--accent-emerald); }

/* ===== 18. Footer ===== */
.site-footer { border-top: 1px solid var(--border-glass); padding: var(--sp-8) 0; position: relative; }
.footer-inner {
  display: flex; flex-direction: column; gap: var(--sp-5);
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-brand { display: flex; align-items: center; gap: var(--sp-2); }
.footer-brand svg { height: 24px; color: var(--text-secondary); }
.footer-links {
  display: flex; flex-wrap: wrap; gap: var(--sp-5);
  font-size: 0.8125rem; color: var(--text-muted);
}
.footer-links a:hover { color: var(--text-secondary); }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: var(--sp-5); }

/* ===== 19. Sticky Mobile CTA ===== */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: rgba(8, 9, 13, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border-glass);
  padding: var(--sp-2) var(--sp-4); display: flex; gap: var(--sp-2);
  transform: translateY(100%); transition: transform var(--t-normal);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .btn { flex: 1; }
.sticky-cta { display: none !important; }
@media (max-width: 767px) { body.sticky-visible { padding-bottom: 68px; } }

/* ===== 20. Mobile Menu ===== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(8, 9, 13, 0.98);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column;
  padding: 80px var(--container-pad) var(--sp-8);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-normal);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-close {
  position: absolute; top: 16px; right: var(--container-pad);
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  display: flex; align-items: center; justify-content: center; color: var(--text-secondary);
}
.mobile-menu-links { display: flex; flex-direction: column; gap: var(--sp-3); }
.mobile-menu-links a {
  font-size: 1.25rem; font-weight: 700; padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border-glass);
}
.mobile-menu-cta { margin-top: var(--sp-6); }
.mobile-menu-lang {
  margin-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-2);
}
.mobile-menu-lang a {
  font-size: 0.8125rem; padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill); background: var(--bg-glass);
  border: 1px solid var(--border-glass); color: var(--text-secondary);
  font-weight: 500;
}
.mobile-menu-lang a.active { color: var(--brand-bright); border-color: var(--border-brand); }

/* ===== 21. Scroll Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }

/* ===== 22. Animations ===== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 23. Utility ===== */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--sp-2); } .mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); } .mt-8 { margin-top: var(--sp-8); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--sp-2); } .mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); } .mb-8 { margin-bottom: var(--sp-8); }
.mb-12 { margin-bottom: var(--sp-12); }

/* ==========================================================================
   v2.1 — Editorial Upgrade: Texture · Bento · Shine · Data Labels
   ========================================================================== */

/* ===== 24. Noise Texture Overlay ===== */
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ===== 25. Shine Sweep on Cards ===== */
.feature-card, .step-card, .glass-card {
  position: relative;
}
.feature-card .shine, .step-card .shine {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%);
  transition: left 0.8s var(--ease-out); pointer-events: none; z-index: 1;
}
.feature-card:hover .shine, .step-card:hover .shine {
  left: 130%;
}

/* ===== 26. Section Header — Editorial Left-Aligned ===== */
.section-header {
  text-align: left; margin-left: 0; margin-right: 0;
  max-width: 720px; position: relative;
  padding-left: 20px;
}
.section-header::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; background: var(--grad-brand); border-radius: 2px;
}
.section-eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono);
}
.section-eyebrow .section-index {
  font-size: 0.6875rem; color: var(--text-dim); font-weight: 400;
  padding: 2px 6px; border: 1px solid var(--border-glass); border-radius: 4px;
}

/* ===== 27. Bento Grid — Asymmetric Features ===== */
.features-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-3);
}
@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: var(--sp-3);
  }
  /* Bento: first card spans 2 columns, taller */
  .feature-card.feature-hero {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 200px;
  }
  /* Bento: last card spans 2 columns */
  .feature-card.feature-wide {
    grid-column: span 2;
  }
}

/* Hero feature card — larger, with visual element */
.feature-card.feature-hero {
  background: linear-gradient(135deg, var(--bg-surface), rgba(227,62,63,0.04));
  border-color: var(--border-brand);
}
.feature-card.feature-hero .feature-icon {
  width: 52px; height: 52px;
}
.feature-card.feature-hero h3 { font-size: 1.25rem; }
.feature-card.feature-hero p { font-size: 0.9375rem; max-width: 420px; }

/* Feature card variant accents */
.feature-card[data-accent="emerald"] .feature-icon { background: rgba(0,217,163,0.1); border-color: rgba(0,217,163,0.25); }
.feature-card[data-accent="emerald"] .feature-icon svg { color: var(--accent-emerald); }
.feature-card[data-accent="sky"] .feature-icon { background: rgba(56,189,248,0.1); border-color: rgba(56,189,248,0.25); }
.feature-card[data-accent="sky"] .feature-icon svg { color: var(--accent-sky); }
.feature-card[data-accent="violet"] .feature-icon { background: rgba(167,139,250,0.1); border-color: rgba(167,139,250,0.25); }
.feature-card[data-accent="violet"] .feature-icon svg { color: var(--accent-violet); }
.feature-card[data-accent="amber"] .feature-icon { background: rgba(251,191,36,0.1); border-color: rgba(251,191,36,0.25); }
.feature-card[data-accent="amber"] .feature-icon svg { color: var(--accent-amber); }

/* Feature card meta tag */
.feature-tag {
  position: absolute; top: var(--sp-4); right: var(--sp-4);
  font-family: var(--font-mono); font-size: 0.625rem;
  color: var(--text-dim); letter-spacing: 0.05em;
}

/* ===== 28. Stats Bar — Trend Indicators ===== */
.stat-item {
  position: relative;
}
.stat-trend {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.625rem; font-family: var(--font-mono);
  margin-top: 4px; opacity: 0.7;
}
.stat-trend.up { color: var(--accent-emerald); }
.stat-trend.down { color: var(--brand-bright); }
.stat-trend svg { width: 10px; height: 10px; }
/* Mini sparkline bar */
.stat-spark {
  display: flex; align-items: flex-end; gap: 2px;
  height: 16px; margin-top: var(--sp-2); justify-content: center;
}
.stat-spark-bar {
  width: 3px; border-radius: 1px; background: var(--border-glass-strong);
  transition: background var(--t-fast);
}
.stat-item:hover .stat-spark-bar { background: var(--brand); }

/* ===== 29. Steps — Connector Line ===== */
.steps-grid {
  position: relative;
}
@media (min-width: 768px) {
  .steps-grid::before {
    content: ''; position: absolute; top: 50px; left: 16%; right: 16%;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--border-glass) 0, var(--border-glass) 6px, transparent 6px, transparent 12px);
    z-index: 0;
  }
}
.step-card {
  position: relative; z-index: 1;
}
.step-number {
  position: relative;
}
.step-number::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: var(--r-sm); border: 1px solid var(--border-glass);
  opacity: 0; transition: opacity var(--t-normal);
}
.step-card:hover .step-number::after { opacity: 1; }

/* ===== 30. Hero Data Labels (Decorative) ===== */
.hero-data-tag {
  position: absolute; display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--bg-elevated); border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 0.6875rem; font-family: var(--font-mono);
  color: var(--text-secondary); white-space: nowrap;
  box-shadow: var(--shadow-md); z-index: 2;
}
.hero-data-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero-data-tag-1 {
  top: 10%; right: -10px;
  animation: float-tag 5s ease-in-out infinite;
}
.hero-data-tag-2 {
  bottom: 15%; left: -20px;
  animation: float-tag 6s ease-in-out infinite 1s;
}
@keyframes float-tag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (max-width: 959px) { .hero-data-tag { display: none; } }

/* ===== 31. Editorial Pull Quote ===== */
.pull-quote {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600; line-height: 1.4; letter-spacing: -0.02em;
  color: var(--text-primary); max-width: 760px;
  padding: var(--sp-8) 0 var(--sp-6); position: relative;
}
.pull-quote::before {
  content: '"'; position: absolute; left: -12px; top: 0;
  font-size: 3rem; font-weight: 800; color: var(--brand);
  opacity: 0.3; line-height: 1;
}
.pull-quote-author {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.pull-quote-author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-brand); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem; color: #fff;
}
.pull-quote-author-info { font-size: 0.8125rem; }
.pull-quote-author-name { font-weight: 600; color: var(--text-primary); }
.pull-quote-author-role { color: var(--text-muted); }

/* ===== 32. Section Divider ===== */
.section-divider {
  display: flex; align-items: center; gap: var(--sp-4);
  margin: 0 auto; max-width: var(--container-max); padding: 0 var(--container-pad);
}
.section-divider::before, .section-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}
.section-divider-label {
  font-family: var(--font-mono); font-size: 0.625rem;
  color: var(--text-dim); letter-spacing: 0.15em; text-transform: uppercase;
  padding: 4px 12px; border: 1px solid var(--border-glass); border-radius: var(--r-pill);
}

/* ===== 33. Glow Border on Hover (Feature Cards) ===== */
.feature-card {
  position: relative;
}
.feature-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: var(--r-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--brand-glow-strong), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--t-normal);
  pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }

/* ===== 34. Marquee Trust Strip ===== */
.trust-strip {
  display: flex; align-items: center; gap: var(--sp-8);
  padding: var(--sp-6) 0; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.trust-strip-track {
  display: flex; align-items: center; gap: var(--sp-10);
  animation: marquee 30s linear infinite;
}
.trust-strip-item {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 0.875rem; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; flex-shrink: 0;
}
.trust-strip-item svg { width: 18px; height: 18px; opacity: 0.5; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-strip-track { animation: none; }
}

/* ===== 35. Comparison Mini-Table ===== */
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 0.875rem;
}
.compare-table th, .compare-table td {
  padding: var(--sp-3) var(--sp-4); text-align: left;
  border-bottom: 1px solid var(--border-glass);
}
.compare-table th {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); font-weight: 600;
}
.compare-table td:first-child { color: var(--text-secondary); }
.compare-table .check { color: var(--accent-emerald); }
.compare-table .cross { color: var(--text-dim); }
.compare-table .check svg, .compare-table .cross svg { width: 16px; height: 16px; }

/* ===== 36. Enhanced Section Spacing ===== */
.section { padding: var(--sp-32) 0; }
.section-tight { padding: var(--sp-20) 0; }
@media (max-width: 768px) {
  .section { padding: var(--sp-20) 0; }
  .section-tight { padding: var(--sp-12) 0; }
}

/* ===== 37. Quote + Compare Grid ===== */
@media (min-width: 768px) {
  .section-tight .reveal[style*="grid-template-columns:1fr"] {
    grid-template-columns: 1.2fr 0.8fr !important;
  }
}

/* ===== 38. Language Dropdown Scroll (20 langs) ===== */
.lang-dropdown {
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-glass-strong) transparent;
}
.lang-dropdown::-webkit-scrollbar { width: 4px; }
.lang-dropdown::-webkit-scrollbar-track { background: transparent; }
.lang-dropdown::-webkit-scrollbar-thumb { background: var(--border-glass-strong); border-radius: 2px; }

/* ===== 39. RTL Support for Arabic ===== */
html[dir="rtl"] { direction: rtl; }
html[dir="rtl"] .header-nav,
html[dir="rtl"] .header-actions,
html[dir="rtl"] .hero-content,
html[dir="rtl"] .footer-content { flex-direction: row-reverse; }
html[dir="rtl"] .section-header { padding-left: 0; padding-right: 20px; }
html[dir="rtl"] .section-header::before { left: auto; right: 0; }
html[dir="rtl"] .pull-quote::before { left: auto; right: -12px; }
html[dir="rtl"] .feature-tag { right: auto; left: var(--sp-4); }

/* ===== 40. Mobile CTA — Smart Sticky Bar ===== */
.mobile-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
  display: none; align-items: center; gap: var(--sp-2);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-top: 1px solid var(--border-glass);
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-out), opacity 0.3s ease;
  opacity: 0;
}
.mobile-cta-bar.visible {
  transform: translateY(0);
  opacity: 1;
}
.mobile-cta-bar .mcb-primary {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 16px; border-radius: var(--r-md);
  background: var(--grad-brand); color: #fff;
  font-weight: 700; font-size: 0.9375rem; letter-spacing: -0.01em;
  box-shadow: 0 4px 16px rgba(227,62,63,0.4);
  transition: transform 0.15s ease;
}
.mobile-cta-bar .mcb-primary:active { transform: scale(0.96); }
.mobile-cta-bar .mcb-secondary {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  flex-shrink: 0;
}
.mobile-cta-bar .mcb-secondary svg { width: 20px; height: 20px; color: var(--text-secondary); }
.mobile-cta-bar .mcb-badge {
  position: absolute; top: -8px; right: 12px;
  padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--accent-emerald); color: #fff;
  font-size: 0.5625rem; font-weight: 700; font-family: var(--font-mono);
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* Mobile CTA pulse */
@keyframes mcb-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(227,62,63,0.4); }
  50% { box-shadow: 0 4px 24px rgba(227,62,63,0.6); }
}
.mobile-cta-bar .mcb-primary { animation: mcb-pulse 2.5s ease-in-out infinite; }

@media (max-width: 768px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 70px; }
}

/* ===== 41. Mobile CTA — Slide-up Sheet ===== */
.mobile-cta-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  display: none;
  flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-4) calc(var(--sp-6) + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border-glass);
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
}
.mobile-cta-sheet.visible { transform: translateY(0); }
.mobile-cta-sheet .mcs-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border-glass-strong); margin: 0 auto;
}
.mobile-cta-sheet .mcs-title { font-size: 1.125rem; font-weight: 700; text-align: center; }
.mobile-cta-sheet .mcs-subtitle { font-size: 0.875rem; color: var(--text-muted); text-align: center; }
.mobile-cta-sheet .mcs-features {
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.mobile-cta-sheet .mcs-feature {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 0.875rem; color: var(--text-secondary);
}
.mobile-cta-sheet .mcs-feature svg {
  width: 18px; height: 18px; color: var(--accent-emerald); flex-shrink: 0;
}
.mobile-cta-sheet .mcs-close {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1.25rem; line-height: 1;
}
.mobile-cta-sheet .mcs-cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px; border-radius: var(--r-md);
  background: var(--grad-brand); color: #fff;
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 4px 20px rgba(227,62,63,0.4);
}

.mobile-cta-overlay {
  position: fixed; inset: 0; z-index: 997;
  display: none;
  background: rgba(0,0,0,0.5);
  opacity: 0; transition: opacity 0.3s ease;
}
.mobile-cta-overlay.visible { display: block; opacity: 1; }

@media (max-width: 768px) {
  .mobile-cta-sheet { display: flex; }
}

/* ===== 42. Mobile Performance Optimization ===== */
/* Reduce GPU-intensive backdrop-filter stacking on mobile to fix lag */
@media (max-width: 768px) {
  /* Disable floating background glows — major source of jank */
  .bg-glow-1, .bg-glow-2 { display: none; }

  /* Simplify glass effects — use solid backgrounds instead of blur */
  .site-header {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(8, 9, 13, 0.92);
  }
  .site-header.scrolled {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(8, 9, 13, 0.96);
  }
  .glass-card {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(20, 21, 28, 0.92);
  }
  .reg-card {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(20, 21, 28, 0.95);
  }
  .lang-dropdown {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(20, 21, 28, 0.98);
  }
  .btn-glass {
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .badge {
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .hero-direct-answer {
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .mobile-cta-bar {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(8, 9, 13, 0.95);
  }
  .mobile-cta-sheet {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(14, 15, 20, 0.98);
  }

  /* Disable hero data tag floating animations */
  .hero-data-tag { display: none; }

  /* Reduce section padding for faster scroll */
  .hero { padding: 110px 0 50px; }
  .section { padding: 48px 0; }
  .section-tight { padding: 32px 0; }

  /* Ensure reg card is fully visible and not clipped */
  .reg-card { padding: 20px; border-radius: 18px; }
  .reg-field-input { height: 48px; font-size: 16px; /* prevent iOS zoom */ }
}

/* ===== 43. Small Mobile Layout Fixes ===== */
@media (max-width: 480px) {
  :root { --container-pad: 16px; }

  .hero h1 { font-size: clamp(1.875rem, 8vw, 2.5rem); }
  .hero-subtitle { font-size: 1rem; }

  /* Stack hero CTA buttons full-width */
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; }

  /* Compact reg card */
  .reg-card { padding: 16px; border-radius: 16px; }
  .reg-card-header { margin-bottom: 16px; padding-bottom: 12px; }
  .reg-social { gap: 6px; }
  .reg-social-btn { font-size: 0.6875rem; height: 38px; }

  /* Stats: 2 columns on small screens */
  .stats-bar { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .stat-item { padding: 12px; }

  /* Section headers compact */
  .section-header { margin-bottom: 24px; }

  /* Mobile CTA bar safe area */
  .mobile-cta-bar { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
}

/* ===== 44. Form Submit Handler ===== */
.reg-card-cta { width: 100%; }
