/* ============================================================
   X Trace — home.css
   Design: Dark tech, monospace accents, glitch-minimal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ─── Reset & Tokens ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
button, input { font: inherit; }
img { display: block; }

:root {
  --bg:        #08050f;
  --bg2:       #0e0b18;
  --bg3:       #130f22;
  --border:    rgba(180,140,255,.08);
  --border2:   rgba(180,140,255,.15);
  --accent:    #a855f7;
  --accent2:   #c084fc;
  --accent-dim: rgba(168,85,247,.1);
  --accent-glow: rgba(168,85,247,.3);
  --text:      #ece8fc;
  --text2:     #9488bb;
  --text3:     #54477a;
  --red:       #ff4f6d;
  --font:      'Space Grotesk', system-ui, sans-serif;
  --mono:      'Space Mono', monospace;
  --r:         14px;
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ─── Animated background canvas ─────────────────────── */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .35;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 180px;
  opacity: .4;
}

/* ─── Layout ──────────────────────────────────────────── */
.container {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ─── Header ──────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 24px;
  transition: background var(--transition), border-color var(--transition);
}
.header.scrolled {
  background: rgba(8,5,15,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}
.logo img { width: 28px; height: 28px; border-radius: 8px; }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  font-size: 14px;
  color: var(--text2);
}
.nav a { transition: color var(--transition); }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.btn-login {
  padding: 9px 20px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border2);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 14px;
}
.btn-login:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); }

.btn-dash {
  padding: 9px 20px;
  border-radius: 10px;
  background: rgba(168,85,247,.1);
  border: 1px solid rgba(168,85,247,.35);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
}
.btn-dash:hover { background: rgba(168,85,247,.18); }

/* ─── Profile dropdown ────────────────────────────────── */
.header-profile { position: relative; }
.avatar-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: var(--bg3);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: border-color var(--transition);
  overflow: hidden;
}
.avatar-btn:hover { border-color: rgba(168,85,247,.7); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  z-index: 200;
}
.dropdown.open { display: flex; }
.dropdown-item {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  transition: background var(--transition);
}
.dropdown-item:hover { background: var(--bg3); }
.dropdown-item.danger { color: var(--red); }

