/* ═══════════════════════════════════════════════════════════════
   VaultMind Marketing Website — Design System & Styles
   Desktop-first design. Ported from app's theme tokens.
   ═══════════════════════════════════════════════════════════════ */

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

/* ─── CSS Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { font-family: 'Nunito', sans-serif; line-height: 1.6; overflow-x: hidden; transition: background-color 0.4s ease, color 0.4s ease; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; word-wrap: break-word; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── Design Tokens (Dark Mode — Default) ───────────────────── */
:root {
  --bg: #0F0F1A;
  --card: #1A1A2E;
  --card-elevated: #222240;
  --card-bg: #151525;
  --card-border: rgba(255,255,255,0.08);
  --glass-bg: rgba(107,131,153,0.08);
  --glass-bg-heavy: rgba(107,131,153,0.18);
  --glass-border: rgba(107,131,153,0.20);
  --accent: #6B8399;
  --accent-mid: #526A7D;
  --accent-subtle: rgba(107,131,153,0.12);
  --accent-border: rgba(107,131,153,0.3);
  --accent-glow: rgba(107,131,153,0.25);
  --success: #10B981;
  --success-subtle: rgba(16,185,129,0.12);
  --warning: #F59E0B;
  --warning-subtle: rgba(245,158,11,0.12);
  --danger: #F43F5E;
  --danger-subtle: rgba(244,63,94,0.08);
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --text-on-accent: #FFFFFF;
  --separator: rgba(255,255,255,0.06);
  --input-bg: rgba(255,255,255,0.04);
  --shadow-color: rgba(0,0,0,0.3);
  --purple: #7C5CFC;
  --purple-subtle: rgba(124,92,252,0.12);
  --teal: #14B8A6;
  --teal-subtle: rgba(20,184,166,0.12);
  --orange: #F97316;
  --orange-subtle: rgba(249,115,22,0.12);
  --pink: #EC4899;
  --pink-subtle: rgba(236,72,153,0.12);
  --blue: #3B82F6;
  --blue-subtle: rgba(59,130,246,0.12);
  --amber: #F59E0B;
  --amber-subtle: rgba(245,158,11,0.12);
  --max-width: 1200px;
  --nav-height: 80px;
}

/* ─── Light Mode ───────────────────────────────────────────── */
[data-theme="light"] {
  --bg: #F8F5F0;
  --card: #FFFFFF;
  --card-elevated: #FFFFFF;
  --card-bg: #F2EFE9;
  --card-border: rgba(63,78,91,0.08);
  --glass-bg: rgba(255,255,255,0.6);
  --glass-bg-heavy: rgba(255,255,255,0.8);
  --glass-border: rgba(63,78,91,0.12);
  --accent: #3F4E5B;
  --accent-mid: #334350;
  --accent-subtle: rgba(63,78,91,0.08);
  --accent-border: rgba(63,78,91,0.20);
  --accent-glow: rgba(63,78,91,0.12);
  --success: #059669;
  --success-subtle: rgba(5,150,105,0.10);
  --warning: #D97706;
  --danger: #DC2626;
  --text-primary: #1A1A2E;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --text-on-accent: #FFFFFF;
  --separator: rgba(0,0,0,0.06);
  --shadow-color: rgba(63,78,91,0.1);
  --purple: #6D4AE8;
  --purple-subtle: rgba(109,74,232,0.1);
  --teal: #0D9488;
  --teal-subtle: rgba(13,148,136,0.1);
  --orange: #EA580C;
  --orange-subtle: rgba(234,88,12,0.1);
  --pink: #DB2777;
  --pink-subtle: rgba(219,39,119,0.1);
  --blue: #2563EB;
  --blue-subtle: rgba(37,99,235,0.1);
}

