/* ============================================================
   BoltSync — Complete Stylesheet
   Dark-first, mobile-responsive, covers every component
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colours */
  --bg:          #080d18;
  --bg-2:        #0d1424;
  --bg-3:        #111827;
  --bg-4:        #1e2a3a;
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.12);
  --accent:      #3b82f6;
  --accent-2:    #60a5fa;
  --accent-glow: rgba(59,130,246,0.25);
  --green:       #10b981;
  --green-2:     #34d399;
  --orange:      #f59e0b;
  --purple:      #8b5cf6;
  --red:         #ef4444;
  --text-1:      #f1f5f9;
  --text-2:      #94a3b8;
  --text-3:      #64748b;
  --text-4:      #334155;

  /* Spacing */
  --r:       12px;
  --r-lg:    18px;
  --r-xl:    24px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.6);
  --shadow-accent: 0 0 40px rgba(59,130,246,0.2);
}

/* Light mode overrides */
body.light-mode {
  --bg:       #f8fafc;
  --bg-2:     #ffffff;
  --bg-3:     #f1f5f9;
  --bg-4:     #e2e8f0;
  --border:   rgba(0,0,0,0.08);
  --border-2: rgba(0,0,0,0.14);
  --text-1:   #0f172a;
  --text-2:   #475569;
  --text-3:   #94a3b8;
  --text-4:   #cbd5e1;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.1);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.12);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* ← KEY FIX: prevents page-wide horizontal scroll */
  width: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── TYPOGRAPHY HELPERS ───────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-light {
  background: linear-gradient(135deg, #bfdbfe 0%, #c4b5fd 50%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.green  { color: var(--green); }
.red    { color: var(--red); }
.white  { color: #fff; }
.bold   { font-weight: 700; }
.big    { font-size: 1.4em; }
.light  { color: rgba(255,255,255,0.7); }
.hidden { display: none !important; }
.up     { color: var(--green); }
.down   { color: var(--red); }

/* ── LAYOUT ───────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── REVEAL ANIMATIONS ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--d, 0ms);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* ── SECTION LABELS & TITLES ──────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  color: var(--accent-2);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--text-1);
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 48px;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(8,13,24,0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}
body.light-mode .navbar { background: rgba(248,250,252,0.92); }
.navbar.scrolled { background: rgba(8,13,24,0.98); border-bottom-color: var(--border-2); }
body.light-mode .navbar.scrolled { background: rgba(255,255,255,0.99); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 32px;
  max-width: 1240px;
  margin: 0 auto;
  gap: 24px;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon.small { width: 26px; height: 26px; border-radius: 7px; }
.logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.logo-text {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

/* ── Desktop nav links — centered pill group ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 5px 6px;
}
body.light-mode .nav-links {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.09);
}
.nav-links a {
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.nav-links a:hover {
  color: var(--text-1);
  background: rgba(255,255,255,0.08);
}
body.light-mode .nav-links a:hover { background: rgba(0,0,0,0.06); }

/* ── Nav actions ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-2);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,0.1); color: var(--text-1); }
body.light-mode .theme-toggle { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.12); }
body.light-mode .theme-toggle:hover { background: rgba(0,0,0,0.09); }

.icon-moon { display: block; }
.icon-sun  { display: none; }
body.light-mode .icon-moon { display: none; }
body.light-mode .icon-sun  { display: block; }

/* Ghost button */
.btn-ghost {
  color: var(--text-2);
  font-size: 0.83rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid var(--border-2);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-ghost:hover { color: var(--text-1); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.05); }
body.light-mode .btn-ghost { color: var(--text-2); border-color: rgba(0,0,0,0.15); }
body.light-mode .btn-ghost:hover { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.22); color: var(--text-1); }

/* Primary CTA button */
.btn-primary-sm {
  background: var(--accent);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9px;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-primary-sm:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59,130,246,0.4);
}

/* ── Hamburger (mobile only) ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.hamburger:hover { opacity: 0.7; }
body.light-mode .hamburger { background: transparent; border-color: transparent; }
body.light-mode .hamburger:hover { background: transparent; }
.hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.2s, width 0.2s;
}
body.light-mode .hamburger span { background: var(--text-2); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════
   MOBILE MENU
═══════════════════════════════════════════════════════════ */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 88vw);
  height: 100dvh;
  background: var(--bg-2);
  border-left: 1px solid var(--border-2);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 24px);
  box-shadow: -16px 0 48px rgba(0,0,0,0.6), -1px 0 0 rgba(255,255,255,0.04);
  will-change: transform;
}
.mobile-menu.open { transform: translateX(0); }

body.light-mode .mobile-menu {
  background: #ffffff;
  border-left-color: rgba(0,0,0,0.08);
  box-shadow: -16px 0 48px rgba(0,0,0,0.14);
}

/* Staggered link animation */
.mobile-menu .mobile-nav-links a,
.mobile-menu .mobile-theme-row,
.mobile-menu .mobile-cta-group,
.mobile-menu .mobile-contact-strip {
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-menu.open .mobile-nav-links a:nth-child(1) { opacity:1; transform:none; transition-delay:0.06s; }
.mobile-menu.open .mobile-nav-links a:nth-child(2) { opacity:1; transform:none; transition-delay:0.10s; }
.mobile-menu.open .mobile-nav-links a:nth-child(3) { opacity:1; transform:none; transition-delay:0.14s; }
.mobile-menu.open .mobile-nav-links a:nth-child(4) { opacity:1; transform:none; transition-delay:0.18s; }
.mobile-menu.open .mobile-nav-links a:nth-child(5) { opacity:1; transform:none; transition-delay:0.22s; }
.mobile-menu.open .mobile-nav-links a:nth-child(6) { opacity:1; transform:none; transition-delay:0.26s; }
.mobile-menu.open .mobile-nav-links a:nth-child(7) { opacity:1; transform:none; transition-delay:0.30s; }
.mobile-menu.open .mobile-theme-row                { opacity:1; transform:none; transition-delay:0.34s; }
.mobile-menu.open .mobile-cta-group                { opacity:1; transform:none; transition-delay:0.38s; }
.mobile-menu.open .mobile-contact-strip            { opacity:1; transform:none; transition-delay:0.42s; }

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1049;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Mobile menu header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 1;
}
.mobile-menu-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 1rem;
  color: var(--text-1);
}
.mobile-menu-logo img { border-radius: 7px; width: 30px; height: 30px; object-fit: cover; }
.mobile-close-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.mobile-close-btn:hover { background: rgba(255,255,255,0.12); color: var(--text-1); border-color: var(--border-2); }
body.light-mode .mobile-close-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
body.light-mode .mobile-close-btn:hover { background: rgba(0,0,0,0.08); color: var(--text-1); }

