/* ═══════════════════════════════════════════════════════════════
   OwnFi Marketing Website — Design System
   Derived from the app's "Calm Finance" dark palette
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Colors — App Dark Theme */
  --bg-primary: #0E1320;
  --bg-secondary: #141B2D;
  --bg-card: #182234;
  --bg-elevated: #202B42;
  --bg-glass: rgba(24, 34, 52, 0.72);

  --accent-primary: #6366F1;
  --accent-primary-light: #818CF8;
  --accent-secondary: #06B6D4;
  --accent-secondary-light: #22D3EE;
  --accent-success: #10B981;
  --accent-success-light: #34D399;
  --accent-warning: #F59E0B;
  --accent-danger: #EF4444;

  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --border-subtle: rgba(148, 163, 184, 0.08);
  --border-medium: rgba(148, 163, 184, 0.14);
  --border-accent: rgba(99, 102, 241, 0.25);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366F1, #06B6D4);
  --gradient-primary-soft: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(6,182,212,0.15));
  --gradient-hero-bg: radial-gradient(ellipse at 30% 20%, rgba(99,102,241,0.12) 0%, transparent 60%),
                       radial-gradient(ellipse at 70% 80%, rgba(6,182,212,0.08) 0%, transparent 50%);
  --gradient-warm: linear-gradient(135deg, #F59E0B, #EF4444);
  --gradient-success: linear-gradient(135deg, #10B981, #06B6D4);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  --fs-6xl: 3.75rem;
  --fs-hero: clamp(2.5rem, 6vw, 4.5rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
  --space-3xl: 3rem;
  --space-4xl: 4rem;
  --space-5xl: 6rem;
  --space-6xl: 8rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.2);
  --shadow-glow-lg: 0 0 80px rgba(99,102,241,0.15), 0 0 160px rgba(6,182,212,0.08);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent-primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent-secondary-light); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Utilities ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-primary-light);
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* ── Glass Effect ──────────────────────────────────────────── */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-medium);
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(14, 19, 32, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.14);
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white !important;
  font-size: var(--fs-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-text-fill-color: white;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
  color: white !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-5xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-bg);
  pointer-events: none;
}

/* Animated background orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: var(--accent-primary);
  top: -10%; left: -10%;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: var(--accent-secondary);
  bottom: -5%; right: -5%;
  animation-delay: -10s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: var(--accent-success);
  top: 50%; left: 60%;
  animation-delay: -5s;
  opacity: 0.15;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent-primary-light);
  width: fit-content;
  letter-spacing: 0.5px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-success);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: var(--fs-xl);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  font-size: var(--fs-base);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: white;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--fs-base);
  font-weight: 600;
  border: 1px solid var(--border-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--accent-primary-light);
  color: var(--text-primary);
  background: rgba(99,102,241,0.06);
}

.hero-stats {
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-lg);
}

.hero-stat-value {
  font-size: var(--fs-3xl);
  font-weight: 800;
  font-family: var(--font-mono);
}

.hero-stat-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hero phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-phone {
  max-width: 330px;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 36px;
  box-shadow: var(--shadow-lg), var(--shadow-glow-lg);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.hero-phone:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-8px);
}

/* Floating glow behind phone */
.hero-visual::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 560px;
  background: var(--gradient-primary);
  filter: blur(120px);
  opacity: 0.2;
  border-radius: 50%;
  z-index: -1;
}

/* ── Screenshot Gallery ───────────────────────────────────── */
.screenshots {
  padding: var(--space-6xl) 0;
  position: relative;
  overflow: hidden;
}

.screenshots::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.07) 0%, transparent 55%);
  pointer-events: none;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
  position: relative;
  z-index: 1;
}

.screenshot-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.screenshot-card img {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1170 / 2532;
  object-fit: cover;
  border-radius: 34px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
}

.screenshot-card figcaption {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-align: center;
}

/* ── Privacy Banner ────────────────────────────────────────── */
.privacy-banner {
  padding: var(--space-4xl) 0;
  position: relative;
}

.privacy-card {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  padding: var(--space-3xl);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(6,182,212,0.06));
  border: 1px solid rgba(16,185,129,0.15);
  position: relative;
  overflow: hidden;
}

.privacy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-success);
}

.privacy-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: rgba(16, 185, 129, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 32px;
}

.privacy-content { flex: 1; }