/* ─── Body ──────────────────────────────────────────────────── */
body { background: var(--bg); color: var(--text-primary); }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.text-center { text-align: center; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION — Desktop: all links visible, generous spacing
   ═══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height); z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: var(--glass-bg-heavy);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--separator);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 40px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 1.5rem; font-weight: 800;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.nav-links {
  display: flex; align-items: center; gap: 40px;
}
.nav-link {
  font-size: 0.95rem; font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link.active::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 99px;
}
.nav-actions { display: flex; align-items: center; gap: 16px; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-subtle); color: var(--text-secondary);
  transition: all 0.2s ease; font-size: 1.1rem;
}
.theme-toggle:hover { background: var(--accent-border); color: var(--text-primary); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-hamburger span {
  width: 22px; height: 2px; background: var(--text-primary);
  border-radius: 99px; transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-mobile {
  display: none; position: fixed; top: var(--nav-height);
  left: 0; right: 0; background: var(--card);
  border-bottom: 1px solid var(--separator);
  padding: 24px; flex-direction: column; gap: 16px; z-index: 999;
}
.nav-mobile.open { display: flex; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; font-size: 1rem; font-weight: 700;
  border-radius: 28px; transition: all 0.25s ease; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-mid));
  color: var(--text-on-accent);
  box-shadow: 0 4px 20px var(--accent-glow);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg); transition: left 0.5s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-primary:hover::after { left: 150%; }
.btn-secondary {
  background: var(--glass-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover { background: var(--glass-bg-heavy); transform: translateY(-1px); }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-sm { padding: 10px 22px; font-size: 0.875rem; }
.btn-ghost { color: var(--accent); padding: 14px 16px; }
.btn-ghost:hover { background: var(--accent-subtle); }

/* ═══════════════════════════════════════════════════════════════
   SECTIONS — Generous desktop spacing
   ═══════════════════════════════════════════════════════════════ */
.section { padding: 120px 0; }

.section-header {
  text-align: center; margin-bottom: 64px;
}
.section-header .overline, .page-header .overline {
  display: block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-header h2, .section-header .h2 {
  font-size: 2.5rem; font-weight: 800; line-height: 1.2;
  margin-bottom: 16px;
}
.section-header p, .section-subtitle, .subtitle {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto; line-height: 1.7;
}

.section-footer { margin-top: 48px; text-align: center; }
.link-arrow {
  color: var(--accent); font-weight: 700; font-size: 1rem;
  transition: color 0.2s ease;
}
.link-arrow:hover { color: var(--purple); }

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER — Inner pages (features, pricing, faq, legal)
   ═══════════════════════════════════════════════════════════════ */
.page-header {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 60px;
  text-align: center;
}
.page-header h1, .page-header .h1, .heading-lg {
  font-size: 3rem; font-weight: 800; line-height: 1.15;
  margin-bottom: 16px;
}
.page-header p, .page-header .subtitle {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 600px; margin: 0 auto; line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   HERO — Desktop: two-column, text left, phone right
   ═══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--nav-height); position: relative;
  overflow-x: clip; overflow-y: visible;
}
/* Ambient glow */
.hero::before {
  content: ''; position: absolute; top: -30%; right: -20%;
  width: 70%; height: 70%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate; z-index: 0;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -15%;
  width: 50%; height: 50%;
  background: radial-gradient(circle, var(--purple-subtle) 0%, transparent 70%);
  animation: heroGlow 10s ease-in-out infinite alternate-reverse; z-index: 0;
}
@keyframes heroGlow {
  0% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 0.7; transform: scale(1.2); }
}

/* Hero grid — THIS is the two-column layout */
.hero-grid, .hero > .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 40px;
}

/* Hero text column — NOT a grid, just stacked content */
.hero-content {
  display: flex; flex-direction: column; align-items: flex-start;
}

.badge, .hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-subtle); border: 1px solid var(--accent-border);
  border-radius: 99px; padding: 8px 20px;
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  margin-bottom: 28px;
}