/* Mobile nav links */
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 6px;
  gap: 1px;
}
.mobile-nav-links a {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 14px;
  color: var(--text-2);
  font-size: 0.94rem; font-weight: 500;
  border-radius: 11px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.01em;
}
.mobile-nav-links a:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text-1);
}
.mobile-nav-links a:active {
  background: rgba(255,255,255,0.1);
  transform: scale(0.99);
}
body.light-mode .mobile-nav-links a:hover { background: rgba(0,0,0,0.05); color: var(--text-1); }
.mobile-nav-links a svg { flex-shrink: 0; opacity: 0.55; }

/* Mobile theme row */
.mobile-theme-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 10px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 11px;
}
body.light-mode .mobile-theme-row { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
.mobile-theme-label {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-3); font-size: 0.82rem; font-weight: 500;
}
.mobile-theme-toggle {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-2);
  border-radius: 8px; padding: 6px 14px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-1); cursor: pointer;
  transition: background 0.2s;
}
.mobile-theme-toggle:hover { background: rgba(255,255,255,0.14); }
body.light-mode .mobile-theme-toggle { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.12); }
body.light-mode .mobile-theme-toggle:hover { background: rgba(0,0,0,0.1); }

body:not(.light-mode) .mtt-light { display: none; }
body:not(.light-mode) .mtt-dark  { display: inline; }
body.light-mode .mtt-dark  { display: none; }
body.light-mode .mtt-light { display: inline; }

/* Mobile CTA buttons */
.mobile-cta-group {
  display: flex; flex-direction: column; gap: 8px;
  padding: 6px 10px 4px;
}
.mobile-cta {
  display: block; text-align: center;
  padding: 13px 20px; border-radius: 11px;
  border: 1px solid var(--border-2);
  color: var(--text-1);
  text-decoration: none;
  font-weight: 600; font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s;
}
.mobile-cta:hover { background: rgba(255,255,255,0.06); border-color: var(--border-2); }
body.light-mode .mobile-cta { border-color: rgba(0,0,0,0.14); }
body.light-mode .mobile-cta:hover { background: rgba(0,0,0,0.04); }
.mobile-cta-primary {
  display: block; text-align: center;
  padding: 14px 20px; border-radius: 11px;
  background: var(--accent); color: #fff;
  text-decoration: none;
  font-weight: 700; font-size: 0.92rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
  letter-spacing: 0.01em;
}
.mobile-cta-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(59,130,246,0.5); }
.mobile-cta-primary:active { transform: translateY(0); }

/* Mobile contact strip */
.mobile-contact-strip {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 24px 4px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.mobile-contact-strip a {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-3); font-size: 0.79rem;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
}
.mobile-contact-strip a:hover { color: var(--text-2); }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 72px 0 60px;
  overflow: hidden;
  max-width: 100vw;
}

/* Hero background */
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.5) 0%, transparent 70%);
  top: -200px; left: -150px;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.4) 0%, transparent 70%);
  top: 100px; right: -150px;
}
.hero-orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.3) 0%, transparent 70%);
  bottom: -100px; left: 40%;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

/* Hero content grid */
.hero > .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative; z-index: 1;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--accent-2);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

/* Hero headline */
.hero-headline {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 20px;
}

/* Hero sub */
.hero-sub {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}

/* Hero actions */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 12px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(59,130,246,0.35);
}
.btn-hero-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59,130,246,0.45);
}
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--text-1);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

/* Hero trust bar */
.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 500;
}
.trust-item svg { color: var(--green); }
.trust-sep { color: var(--text-4); }

/* ── DASHBOARD MOCK ───────────────────────────────────────── */
.hero-visual { position: relative; }

.dashboard-mock {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04);
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.mock-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red    { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green  { background: #10b981; }
.mock-title {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 500;
  margin: 0 auto;
}

.mock-body {
  display: flex;
  height: 280px;
}

.mock-sidebar {
  width: 120px;
  background: var(--bg-3);
  border-right: 1px solid var(--border);
  padding: 14px 10px;
  display: flex; flex-direction: column; gap: 4px;
  flex-shrink: 0;
}
.mock-logo {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--text-1);
  padding: 4px 6px 10px;
  display: flex; align-items: center;
}
.mock-nav-item {
  font-size: 0.7rem;
  color: var(--text-3);
  padding: 6px 8px;
  border-radius: 6px;
  cursor: default;
}
.mock-nav-active {
  background: rgba(59,130,246,0.15);
  color: var(--accent-2);
}

.mock-main {
  flex: 1;
  padding: 14px;
  overflow: hidden;
}
.mock-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.mock-greeting { font-size: 0.72rem; color: var(--text-1); font-weight: 600; }
.mock-date     { font-size: 0.65rem; color: var(--text-3); }

.mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}
.mock-stat {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  position: relative;
}
.mock-stat-blue   { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.2); }
.mock-stat-green  { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.2); }
.mock-stat-orange { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); }
.mock-stat-purple { background: rgba(139,92,246,0.08); border-color: rgba(139,92,246,0.2); }

.mock-stat-label { font-size: 0.6rem; color: var(--text-3); margin-bottom: 2px; }
.mock-stat-value { font-size: 0.75rem; font-weight: 700; color: var(--text-1); }
.mock-stat-badge {
  position: absolute; top: 6px; right: 6px;
  font-size: 0.55rem; font-weight: 700;
  padding: 2px 4px; border-radius: 4px;
}
.mock-stat-badge.up   { color: var(--green); background: rgba(16,185,129,0.12); }
.mock-stat-badge.down { color: var(--red);   background: rgba(239,68,68,0.12); }

