/* ============================================================
   LIGHT MODE TOKENS (default)
   ============================================================ */
:root {
  /* Brand */
  --blue: #3730f5;
  --blue-light: #6366f1;
  --lavender: #ece9ff;
  --lavender-mid: #d4d0ff;

  /* Surfaces */
  --bg: #ffffff;
  --bg-hero: linear-gradient(135deg, #eeeaff 0%, #f0eeff 40%, #e8f0ff 100%);
  --bg-how: #0d0d1a;
  --bg-trust: #ffffff;
  --bg-features: #ece9ff;
  --bg-faq: #ffffff;
  --surface-card: #ffffff;
  --surface-step: rgba(255,255,255,0.04);
  --surface-step-hover: rgba(55,48,245,0.15);
  --surface-stat: #ece9ff;

  /* Text */
  --text-primary: #0d0d1a;
  --text-muted: #6b7280;
  --text-on-dark: rgba(255,255,255,0.5);
  --text-logo-suffix: #0d0d1a;

  /* Nav */
  --nav-bg: rgba(255,255,255,0.92);
  --nav-border: rgba(55,48,245,0.08);
  --nav-link: rgb(43,42,42);

  /* Misc */
  --border-color: #ece9ff;
  --pill-bg: rgba(55,48,245,0.08);
  --pill-border: rgba(55,48,245,0.15);
  --faq-border: #ece9ff;
  --footer-bg: #0d0d1a;
  --mobile-menu-bg: #ffffff;

  /* Hero glow */
  --hero-glow: rgba(99,102,241,0.15);

  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 32px rgba(55,48,245,0.10);

  /* Toggle */
  --toggle-bg: #e5e7eb;
  --toggle-knob: #ffffff;
  --toggle-icon-color: #6b7280;
}

/* ============================================================
   DARK MODE TOKENS — Mapped from AuthPadi .dark analysis
   Background:  hsl(220 20% 6%)  = #0d1017
   Card:        hsl(220 20% 8%)  = #111520
   Secondary:   hsl(220 20% 12%) = #181d2c
   Border:      hsl(220 20% 15%) = #1e2436
   Muted text:  hsl(220 10% 60%) = #8e95a8
   ============================================================ */
html.dark {
  --bg: #0d1017;
  --bg-hero: linear-gradient(135deg, #0f1220 0%, #0d1017 60%, #0a0e18 100%);
  --bg-how: #080c14;
  --bg-trust: #0d1017;
  --bg-features: #111520;
  --bg-faq: #0d1017;
  --surface-card: #111520;
  --surface-step: rgba(255,255,255,0.03);
  --surface-step-hover: rgba(55,48,245,0.20);
  --surface-stat: #181d2c;

  --text-primary: #f5f6fa;
  --text-muted: #8e95a8;
  --text-on-dark: rgba(255,255,255,0.45);
  --text-logo-suffix: rgba(255,255,255,0.85);

  --nav-bg: rgba(13,16,23,0.92);
  --nav-border: rgba(255,255,255,0.06);
  --nav-link: rgba(255,255,255,0.75);

  --border-color: #1e2436;
  --pill-bg: rgba(99,102,241,0.10);
  --pill-border: rgba(99,102,241,0.20);
  --faq-border: #1e2436;
  --footer-bg: #080c14;
  --mobile-menu-bg: #111520;

  --hero-glow: rgba(99,102,241,0.10);
  --shadow: 0 4px 32px rgba(0,0,0,0.4);

  --toggle-bg: #3730f5;
  --toggle-knob: #ffffff;
  --toggle-icon-color: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

h1,h2,h3,h4,h5 { font-family: 'Inter', sans-serif; }

/* ── THEME TOGGLE (UPGRADED & ENLARGED) ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center; /* Centers the font-awesome icon perfectly */
  cursor: pointer;
  
  /* Make it a perfect circle by setting equal width & height */
  width: 38px; 
  height: 38px;
  border-radius: 50%; /* Perfect circle */
  
  background: var(--toggle-bg);
  border: none;
  transition: background 0.3s ease, transform 0.2s ease;
  flex-shrink: 0;
}

/* Subtle feedback when someone hovers over the button */
.theme-toggle:hover {
  transform: scale(1.05);
}

/* Target the Font Awesome icon inside directly */
.theme-toggle i {
  font-size: 1.05rem; /* Increased size from 0.85rem for better visibility */
  color: var(--toggle-icon-color);
  transition: color 0.3s ease, transform 0.3s ease;
  line-height: 1;
  display: inline-block;
}

/* Optional rotation effect on hover to add that premium polish */
.theme-toggle:hover i {
  transform: rotate(15deg);
}

/* ── THEME TOGGLE (DARK MODE STATE) ── */
html.dark .theme-toggle {
  background: transparent; /* Removes the container circle background */
  border: none;            /* Ensures no hidden borders show up */
}

html.dark .theme-toggle i {
  color: #ffffff;          /* Forces the sun icon to turn clean, bright white */
  font-size: 1.25rem;       /* Slightly bumped up to match the visual scale of your reference image */
}

/* Maintain a subtle hover effect even without a background */
html.dark .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08); /* Minimal soft glowing ring on hover */
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-border);
  height: 68px;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  text-decoration: none;
  letter-spacing: -0.5px;
  color: var(--blue);
  flex-shrink: 0;
}