.hero-title {
  font-size: 4rem; font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; margin-bottom: 24px;
}
.text-gradient, .highlight {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.2rem; color: var(--text-secondary);
  line-height: 1.75; margin-bottom: 36px; max-width: 480px;
}
.hero-actions, .hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px;
}
.hero-stats {
  display: flex; gap: 32px;
}
.stat-item, .hero-stat {
  font-size: 0.9rem; font-weight: 600; color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px;
}
.hero-stat-value { font-size: 1.5rem; font-weight: 800; }
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* Hero phone mockup */
.hero-visual {
  position: relative; display: flex;
  justify-content: center; align-items: center;
}
.phone-mockup {
  position: relative; width: 320px; height: 640px;
  background: var(--card); border-radius: 44px;
  border: 3px solid var(--card-border);
  box-shadow: 0 32px 80px var(--shadow-color);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
  transition: transform 0.5s ease;
}
.phone-mockup:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }
.phone-content {
  width: 100%; height: 100%;
  background: linear-gradient(165deg, var(--card-bg) 0%, var(--card) 40%, var(--accent-subtle) 100%);
  border-radius: 41px;
  display: flex; align-items: center; justify-content: center;
}
.phone-content::after {
  content: '📖 VaultMind'; font-size: 1.4rem;
  font-weight: 800; color: var(--text-primary); opacity: 0.5;
}
.phone-mockup img { width: 100%; height: 100%; object-fit: cover; border-radius: 41px; }

/* Floating feature cards around phone */
.floating-card, .float-card {
  position: absolute;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 12px 18px;
  box-shadow: 0 12px 36px var(--shadow-color);
  font-size: 0.85rem; font-weight: 700; color: var(--text-primary);
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  animation: float 6s ease-in-out infinite;
}
.floating-card .icon, .float-card-icon { font-size: 1.2rem; }
.card-top-left     { top: 5%;  left: -40px; animation-delay: 0s; }
.card-top-right    { top: 12%; right: 10px; animation-delay: -1.5s; }
.card-bottom-left  { bottom: 22%; left: -30px; animation-delay: -3s; }
.card-bottom-right { bottom: 15%; right: 20px; animation-delay: -4.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS — 4-column step cards on desktop
   ═══════════════════════════════════════════════════════════════ */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; margin-top: 0; position: relative;
}
.steps-grid::before {
  content: ''; position: absolute;
  top: 30px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-border) 10%, var(--accent-border) 90%, transparent);
  z-index: 0;
}
.step-card { text-align: center; position: relative; z-index: 1; }
.step-number {
  width: 60px; height: 60px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 8px var(--bg);
}
.step-card:nth-child(1) .step-number { background: var(--purple-subtle); color: var(--purple); }
.step-card:nth-child(2) .step-number { background: var(--teal-subtle); color: var(--teal); }
.step-card:nth-child(3) .step-number { background: var(--orange-subtle); color: var(--orange); }
.step-card:nth-child(4) .step-number { background: var(--success-subtle); color: var(--success); }
.step-card h3, .step-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.step-card p, .step-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════
   FEATURE GRID — 3-column cards on desktop (index page)
   ═══════════════════════════════════════════════════════════════ */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 20px; padding: 36px 32px;
  transition: all 0.3s ease; position: relative;
}
.feature-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px var(--accent), 0 16px 48px var(--shadow-color);
}
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.1);
}
.feature-icon.purple, .icon-purple  { background: linear-gradient(135deg, var(--purple-subtle), transparent); color: var(--purple); border: 1px solid var(--purple-subtle); }
.feature-icon.teal,   .icon-teal    { background: linear-gradient(135deg, var(--teal-subtle), transparent); color: var(--teal); border: 1px solid var(--teal-subtle); }
.feature-icon.success,.icon-success { background: linear-gradient(135deg, var(--success-subtle), transparent); color: var(--success); border: 1px solid var(--success-subtle); }
.feature-icon.orange, .icon-orange  { background: linear-gradient(135deg, var(--orange-subtle), transparent); color: var(--orange); border: 1px solid var(--orange-subtle); }
.feature-icon.blue,   .icon-blue    { background: linear-gradient(135deg, var(--blue-subtle), transparent); color: var(--blue); border: 1px solid var(--blue-subtle); }
.feature-icon.pink,   .icon-pink    { background: linear-gradient(135deg, var(--pink-subtle), transparent); color: var(--pink); border: 1px solid var(--pink-subtle); }
.feature-icon.amber,  .icon-amber   { background: linear-gradient(135deg, var(--amber-subtle), transparent); color: var(--amber); border: 1px solid var(--amber-subtle); }
.feature-icon.accent, .icon-accent  { background: linear-gradient(135deg, var(--accent-subtle), transparent); color: var(--accent); border: 1px solid var(--accent-subtle); }