.mock-chart-area { }
.mock-chart-title { font-size: 0.65rem; color: var(--text-3); margin-bottom: 8px; font-weight: 600; }
.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 60px;
}
.mock-bar {
  flex: 1;
  background: rgba(59,130,246,0.2);
  border-radius: 3px 3px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
  transition: background 0.2s;
}
.mock-bar span { font-size: 0.5rem; color: var(--text-3); }
.mock-bar-active { background: var(--accent); }
.mock-bar-active span { color: #fff; }

/* Float cards */
.float-card {
  position: absolute;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  max-width: calc(100% - 20px); /* prevent overflow */
}
.float-card-1 { bottom: -20px; left: 0; }  /* was left: -30px — caused overflow */
.float-card-2 { top: 40px;    right: 0; }  /* was right: -30px — caused overflow */
.fc-icon { font-size: 1.2rem; }
.fc-label { font-size: 0.65rem; color: var(--text-3); }
.fc-val   { font-size: 0.75rem; font-weight: 600; color: var(--text-1); }

@keyframes float1 {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes float2 {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}
.float-anim-1 { animation: float1 4s ease-in-out infinite; }
.float-anim-2 { animation: float2 4s ease-in-out infinite 1s; }

/* ═══════════════════════════════════════════════════════════
   PROBLEM / SOLUTION
═══════════════════════════════════════════════════════════ */
.problem-section {
  padding: 100px 0;
  background: var(--bg-2);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.problem-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.problem-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
}
.problem-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.problem-card h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: var(--text-1); margin-bottom: 10px;
}
.problem-card p { color: var(--text-2); font-size: 0.88rem; line-height: 1.7; }

/* Solution bridge */
.solution-bridge {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 40px 0;
}
.bridge-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}
.bridge-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  padding: 6px 16px;
  border-radius: 100px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.solution-card {
  display: flex;
  gap: 16px;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color 0.2s;
}
.solution-card:hover { border-color: rgba(16,185,129,0.35); }
.solution-check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  margin-top: 2px;
}
.solution-card h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 0.92rem; font-weight: 700;
  color: var(--text-1); margin-bottom: 6px;
}
.solution-card p { color: var(--text-2); font-size: 0.85rem; line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════════════════ */
.features-section {
  padding: 100px 0;
  background: var(--bg);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 64px;
}
.feature-row-reverse { direction: rtl; }
.feature-row-reverse > * { direction: ltr; }

.feature-tag {
  display: inline-block;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  color: var(--accent-2);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.feature-text h3 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.25;
  margin-bottom: 16px;
}
.feature-text p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 20px;
}
.feature-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text-2); font-size: 0.88rem; line-height: 1.5;
  padding-left: 4px;
}
.feature-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Feature mock UI panels */
.feature-mock {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.fm-header {
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-1);
}
.fm-row { padding: 14px 18px 0; }
.fm-search {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.8rem;
  color: var(--text-3);
}
.fm-items { padding: 8px 18px; }
.fm-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.fm-item:last-child { border-bottom: none; }
.fm-name  { font-size: 0.78rem; color: var(--text-1); font-weight: 500; flex: 1; }
.fm-qty   { font-size: 0.72rem; color: var(--text-3); }
.fm-price { font-size: 0.78rem; color: var(--text-1); font-weight: 600; white-space: nowrap; }
.fm-item-adding .fm-name { color: var(--text-3); }
.typing-cursor::after { content: ''; display: inline-block; width: 1px; height: 0.85em; background: var(--accent); margin-left: 2px; animation: blink 1s step-end infinite; vertical-align: text-bottom; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.fm-totals {
  border-top: 1px solid var(--border);
  padding: 10px 18px;
}
.fm-total-row {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: var(--text-2);
  padding: 3px 0;
}
.fm-grand {
  border-top: 1px solid var(--border-2);
  margin-top: 4px; padding-top: 6px;
  font-weight: 700; font-size: 0.85rem;
  color: var(--text-1);
}
.fm-btn {
  margin: 0 18px 18px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: default;
}

/* Purchase mock */
.fm-info-row {
  display: flex; gap: 12px;
  padding: 14px 18px 0;
}
.fm-info-box {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
}
.fm-info-label { font-size: 0.62rem; color: var(--text-3); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.04em; }
.fm-info-val   { font-size: 0.78rem; color: var(--text-1); font-weight: 600; }

.fm-purchase-items { padding: 12px 18px; }
.fm-pitem {
  display: flex; justify-content: space-between;
  font-size: 0.78rem; color: var(--text-2);
  padding: 7px 0; border-bottom: 1px solid var(--border);
}
.fm-pitem:last-child { border-bottom: none; }
.fm-stock-badge {
  margin: 0 18px 4px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 500;
}

/* Reports mock */
.fm-pl-section { padding: 10px 18px 0; }
.fm-pl-head {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 6px;
}
.fm-pl-row {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: var(--text-2);
  padding: 4px 0;
}
.fm-pl-row.bold { font-weight: 700; color: var(--text-1); }
.fm-pl-net {
  display: flex; justify-content: space-between; align-items: center;
  margin: 10px 18px 18px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-1);
}

/* ═══════════════════════════════════════════════════════════
   WEB REPORTS SECTION
═══════════════════════════════════════════════════════════ */
.reports-section {
  position: relative;
  padding: 100px 0;
  background: var(--bg-2);
  overflow: hidden;
}
.reports-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.reports-orb {
  position: absolute;
  width: 700px; height: 700px;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 65%);
  border-radius: 50%;
}
.reports-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative; z-index: 1;
}
.reports-text .section-title.white { color: var(--text-1); }

/* Steps */
.reports-steps { display: flex; flex-direction: column; gap: 16px; margin: 28px 0; }
.report-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.step-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Raleway', sans-serif; font-weight: 800;
  font-size: 0.82rem; color: #fff;
  box-shadow: 0 0 16px rgba(59,130,246,0.4);
}
.step-text { padding-top: 4px; }
.step-text strong {
  display: block;
  color: var(--text-1);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 3px;
}
.step-text span { color: var(--text-3); font-size: 0.82rem; }

.btn-reports-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: 12px;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
}
.btn-reports-cta:hover { background: var(--accent-2); transform: translateY(-2px); }

