/* ============================================================
 * GrabIt landing page — modern, polished, dark-on-light with
 * indigo accent. Self-contained (no framework), responsive.
 * ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --bg-card: #ffffff;
  --bg-elevated: #f3f4f6;
  --fg: #0f172a;
  --fg-muted: #475569;
  --fg-subtle: #94a3b8;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-fg: #ffffff;
  --accent-soft: rgba(99, 102, 241, 0.10);
  --accent-glow: rgba(99, 102, 241, 0.35);
  --success: #10b981;
  --grad-1: #818cf8;
  --grad-2: #6366f1;
  --grad-3: #4f46e5;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 14px -2px rgba(15,23,42,0.08), 0 2px 4px -1px rgba(15,23,42,0.04);
  --shadow-lg: 0 24px 60px -12px rgba(15,23,42,0.18), 0 8px 20px -6px rgba(15,23,42,0.08);
  --shadow-glow: 0 8px 32px -4px var(--accent-glow);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --bg-alt: #0f172a;
    --bg-card: #131c31;
    --bg-elevated: #1e293b;
    --fg: #f1f5f9;
    --fg-muted: #cbd5e1;
    --fg-subtle: #64748b;
    --border: rgba(241, 245, 249, 0.08);
    --border-strong: rgba(241, 245, 249, 0.16);
    --accent: #818cf8;
    --accent-hover: #6366f1;
    --accent-fg: #0b1120;
    --accent-soft: rgba(129, 140, 248, 0.15);
    --accent-glow: rgba(129, 140, 248, 0.35);
    --shadow: 0 4px 14px -2px rgba(0,0,0,0.4);
    --shadow-lg: 0 24px 60px -12px rgba(0,0,0,0.6);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Prevent horizontal scroll on mobile from blobs / decorative elements */
html, body { overflow-x: clip; }

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

/* Improve mobile touch: prevent double-tap zoom delay on buttons */
button, a.btn-primary, a.btn-secondary, a.btn-nav-primary, .nav-toggle {
  touch-action: manipulation;
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--fg);
}
/* Inline code: allow breaking long paths/URLs on mobile */
code {
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}
pre {
  padding: 14px 16px;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--border);
  margin: 10px 0;
  max-width: 100%;
  box-sizing: border-box;
}
/* Code inside <pre> should NOT wrap — horizontal scroll is fine */
pre code {
  background: transparent;
  padding: 0;
  word-break: normal;
  overflow-wrap: normal;
  white-space: pre;
  display: block;
}

/* ---------- Background decoration ---------- */
.bg-decoration {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: drift 22s ease-in-out infinite;
}
.blob-1 { width: 480px; height: 480px; background: var(--grad-1); top: -160px; left: -120px; }
.blob-2 { width: 560px; height: 560px; background: var(--grad-2); top: 30%; right: -200px; animation-delay: -8s; }
.blob-3 { width: 420px; height: 420px; background: var(--grad-3); bottom: -100px; left: 30%; animation-delay: -15s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 20px) scale(0.95); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.6);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.25s ease;
}
.nav-scrolled {
  background: rgba(255,255,255,0.85);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px -4px rgba(15,23,42,0.08);
}
@media (prefers-color-scheme: dark) {
  .nav { background: rgba(11,17,32,0.6); }
  .nav-scrolled {
    background: rgba(11,17,32,0.85);
    box-shadow: 0 1px 12px -4px rgba(0,0,0,0.4);
  }
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--fg);
  text-decoration: none;
}
.nav-brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-3));
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px -2px var(--accent-glow);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  color: var(--fg-muted);
  transition: all 0.15s ease;
}
.nav-link-icon:hover { background: var(--bg-elevated); color: var(--fg); text-decoration: none; }