.feature-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.feature-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════════
   FEATURE DETAIL — Alternating 2-col layout (features page)
   ═══════════════════════════════════════════════════════════════ */
.feature-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  padding: 60px 0; border-bottom: 1px solid var(--separator);
}
.feature-detail:first-child { padding-top: 0; }
.feature-detail:last-child { border-bottom: none; }

/* Alternate direction: even items flip */
.feature-detail:nth-child(even) { direction: rtl; }
.feature-detail:nth-child(even) > * { direction: ltr; }

.feature-detail .overline, .feature-detail-content .overline {
  display: block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.feature-detail .h2 { font-size: 2rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.feature-detail p, .feature-content p {
  color: var(--text-secondary); line-height: 1.75; font-size: 1.05rem;
}

/* Feature visual (gradient box with emoji) */
.feature-visual {
  border-radius: 20px; overflow: hidden;
  aspect-ratio: 4/3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 4rem;
  border: 1px solid var(--card-border);
}
.feature-visual span {
  font-size: 1.1rem; font-weight: 700;
  margin-top: 16px; color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Feature checklist */
.feature-detail-list li, .feature-checklist li {
  position: relative; padding-left: 28px;
  margin-bottom: 10px; font-size: 0.95rem;
  color: var(--text-secondary); line-height: 1.6;
}
.feature-detail-list li::before, .feature-checklist li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--success); font-weight: 700;
}
.feature-checklist { margin-top: 24px; }

/* ═══════════════════════════════════════════════════════════════
   PRICING — 3-column side-by-side on desktop
   ═══════════════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; align-items: start;
}

/* Card base for pricing */
.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 20px; padding: 36px 32px;
  transition: all 0.3s ease;
}
.card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 12px 40px var(--shadow-color);
}
.card-glass {
  background: var(--glass-bg); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 36px 32px;
}

.pricing-card { text-align: left; }
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 60px var(--accent-glow);
  transform: scale(1.04);
  position: relative; overflow: hidden;
}

/* "Most Popular" ribbon */
.pricing-card.featured .ribbon,
.pricing-card.featured::before {
  position: absolute; top: 18px; right: -34px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: white; font-size: 0.65rem; font-weight: 700;
  padding: 5px 44px; transform: rotate(45deg);
  text-transform: uppercase; letter-spacing: 0.06em;
}
/* If they used a .ribbon div, hide the pseudo */
.pricing-card.featured .ribbon + *::before { display: none; }
.ribbon {
  position: absolute; top: 18px; right: -34px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: white; font-size: 0.65rem; font-weight: 700;
  padding: 5px 44px; transform: rotate(45deg);
  text-transform: uppercase; letter-spacing: 0.06em; z-index: 2;
}