/* Phone mock */
.phone-mock {
  width: 220px;
  margin: 0 auto;
  background: var(--bg-3);
  border: 2px solid var(--border-2);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255,255,255,0.03);
  position: relative;
}
.phone-notch {
  width: 80px; height: 22px;
  background: var(--bg-3);
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
  position: relative; z-index: 2;
}
.phone-screen { background: var(--bg-2); padding: 0; }
.phone-statusbar {
  display: flex; justify-content: space-between;
  padding: 6px 16px;
  font-size: 0.6rem; color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
.phone-content { padding: 14px; }
.phone-header {
  font-family: 'Raleway', sans-serif;
  font-weight: 700; font-size: 0.85rem;
  color: var(--text-1); margin-bottom: 2px;
}
.phone-shop { font-size: 0.65rem; color: var(--text-3); margin-bottom: 14px; }
.phone-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px;
}
.phone-stat {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.pstat-val   { font-size: 0.75rem; font-weight: 700; color: var(--text-1); }
.pstat-label { font-size: 0.58rem; color: var(--text-3); }
.phone-section-title {
  font-size: 0.62rem; font-weight: 700;
  color: var(--text-3); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 6px;
}
.phone-sale-item {
  display: flex; justify-content: space-between;
  font-size: 0.68rem; color: var(--text-2);
  padding: 5px 0; border-bottom: 1px solid var(--border);
}
.phone-alert {
  font-size: 0.65rem; color: var(--orange);
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 6px; padding: 6px 10px; margin-bottom: 10px;
}
.phone-sync { font-size: 0.6rem; color: var(--text-3); text-align: center; padding-top: 6px; }

/* ═══════════════════════════════════════════════════════════
   PORTAL / LOGIN
═══════════════════════════════════════════════════════════ */
.portal-section {
  padding: 100px 0;
  background: var(--bg);
}
.portal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.portal-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}
.pf-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-2);
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}
.pf-item:hover { border-color: var(--border-2); color: var(--text-1); }

/* Login card */
.portal-login-card {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.login-card-inner { padding: 40px 36px; }
.login-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.login-logo-icon img { border-radius: 14px; }
.login-logo-text {
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem; font-weight: 800;
  color: var(--text-1);
}
.login-sub { color: var(--text-3); font-size: 0.85rem; margin-bottom: 28px; }

.login-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-2);
}
.form-group input {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text-1);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-group input::placeholder { color: var(--text-4); }
.form-hint { font-size: 0.72rem; color: var(--text-3); }

.login-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--red);
  display: none;
}
.login-error:not(:empty) { display: block; }

.login-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 13px;
  border-radius: 10px;
  border: none;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
}
.login-btn:hover { background: var(--accent-2); transform: translateY(-1px); }

.login-help {
  text-align: center;
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--text-3);
}
.login-help a { color: var(--accent-2); }

/* Branch picker */
.branch-picker { }
.branch-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--border-2);
  border-radius: 8px; padding: 6px 12px;
  color: var(--text-2); font-size: 0.78rem;
  margin-bottom: 16px;
  transition: background 0.2s;
}
.branch-back-btn:hover { background: rgba(255,255,255,0.05); }
.branch-picker-label {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Raleway', sans-serif; font-weight: 700;
  color: var(--text-1); font-size: 1rem;
  margin-bottom: 6px;
}
.branch-picker-hint { font-size: 0.82rem; color: var(--text-3); margin-bottom: 16px; }
.branch-list { display: flex; flex-direction: column; gap: 8px; }

.spinner {
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   WHY BOLTSYNC
═══════════════════════════════════════════════════════════ */
.why-section {
  padding: 100px 0;
  background: var(--bg-2);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.why-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.why-card:hover {
  border-color: rgba(var(--c-raw, 59,130,246), 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.why-icon-wrap {
  width: 48px; height: 48px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--c, var(--accent));
  /* Use the CSS custom property set inline */
  background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent);
  border-color: color-mix(in srgb, var(--c, var(--accent)) 30%, transparent);
}
.why-card h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 0.98rem; font-weight: 700;
  color: var(--text-1); margin-bottom: 10px;
}
.why-card p { color: var(--text-2); font-size: 0.86rem; line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════════════════ */
.pricing-section {
  padding: 100px 0;
  background: var(--bg);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pricing-card-pro {
  border-color: rgba(59,130,246,0.4);
  background: linear-gradient(135deg, rgba(59,130,246,0.06), var(--bg-2));
  box-shadow: var(--shadow-accent);
}
.pricing-card-pro:hover {
  border-color: var(--accent);
  box-shadow: 0 0 48px rgba(59,130,246,0.25), var(--shadow-md);
}
.plan-popular {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.plan-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 14px;
}
.plan-price {
  font-family: 'Raleway', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 4px;
}
.plan-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-3);
}
.plan-target {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
  min-height: 200px;
}
.plan-features li {
  font-size: 0.82rem;
  color: var(--text-2);
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.45;
}
.plan-features li.locked { color: var(--text-4); }
.plan-btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.plan-btn-primary {
  background: var(--accent); color: #fff;
  border: 1px solid transparent;
}
.plan-btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.plan-btn-ghost {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-1);
}
.plan-btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }

.pricing-note {
  text-align: center;
  color: var(--text-3);
  font-size: 0.82rem;
  max-width: 560px;
  margin: 32px auto 0;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   FAQ SECTION
═══════════════════════════════════════════════════════════ */
.faq-section {
  padding: 100px 0;
  background: var(--bg-2);
}
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--border-2); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px;
  font-weight: 600; font-size: 0.95rem;
  color: var(--text-1);
  cursor: pointer; list-style: none;
  user-select: none;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { display: none; }
