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

:root {
  --primary: #007AFF;
  --primary-dark: #0062CC;
  --gradient: linear-gradient(135deg, #0A84FF, #0062CC);
  --bg: #FFFFFF;
  --surface: #F9F9FB;
  --text: #1C1C1E;
  --text-secondary: #8E8E93;
  --separator: #E5E5EA;
  --success: #30B650;
  --radius: 16px;
  --max-w: 1080px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--separator);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 14px 24px;
}
.nav-logo {
  font-size: 20px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 14px;
  font-size: 17px; font-weight: 600; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 6px 20px rgba(0,122,255,0.3);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(0,122,255,0.4); }
.btn-secondary {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--separator);
}
.btn-small { padding: 10px 22px; font-size: 15px; border-radius: 12px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 160px 24px 100px;
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(10,132,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800; letter-spacing: -1px;
  line-height: 1.1; margin-bottom: 20px;
  position: relative;
}
.hero h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 20px; color: var(--text-secondary);
  max-width: 540px; margin: 0 auto 36px;
  line-height: 1.5;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 32px; padding: 8px 18px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--separator);
  font-size: 14px; color: var(--text-secondary); font-weight: 500;
}
.hero-badge svg { flex-shrink: 0; }

/* ── Trust bar ───────────────────────────────────────────── */
.trust-bar {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding: 48px 24px;
  border-top: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; color: var(--text-secondary);
}
.trust-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
}

/* ── Section shared ──────────────────────────────────────── */
.section {
  padding: 100px 24px;
}
.section-header {
  text-align: center; max-width: 600px; margin: 0 auto 64px;
}
.section-label {
  display: inline-block; padding: 6px 14px; border-radius: 100px;
  background: rgba(0,122,255,0.08); color: var(--primary);
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; letter-spacing: -0.5px;
  line-height: 1.2; margin-bottom: 16px;
}
.section-header p {
  font-size: 18px; color: var(--text-secondary); line-height: 1.5;
}

/* ── Features grid ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; max-width: var(--max-w); margin: 0 auto;
}
.feature-card {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--separator);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 24px;
}
.feature-card h3 {
  font-size: 18px; font-weight: 600; margin-bottom: 8px;
}
.feature-card p {
  font-size: 15px; color: var(--text-secondary); line-height: 1.5;
}

/* ── How it works ────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px; max-width: 900px; margin: 0 auto;
  counter-reset: step;
}
.step {
  text-align: center; padding: 32px 24px;
  position: relative;
}
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--text-secondary); }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 920px; margin: 0 auto;
}
.price-card {
  padding: 36px 32px; border-radius: var(--radius);
  background: var(--surface); border: 2px solid var(--separator);
  text-align: center; position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.price-card.popular {
  border-color: var(--primary);
  background: rgba(0,122,255,0.03);
  box-shadow: 0 8px 32px rgba(0,122,255,0.12);
}
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: 6px 16px; border-radius: 100px;
  background: var(--gradient); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px; white-space: nowrap;
}
.price-card h3 {
  font-size: 18px; font-weight: 600; margin-bottom: 8px; margin-top: 8px;
}
.price-amount {
  font-size: 44px; font-weight: 800; letter-spacing: -1px;
  margin-bottom: 4px;
}
.price-period {
  font-size: 15px; color: var(--text-secondary); margin-bottom: 24px;
}
.price-save {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  background: rgba(48,182,80,0.1); color: var(--success);
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.price-features {
  list-style: none; text-align: left; margin-bottom: 28px;
}
.price-features li {
  padding: 8px 0; font-size: 15px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 10px;
}
.price-features li::before {
  content: '';
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--success); flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}

/* ── CTA section ─────────────────────────────────────────── */
.cta-section {
  padding: 100px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}
.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; margin-bottom: 16px; letter-spacing: -0.5px;
}
.cta-section p {
  font-size: 18px; color: var(--text-secondary);
  max-width: 480px; margin: 0 auto 36px;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--separator);
  text-align: center;
}
.footer-links {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-links a {
  font-size: 14px; color: var(--text-secondary); font-weight: 500;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 13px; color: var(--text-secondary);
}

/* ── Privacy page ────────────────────────────────────────── */
.legal {
  padding: 140px 24px 80px;
  max-width: 720px; margin: 0 auto;
}
.legal h1 {
  font-size: 36px; font-weight: 700; margin-bottom: 8px;
}
.legal .updated {
  font-size: 14px; color: var(--text-secondary); margin-bottom: 40px;
}
.legal h2 {
  font-size: 22px; font-weight: 600; margin: 40px 0 12px;
}
.legal p, .legal li {
  font-size: 16px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 16px;
}
.legal ul {
  padding-left: 24px; margin-bottom: 16px;
}

/* ── Animations ──────────────────────────────────────────── */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1; transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 130px 24px 72px; }
  .trust-bar { gap: 24px; }
  .section { padding: 72px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .steps { grid-template-columns: 1fr; }
}