.privacy-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.privacy-text {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

.privacy-badges {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent-success-light);
}

/* ── Core Features ─────────────────────────────────────────── */
.features {
  padding: var(--space-6xl) 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.feature-card {
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 30px rgba(99,102,241,0.08);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.feature-icon.purple { background: rgba(99, 102, 241, 0.12); }
.feature-icon.cyan { background: rgba(6, 182, 212, 0.12); }
.feature-icon.green { background: rgba(16, 185, 129, 0.12); }
.feature-icon.amber { background: rgba(245, 158, 11, 0.12); }

.feature-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.feature-tag {
  font-size: var(--fs-xs);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-weight: 500;
}

/* ── AI Section ────────────────────────────────────────────── */
.ai-section {
  padding: var(--space-6xl) 0;
  position: relative;
  overflow: hidden;
}

.ai-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(99,102,241,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.ai-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.ai-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.ai-capabilities {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.ai-capability {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.ai-capability-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.ai-capability-text h4 {
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: 2px;
}

.ai-capability-text p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.ai-phone {
  max-width: 320px;
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 36px;
  box-shadow: var(--shadow-lg), var(--shadow-glow-lg);
  margin: 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

/* ── Feature Showcase ──────────────────────────────────────── */
.showcase {
  padding: var(--space-6xl) 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.showcase-card {
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.showcase-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.showcase-card-icon {
  font-size: 28px;
  margin-bottom: var(--space-xs);
}

.showcase-card-title {
  font-size: var(--fs-lg);
  font-weight: 700;
}

.showcase-card-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── How It Works ──────────────────────────────────────────── */
.how-it-works {
  padding: var(--space-6xl) 0;
  position: relative;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3xl);
  margin-top: var(--space-4xl);
  position: relative;
}

/* Connecting line */
.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.3;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--accent-primary-light);
  font-family: var(--font-mono);
  box-shadow: var(--shadow-glow);
}

.step-title {
  font-size: var(--fs-xl);
  font-weight: 700;
}

.step-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 280px;
}

/* ── Testimonial / Trust ───────────────────────────────────── */
.trust {
  padding: var(--space-5xl) 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.trust-item {
  text-align: center;
  padding: var(--space-2xl);
}

.trust-value {
  font-size: var(--fs-4xl);
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: var(--space-sm);
}

.trust-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ── CTA Section ───────────────────────────────────────────── */
.cta {
  padding: var(--space-6xl) 0;
  text-align: center;
  position: relative;
}

.cta-card {
  padding: var(--space-5xl) var(--space-3xl);
  border-radius: var(--radius-2xl);
  background: var(--gradient-primary-soft);
  border: 1px solid var(--border-accent);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 50%);
  animation: cta-rotate 30s linear infinite;
  pointer-events: none;
}

@keyframes cta-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.cta-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-3xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  padding: var(--space-4xl) 0 var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: var(--space-2xl);
  list-style: none;
}

.footer-links a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-copy {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

/* ── Scroll Reveal Animations ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Stagger children */
.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.15s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.2s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.25s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.3s; }
.stagger > .reveal:nth-child(7) { transition-delay: 0.35s; }
.stagger > .reveal:nth-child(8) { transition-delay: 0.4s; }
.stagger > .reveal:nth-child(9) { transition-delay: 0.45s; }
.stagger > .reveal:nth-child(10) { transition-delay: 0.5s; }
.stagger > .reveal:nth-child(11) { transition-delay: 0.55s; }
.stagger > .reveal:nth-child(12) { transition-delay: 0.6s; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Mobile nav menu */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(14, 19, 32, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-2xl);
    gap: var(--space-xl);
    border-bottom: 1px solid var(--border-subtle);
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-3xl);
  }

  .hero-subtitle { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .hero-phone {
    max-width: 260px;
    max-height: none;
    transform: none;
  }
  .hero-phone:hover { transform: translateY(-4px); }

  .privacy-card {
    flex-direction: column;
    text-align: center;
  }
  .privacy-badges { justify-content: center; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .ai-inner {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }
  .ai-phone {
    max-width: 260px;
    max-height: none;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }
  .steps::before { display: none; }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-lg); }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-card img {
    max-width: 260px;
  }
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-orb { animation: none; }
  .hero-phone { transition: none; }
  .hero-phone:hover { transform: none; }
  html { scroll-behavior: auto; }
}