.faq-item summary > span {
  flex-shrink: 0;
  transition: transform 0.25s;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary > span { display: inline-block; transform: rotate(45deg); }
.faq-item p {
  padding: 0 22px 18px;
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════ */
.about-section {
  padding: 100px 0;
  background: var(--bg);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-values {
  display: flex; flex-direction: column; gap: 16px;
  margin-top: 28px;
}
.value-item {
  display: flex; gap: 14px; align-items: flex-start;
}
.value-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.value-item strong {
  display: block;
  color: var(--text-1);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.value-item span { color: var(--text-3); font-size: 0.83rem; line-height: 1.6; }

/* About card */
.about-card {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.about-card-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.ac-icon img { border-radius: 12px; }
.ac-name {
  font-family: 'Raleway', sans-serif;
  font-weight: 800; font-size: 1.1rem;
  color: var(--text-1);
}
.ac-sub { font-size: 0.78rem; color: var(--text-3); margin-top: 2px; }

.about-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
  margin-bottom: 24px;
}
.astat { text-align: center; }
.astat-val {
  font-family: 'Raleway', sans-serif;
  font-size: 1.5rem; font-weight: 800;
  color: var(--accent-2); margin-bottom: 4px;
}
.astat-label { font-size: 0.72rem; color: var(--text-3); line-height: 1.4; }

.about-contact-links {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.contact-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-2);
  transition: background 0.2s, color 0.2s;
}
.contact-link:hover { background: rgba(255,255,255,0.06); color: var(--text-1); }
.contact-link.whatsapp:hover { color: #25d366; border-color: rgba(37,211,102,0.3); }
.contact-link.website:hover  { color: var(--accent-2); border-color: rgba(96,165,250,0.3); }

/* ═══════════════════════════════════════════════════════════
   DOWNLOAD
═══════════════════════════════════════════════════════════ */
.download-section {
  padding: 100px 0;
  background: var(--bg-2);
}
.download-inner { text-align: center; }
.download-inner .section-sub { margin-left: auto; margin-right: auto; }

.dl-latest {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
}
.dl-latest-badge {
  background: linear-gradient(90deg, rgba(59,130,246,0.15), rgba(139,92,246,0.1));
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-2);
  text-align: left;
  letter-spacing: 0.04em;
}
.dl-latest-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
}
.dl-latest-left {
  display: flex; align-items: center; gap: 18px; text-align: left;
}
.dl-latest-icon { font-size: 2.4rem; }
.dl-latest-name {
  font-family: 'Raleway', sans-serif;
  font-weight: 800; font-size: 1.1rem;
  color: var(--text-1); margin-bottom: 5px;
}
.dl-latest-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--text-3);
  margin-bottom: 6px;
}
.dl-meta-sep { color: var(--text-4); }
.dl-latest-notes { font-size: 0.78rem; color: var(--text-3); max-width: 400px; text-align: left; }

.dl-btn-hero {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700; font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(59,130,246,0.35);
}
.dl-btn-hero:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(59,130,246,0.45); }

/* Version history */
.dl-history {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: left;
  margin-bottom: 24px;
}
.dl-history-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.dl-history-header h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 0.92rem; font-weight: 700;
  color: var(--text-1);
}
.dl-github-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-3); font-size: 0.78rem;
  transition: color 0.2s;
}
.dl-github-link:hover { color: var(--text-1); }

.dl-version-row {
  display: flex; align-items: center; gap: 20px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.dl-version-row:last-child { border-bottom: none; }
.dl-version-row:hover { background: rgba(255,255,255,0.02); }
.dl-version-row--latest { background: rgba(59,130,246,0.04); }

.dl-ver-left {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.dl-ver-badges { }
.dl-badge { }
.dl-badge--latest {
  background: rgba(59,130,246,0.15);
  color: var(--accent-2);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 100px;
  font-size: 0.68rem; font-weight: 700;
  padding: 2px 10px;
}
.dl-ver-tag {
  font-family: 'Raleway', sans-serif;
  font-weight: 700; font-size: 0.88rem;
  color: var(--text-1);
}
.dl-ver-date { font-size: 0.72rem; color: var(--text-3); }
.dl-ver-notes { flex: 1; font-size: 0.78rem; color: var(--text-2); line-height: 1.5; }
.dl-ver-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-4);
  border: 1px solid var(--border-2);
  color: var(--text-1);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.dl-ver-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.dl-footer-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--text-3); font-size: 0.78rem;
}

/* ═══════════════════════════════════════════════════════════
   FINAL CTA
═══════════════════════════════════════════════════════════ */
.final-cta {
  position: relative;
  padding: 100px 0;
  background: var(--bg);
  overflow: hidden;
}
.final-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.final-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}
.final-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.5) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.final-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.4) 0%, transparent 70%);
  bottom: -80px; right: -80px;
}
.final-inner {
  text-align: center;
  position: relative; z-index: 1;
  max-width: 680px; margin: 0 auto;
}
.final-headline {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.2;
  margin-bottom: 16px;
}
.final-sub {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 36px;
}
.final-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap; margin-bottom: 20px;
}
.btn-final-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff;
  font-weight: 700; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 12px;
  transition: background 0.2s, transform 0.15s;
}
.btn-final-whatsapp:hover { background: #22c55e; transform: translateY(-2px); }
.btn-final-download {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-3); color: var(--text-1);
  border: 1px solid var(--border-2);
  font-weight: 700; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 12px;
  transition: background 0.2s, transform 0.15s;
}
.btn-final-download:hover { background: var(--bg-4); transform: translateY(-2px); }

.final-contact-detail {
  color: var(--text-3);
  font-size: 0.82rem;
}
.final-contact-detail a { color: var(--accent-2); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p {
  color: var(--text-3);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 340px;
}
.footer-dev { margin-top: 8px; }
.footer-dev a { color: var(--accent-2); }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Raleway', sans-serif;
  font-weight: 800; font-size: 1.05rem;
  color: var(--text-1);
}
.footer-links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 4px;
}
.footer-col a {
  color: var(--text-3);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-1); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  padding: 20px 0;
  font-size: 0.75rem;
  color: var(--text-4);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 960px)
   Hide desktop nav links, show hamburger