.pricing-tier {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 8px;
}
.pricing-name { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.pricing-price, .pricing-price-wrapper {
  display: flex; align-items: baseline; gap: 4px;
  margin: 16px 0 8px;
}
.pricing-amount { font-size: 2.8rem; font-weight: 800; }
.pricing-period { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.pricing-note { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 24px; }

.pricing-features, .pricing-features-list {
  display: flex; flex-direction: column; gap: 10px; margin-top: 24px;
}
.pricing-features li, .pricing-features-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5;
}
.pricing-feature .check, .check { color: var(--success); font-weight: 700; flex-shrink: 0; }
.pricing-feature .cross, .cross { color: var(--text-muted); flex-shrink: 0; }

/* Pricing teaser (simpler cards on index page) */
.pricing-card h3.pricing-tier { text-align: center; }
.pricing-card .pricing-price, .pricing-card .pricing-price-wrapper { justify-content: center; }
.pricing-card .pricing-features-list { text-align: center; }
.pricing-card .pricing-features-list li { justify-content: center; }

/* Full pricing page — left align */
.pricing-grid .card.pricing-card { text-align: left; }
.pricing-grid .card .pricing-price-wrapper { justify-content: flex-start; }
.pricing-grid .card .pricing-features li { text-align: left; justify-content: flex-start; }

/* Sprint card */
.sprint-card {
  border-radius: 20px; padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; margin-top: 48px;
}
.sprint-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.heading-md { font-size: 1.3rem; font-weight: 700; }
.text-right { text-align: right; }
.m-0 { margin: 0; }

/* Student banner */
.student-banner {
  background: var(--accent-subtle); border: 1px solid var(--accent-border);
  border-radius: 20px; padding: 28px 36px;
  display: flex; align-items: center; gap: 24px; margin-top: 28px;
}
.student-banner h3 { font-size: 1.15rem; font-weight: 700; }

/* Pricing comparison table */
.pricing-table {
  width: 100%; border-collapse: collapse; margin-top: 64px;
}
.pricing-table th, .pricing-table td {
  padding: 16px 20px; text-align: left;
  border-bottom: 1px solid var(--separator); font-size: 0.9rem;
}
.pricing-table th {
  font-weight: 700; background: var(--card-bg);
  position: sticky; top: var(--nav-height);
}
.pricing-table td { color: var(--text-secondary); }
.pricing-table td:first-child { font-weight: 600; color: var(--text-primary); }
.pricing-table tr:hover td { background: var(--accent-subtle); }

/* ═══════════════════════════════════════════════════════════════
   QUOTE SECTION
   ═══════════════════════════════════════════════════════════════ */
.quote-section {
  background: var(--card-bg);
  border-top: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
  padding: 100px 0;
}
.quote-wrapper, .quote-content { max-width: 720px; margin: 0 auto; text-align: center; }
.quote-text {
  font-size: 1.65rem; font-weight: 600; font-style: italic;
  color: var(--text-primary); line-height: 1.6; margin-bottom: 16px;
}
.quote-author { color: var(--text-muted); font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, var(--card), var(--card-elevated));
  border-top: 1px solid var(--separator);
  padding: 120px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, var(--purple-subtle), transparent 40%),
              url('data:image/svg+xml;utf8,<svg width="30" height="30" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1.5" fill="rgba(255,255,255,0.03)"/></svg>');
  z-index: 0; pointer-events: none;
}
.cta-section h1, .cta-section h2 {
  font-size: 2.5rem; font-weight: 800; margin-bottom: 16px;
}
.cta-section .body-lg, .cta-section p {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 500px; margin: 0 auto 16px;
}
.cta-actions, .cta-content {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; position: relative; z-index: 1;
}
.cta-content { flex-direction: column; align-items: center; max-width: 600px; margin: 0 auto; }

/* ═══════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════════════════════ */
.faq-list {
  max-width: 800px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 16px; overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item.open { border-color: var(--accent-border); }
.faq-question {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between;
  padding: 22px 28px; font-size: 1.05rem; font-weight: 700;
  color: var(--text-primary); text-align: left; cursor: pointer;
  transition: color 0.2s ease;
}
.faq-question:hover { color: var(--accent); }
.faq-question::after {
  content: '▾'; font-size: 1.2rem; color: var(--text-muted);
  transition: transform 0.3s ease; flex-shrink: 0; margin-left: 16px;
}
.faq-item.open .faq-question::after { transform: rotate(180deg); }
.faq-chevron {
  font-size: 1rem; color: var(--text-muted);
  transition: transform 0.3s ease; flex-shrink: 0; margin-left: 16px;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-content, .faq-answer p {
  padding: 0 28px 24px; color: var(--text-secondary);
  font-size: 0.95rem; line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════
   LEGAL PAGES (Terms, Privacy)
   ═══════════════════════════════════════════════════════════════ */
.legal-content { max-width: 760px; margin: 0 auto; padding-top: calc(var(--nav-height) + 40px); }
.legal-content h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 8px; }
.legal-content h2 { font-size: 1.5rem; font-weight: 800; margin: 56px 0 16px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 10px; }
.legal-content p {
  color: var(--text-secondary); margin-bottom: 16px;
  line-height: 1.85; font-size: 0.95rem;
}
.legal-content ul { margin: 8px 0 16px 24px; list-style: disc; }
.legal-content ul li {
  color: var(--text-secondary); margin-bottom: 6px;
  line-height: 1.75; font-size: 0.95rem;
}
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-meta {
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 40px; padding-bottom: 24px;
  border-bottom: 1px solid var(--separator);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER — 4-column on desktop
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--card-bg); border-top: 1px solid var(--separator);
  padding: 80px 0 36px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 60px;
}
.footer-brand { max-width: 300px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social-link {
  width: 42px; height: 42px; border-radius: 99px;
  background: var(--accent-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 1.1rem;
  transition: all 0.2s ease;
}
.footer-social-link:hover { background: var(--accent); color: var(--text-on-accent); }
.footer-column-title {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-primary); margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link { font-size: 0.9rem; color: var(--text-secondary); transition: color 0.2s ease; }
.footer-link:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--separator);
  font-size: 0.82rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); transition: color 0.2s ease; }