/* ─── Hero ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  position: relative;
  z-index: 2;
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(168,85,247,.07);
  border: 1px solid rgba(168,85,247,.25);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 24px;
  font-family: var(--mono);
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(168,85,247,.8);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}

.hero h1 {
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #a855f7, #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--text2);
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.65;
}
.hero-ctas { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }

.btn-primary {
  padding: 13px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a855f7, #e879f9);
  color: #06080e;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 8px 28px rgba(168,85,247,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(168,85,247,.45); }
.btn-primary.full { width: 100%; text-align: center; display: block; }

.btn-ghost {
  padding: 13px 24px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: border-color var(--transition), background var(--transition);
}
.btn-ghost:hover { border-color: rgba(168,85,247,.5); background: rgba(168,85,247,.08); }

/* ─── Live stats bar ──────────────────────────────────── */
.live-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 520px;
}
.live-stat { display: flex; flex-direction: column; gap: 2px; }
.live-val {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.live-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; }
.stat-sep { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

/* ─── Auth card (inline hero) ─────────────────────────── */
.auth-card {
  background: rgba(12,8,20,.92);
  border: 1px solid var(--border2);
  border-radius: 22px;
  padding: 30px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(168,85,247,.06);
}
.auth-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.auth-logo { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.auth-card-head h2 { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.auth-card-head .sub { font-size: 13px; color: var(--text2); }

/* ─── Tabs ────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}
.tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text2);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: all var(--transition);
}
.tab:hover { color: var(--text); }
.tab.active {
  background: rgba(168,85,247,.1);
  color: var(--accent);
  border: 1px solid rgba(168,85,247,.25);
}

/* ─── Tab panels & fields ─────────────────────────────── */
.tab-panel { display: none; flex-direction: column; gap: 14px; }
.tab-panel.active { display: flex; }

.field-wrap { display: flex; flex-direction: column; gap: 6px; }
.field-wrap label { font-size: 12.5px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .06em; }
.field {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field::placeholder { color: var(--text3); }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168,85,247,.1); }

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
}
.remember input { accent-color: var(--accent); cursor: pointer; }

.btn-submit {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  background: linear-gradient(135deg, #a855f7, #e879f9);
  color: #06080e;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 6px 20px var(--accent-glow);
  margin-top: 2px;
}
.btn-submit:hover { opacity: .9; transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }

.err-box {
  font-size: 13px;
  color: var(--red);
  min-height: 0;
  transition: all var(--transition);
}
.err-box:not(:empty) { margin-bottom: 4px; padding: 8px 12px; background: rgba(255,79,109,.07); border-radius: 8px; border: 1px solid rgba(255,79,109,.2); }

/* ─── Sections ────────────────────────────────────────── */
.section {
  padding: 96px 24px;
  position: relative;
  z-index: 2;
}
.section-dark {
  background: rgba(255,255,255,.015);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(168,85,247,.07);
  border: 1px solid rgba(168,85,247,.22);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-head p { color: var(--text2); font-size: 17px; max-width: 520px; margin: 0 auto; }

/* ─── Features grid ───────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover { border-color: rgba(168,85,247,.35); transform: translateY(-4px); }
.feat-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* ─── Stats grid ──────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.stat-card:hover { border-color: rgba(168,85,247,.3); transform: translateY(-3px); }
.stat-num {
  display: block;
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.stat-lbl { font-size: 13px; color: var(--text2); }

/* ─── Pricing ─────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  gap: 20px;
  justify-content: center;
}
.price-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px;
  transition: border-color var(--transition);
}
.price-card.featured {
  border-color: rgba(168,85,247,.35);
  background: linear-gradient(180deg, rgba(168,85,247,.06), var(--bg2));
  box-shadow: 0 0 0 1px rgba(168,85,247,.1), 0 20px 60px rgba(0,0,0,.3);
}
.price-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.price-name { font-size: 18px; font-weight: 700; }
.price-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border2);
  color: var(--text2);
}
.price-badge.accent {
  background: rgba(168,85,247,.1);
  border-color: rgba(168,85,247,.3);
  color: var(--accent);
}
.price-val {
  font-size: 18px;
  color: var(--text2);
  margin-bottom: 22px;
}
.price-val strong { font-size: 42px; color: var(--text); font-weight: 700; }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.price-list li {
  font-size: 14px;
  color: var(--text2);
  padding-left: 20px;
  position: relative;
}
.price-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ─── Footer ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  position: relative;
  z-index: 2;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.footer-brand img { width: 22px; height: 22px; border-radius: 6px; }
.footer-copy { color: var(--text3); font-size: 13px; flex: 1; text-align: center; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text2); transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }

/* ─── Modal (mobile / CTA) ────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,2,12,.8);
  backdrop-filter: blur(12px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: rgba(11,7,20,.97);
  border: 1px solid var(--border2);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 28px 80px rgba(0,0,0,.6);
  transform: translateY(20px);
  transition: transform .22s ease;
}
.modal-overlay.open .modal-card { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,.1); }

/* ─── Animations ──────────────────────────────────────── */
[data-anim] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-anim="fade-left"] {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity .65s ease, transform .65s ease;
}
[data-anim].visible {
  opacity: 1;
  transform: none;
}

/* ─── Utilities ───────────────────────────────────────── */
.hidden { display: none !important; }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 1060px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card-wrap { display: none; }
  .features-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .hero { padding: 90px 20px 40px; }
  .nav, .btn-dash { display: none; }
  .features-grid, .stats-grid, .pricing-grid { grid-template-columns: 1fr; }
  .live-stats { flex-direction: column; gap: 12px; }
  .stat-sep { width: 100%; height: 1px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { text-align: center; }
}

/* ─── Hero centré (sans form inline) ─────────────────── */
.hero-centered { justify-content: center; }
.hero-inner-centered {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.hero-centered .hero-ctas { justify-content: center; }
.hero-centered .live-stats { max-width: 560px; justify-content: center; }
.hero-centered p { text-align: center; max-width: 580px; }
.br-desktop { display: inline; }

@media (max-width: 640px) {
  .br-desktop { display: none; }
}

/* ─── Live pulse animation ───────────────────────────────── */
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  HOME PAGE — Mobile Responsive Improvements             ║
   ╚══════════════════════════════════════════════════════════╝ */

/* ── Mobile nav hamburger ─────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.mobile-menu-btn:hover { background: rgba(255,255,255,.08); }

/* Mobile nav overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  z-index: 500;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100%;
  background: #0d0920;
  border-left: 1px solid rgba(180,140,255,.1);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.mobile-nav-overlay.open .mobile-nav-panel {
  transform: translateX(0);
}
.mobile-nav-close {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.mobile-nav-link {
  display: block;
  padding: 13px 16px;
  border-radius: 10px;
  color: var(--text2);
  font-size: 15px;
  font-weight: 500;
  transition: all .15s;
  border: 1px solid transparent;
}
.mobile-nav-link:hover {
  background: rgba(255,255,255,.05);
  color: var(--text);
  border-color: rgba(255,255,255,.07);
}
.mobile-nav-link.primary {
  background: rgba(168,85,247,.1);
  color: var(--accent);
  border-color: rgba(168,85,247,.2);
  margin-top: 8px;
  text-align: center;
  font-weight: 600;
}
.mobile-nav-link.primary:hover {
  background: rgba(168,85,247,.18);
}

/* ── Tablet (≤ 960px) ────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { padding: 100px 20px 50px; }
  .hero h1 { font-size: clamp(28px, 6vw, 48px); }
  .hero p { font-size: 15px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; justify-items: center; }
  .price-card { max-width: 440px; width: 100%; }
  .section { padding: 60px 20px; }
}

/* ── Mobile (≤ 720px) ────────────────────────────────────── */
@media (max-width: 720px) {
  /* Show hamburger, hide desktop nav */
  .mobile-menu-btn { display: flex; }
  .mobile-nav-overlay { display: block; }
  .nav { display: none !important; }
  .btn-dash { display: none !important; }

  .header-inner { padding: 0 16px; }

  .hero { padding: 80px 16px 40px; text-align: center; }
  .hero h1 { font-size: clamp(26px, 8vw, 38px); line-height: 1.2; }
  .hero p { font-size: 14px; max-width: 100%; }
  .hero-ctas { justify-content: center; gap: 10px; }
  .hero-ctas a, .hero-ctas button { flex: 1; min-width: 0; justify-content: center; text-align: center; font-size: 14px; padding: 11px 16px; }

  .live-stats { flex-direction: row; flex-wrap: wrap; gap: 12px 20px; justify-content: center; }
  .live-stat { min-width: 80px; text-align: center; }
  .stat-sep { display: none; }

  .section { padding: 48px 16px; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: clamp(22px, 6vw, 34px); }
  .section-head p { font-size: 14px; }

  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 20px 18px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 22px 16px; }
  .stat-num { font-size: 26px; }

  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { max-width: 100%; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; text-align: left; }
  .footer-copy { text-align: left; }
  .footer-links { flex-direction: column; gap: 8px; }

  .auth-card { padding: 22px 18px; }
  .auth-card-head h2 { font-size: 18px; }

  /* Modal */
  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal-card { border-radius: 20px 20px 0 0; max-width: 100%; }
}

/* ── Small phone (≤ 480px) ───────────────────────────────── */
@media (max-width: 480px) {
  .hero { padding: 72px 14px 36px; }
  .hero h1 { font-size: clamp(23px, 7vw, 32px); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas a, .hero-ctas button { width: 100%; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 18px 12px; }
  .stat-num { font-size: 22px; }

  .live-stats { justify-content: center; }
  .live-val { font-size: 18px; }

  .kicker { font-size: 11px; padding: 4px 12px; }
  .section-head h2 { font-size: clamp(20px, 6vw, 28px); }
}