/* ══ Reset & Variables ══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Light Mode (default) ── */
:root {
  --primary:       #6366f1;
  --primary-dark:  #4f46e5;
  --primary-light: #e0e7ff;
  --accent:        #8b5cf6;
  --accent2:       #0891b2;

  --bg:            #f8fafc;
  --bg-alt:        #f1f5f9;
  --bg-card:       #ffffff;
  --bg-card2:      #f1f5f9;
  --surface:       #ffffff;
  --border:        rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.15);

  --text:          #0f172a;
  --text-muted:    #475569;
  --text-dim:      #94a3b8;

  --navbar-bg:     rgba(255,255,255,0.92);
  --navbar-border: rgba(0,0,0,0.08);
  --nav-hover:     rgba(0,0,0,0.05);
  --logo-filter:   none;

  --hero-glow-op:  0.12;
  --grid-line:     rgba(99,102,241,0.1);
  --ghost-bg:      rgba(0,0,0,0.05);
  --ghost-hover:   rgba(0,0,0,0.09);

  --stat-num:      #1e293b;
  --code-bg:       rgba(99,102,241,0.09);
  --code-color:    #4338ca;

  --shadow-card:   0 2px 16px rgba(0,0,0,0.08);
  --shadow-glow:   0 0 60px rgba(99,102,241,0.12);

  --badge-color:   #0e7490;
  --privacy-link:  #0891b2;

  --toggle-icon:   "🌙";

  --radius: 16px;
  --radius-sm: 10px;
}

/* ── Dark Mode ── */
[data-theme="dark"] {
  --bg:            #0a0a14;
  --bg-alt:        #16162a;
  --bg-card:       #12121f;
  --bg-card2:      #16162a;
  --surface:       #12121f;
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  --text:          #f1f5f9;
  --text-muted:    #94a3b8;
  --text-dim:      #64748b;

  --navbar-bg:     rgba(10,10,20,0.88);
  --navbar-border: rgba(255,255,255,0.08);
  --nav-hover:     rgba(255,255,255,0.06);
  --logo-filter:   brightness(0) invert(1);

  --hero-glow-op:  0.3;
  --grid-line:     rgba(99,102,241,0.07);
  --ghost-bg:      rgba(255,255,255,0.07);
  --ghost-hover:   rgba(255,255,255,0.12);

  --stat-num:      #ffffff;
  --code-bg:       rgba(99,102,241,0.16);
  --code-color:    #a5b4fc;

  --shadow-card:   0 4px 32px rgba(0,0,0,0.45);
  --shadow-glow:   0 0 80px rgba(99,102,241,0.18);

  --badge-color:   #67e8f9;
  --privacy-link:  #06b6d4;
}

/* ══ Base ══ */
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.25s, color 0.25s;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  background: var(--code-bg);
  color: var(--code-color);
  padding: 2px 6px;
  border-radius: 5px;
  font-family: 'SF Mono', 'Cascadia Code', monospace;
  font-size: 0.88em;
}