.btn-nav-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--accent-fg);
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px -1px var(--accent-glow);
}
.btn-nav-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px -2px var(--accent-glow); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--accent-fg);
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px -2px var(--accent-glow);
  transition: all 0.18s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px var(--accent-glow);
  text-decoration: none;
}
.btn-primary:active { transform: translateY(0); }
.btn-primary .btn-meta {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
  padding-left: 4px;
  border-left: 1px solid rgba(255,255,255,0.3);
  margin-left: 4px;
}
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-elevated);
  color: var(--fg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-inner { min-width: 0; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.4s ease infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 24px;
}
.grad {
  background: linear-gradient(135deg, var(--grad-1) 0%, var(--grad-3) 60%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 22px; font-weight: 800; color: var(--fg); letter-spacing: -0.5px; }
.stat-label { font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at center, var(--accent-glow), transparent 60%);
  filter: blur(40px);
  opacity: 0.5;
  z-index: -1;
  animation: hero-glow 4s ease-in-out infinite;
}
@keyframes hero-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}
.browser-frame {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.browser-frame:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg) translateY(-4px); }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.browser-bar .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--fg-subtle);
}
.browser-bar .dot.red { background: #ef4444; }
.browser-bar .dot.yellow { background: #f59e0b; }
.browser-bar .dot.green { background: #10b981; }
.browser-url {
  flex: 1;
  margin-left: 10px;
  padding: 4px 10px;
  background: var(--bg-card);
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
.browser-body {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1e1e2e, #0f0f1a);
  overflow: hidden;
}
.fake-video {
  position: absolute;
  inset: 20px;
  background:
    radial-gradient(circle at 30% 40%, rgba(129,140,248,0.4), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(236,72,153,0.3), transparent 50%),
    linear-gradient(135deg, #312e81, #581c87);
  border-radius: 8px;
}
.fake-video::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.95);
  clip-path: polygon(20% 10%, 20% 90%, 90% 50%);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.overlay-demo {
  position: absolute;
  bottom: 30px; right: 30px;
}
.overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 10px;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-3));
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 6px 20px -4px rgba(99,102,241,0.6);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.overlay-count {
  background: rgba(255,255,255,0.25);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 24px;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-head p {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--grad-1), var(--grad-3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -6px rgba(99,102,241,0.15);
}
.feature-card:hover::after {
  transform: scaleX(1);
}
.feature-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  margin-bottom: 16px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card:hover .feature-icon {
  background: var(--accent);
  color: var(--accent-fg);
  transform: scale(1.1) rotate(-5deg);
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---------- Sites grid ---------- */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.site-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.site-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand, var(--accent));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.site-card:hover {
  border-color: var(--brand, var(--accent));
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.15);
}
.site-card:hover::before {
  opacity: 0.04;
}
.site-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand, var(--accent));
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--brand, var(--accent)) 50%, transparent);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.site-card:hover .site-logo {
  transform: scale(1.1) rotate(-3deg);
}
.site-card .site-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--fg);
  position: relative;
}
.site-card .site-host {
  font-size: 11px;
  color: var(--fg-subtle);
  font-family: var(--font-mono);
  position: relative;
}

/* ---------- Install steps ---------- */
.install-steps {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.install-steps::before {
  content: '';
  position: absolute;
  left: 44px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.25;
  z-index: 0;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.step:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: 0 8px 20px -6px rgba(99,102,241,0.15);
}
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-3));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border-radius: 50%;
  box-shadow: 0 4px 12px -2px var(--accent-glow);
}
.step-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step-body p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; margin-bottom: 10px; }
.step-body p:last-child { margin-bottom: 0; }
/* Allow step-body to shrink and wrap long content on mobile */
.step-body {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ---------- How it works ---------- */
.how-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.how-tier {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all 0.2s ease;
}
.how-tier:hover { border-color: var(--accent); transform: translateY(-3px); }
.tier-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}
.how-tier h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.how-tier p { font-size: 13px; color: var(--fg-muted); line-height: 1.55; }
.how-arrow {
  display: flex;
  align-items: center;
  color: var(--fg-subtle);
  align-self: center;
}

/* ---------- Privacy ---------- */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.privacy-item {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: all 0.2s ease;
}
.privacy-item:hover { border-color: var(--success); }
.privacy-item .check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
}
.privacy-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.privacy-item p { font-size: 13px; color: var(--fg-muted); line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---------- CTA ---------- */
.cta {
  padding: 80px 24px;
  background:
    radial-gradient(circle at 20% 50%, var(--accent-soft), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.08), transparent 50%);
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cta-inner { max-width: 600px; margin: 0 auto; position: relative; }
.cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.cta p {
  font-size: 16px;
  color: var(--fg-muted);
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}
.footer-brand .brand-mark { width: 24px; height: 24px; border-radius: 6px; }
.footer-brand .brand-mark svg { width: 14px; height: 14px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
}
.footer-links a { color: var(--fg-muted); }
.footer-links a:hover { color: var(--accent); }
.footer-meta { font-size: 12px; color: var(--fg-subtle); }

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .footer-links {
    justify-content: center;
    gap: 14px;
    font-size: 12px;
  }
  .footer-meta { font-size: 11px; }
}

