/* =============================================
   AccessPatch — Main Stylesheet
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #07070f;
  --bg-2: #0d0d1a;
  --bg-3: #111128;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --purple: #7c3aed;
  --purple-light: #a855f7;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --white: #ffffff;
  --gray-1: #f8fafc;
  --gray-2: #e2e8f0;
  --gray-3: #94a3b8;
  --gray-4: #697f94;
  --gray-5: #1e293b;
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 25px 60px rgba(0,0,0,0.4);

  /* Theme transition */
  --theme-transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

/* ---- Light Theme ---- */
[data-theme="light"] {
  --bg:    #f8fafc;
  --bg-2:  #f1f5f9;
  --bg-3:  #e9eef5;
  --white: #0f172a;
  --gray-1: #0f172a;
  --gray-2: #1e293b;
  --gray-3: #475569;
  --gray-4: #596880;
  --gray-5: #cbd5e1;
  --border: rgba(0,0,0,0.1);
  --shadow: 0 25px 60px rgba(0,0,0,0.12);
}

[data-theme="light"] body {
  background: var(--bg);
  color: var(--white);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(248,250,252,0.92);
  border-bottom-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .hero-bg-grid {
  background-image:
    linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
}

[data-theme="light"] .hero-glow-1 {
  background: radial-gradient(circle, rgba(59,130,246,0.18), transparent 70%);
}
[data-theme="light"] .hero-glow-2 {
  background: radial-gradient(circle, rgba(124,58,237,0.14), transparent 70%);
}

[data-theme="light"] .hero-badge {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.25);
}

[data-theme="light"] .hero-code-block,
[data-theme="light"] .step-code-mini,
[data-theme="light"] .scan-visual {
  background: #e9eef5;
  border-color: rgba(0,0,0,0.12);
}