/* ══ Language Switcher ══ */
.lang-switcher {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-btn {
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
  line-height: 1.6;
  letter-spacing: 0.3px;
}
.lang-btn:hover { color: var(--text); background: var(--nav-hover); }
.lang-btn--active {
  background: var(--primary);
  color: #fff !important;
}
.lang-btn--active:hover { background: var(--primary-dark); }

/* ══ Theme Toggle ══ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--nav-hover);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--border-strong); }

/* ══ Navbar ══ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--navbar-border);
  transition: background 0.25s, border-color 0.25s;
}

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

.nav-brand { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo {
  height: 38px;
  width: auto;
  filter: var(--logo-filter);
  transition: opacity 0.2s, filter 0.25s;
  display: block;
}
.nav-brand:hover .nav-logo { opacity: 0.8; }

.nav-app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  padding-left: 14px;
  border-left: 1px solid var(--border);
  margin-left: 14px;
}
.nav-app-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
}
.nav-app-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}
.nav-app-brand:hover .nav-app-name { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--nav-hover); text-decoration: none; }
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 7px 16px !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; opacity: 1 !important; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
}

/* ══ Buttons ══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}
.btn-hero-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 24px rgba(99,102,241,0.4);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99,102,241,0.5); }
.btn-hero-ghost {
  background: var(--ghost-bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-hero-ghost:hover { background: var(--ghost-hover); }

.btn-download {
  background: #fff;
  color: #1e1b4b;
  font-size: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  flex: 1;
  justify-content: center;
  max-width: 260px;
  border: 1px solid rgba(0,0,0,0.1);
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.22); }
.btn-download--mac { background: #1c1c1e; color: #fff; border-color: transparent; }
.btn-download--mac:hover { background: #2c2c2e; }
.btn-chevron { margin-left: 4px; opacity: 0.7; flex-shrink: 0; }
.ms-store-badge-link { display: inline-flex; align-items: center; transition: transform 0.15s, opacity 0.15s; }
.ms-store-badge-link:hover { transform: translateY(-2px); opacity: 0.88; }
.ms-store-badge { height: 52px; width: auto; display: block; }

/* ══ macOS Download Modal ══ */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }

.mac-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.mac-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.mac-modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.mac-modal-title-row h3 { font-size: 18px; font-weight: 700; margin: 0; }
.mac-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.mac-modal-close:hover { background: var(--bg-alt); color: var(--text); }

.mac-modal-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.mac-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }

.mac-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
  transition: border-color .15s, background .15s, transform .12s;
}
.mac-option:hover {
  border-color: var(--accent);
  background: var(--bg-alt);
  transform: translateY(-1px);
  text-decoration: none;
}