/* ---------- Hamburger toggle (hidden on desktop) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 8px 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fg);
  border-radius: 1px;
  transition: all 0.25s ease;
  transform-origin: center;
}
.nav-toggle:hover { background: var(--bg-elevated); }
.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Mobile menu ---------- */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 16px 14px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a {
  display: block;
  padding: 12px 8px;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: all 0.15s ease;
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile a:hover {
  color: var(--accent);
  padding-left: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 20px 32px;
    gap: 32px;
    text-align: center;
  }
  .hero-visual { order: -1; }
  .browser-frame { max-width: 360px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .sites-grid { grid-template-columns: repeat(3, 1fr); }
  .privacy-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile[hidden] { display: none; }
  .nav-mobile:not([hidden]) { display: flex; }
  .btn-label { display: none; }  /* hide "Download" text, keep icon */
  .btn-nav-primary { padding: 7px 10px; }
  .section { padding: 56px 20px; }
  .section-head { margin-bottom: 40px; }
  .hero-badge { margin-bottom: 16px; }
  .hero h1 { font-size: clamp(32px, 7vw, 42px); letter-spacing: -1px; }
  .hero-sub { font-size: 15px; margin-bottom: 24px; }
  .hero-cta { justify-content: center; margin-bottom: 32px; }
}

@media (max-width: 640px) {
  /* Hero */
  .hero {
    padding: 32px 16px 28px;
    gap: 24px;
  }
  .hero h1 { font-size: clamp(28px, 8vw, 36px); letter-spacing: -0.5px; line-height: 1.1; }
  .hero-sub { font-size: 14px; line-height: 1.55; }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 28px;
  }
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
  }
  .hero-cta .btn-primary .btn-meta {
    border-left: 1px solid rgba(255,255,255,0.3);
    padding-left: 8px;
    margin-left: 4px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding-top: 24px;
  }
  .stat-num { font-size: 19px; }
  .stat-label { font-size: 10px; }

  /* Browser frame */
  .browser-frame { max-width: 100%; }
  .hero-visual::before { inset: -20px; filter: blur(30px); }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { padding: 22px 20px; }
  .feature-card h3 { font-size: 16px; }
  .feature-card p { font-size: 13px; }

  /* Sites */
  .sites-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .site-card { padding: 18px 14px; }
  .site-logo { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 10px; }
  .site-logo svg { width: 26px; height: 26px; }
  .site-card .site-name { font-size: 13px; }
  .site-card .site-host { font-size: 10px; }

  /* Install steps */
  .install-steps::before { left: 36px; }
  .step { padding: 18px 16px; gap: 14px; }
  .step-num { width: 34px; height: 34px; font-size: 14px; }
  .step-body h3 { font-size: 15px; }
  .step-body p { font-size: 13px; }
  .step-body pre {
    font-size: 11px;
    padding: 10px 12px;
    margin: 8px 0;
  }
  /* Inline code in paragraphs should be smaller on mobile */
  .step-body p code { font-size: 12px; padding: 1px 5px; }

  /* How it works */
  .how-flow { flex-direction: column; gap: 12px; }
  .how-tier {
    min-width: 0;
    max-width: 100%;
    padding: 20px 18px;
  }
  .how-arrow { transform: rotate(90deg); }
  .how-tier h3 { font-size: 15px; }
  .how-tier p { font-size: 12px; }

  /* Privacy */
  .privacy-item { padding: 16px 18px; gap: 12px; }
  .privacy-item h3 { font-size: 14px; }
  .privacy-item p { font-size: 12px; }

  /* FAQ */
  .faq-item summary { padding: 14px 16px; font-size: 14px; }
  .faq-item p { padding: 0 16px 16px; font-size: 13px; }

  /* CTA */
  .cta { padding: 56px 20px; }
  .cta h2 { font-size: clamp(24px, 6vw, 32px); }
  .cta p { font-size: 14px; }
  .cta .btn-primary { width: 100%; justify-content: center; }

  /* Section heads */
  .section-head h2 { font-size: clamp(24px, 6vw, 32px); }
  .section-head p { font-size: 14px; }
  .section-eyebrow { font-size: 11px; }

  /* Sections */
  .section { padding: 48px 16px; }
}

@media (max-width: 380px) {
  /* Very small phones */
  .hero h1 { font-size: 26px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-num { font-size: 17px; }
  .sites-grid { grid-template-columns: 1fr; }
  .nav-inner { padding: 10px 14px; gap: 8px; }
  .nav-brand span { font-size: 15px; }
  .brand-mark { width: 28px; height: 28px; }
  .nav-link-icon { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .bg-blob { animation: none; }
}

/* ---------- Scroll reveal ---------- */
.section, .hero {
  animation: sectionReveal 0.6s ease-out both;
}
@keyframes sectionReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