.nav-logo span { color: var(--text-logo-suffix); transition: color 0.3s; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--nav-link);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.nav-signin {
  text-decoration: none;
  color: var(--nav-link);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-signin:hover { color: var(--blue); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(55,48,245,0.3);
}

.btn-primary svg { width: 16px; height: 16px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--mobile-menu-bg);
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  z-index: 999;
  flex-direction: column;
  gap: 20px;
  transition: background 0.3s ease;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 500;
}

.mobile-menu .btn-primary { width: 100%; justify-content: center; }
.mobile-menu.open { display: flex; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--bg-hero);
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--hero-glow) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

/* Dark mode extra ambient glow behind hero */
html.dark .hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(55,48,245,0.07) 0%, transparent 70%);
  bottom: -100px; left: -50px;
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 24px;
  transition: background 0.3s, border-color 0.3s;
}

.hero-pill::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--text-primary);
  transition: color 0.3s;
}

.hero h1 span { color: var(--blue); }

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
  transition: color 0.3s;
}

.hero-btns {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrap {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--blue-light), var(--blue));
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Floating badges */
.float-badge {
  position: absolute;
  background: var(--surface-card);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  animation: float 3s ease-in-out infinite;
  transition: background 0.3s, color 0.3s;
  border: 1px solid var(--border-color);
}

.float-badge.b1 { top: 10%; left: -20px; animation-delay: 0s; }
.float-badge.b2 { bottom: 20%; right: -20px; animation-delay: 1.5s; }
.float-badge.b3 {
  bottom: 49%;
  left: -10px;
  animation-delay: 0.8s;
  gap: 12px;
  padding: 12px 15px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── TRUST BAR ── */
.trust-bar {
  padding: 60px 24px;
  background: var(--bg-trust);
  transition: background 0.3s ease;
}

.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pill-bg);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 16px;
  transition: background 0.3s;
}

.trust-bar h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 48px;
  color: var(--text-primary);
  transition: color 0.3s;
}

.trust-bar h2 span { color: var(--blue); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--surface-stat);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: background 0.3s, border-color 0.3s;
}

.stat-num {
  font-family: 'Inter', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s;
}

/* ── HOW IT WORKS ── */
.how {
  padding: 100px 24px;
  background: var(--bg-how);
  color: white;
  transition: background 0.3s ease;
}

.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-bottom: 16px;
}

.how h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 60px;
  max-width: 500px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--surface-step);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: background 0.3s;
}

.step-card:hover { background: var(--surface-step-hover); }

.step-num {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: 16px;
}