.mac-option-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.mac-option-icon--silicon { background: linear-gradient(135deg, #06b6d4, #6366f1); }
.mac-option-icon--intel   { background: linear-gradient(135deg, #64748b, #475569); }

.mac-option-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mac-option-name {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mac-chip-tag {
  font-size: 11px;
  font-weight: 600;
  background: rgba(99,102,241,0.12);
  color: var(--accent);
  border-radius: 4px;
  padding: 2px 6px;
}
.mac-option-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.mac-option-arrow { color: var(--text-dim); flex-shrink: 0; }
.mac-option:hover .mac-option-arrow { color: var(--accent); }

.mac-modal-help {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0;
}

/* PayPal button */
.btn-paypal {
  background: #003087;
  color: #fff;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn-paypal:hover { background: #002268; transform: translateY(-1px); }
.paypal-logo {
  background: #009cde;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

/* ══ Hero ══ */
.hero {
  position: relative;
  padding: 100px 0 60px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: var(--hero-glow-op);
  pointer-events: none;
  transition: opacity 0.25s;
}
.glow-1 { width: 600px; height: 400px; background: radial-gradient(circle, #6366f1, transparent); top: -100px; left: 10%; }
.glow-2 { width: 400px; height: 300px; background: radial-gradient(circle, #8b5cf6, transparent); top: 100px; right: 5%; }

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.09);
  border: 1px solid rgba(99,102,241,0.22);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 22px;
  color: var(--text);
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.hero-stat { padding: 0 28px; text-align: center; }
.hero-stat-sep { width: 1px; height: 36px; background: var(--border-strong); }
.stat-num { display: block; font-size: 28px; font-weight: 800; color: var(--stat-num); }
.stat-label { font-size: 12px; color: var(--text-muted); }

/* ── App Mockup (always dark — it represents the app UI) ── */
.hero-mockup-wrap {
  position: relative;
  margin-top: 60px;
  padding-bottom: 60px;
}
.app-mockup {
  background: #12121f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.04);
  max-width: 740px;
  margin: 0 auto;
}
.mockup-titlebar {
  background: #1a1a2e;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.tb-dot { width: 12px; height: 12px; border-radius: 50%; }
.tb-red { background: #ff5f57; }
.tb-yellow { background: #ffbd2e; }
.tb-green { background: #28c840; }
.tb-title { margin-left: 8px; font-size: 13px; color: #94a3b8; }

.mockup-body { display: flex; min-height: 200px; }
.mockup-sidebar {
  width: 150px;
  background: #0f0f1e;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.mock-nav {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #94a3b8;
  cursor: default;
}
.mock-nav.active { background: rgba(99,102,241,0.18); color: #c7d2fe; }

.mockup-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mock-folder-box {
  display: flex; align-items: center; gap: 12px;
  border: 2px dashed rgba(255,255,255,0.12);
  border-radius: 8px; padding: 12px 14px;
}
.mock-folder-icon { font-size: 24px; }
.mock-folder-path { font-size: 12.5px; font-weight: 500; color: #f1f5f9; }
.mock-folder-hint { font-size: 11px; color: #64748b; }
.mock-options { display: flex; gap: 16px; flex-wrap: wrap; }
.mock-check { font-size: 12px; color: #94a3b8; }
.mock-btn {
  background: #6366f1;
  color: #fff;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
  width: fit-content;
}
.mock-log {
  background: #0f172a;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: 'SF Mono', 'Cascadia Code', monospace;
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mock-log-line.green { color: #4ade80; }
.mock-log-line.blue  { color: #60a5fa; }

/* ══ Sections ══ */
.section { padding: 96px 0; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
  color: var(--text);
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 56px;
}

/* ══ Features Grid ══ */
.features { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

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

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  opacity: 0;
  transform: translateY(20px);
}
.feature-card.visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow-card); }

/* Large card — light/dark specific backgrounds */
.feature-card--large {
  grid-column: span 1;
  background: linear-gradient(135deg, #ede9fe, #faf5ff);
  border-color: rgba(99,102,241,0.2);
}
[data-theme="dark"] .feature-card--large {
  background: linear-gradient(135deg, #1a1040, #12121f);
  border-color: rgba(99,102,241,0.25);
}
.feature-card--large:hover { border-color: rgba(99,102,241,0.4); }

.feature-icon-wrap {
  width: 46px; height: 46px;
  border-radius: 12px;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.icon-purple { background: rgba(99,102,241,0.14); }
.icon-amber  { background: rgba(245,158,11,0.14); }
.icon-red    { background: rgba(239,68,68,0.14); }
.icon-blue   { background: rgba(59,130,246,0.14); }
.icon-green  { background: rgba(16,185,129,0.14); }
.icon-teal   { background: rgba(20,184,166,0.14); }
.icon-indigo { background: rgba(139,92,246,0.14); }
.icon-gray   { background: rgba(100,116,139,0.14); }

.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.feature-card p  { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }
.feature-list { margin-top: 14px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.feature-list li { font-size: 13px; color: var(--text-muted); padding-left: 20px; position: relative; }
.feature-list li::before { content: '✓'; color: #22c55e; position: absolute; left: 0; font-weight: 700; }

/* ══ How It Works ══ */
.how-it-works { background: var(--bg); }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}
.step.visible { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; }

.step-num {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.step p  { font-size: 14px; color: var(--text-muted); }

.step-arrow {
  font-size: 28px;
  color: var(--text-dim);
  align-self: center;
  padding: 0 4px;
  margin-top: -20px;
}

/* ══ Privacy Section ══ */
.privacy-section { background: var(--bg-card2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.privacy-card {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(6,182,212,0.06), rgba(99,102,241,0.06));
  border: 1px solid rgba(6,182,212,0.18);
  border-radius: var(--radius);
  padding: 40px;
  opacity: 0;
  transform: translateY(20px);
}
.privacy-card.visible { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; }

.privacy-icon { font-size: 52px; flex-shrink: 0; line-height: 1; }
.privacy-content h2 { font-size: 26px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; color: var(--text); }
.privacy-content > p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }

.privacy-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.privacy-badge {
  background: rgba(6,182,212,0.09);
  border: 1px solid rgba(6,182,212,0.2);
  color: var(--badge-color);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
}

.privacy-fine { font-size: 13px; color: var(--text-dim); }
.privacy-fine a { color: var(--privacy-link); }

/* ══ Download Section ══ */
.download-section { background: var(--bg); }

.download-card {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 52px 40px;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  transform: translateY(20px);
}
.download-card.visible { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; }

.download-icon { margin-bottom: 20px; }
.download-icon img { border-radius: 20px; box-shadow: 0 8px 32px rgba(0,0,0,0.18); }
.download-card h2 { font-size: 32px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.download-tagline { color: var(--text-muted); font-size: 16px; margin-bottom: 10px; }
.download-version {
  display: inline-block;
  background: rgba(99,102,241,0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 30px;
}
.download-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.download-note { font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }
.download-license { font-size: 12px; color: var(--text-dim); }
.download-license a { color: var(--text-muted); }

/* ══ Support Section ══ */
.support-section { background: var(--bg-alt); }
.support-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0;
}
.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px;
  text-align: center;
  flex: 1;
  min-width: 240px;
  max-width: 320px;
}
.support-card-icon { font-size: 38px; margin-bottom: 12px; }
.support-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.support-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.upi-qr-wrap { display: flex; justify-content: center; margin-bottom: 12px; }
.upi-qr { width: 190px; height: 190px; border-radius: 10px; border: 1px solid var(--border); object-fit: contain; }
.upi-apps { font-size: 12px; color: var(--text-dim); margin-bottom: 0; }
.support-contact { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 28px; }
.support-contact a { color: var(--accent); }

/* ══ More Apps Banner ══ */
.more-apps-section { background: var(--bg); padding: 36px 0; }
.more-apps-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(99,102,241,.07) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
}
.more-apps-icon { font-size: 2.2rem; flex-shrink: 0; }
.more-apps-content { flex: 1; }
.more-apps-content h3 { margin: 0 0 4px; font-size: 1.15rem; font-weight: 700; color: var(--text); }
.more-apps-content p  { margin: 0; font-size: .95rem; color: var(--text-muted); }
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  flex-shrink: 0;
}
.btn-store:hover { opacity: .88; transform: translateY(-1px); }
@media (max-width: 640px) {
  .more-apps-banner { flex-direction: column; text-align: center; padding: 24px 20px; }
  .btn-store { width: 100%; justify-content: center; }
}

/* ══ Footer ══ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding-top: 60px;
}

.footer-inner {
  display: flex;
  gap: 60px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 48px;
}

.footer-brand { max-width: 220px; }
.footer-logo {
  height: 34px;
  width: auto;
  filter: var(--logo-filter);
  margin-bottom: 14px;
  display: block;
  transition: opacity 0.2s, filter 0.25s;
}
.footer-brand a:hover .footer-logo { opacity: 0.7; }
.footer-brand p { font-size: 13px; color: var(--text-dim); }
.footer-brand p a { color: var(--text-muted); }
.footer-brand p a:hover { color: var(--text); }

.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--text-dim); transition: color 0.15s; }
.footer-col a:hover { color: var(--text); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 24px;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ══ Responsive ══ */

/* Tablet */
@media (max-width: 1024px) {
  .nav-links a:not(.nav-cta) { padding: 6px 9px; font-size: 13.5px; }
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--large { grid-column: span 2; }
  .footer-links { gap: 32px; }
}

/* Mobile */
@media (max-width: 720px) {
  /* Mobile nav drawer */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--navbar-border);
    padding: 12px 20px 20px;
    gap: 4px;
    z-index: 99;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 14px; font-size: 15px; border-radius: 10px; }
  .nav-toggle { display: block; }

  .hero { padding: 60px 0 40px; }
  .hero-badge { font-size: 12px; padding: 5px 13px; flex-wrap: wrap; justify-content: center; text-align: center; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 11px 22px; font-size: 14px; }
  .hero-stats { gap: 10px; flex-direction: column; }
  .hero-stat-sep { width: 48px; height: 1px; }
  .hero-stat { padding: 0 16px; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: span 1; }

  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin-top: 0; font-size: 22px; }

  .privacy-card { flex-direction: column; gap: 20px; padding: 28px 24px; }

  .download-card { padding: 36px 24px; }
  .download-buttons { flex-direction: column; align-items: center; }
  .btn-download { max-width: 100%; width: 100%; }

  .footer-inner { flex-direction: column; gap: 36px; }
  .footer-links { gap: 28px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}

/* Small mobile */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 16px; height: 58px; }
  .nav-logo { height: 32px; }
  .nav-links { top: 58px; }
  .theme-toggle { width: 32px; height: 32px; font-size: 15px; }

  .hero { padding: 44px 0 32px; }
  .hero-title { font-size: 34px; letter-spacing: -1.5px; }
  .hero-subtitle { font-size: 16px; }
  .hero-mockup-wrap { margin-top: 36px; }
  .hero-badge { font-size: 11.5px; }

  /* Slim down mockup sidebar on small screens */
  .mockup-sidebar { width: 110px; }
  .mock-nav { font-size: 11px; padding: 6px 8px; }
  .mockup-main { padding: 12px; gap: 10px; }
  .mock-folder-path { font-size: 11px; }
  .mock-log { font-size: 10.5px; }

  .section { padding: 60px 0; }
  .section-title { letter-spacing: -0.5px; }
  .section-sub { font-size: 15px; margin-bottom: 40px; }

  .privacy-card { padding: 22px 18px; gap: 16px; }
  .privacy-icon { font-size: 38px; }
  .privacy-content h2 { font-size: 21px; }
  .privacy-badges { gap: 6px; }

  .download-card { padding: 28px 18px; }
  .download-card h2 { font-size: 26px; }
  .download-icon img { width: 64px; height: 64px; }

  .footer { padding-top: 44px; }
  .footer-logo { height: 28px; }
  .footer-links { flex-direction: column; gap: 22px; }
}

/* Very small */
@media (max-width: 360px) {
  .hero-title { font-size: 28px; }
  .hero-badge { font-size: 10.5px; gap: 5px; }
  .btn { padding: 10px 18px; font-size: 14px; }
  .mockup-sidebar { display: none; }
  .features-grid { gap: 12px; }
}

/* ══ Sub-page shared styles ══ */
.page-header {
  padding: 100px 0 52px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-header h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 12px;
}
.page-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}
.breadcrumb {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ══ FAQ styles ══ */
.faq-section { background: var(--bg); }
.faq-container { max-width: 780px; }
.faq-group { margin-bottom: 48px; }
.faq-group-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .15s;
}
.faq-item.open { border-color: var(--accent); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.4;
  transition: background .15s;
}
.faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-q:hover { background: var(--bg-alt); }
.faq-a {
  display: none;
  padding: 0 20px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }
.faq-a p { margin-bottom: 10px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul, .faq-a ol { padding-left: 20px; margin-bottom: 10px; }
.faq-a li { margin-bottom: 4px; }
.faq-a code {
  background: var(--code-bg);
  color: var(--code-color);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 13px;
  font-family: monospace;
}
.faq-a a { color: var(--accent); }
.faq-cta {
  text-align: center;
  padding: 40px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
}

/* ══ Features page styles ══ */
.feat-block {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 24px;
  background: var(--surface);
  transition: border-color .15s;
}
.feat-block:hover { border-color: var(--accent); }
.feat-block-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}
.feat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.feat-icon--purple  { background: rgba(99,102,241,0.12); }
.feat-icon--amber   { background: rgba(245,158,11,0.12); }
.feat-icon--teal    { background: rgba(20,184,166,0.12); }
.feat-icon--blue    { background: rgba(59,130,246,0.12); }
.feat-icon--green   { background: rgba(34,197,94,0.12); }
.feat-icon--red     { background: rgba(239,68,68,0.12); }
.feat-icon--indigo  { background: rgba(99,102,241,0.15); }
.feat-icon--gray    { background: rgba(100,116,139,0.12); }
.feat-block-header h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.feat-subtitle { font-size: 13.5px; color: var(--text-muted); }
.feat-body { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; }
.feat-body p { margin-bottom: 12px; }
.feat-list { padding-left: 20px; margin-top: 12px; }
.feat-list li { margin-bottom: 6px; }
.feat-examples { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.feat-example {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-radius: 8px;
  font-size: 13.5px;
}
.feat-example strong { color: var(--text); min-width: 100px; flex-shrink: 0; }
.feat-example span { color: var(--text-muted); font-family: monospace; font-size: 13px; }

/* ══ Compare page styles ══ */
.compare-table-wrap { overflow-x: auto; margin-bottom: 12px; border-radius: 14px; border: 1px solid var(--border); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 680px;
}
.compare-table thead tr { background: var(--bg-alt); }
.compare-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: middle;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .col-highlight {
  background: rgba(99,102,241,0.05);
  font-weight: 600;
  color: var(--text);
}
.compare-table .col-highlight th { color: var(--accent); }
.compare-table thead .col-highlight { color: var(--accent); font-size: 13px; }
.compare-table .row-category td {
  background: var(--bg-alt);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 8px 16px;
}
.tag-free {
  background: rgba(34,197,94,0.15);
  color: #16a34a;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}
[data-theme="dark"] .tag-free { color: #4ade80; }
.compare-disclaimer { font-size: 12px; color: var(--text-dim); margin-top: 8px; }
.compare-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 32px; }
.compare-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  background: var(--surface);
}
.compare-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.compare-card-sub { font-size: 12.5px; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.compare-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 10px; }
.compare-card ul { padding-left: 18px; }
.compare-card li { font-size: 13.5px; color: var(--text-muted); margin-bottom: 5px; line-height: 1.5; }

/* ══ Changelog styles ══ */
.changelog-container { max-width: 780px; }
.cl-release {
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
}
.cl-release-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.cl-version-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  font-family: monospace;
  flex-shrink: 0;
}
.cl-version-badge--latest { background: var(--accent); color: #fff; border-color: var(--accent); }
.cl-version-badge--initial { background: var(--bg-card2); color: var(--text-muted); }
.cl-release-meta h2 { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.cl-release-meta time { font-size: 13px; color: var(--text-dim); }
.cl-body { padding: 24px 28px; }
.cl-group { margin-bottom: 20px; }
.cl-group:last-child { margin-bottom: 0; }
.cl-group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}
.cl-group-title--new     { background: rgba(34,197,94,0.12);  color: #16a34a; }
.cl-group-title--improve { background: rgba(59,130,246,0.12);  color: #2563eb; }
.cl-group-title--fix     { background: rgba(245,158,11,0.12);  color: #d97706; }
[data-theme="dark"] .cl-group-title--new     { color: #4ade80; }
[data-theme="dark"] .cl-group-title--improve { color: #60a5fa; }
[data-theme="dark"] .cl-group-title--fix     { color: #fbbf24; }
.cl-body ul { padding-left: 20px; }
.cl-body li { font-size: 14px; color: var(--text-muted); margin-bottom: 6px; line-height: 1.55; }
.cl-body code {
  background: var(--code-bg);
  color: var(--code-color);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12.5px;
  font-family: monospace;
}
.cl-download-cta {
  text-align: center;
  padding: 24px 0;
  font-size: 15px;
  color: var(--text-muted);
}
.cl-download-cta a { color: var(--accent); font-weight: 600; }

/* ══ Responsive: sub-pages ══ */
@media (max-width: 768px) {
  .feat-block { padding: 24px 18px; }
  .feat-block-header { flex-direction: column; gap: 12px; }
  .compare-cards { grid-template-columns: 1fr; }
  .cl-release-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cl-body { padding: 18px 18px; }
  .feat-example { flex-direction: column; gap: 4px; }
}