.footer-bottom a:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════════
   SCROLL 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; }

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center, .align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.gap-xl { gap: 32px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mt-xl { margin-top: 32px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.w-full { width: 100%; }
.text-left { text-align: left; }
.mb-xl { margin-bottom: 48px; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.section-dark { background: var(--card-bg); }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 40px; }
.section-padding { padding: 80px 0; padding-top: calc(var(--nav-height) + 48px); }
.pt-0 { padding-top: 0 !important; }
.overline {
  display: block; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; }
.h2 { font-size: 2rem; font-weight: 800; line-height: 1.25; }
.h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
.body-lg { font-size: 1.125rem; line-height: 1.7; }
.body-sm { font-size: 0.875rem; line-height: 1.5; }
.emoji { margin-right: 8px; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .steps-grid::before { display: none; }
  .container { padding: 0 28px; }
  .nav-inner { padding: 0 28px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-content { align-items: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 0; }
  .phone-mockup { transform: none; width: 260px; height: 520px; }
  .floating-card { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-detail { grid-template-columns: 1fr; gap: 40px; }
  .feature-detail:nth-child(even) { direction: ltr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .pricing-card.featured { transform: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sprint-card { flex-direction: column; text-align: center; }
  .sprint-card .text-right { text-align: center; }
  .section { padding: 80px 0; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .hero-visual { display: none; }
  .container { padding: 0 20px; max-width: 100vw; }
  .nav-inner { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-actions { display: none; }  /* Download btn + theme toggle move to mobile menu */
  .nav-hamburger { display: flex; }
  .nav-logo { font-size: 1.25rem; }
  .nav-logo-icon { width: 32px; height: 32px; font-size: 0.95rem; border-radius: 10px; }
  .section, .page-header { max-width: 100vw; overflow-x: hidden; }
  .feature-detail { overflow: hidden; }
  .nav-mobile {
    padding: 20px 24px 28px;
    gap: 0;
  }
  .nav-mobile .nav-link {
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--separator);
  }
  .nav-mobile .nav-link:last-of-type { border-bottom: none; }
  .nav-mobile .theme-toggle { margin-top: 16px; align-self: flex-start; }
  .nav-mobile .btn { margin-top: 12px; text-align: center; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .section { padding: 64px 0; }
  .section-header h2 { font-size: 1.5rem; }
  .page-header h1, .page-header .h1, .heading-lg, .h1 { font-size: 1.75rem; }
  .subtitle, .section-subtitle, .page-header p { font-size: 0.95rem; }
  .feature-detail .h2 { font-size: 1.5rem; }
  .container-sm { padding: 0 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  main { overflow-x: hidden; }
  .feature-detail p, .feature-content p { word-break: break-word; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .quote-text { font-size: 1.25rem; }
  .student-banner { flex-direction: column; text-align: center; }
  .hero-stats { flex-direction: column; gap: 8px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-section h1, .cta-section h2 { font-size: 1.8rem; }
  .pricing-table { font-size: 0.78rem; }
  .pricing-table th, .pricing-table td { padding: 10px 8px; }
}

@media (max-width: 480px) {
  .phone-mockup { width: 220px; height: 440px; }
  .hero-title { font-size: 1.8rem; }
  .page-header h1, .page-header .h1, .heading-lg, .h1 { font-size: 1.5rem; }
  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
}