[data-theme="light"] .code-header,
[data-theme="light"] .scan-header {
  background: rgba(0,0,0,0.04);
  border-bottom-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .hero-stats {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .section-dark {
  background: var(--bg-2);
}

[data-theme="light"] .warning-section {
  background: rgba(239,68,68,0.05);
}

[data-theme="light"] .feat-card,
[data-theme="light"] .price-card,
[data-theme="light"] .faq-item-new,
[data-theme="light"] .compare-table,
[data-theme="light"] .feature-hero {
  background: rgba(0,0,0,0.025);
  border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .feat-card:hover {
  background: rgba(0,0,0,0.045);
  border-color: rgba(124,58,237,0.3);
}

[data-theme="light"] .price-card-featured {
  background: linear-gradient(160deg, rgba(59,130,246,0.08), rgba(124,58,237,0.05), rgba(248,250,252,0.95));
}

[data-theme="light"] .price-btn {
  border-color: rgba(0,0,0,0.15);
  color: #0f172a;
}
[data-theme="light"] .price-btn:hover { background: rgba(0,0,0,0.06); }

[data-theme="light"] .faq-q { color: #0f172a; }
[data-theme="light"] .faq-q:hover { color: var(--blue); }

[data-theme="light"] .footer {
  background: var(--bg-2);
  border-top-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .mobile-drawer {
  background: #f1f5f9;
  border-left-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .mobile-nav-link { color: #334155; }
[data-theme="light"] .mobile-nav-link:hover { background: rgba(0,0,0,0.05); color: #0f172a; }
[data-theme="light"] .mobile-btn-ghost { border-color: rgba(0,0,0,0.15); color: #0f172a; }
[data-theme="light"] .mobile-btn-ghost:hover { background: rgba(0,0,0,0.05); }
[data-theme="light"] .mobile-close { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.12); color: #0f172a; }

/* ---- Light Mode: Navbar header button fix ---- */
/* btn-primary text must stay white even in light mode (var(--white) becomes dark) */
[data-theme="light"] .btn-primary {
  color: #ffffff !important;
}
/* Navbar needs a light background when not scrolled so buttons are visible */
[data-theme="light"] .navbar {
  background: rgba(248,250,252,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
/* btn-ghost in navbar: dark text on light bg */
[data-theme="light"] .btn-ghost {
  color: #0f172a;
  border-color: rgba(0,0,0,0.15);
}
[data-theme="light"] .btn-ghost:hover {
  background: rgba(0,0,0,0.05);
}
/* nav links dark text */
[data-theme="light"] .nav-links a {
  color: #475569;
}
[data-theme="light"] .nav-links a:hover {
  color: #0f172a;
}

[data-theme="light"] .compare-row-label,
[data-theme="light"] .compare-cell {
  border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .compare-head {
  border-bottom-color: rgba(0,0,0,0.1);
}

/* ---- Light Mode: Scan Visual rows ---- */
[data-theme="light"] .scan-fixed {
  background: rgba(16,185,129,0.12);
  color: #065f46;
}
[data-theme="light"] .scan-warn {
  background: rgba(245,158,11,0.12);
  color: #92400e;
}
[data-theme="light"] .scan-score {
  background: rgba(59,130,246,0.12);
  color: #1e40af;
  border-color: rgba(59,130,246,0.25);
}
[data-theme="light"] .scan-score-txt strong { color: #1e3a8a; }
[data-theme="light"] .scan-visual {
  background: #eef2f8;
}
[data-theme="light"] .code-content { color: #1e293b; }
[data-theme="light"] .code-tag  { color: #1d4ed8; }
[data-theme="light"] .code-attr { color: #166534; }
[data-theme="light"] .code-val  { color: #92400e; }
[data-theme="light"] .step-code-mini { color: #92400e; }

/* ---- Light Mode: Dashboard ---- */
[data-theme="light"] .sidebar {
  background: #f1f5f9;
  border-right-color: rgba(0,0,0,0.1);
}
/* Sidebar nav items — explicitly force dark text */
[data-theme="light"] .nav-item {
  color: #334155 !important;
}
[data-theme="light"] .nav-item:hover {
  background: rgba(0,0,0,0.06) !important;
  color: #0f172a !important;
}
[data-theme="light"] .nav-item.active {
  background: rgba(37,99,235,0.1) !important;
  color: #1d4ed8 !important;
}
[data-theme="light"] .nav-icon { color: inherit; }

/* Sidebar borders */
[data-theme="light"] .sidebar-logo,
[data-theme="light"] .sidebar-plan,
[data-theme="light"] .sidebar-user { border-color: rgba(0,0,0,0.1); }

/* Sidebar theme toggle button inside sidebar */
[data-theme="light"] .sidebar-theme button {
  background: rgba(0,0,0,0.04) !important;
  border-color: rgba(0,0,0,0.1) !important;
  color: #334155 !important;
}
[data-theme="light"] .sidebar-theme button:hover {
  background: rgba(0,0,0,0.08) !important;
}

/* User section */
[data-theme="light"] .user-name { color: #0f172a; }
[data-theme="light"] .user-logout { color: #596880; }
[data-theme="light"] .plan-pill { background: rgba(37,99,235,0.1); color: #1d4ed8; }
[data-theme="light"] .trial-note { color: #475569; }

/* Dashboard cards */
[data-theme="light"] .dash-card,
[data-theme="light"] .stat-card { background: #fff; border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .card-title { color: #0f172a; }
[data-theme="light"] .card-subtitle { color: #1e293b; }
[data-theme="light"] .card-desc { color: #475569; }
[data-theme="light"] .dash-title { color: #0f172a; }
[data-theme="light"] .dash-subtitle { color: #596880; }

/* Inline hardcoded-color elements inside dashboard cards */
[data-theme="light"] [style*="rgba(255,255,255,0.03)"],
[data-theme="light"] [style*="rgba(255,255,255,.03)"] {
  background: rgba(0,0,0,0.025) !important;
  border-color: rgba(0,0,0,0.08) !important;
}
[data-theme="light"] [style*="rgba(255,255,255,0.07)"],
[data-theme="light"] [style*="rgba(255,255,255,.07)"] {
  border-color: rgba(0,0,0,0.07) !important;
}
[data-theme="light"] [style*="color:#e2e8f0"],
[data-theme="light"] [style*="color: #e2e8f0"] { color: #0f172a !important; }
[data-theme="light"] [style*="color:#94a3b8"],
[data-theme="light"] [style*="color: #94a3b8"] { color: #475569 !important; }
[data-theme="light"] [style*="color:#64748b"],
[data-theme="light"] [style*="color: #64748b"] { color: #596880 !important; }
[data-theme="light"] [style*="color:#60a5fa"],
[data-theme="light"] [style*="color: #60a5fa"] { color: #1d4ed8 !important; }
[data-theme="light"] [style*="color:#7dd3fc"] { color: #1d4ed8 !important; }
[data-theme="light"] [style*="color:#475569"] { color: #475569 !important; }
[data-theme="light"] [style*="background:rgba(0,0,0,.3)"] { background: rgba(0,0,0,0.06) !important; }

/* Table */
[data-theme="light"] .data-table th { color: #596880; border-bottom-color: rgba(0,0,0,0.1); }
[data-theme="light"] .data-table td { border-bottom-color: rgba(0,0,0,0.06); color: #1e293b; }
[data-theme="light"] .data-table tr:hover td { background: rgba(0,0,0,0.02); }
[data-theme="light"] .url-cell { color: #1e293b; }

/* Code/snippet */
[data-theme="light"] .snippet-box { background: #e9eef5; border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .snippet-box code { color: #1d4ed8; }
[data-theme="light"] .script-info p code { background: rgba(0,0,0,0.06); }

/* Mobile hamburger */
[data-theme="light"] .mobile-menu-btn {
  background: #f1f5f9;
  border-color: rgba(0,0,0,0.1);
  color: #0f172a;
}

/* Score badges */
[data-theme="light"] .score-good { background: rgba(16,185,129,0.12); color: #065f46; }
[data-theme="light"] .score-warn { background: rgba(245,158,11,0.12); color: #92400e; }
[data-theme="light"] .score-bad  { background: rgba(239,68,68,0.12);  color: #991b1b; }
[data-theme="light"] .card-divider { border-top-color: rgba(0,0,0,0.08); }
[data-theme="light"] .empty-state { color: #596880; }

/* Welcome / upgrade banners */
[data-theme="light"] .welcome-banner { border-color: rgba(37,99,235,0.2); }
[data-theme="light"] .welcome-text h3 { color: #0f172a; }
[data-theme="light"] .welcome-text p { color: #475569; }

/* btn-card-action */
[data-theme="light"] .btn-card-action { background: rgba(37,99,235,0.08); color: #1d4ed8; border-color: rgba(37,99,235,0.2); }
[data-theme="light"] .btn-card-action:hover { background: rgba(37,99,235,0.14); }

/* Floating toggle button (auth / public pages) */
[data-theme="light"] #themeToggle[style*="position:fixed"],
[data-theme="light"] #themeToggle[style*="position: fixed"] {
  border-color: rgba(0,0,0,0.12) !important;
  background: rgba(0,0,0,0.05) !important;
  color: #334155 !important;
}

html { scroll-behavior: smooth; }

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #7c3aed, #2563eb); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #a855f7, #3b82f6); }
* { scrollbar-width: thin; scrollbar-color: #7c3aed rgba(255,255,255,0.03); }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Ensure all inputs are always interactive */
input, textarea, select, button {
  pointer-events: auto !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(7,7,15,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}
.logo-icon { font-size: 22px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  text-decoration: none;
  color: var(--gray-3);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.btn-ghost {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-ghost:hover { background: var(--border); }
.btn-primary {
  padding: 8px 18px;
  background: var(--blue);
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.nav-mobile-btn { display: none; background: none; border: none; color: white; font-size: 22px; cursor: pointer; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 70%);
  top: -200px; left: -100px;
}
.hero-glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.12), transparent 70%);
  bottom: -100px; right: -100px;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.gradient-text {
  color: #60a5fa; /* WAVE/a11y fallback — browsers use -webkit-text-fill-color instead */
  background: linear-gradient(135deg, var(--blue), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--gray-3);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-subtitle strong { color: var(--white); }

/* Code Block */
.hero-code-block {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 600px;
  margin: 0 auto 40px;
  overflow: hidden;
  text-align: left;
  position: relative;
  /* mobile: don't overflow the screen */
  width: 100%;
  box-sizing: border-box;
}
.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.code-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #22c55e; }
.code-label {
  margin-left: 8px;
  font-size: 12px;
  color: var(--gray-4);
  font-family: 'Inter', sans-serif;
}
.code-content {
  padding: 20px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
  /* prevent pre from breaking layout on mobile */
  word-break: break-all;
  white-space: pre-wrap;
}
.code-content code {
  white-space: pre-wrap;
  word-break: break-all;
}
.code-tag { color: #7dd3fc; }
.code-attr { color: #86efac; }
.code-val { color: #fbbf24; }
.copy-btn {
  position: absolute;
  top: 48px;
  right: 16px;
  background: var(--blue);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.copy-btn:hover { background: var(--blue-dark); }

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(59,130,246,0.35);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(59,130,246,0.5); }
.btn-arrow { transition: transform 0.2s; }
.btn-hero-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-hero-ghost {
  padding: 14px 28px;
  border: 1px solid var(--border);
  color: var(--gray-2);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
}
.btn-hero-ghost:hover { background: var(--border); color: white; }

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 32px 40px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 720px;
  margin: 0 auto;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 12px; color: var(--gray-3); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ---- Warning Section ---- */
.warning-section {
  padding: 32px 0;
  background: rgba(239,68,68,0.04);
  border-top: 1px solid rgba(239,68,68,0.15);
  border-bottom: 1px solid rgba(239,68,68,0.15);
}
.warning-card {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.warning-icon { font-size: 32px; flex-shrink: 0; }
.warning-content { flex: 1; min-width: 280px; }
.warning-content h2 { font-size: 18px; margin-bottom: 6px; color: #fca5a5; }
.warning-content p { font-size: 14px; color: var(--gray-3); }
.warning-content strong { color: var(--white); }
.btn-warning {
  padding: 12px 24px;
  background: rgba(239,68,68,0.2);
  border: 1px solid rgba(239,68,68,0.4);
  color: #fca5a5;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-warning:hover { background: rgba(239,68,68,0.35); }

/* ---- Sections ---- */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-2); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
}


/* ---- Testimonials ---- */
.testimonials-section {
  padding: 100px 0;
  background: var(--bg);
  overflow: hidden;
}
.testimonials-track-wrap {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.testimonials-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scrollTestimonials 40s linear infinite;
}
.testimonials-track:hover { animation-play-state: paused; }
@keyframes scrollTestimonials {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.testi-card {
  width: 400px;
  flex-shrink: 0;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
}
.testi-card:hover {
  border-color: rgba(124,58,237,0.45);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(124,58,237,0.15);
}
.testi-quote-mark {
  font-size: 64px;
  line-height: 0.6;
  color: rgba(196,181,253,0.5); /* 3.3:1 on dark bg — passes WCAG large-text 3:1 */
  font-family: Georgia, serif;
  position: absolute;
  top: 28px;
  left: 28px;
  pointer-events: none;
}
.testi-stars {
  font-size: 15px;
  color: #f59e0b;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testi-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.35;
}
.testi-body {
  font-size: 14px;
  color: var(--gray-3);
  line-height: 1.75;
  margin-bottom: 24px;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}
.testi-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.testi-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}
.testi-role {
  font-size: 12px;
  color: var(--gray-3);
  margin-top: 2px;
}
.testi-platform {
  margin-left: auto;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: rgba(124,58,237,0.12);
  color: #c4b5fd;
  border: 1px solid rgba(124,58,237,0.2);
}

/* Light mode overrides for testimonials */
[data-theme="light"] .testi-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .testi-card:hover {
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 20px 50px rgba(124,58,237,0.1);
}
[data-theme="light"] .testi-quote-mark { color: rgba(67,20,162,0.6); } /* 3.9:1 on white — passes large-text */
[data-theme="light"] .testi-body { color: #475569; }
[data-theme="light"] .testi-name { color: #0f172a; }
[data-theme="light"] .testi-role { color: #596880; }
[data-theme="light"] .testi-author { border-top-color: rgba(0,0,0,0.08); }


/* ---- CTA Section ---- */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.12) 0%, transparent 70%);
}
.cta-inner { position: relative; z-index: 1; }
.cta-section h2 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}
.cta-section p { font-size: 18px; color: var(--gray-3); margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 20px; }
.cta-note { font-size: 14px; color: var(--gray-4); }

/* ---- Footer ---- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}
.footer-inner { display: flex; align-items: flex-start; gap: 48px; padding-bottom: 56px; }
.footer-brand { min-width: 190px; max-width: 220px; flex-shrink: 0; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--gray-3); max-width: 280px; margin-top: 8px; }
.footer-links { display: flex; flex: 1; justify-content: space-between; gap: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 { font-size: 12px; font-weight: 700; color: var(--gray-3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--gray-4); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom p { font-size: 12px; color: var(--gray-4); text-align: center; }

/* ---- Animations ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ---- Mobile Drawer ---- */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-overlay.open {
  display: block;
  opacity: 1;
}
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100dvh;
  background: #0d0d1a;
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.mobile-drawer.open {
  transform: translateX(0);
}
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.mobile-close:hover { background: rgba(255,255,255,0.12); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 16px;
  gap: 4px;
  flex: 1;
}
.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav-link:hover {
  background: rgba(59,130,246,0.12);
  color: #93c5fd;
}
.mobile-cta {
  padding: 20px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.mobile-btn-ghost {
  display: block;
  text-align: center;
  padding: 13px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
}
.mobile-btn-ghost:hover { background: rgba(255,255,255,0.06); }
.mobile-btn-primary {
  display: block;
  text-align: center;
  padding: 14px;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(59,130,246,0.35);
  transition: all 0.2s;
}
.mobile-btn-primary:hover { box-shadow: 0 8px 30px rgba(59,130,246,0.5); transform: translateY(-1px); }

/* Hamburger button — visible only on small screens */
.nav-mobile-btn {
  display: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  margin-left: auto;
  transition: background 0.2s;
}
.nav-mobile-btn:hover { background: rgba(255,255,255,0.1); }


/* ---- Responsive ---- */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .step-connector { display: none; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-btn { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 60px; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; }
}


/* =============================================
   NEW LANDING SECTIONS
   ============================================= */

/* ---- section desc ---- */
.section-desc {
  font-size: 17px;
  color: var(--gray-3);
  max-width: 600px;
  margin: 16px auto 0;
  line-height: 1.7;
}

/* ---- Steps Timeline ---- */
.steps-timeline { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: flex;
  gap: 24px;
  padding-bottom: 48px;
}
.step-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.step-badge {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: white;
  box-shadow: 0 0 20px rgba(59,130,246,0.4);
  flex-shrink: 0;
  z-index: 1;
}
.step-badge-done { background: linear-gradient(135deg, #10b981, #06b6d4) !important; box-shadow: 0 0 20px rgba(16,185,129,0.4) !important; }
.step-line { flex: 1; width: 2px; background: linear-gradient(180deg, rgba(59,130,246,0.5), rgba(124,58,237,0.1)); margin-top: 8px; }
.step-right { display: flex; gap: 20px; align-items: flex-start; padding-top: 8px; }
.step-icon-wrap { font-size: 36px; flex-shrink: 0; }
.step-content h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.step-content p { font-size: 15px; color: var(--gray-3); line-height: 1.7; margin-bottom: 16px; }
.step-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.step-tag-pill {
  padding: 4px 12px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 50px;
  font-size: 12px; font-weight: 600;
  color: #93c5fd;
}
.step-tag-green {
  background: rgba(16,185,129,0.12);
  border-color: rgba(16,185,129,0.3);
  color: #6ee7b7;
}
.step-code-mini {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #fbbf24;
  overflow-x: auto;
}
.step-code-mini code { background: none; padding: 0; color: inherit; }

/* ---- Feature Hero ---- */
.feature-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  margin-bottom: 48px;
}
.feature-hero-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 50px;
  font-size: 12px; font-weight: 700;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.feature-hero-content h3 { font-size: 30px; font-weight: 800; margin-bottom: 14px; }
.feature-hero-content p { font-size: 15px; color: var(--gray-3); line-height: 1.7; margin-bottom: 20px; }
.fix-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.fix-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gray-2); }
.fix-check { font-size: 16px; flex-shrink: 0; }
.btn-feature-cta {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px; font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(59,130,246,0.3);
}
.btn-feature-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(59,130,246,0.45); }

/* Scan Visual */
.scan-visual {
  background: #0a0a18;
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(59,130,246,0.08);
}
.scan-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.scan-dot { width: 10px; height: 10px; border-radius: 50%; }
.scan-dot.r { background: #ef4444; }
.scan-dot.y { background: #f59e0b; }
.scan-dot.g { background: #22c55e; }
.scan-title { font-size: 11px; color: var(--gray-4); margin-left: 8px; font-family: 'JetBrains Mono', monospace; }
.scan-rows { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.scan-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.scan-fixed { background: rgba(16,185,129,0.08); color: #6ee7b7; }
.scan-warn  { background: rgba(245,158,11,0.08); color: #fcd34d; }
.scan-score { background: rgba(59,130,246,0.1); color: #93c5fd; justify-content: center; margin-top: 4px; border: 1px solid rgba(59,130,246,0.2); }
.scan-icon { font-size: 13px; flex-shrink: 0; }
.scan-score-txt { font-size: 13px; }
.scan-score-txt strong { color: white; }

/* ---- Feature Cards Grid (new) ---- */
.features-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.3s;
}
.feat-card:hover {
  border-color: rgba(124,58,237,0.35);
  transform: translateY(-4px);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.feat-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feat-body h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feat-body p { font-size: 13px; color: var(--gray-3); line-height: 1.6; margin-bottom: 12px; }
.feat-badge {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 50px;
  font-size: 11px; font-weight: 700;
  color: #93c5fd;
}

/* ---- Pricing Grid (new) ---- */
.pricing-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 48px;
}
.price-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: all 0.3s;
}
.price-card:hover { transform: translateY(-5px); box-shadow: 0 25px 60px rgba(0,0,0,0.35); }
.price-card-featured {
  border-color: var(--blue);
  background: linear-gradient(160deg, rgba(59,130,246,0.08), rgba(124,58,237,0.05), rgba(7,7,15,0.8));
  box-shadow: 0 0 60px rgba(59,130,246,0.15);
}
.price-popular-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  padding: 4px 18px;
  border-radius: 50px;
  font-size: 12px; font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(59,130,246,0.4);
}
.price-card-top { margin-bottom: 28px; }
.price-plan-name { font-size: 13px; font-weight: 700; color: var(--gray-3); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.price-amount { font-size: 58px; font-weight: 900; line-height: 1; display: flex; align-items: flex-start; gap: 4px; margin-bottom: 10px; }
.price-cur { font-size: 22px; margin-top: 10px; color: var(--gray-3); }
.price-mo { font-size: 16px; font-weight: 500; color: var(--gray-3); align-self: flex-end; margin-bottom: 8px; }
.price-tagline { font-size: 14px; color: var(--gray-3); line-height: 1.5; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; flex: 1; }
.price-features li { font-size: 14px; color: var(--gray-2); display: flex; align-items: center; gap: 8px; }
.pf-check { color: #22c55e; font-weight: 900; flex-shrink: 0; }
.price-btn {
  display: block;
  text-align: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s;
  margin-top: auto;
}
.price-btn:hover { background: rgba(255,255,255,0.08); }
.price-btn-featured {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(59,130,246,0.35);
}
.price-btn-featured:hover { box-shadow: 0 10px 30px rgba(59,130,246,0.5) !important; background: linear-gradient(135deg, #2563eb, #6d28d9) !important; }

/* ---- Comparison Table ---- */
.compare-table {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-top: 48px;
}
.compare-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--gray-2);
}
.compare-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr;
  gap: 0;
}
.compare-head {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.compare-head:nth-child(2) { color: #93c5fd; }
.compare-row-label {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--gray-2);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center;
}
.compare-cell {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--gray-3);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center;
}
.compare-cell.best { color: #6ee7b7; font-weight: 700; }

/* ---- FAQ (new accordion) ---- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item-new {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item-new.open { border-color: rgba(59,130,246,0.35); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  gap: 16px;
}
.faq-q:hover { color: #93c5fd; }
.faq-arrow { color: var(--gray-4); font-size: 11px; flex-shrink: 0; transition: transform 0.3s ease; }
.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  font-size: 15px;
  color: var(--gray-3);
  line-height: 1.7;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item-new.open .faq-a { padding: 0 24px 20px; }

/* ---- Enhanced CTA ---- */
.cta-glow-2 {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.08), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 50px;
  font-size: 13px; font-weight: 700;
  color: #93c5fd;
  margin-bottom: 24px;
}
.cta-trust {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: 13px;
  color: var(--gray-4);
}
.cta-trust span { color: var(--gray-3); }

/* ---- Responsive for new sections ---- */
@media (max-width: 1024px) {
  .feature-hero { grid-template-columns: 1fr; }
  .features-grid-new { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid-new { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; margin-bottom: 48px; }
  .compare-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
@media (max-width: 768px) {
  .features-grid-new { grid-template-columns: 1fr; }
  .step-right { flex-direction: column; }
  .compare-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; font-size: 12px; }
  .compare-head, .compare-row-label, .compare-cell { padding: 8px 10px; }
  .cta-trust { gap: 12px; }
  .feature-hero { padding: 28px; }
}
@media (max-width: 480px) {
  .compare-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-grid { min-width: 480px; }
  .feat-card { flex-direction: column; }
  .hero-code-block { margin: 0 0 32px; border-radius: 10px; }
  .copy-btn { position: static; display: block; margin: 0 16px 16px; }
  .hero-stats { padding: 20px; gap: 16px; }
  .stat-num { font-size: 22px; }
  .section { padding: 64px 0; }
  .price-amount { font-size: 44px; }
}

/* Extra small phones (e.g. Galaxy A series 360px) */
@media (max-width: 360px) {
  .container { padding: 0 16px; }
  .hero-title { letter-spacing: -1px; }
  .compare-grid { min-width: 420px; }
  .btn-hero-primary, .btn-hero-ghost { padding: 12px 20px; font-size: 14px; }
  .mobile-drawer { width: 100vw; }
}

/* ============================================
   MOBILE NAVBAR & DRAWER
   ============================================ */

@media (max-width: 768px) {
  .nav-links  { display: none !important; }
  .nav-cta    { display: none !important; }
  .nav-mobile-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    margin-left: auto;
    transition: background 0.2s;
  }
  .nav-mobile-btn:hover { background: rgba(255,255,255,0.12); }
}

/* Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1100;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-overlay.active { display: block; opacity: 1; }

/* Drawer */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100dvh;
  background: #0d0d1a;
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-close:hover { background: rgba(255,255,255,0.12); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 4px;
  flex: 1;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
}
.mobile-nav-link:hover { background: rgba(255,255,255,0.05); color: #fff; }

.mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.mobile-btn-ghost {
  display: block; text-align: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #fff; text-decoration: none;
  font-weight: 600; font-size: 14px;
  transition: background 0.2s;
}
.mobile-btn-ghost:hover { background: rgba(255,255,255,0.06); }
.mobile-btn-primary {
  display: block; text-align: center;
  padding: 13px;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  border-radius: 10px;
  color: #fff; text-decoration: none;
  font-weight: 700; font-size: 14px;
  transition: opacity 0.2s;
}
.mobile-btn-primary:hover { opacity: 0.9; }
body.drawer-open { overflow: hidden; }

/* ---- Theme Toggle Button ---- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--gray-2);
  cursor: pointer;
  font-size: 17px;
  transition: all 0.25s ease;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: scale(1.08);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.theme-toggle .icon-sun  { opacity: 0; transform: translate(-50%, -50%) rotate(90deg) scale(0.7); }
.theme-toggle .icon-moon { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); }

/* Light mode: show sun, hide moon */
[data-theme="light"] .theme-toggle {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
  color: #334155;
}
[data-theme="light"] .theme-toggle:hover {
  background: rgba(0,0,0,0.1);
}
[data-theme="light"] .theme-toggle .icon-sun  { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: translate(-50%, -50%) rotate(-90deg) scale(0.7); }

/* Smooth global transition on theme switch */
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease !important;
}