.step-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step-icon svg { width: 26px; height: 26px; }
.step-icon.g1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.step-icon.g2 { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.step-icon.g3 { background: linear-gradient(135deg, #10b981, #3b82f6); }
.step-icon.g4 { background: linear-gradient(135deg, #f59e0b, #ef4444); }

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.step-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ── PLATFORMS ── */
.platforms {
  padding: 100px 24px;
  background: var(--bg);
  transition: background 0.3s ease;
}

.platforms-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.platforms h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: var(--text-primary);
  transition: color 0.3s;
}

.platforms-subtitle {
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1rem;
  transition: color 0.3s;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.platform-item {
  background-color: var(--brand-bg, var(--surface-stat));
  border-radius: var(--radius-sm);
  padding: 28px 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: transform 0.2s, box-shadow 0.2s, color 0.3s;
  cursor: default;
  border: 1px solid var(--border-color);
}

/* In dark mode, override the light brand-bg with dark-tinted versions */
html.dark .platform-item {
  background-color: var(--dark-brand-bg, #181d2c) !important;
  border-color: #1e2436;
}

.platform-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(55,48,245,0.10);
}

.platform-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 4px;
}

/* ── FEATURES ── */
.features {
  padding: 100px 24px;
  background: var(--bg-features);
  transition: background 0.3s ease;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 60px;
}

.features-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: var(--text-primary);
  transition: color 0.3s;
}

.features-header p {
  color: var(--text-muted);
  transition: color 0.3s;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface-card);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon.fi1 { background: linear-gradient(135deg, #6366f1, #3730f5); }
.feature-icon.fi2 { background: linear-gradient(135deg, #3730f5, #6366f1); }
.feature-icon.fi3 { background: linear-gradient(135deg, #818cf8, #3730f5); }

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  transition: color 0.3s;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  transition: color 0.3s;
}

.feature-link {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── FAQ ── */
.faq {
  padding: 100px 24px;
  background: var(--bg-faq);
  transition: background 0.3s ease;
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.faq-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 48px;
  color: var(--text-primary);
  transition: color 0.3s;
}

.faq-list { text-align: left; }

.faq-item {
  border-bottom: 1px solid var(--faq-border);
  padding: 24px 0;
  transition: border-color 0.3s;
}

.faq-q {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
  color: var(--text-primary);
  transition: color 0.3s;
}

.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s, color 0.3s;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding-top: 12px;
}

/* ── CTA ── */
.cta {
  padding: 100px 24px;
  background: var(--blue);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -200px; left: -100px;
}

.cta::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  bottom: -150px; right: -50px;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: white;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  font-size: 1.05rem;
}

.btn-white {
  background: white;
  color: var(--blue);
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* ── FOOTER ── */
footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.6);
  padding: 80px 24px 40px;
  transition: background 0.3s ease;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .nav-logo {
  color: white;
  display: block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}

/* ── DARK MODE SECTION PILL OVERRIDES ── */
.platforms .section-pill-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-stat);
  color: var(--blue);
  border: none;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 16px;
  transition: background 0.3s;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta, .nav-signin { display: none; }
  .hamburger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero p { margin: 0 auto 36px; }
  .hero-btns { justify-content: center; }
  .hero-image { order: -1; }
  .hero-img-wrap { max-width: 300px; margin: 0 auto; }
  .float-badge.b1 { left: 0; }
  .float-badge.b2 { right: 0; }

  .stats-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .theme-toggle { padding: 5px 8px; }
}

@media (max-width: 480px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 90px 20px 60px; }
}

/* ── ANIMATIONS ── */
/* ── OPTIMIZED ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(20px); /* Reduced distance lowers performance cost on mobile */
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity; /* Commands GPU allocation */
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Bypass animation entirely for top fold elements to eliminate mobile loading delay */
.hero-content.fade-up,
.hero-image.fade-up {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: none !important;
}

/* ── DARK MODE: subtle noise texture on hero ── */
html.dark .hero {
  background-image:
    var(--bg-hero),
    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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ── DARK MODE: ambient glow on stat cards ── */
html.dark .stat-card:hover {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 0 24px rgba(55,48,245,0.08);
}

html.dark .feature-card:hover {
  border-color: rgba(99,102,241,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