═══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  /* Navbar: collapse to logo + hamburger only */
  .nav-links      { display: none; }
  .btn-ghost      { display: none; }
  .btn-primary-sm { display: none; }
  .theme-toggle   { display: none; }
  .nav-actions    { display: none; }
  .hamburger      { display: flex; }
  .nav-inner      { padding: 0 20px; gap: 0; justify-content: space-between; }

  /* Hero */
  .hero { padding: 64px 0 48px; min-height: unset; }
  .hero > .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content { order: 1; }
  .hero-visual  { order: 2; min-width: 0; }
  .hero-sub     { max-width: 100%; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-trust   { justify-content: center; flex-wrap: wrap; }
  .hero-badge   { margin: 0 auto 20px; }
  .float-card-1 { bottom: -8px; left: 0; }
  .float-card-2 { top: 16px;   right: 0; }

  /* Sections */
  .problem-grid        { grid-template-columns: 1fr; }
  .solution-grid       { grid-template-columns: 1fr; }
  .feature-row         { grid-template-columns: 1fr; gap: 32px; }
  .feature-row-reverse { direction: ltr; }
  .reports-inner       { grid-template-columns: 1fr; gap: 40px; }
  .portal-inner        { grid-template-columns: 1fr; gap: 40px; }
  .about-inner         { grid-template-columns: 1fr; gap: 40px; }
  .why-grid            { grid-template-columns: 1fr 1fr; }
  .pricing-grid        { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  .footer-inner        { grid-template-columns: 1fr; gap: 32px; }
  .footer-links        { grid-template-columns: repeat(3, 1fr); }

  /* Reports visual centred */
  .reports-visual { display: flex; justify-content: center; }

  /* Solution bridge */
  .solution-bridge { flex-wrap: wrap; gap: 10px; }

  /* Section padding */
  .problem-section,
  .features-section,
  .reports-section,
  .portal-section,
  .why-section,
  .pricing-section,
  .about-section,
  .download-section,
  .faq-section { padding: 72px 0; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 640px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .container { padding: 0 16px; }

  /* Hero */
  .hero { padding: 60px 0 44px; }
  .hero-headline { font-size: clamp(3rem, 7.5vw, 2.4rem); text-align: left; }
  .hero-sub { font-size: 0.95rem; }
  .btn-hero-primary,
  .btn-hero-ghost { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .trust-sep { display: none; }
  .hero-trust { flex-direction: column; align-items: center; gap: 6px; }
  .float-card { display: none; }

  /* Dashboard mock */
  .mock-sidebar { display: none; }
  .mock-body    { height: 220px; }

  /* Sections */
  .section-title { font-size: clamp(1.5rem, 6vw, 1.85rem); }
  .section-sub   { font-size: 0.9rem; }

  /* Problem / Solution */
  .problem-card  { padding: 20px 18px; }
  .solution-card { padding: 16px; }
  .bridge-line   { display: none; }

  /* Features */
  .feature-row     { gap: 20px; }
  .feature-text h3 { font-size: 1.3rem; }
  .fm-info-row     { flex-direction: column; gap: 8px; }

  /* Reports */
  .phone-mock { width: 200px; }

  /* Portal */
  .portal-features  { grid-template-columns: 1fr; gap: 8px; }
  .login-card-inner { padding: 24px 18px; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 22px 18px; }

  /* Pricing */
  .pricing-grid  { max-width: 100%; }
  .pricing-card  { padding: 24px 18px; }
  .plan-features { min-height: unset; }

  /* About */
  .about-stats         { grid-template-columns: 1fr 1fr; gap: 12px; }
  .about-contact-links { flex-direction: column; }
  .contact-link        { justify-content: center; }
  .about-card          { padding: 24px 18px; }

  /* Download */
  .dl-latest-info { flex-direction: column; align-items: stretch; gap: 16px; }
  .dl-btn-hero    { width: 100%; justify-content: center; }
  .dl-latest-left { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dl-version-row { flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
  .dl-ver-notes   { width: 100%; order: 3; }
  .dl-ver-btn     { margin-left: auto; }

  /* Final CTA */
  .final-cta { padding: 64px 0; }
  .final-headline { font-size: clamp(1.5rem, 6vw, 1.85rem); }
  .btn-final-whatsapp,
  .btn-final-download { width: 100%; justify-content: center; }
  .final-actions { flex-direction: column; gap: 10px; }

  /* Footer */
  .footer-links  { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
  .footer        { padding: 40px 0 0; }

  /* Section padding */
  .problem-section,
  .features-section,
  .portal-section,
  .why-section,
  .pricing-section,
  .about-section,
  .download-section,
  .faq-section { padding: 52px 0; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE  (≤ 400px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
  .container    { padding: 0 12px; }
  .nav-inner    { padding: 0 12px; }
  .hero-headline {font-size: clamp(3rem, 7.5vw, 2.4rem); text-align: left; }
  .section-title { font-size: 1.4rem; }
  .about-stats   { grid-template-columns: 1fr; }
  .footer-links  { grid-template-columns: 1fr; gap: 16px; }
  .pricing-card  { padding: 20px 14px; }
  .login-card-inner { padding: 18px 12px; }
  .phone-mock   { width: 175px; }
  .mock-body    { height: 195px; }
}

/* ═══════════════════════════════════════════════════════════
   LIGHT MODE OVERRIDES — Component specific
═══════════════════════════════════════════════════════════ */
body.light-mode .hero-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}
body.light-mode .dashboard-mock { box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
body.light-mode .mock-nav-active { background: rgba(59,130,246,0.12); }
body.light-mode .hero-orb { opacity: 0.25; }
body.light-mode .float-card { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
body.light-mode .login-btn:hover { background: var(--accent-2); }
body.light-mode .plan-btn-ghost { color: var(--text-1); }

/* ═══════════════════════════════════════════════════════════
   SCROLL BEHAVIOUR — navbar on scroll
═══════════════════════════════════════════════════════════ */
body { padding-top: 68px; }
/* ═══════════════════════════════════════════════════════════
   RESPONSIVE PATCH — Full mobile & tablet overhaul
   Appended to fix all remaining issues at every breakpoint
═══════════════════════════════════════════════════════════ */

/* ── 960px TABLET FIXES ─────────────────────────────────── */
@media (max-width: 960px) {

  /* Hamburger visible, actions hidden — already set above, reinforce */
  .nav-actions { display: none !important; }
  .nav-links    { display: none !important; }
  .hamburger    { display: flex !important; }

  /* hero grid: single column, centered */
  .hero > .container {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 32px;
  }
  .hero-badge    { margin-left: auto; margin-right: auto; }
  .hero-sub      { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions  { justify-content: center; flex-wrap: wrap; }
  .hero-trust    { justify-content: center; flex-wrap: wrap; }
  .hero-visual   { max-width: 520px; margin: 0 auto; }

  /* Features: stack text over visual */
  .feature-row         { grid-template-columns: 1fr !important; gap: 28px; }
  .feature-row-reverse { direction: ltr !important; }
  .feature-row-reverse > * { direction: ltr; }

  /* Reports & portal: single column */
  .reports-inner { grid-template-columns: 1fr !important; gap: 40px; text-align: center; }
  .reports-steps { text-align: left; max-width: 480px; margin-left: auto; margin-right: auto; }
  .portal-inner  { grid-template-columns: 1fr !important; gap: 40px; }

  /* About: single column */
  .about-inner   { grid-template-columns: 1fr !important; gap: 40px; }

  /* Pricing: single column, max-width constrained */
  .pricing-grid  { grid-template-columns: 1fr !important; max-width: 480px; margin-left: auto; margin-right: auto; }

  /* Footer: single column brand + 3-col links */
  .footer-inner  { grid-template-columns: 1fr !important; gap: 28px; }
  .footer-links  { grid-template-columns: repeat(3, 1fr) !important; }

  /* Why: 2 columns on tablet */
  .why-grid      { grid-template-columns: 1fr 1fr !important; }

  /* Problem / Solution: single col */
  .problem-grid  { grid-template-columns: 1fr !important; }
  .solution-grid { grid-template-columns: 1fr !important; }

  /* Section padding reduced */
  .problem-section,
  .features-section,
  .reports-section,
  .portal-section,
  .why-section,
  .pricing-section,
  .about-section,
  .download-section,
  .faq-section { padding: 72px 0; }
}

/* ── 640px MOBILE FIXES ─────────────────────────────────── */
@media (max-width: 640px) {

  /* Base */
  .container   { padding: 0 16px; }
  .nav-inner   { padding: 0 14px; }
  body         { padding-top: 62px; }

  /* Navbar */
  .navbar      { }
  .nav-inner   { height: 62px; }

  /* Hero */
  .hero { padding: 56px 0 40px; min-height: unset; }
  .hero-headline { font-size: clamp(3rem, 7.5vw, 2.4rem); text-align: left; }
  .hero-sub { font-size: 0.93rem; }
  .btn-hero-primary,
  .btn-hero-ghost { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .trust-sep    { display: none; }
  .hero-trust   { flex-direction: column; align-items: center; gap: 5px; }
  .float-card   { display: none; }

  /* Dashboard mock */
  .dashboard-mock { font-size: 0.85em; }
  .mock-sidebar { display: none; }
  .mock-body    { height: 210px; }

  /* Problem / Solution */
  .problem-grid  { gap: 14px; }
  .problem-card  { padding: 20px 18px; }
  .solution-grid { gap: 14px; }
  .solution-card { padding: 16px 18px; }
  .solution-bridge { flex-wrap: wrap; gap: 10px; justify-content: center; }
  .bridge-line   { display: none; }

  /* Section headings */
  .section-title { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .section-sub   { font-size: 0.9rem; margin-bottom: 32px; }

  /* Features */
  .feature-row   { gap: 20px; margin-top: 40px; }
  .feature-text h3 { font-size: clamp(1.2rem, 5vw, 1.5rem); }
  .fm-info-row   { flex-direction: column; gap: 8px; }
  .feature-mock  { max-width: 100%; }

  /* Reports */
  .reports-inner { gap: 32px; }
  .phone-mock    { width: 200px; }
  .reports-section { padding: 56px 0; }

  /* Portal */
  .portal-section  { padding: 56px 0; }
  .portal-features { grid-template-columns: 1fr !important; gap: 8px; }
  .login-card-inner { padding: 24px 20px; }

  /* Why */
  .why-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .why-card { padding: 22px 18px; }

  /* Pricing */
  .pricing-section { padding: 56px 0; }
  .pricing-grid    { max-width: 100% !important; gap: 16px; }
  .pricing-card    { padding: 24px 18px; }
  .plan-price      { font-size: 2rem; }
  .plan-features   { min-height: unset; }
  .plan-badge      { font-size: 0.68rem; padding: 3px 10px; }

  /* About */
  .about-section   { padding: 56px 0; }
  .about-card      { padding: 24px 18px; }
  .about-stats     { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .about-contact-links { flex-direction: column; gap: 8px; }
  .contact-link    { justify-content: center; }
  .astat-val       { font-size: 1.3rem; }

  /* FAQ */
  .faq-section { padding: 52px 0; }
  .faq-item    { border-radius: 12px; }

  /* Download */
  .download-section { padding: 52px 0; }
  .dl-latest-info {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 20px;
  }
  .dl-btn-hero  { width: 100%; justify-content: center; }
  .dl-latest-left { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dl-latest-icon { font-size: 1.8rem; }
  .dl-version-row { flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
  .dl-ver-notes   { width: 100%; order: 3; }
  .dl-ver-btn     { margin-left: auto; }
  .dl-ver-left    { flex-wrap: wrap; gap: 6px; }
  .dl-latest-meta { flex-wrap: wrap; gap: 4px; }

  /* Final CTA */
  .final-cta { padding: 60px 0; }
  .final-headline { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .final-sub { font-size: 0.92rem; }
  .btn-final-whatsapp,
  .btn-final-download { width: 100%; justify-content: center; padding: 14px 20px; }
  .final-actions { flex-direction: column; gap: 10px; }
  .final-contact-detail { font-size: 0.78rem; line-height: 1.6; }

  /* Footer */
  .footer        { padding: 40px 0 0; }
  .footer-inner  { gap: 24px; }
  .footer-links  { grid-template-columns: 1fr 1fr !important; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; font-size: 0.72rem; }
  .footer-brand p { max-width: 100%; }

  /* Section padding general */
  .problem-section,
  .features-section { padding: 52px 0; }
}

/* ── 400px SMALL PHONE FIXES ─────────────────────────────── */
@media (max-width: 400px) {
  .container     { padding: 0 12px; }
  .nav-inner     { padding: 0 12px; }
  .hero-headline { font-size: clamp(3rem, 7.5vw, 2.4rem); text-align: left; }
  .section-title { font-size: 1.3rem; }
  .about-stats   { grid-template-columns: 1fr !important; }
  .footer-links  { grid-template-columns: 1fr !important; gap: 16px; }
  .pricing-card  { padding: 20px 14px; }
  .login-card-inner { padding: 18px 14px; }
  .phone-mock    { width: 175px; }
  .mock-body     { height: 195px; }
  .dl-latest-info { padding: 16px; }
  .solution-card { padding: 14px 16px; }
  .why-card      { padding: 18px 14px; }
  .mobile-menu   { width: 92vw; }
}

/* ── TOUCH DEVICE: remove hover transforms that cause layout shift ── */
@media (hover: none) {
  .post-card:hover,
  .problem-card:hover,
  .why-card:hover,
  .pricing-card:hover { transform: none; }
  .btn-hero-primary:hover,
  .btn-hero-ghost:hover,
  .dl-btn-hero:hover,
  .btn-final-whatsapp:hover,
  .btn-final-download:hover { transform: none; }
}

/* ── SAFE AREA for notched phones ─────────────────────────── */
.mobile-menu {
  padding-bottom: max(env(safe-area-inset-bottom, 24px), 24px);
}
.hero { padding-left: env(safe-area-inset-left, 0); padding-right: env(safe-area-inset-right, 0); }
.navbar { padding-left: env(safe-area-inset-left, 0); padding-right: env(safe-area-inset-right, 0); }

/* ── FAQ inline-style overrides ─────────────────────────── */
.faq-grid { width: 100%; box-sizing: border-box; }

@media (max-width: 640px) {
  /* Override inline padding on .faq-item */
  .faq-item {
    padding: 16px 16px !important;
  }
  /* FAQ section inline padding override */
  .faq-section {
    padding: 52px 0 !important;
  }
  /* FAQ summary font size */
  .faq-item summary {
    font-size: 0.92rem !important;
    gap: 12px;
  }
  /* Pricing card section-sub */
  .section-sub {
    max-width: 100% !important;
  }
  /* about-stats force 2-col */
  .about-stats {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 400px) {
  .faq-item { padding: 14px 14px !important; }
  .faq-item summary { font-size: 0.86rem !important; }
}

/* ═══════════════════════════════════════════════════════════
   MASTER FIX — Horizontal scroll & mobile UX
   Appended last so these rules win over everything above
═══════════════════════════════════════════════════════════ */

/* ── 1. Global overflow containment ───────────────────────── */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

/* Every section must be contained */
section, .hero, .footer, .navbar,
.problem-section, .features-section,
.reports-section, .portal-section,
.why-section, .pricing-section,
.about-section, .download-section,
.faq-section, .final-cta {
  max-width: 100%;
  overflow-x: hidden;
}

/* ── 2. Container safety ───────────────────────────────────── */
.container {
  width: 100%;
  box-sizing: border-box;
}

/* ── 3. Feature mocks: prevent overflow on mobile ─────────── */
.feature-mock,
.feature-visual {
  overflow: hidden;
  max-width: 100%;
}

/* ── 4. Dashboard mock always contained ───────────────────── */
.dashboard-mock {
  max-width: 100%;
  overflow: hidden;
}

/* ── 5. Nav-inner never overflows ─────────────────────────── */
.nav-inner {
  max-width: 100%;
  box-sizing: border-box;
}

/* ── 6. Bridge text wraps on small screens ────────────────── */
.bridge-text {
  white-space: normal;
  text-align: center;
}

/* ── 7. Hero visual properly contained ─────────────────────── */
.hero-visual {
  max-width: 100%;
  overflow: hidden;
}

/* ── 8. Download section card responsive ───────────────────── */
.dl-latest {
  overflow: hidden;
}

/* ── 9. Footer overflow ────────────────────────────────────── */
.footer-inner,
.footer-links {
  overflow-x: hidden;
}

/* ── 10. Mobile body-locked state (set via JS) ─────────────── */
body.menu-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}

/* ── 11. Tablet: nav-inner tighter padding ─────────────────── */
@media (max-width: 960px) {
  .nav-inner {
    padding: 0 16px;
    gap: 0;
  }
  /* Ensure hero visual doesn't overflow */
  .hero-visual {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }
}

/* ── 12. Mobile: critical fixes ─────────────────────────────── */
@media (max-width: 640px) {
  /* Navbar height consistency */
  .nav-inner { height: 60px; padding: 0 16px; }
  body { padding-top: 60px; }

  /* All cards must not overflow */
  .problem-card, .solution-card, .why-card,
  .pricing-card, .about-card, .dl-latest,
  .login-card-inner {
    width: 100%;
    box-sizing: border-box;
  }

  /* Feature mock fills container exactly */
  .feature-mock {
    width: 100% !important;
    overflow: hidden;
  }

  /* Phone mock and portal visual */
  .portal-visual, .reports-visual {
    overflow: hidden;
    max-width: 100%;
  }

  /* Section sub full width */
  .section-sub {
    max-width: 100% !important;
    margin-left: 0;
    margin-right: 0;
  }

  /* FAQ items */
  .faq-grid {
    max-width: 100% !important;
    overflow: hidden;
  }

  /* Download meta wraps */
  .dl-meta-sep { display: none; }
  .dl-latest-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }

  /* Final contact detail */
  .final-contact-detail {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Footer bottom text wraps */
  .footer-bottom span {
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

/* ── 13. Small phone: 390px and under ─────────────────────── */
@media (max-width: 390px) {
  .container { padding: 0 14px; }
  .nav-inner { padding: 0 14px; }
  .hero-headline { font-size: clamp(3rem, 7.5vw, 2.4rem); text-align: left; }
  .section-title { font-size: 1.3rem; }
  .mobile-menu { width: 94vw; }
  .logo-text { font-size: 1rem; }
  .about-stats { grid-template-columns: 1fr 1fr !important; }
  .footer-links { grid-template-columns: 1fr !important; }
  .pricing-card { padding: 20px 14px; }
  .dl-latest-info { padding: 16px 14px; }
}

/* ── 14. Extra-small: 360px and under ─────────────────────── */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .nav-inner { padding: 0 12px; }
  .hero-headline { font-size: clamp(3rem, 7.5vw, 2.4rem); text-align: left; }
  .section-title { font-size: 1.25rem; }
  .mobile-menu { width: 96vw; }
  .about-stats { grid-template-columns: 1fr !important; }
  .hero-badge { font-size: 0.7rem; padding: 5px 10px; }
}

/* ── 15. Touch: prevent overscroll bleed ─────────────────────── */
@media (pointer: coarse) {
  .mobile-menu { overscroll-behavior: contain; }
  html { overscroll-behavior-x: none; }
}

/* ── SYSTEM REQUIREMENTS RESPONSIVE ──────────────────────── */
@media (max-width: 600px) {

  .sys-req {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 12px;
  }

  .sys-req-grid {
    grid-template-columns: 1fr !important;
  }

  /* Remove the mid divider line (right border) on mobile — no longer two columns */
  .sys-req-grid > div {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 12px 16px !important;
  }

  /* Last row gets no bottom border */
  .sys-req-grid > div:last-child {
    border-bottom: none !important;
  }

  /* Header bar */
  .sys-req > div:first-child {
    padding: 12px 16px !important;
    flex-wrap: wrap;
    gap: 6px;
  }

  /* "Windows Only" badge goes to its own line */
  .sys-req > div:first-child > span:last-child {
    margin-left: 0 !important;
  }

  /* Green footer bar */
  .sys-req > div:last-child {
    padding: 10px 16px !important;
    align-items: flex-start !important;
  }
}