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

:root {
  --c-bg: #ffffff;
  --c-bg-alt: #f8f9fb;
  --c-text: #1a1a2e;
  --c-text-secondary: #64748b;
  --c-primary: #6c5ce7;
  --c-primary-light: #a29bfe;
  --c-primary-bg: #f0edff;
  --c-border: #e2e8f0;
  --c-card-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --radius: 12px;
  --max-w: 720px;
  --max-w-wide: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Layout helpers ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 24px; }

/* ===== Navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.navbar .container--wide {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.navbar__logo {
  font-size: 1.25rem; font-weight: 700; color: var(--c-text);
  display: flex; align-items: center; gap: 8px;
}
.navbar__logo:hover { text-decoration: none; }
.navbar__links { display: flex; gap: 24px; align-items: center; }
.navbar__links a { color: var(--c-text-secondary); font-size: .9rem; font-weight: 500; }
.navbar__links a:hover { color: var(--c-primary); text-decoration: none; }

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 80px 24px 64px;
  background: linear-gradient(180deg, var(--c-primary-bg) 0%, var(--c-bg) 100%);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--c-primary); }
.hero p {
  font-size: 1.15rem;
  color: var(--c-text-secondary);
  max-width: 520px;
  margin: 0 auto 32px;
}
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem; font-weight: 600;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { box-shadow: 0 4px 14px rgba(108,92,231,.35); }
.btn--outline {
  background: transparent; color: var(--c-text);
  border: 1.5px solid var(--c-border);
}
.btn--outline:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ===== Features ===== */
.features { padding: 72px 24px; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--c-card-shadow);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.feature-card__icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--c-text-secondary); font-size: .95rem; }

/* ===== Privacy section (landing) ===== */
.privacy-section {
  padding: 72px 24px;
  background: var(--c-bg-alt);
}
.privacy-section .container { text-align: center; }
.privacy-section h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 12px; }
.privacy-section > .container > p { color: var(--c-text-secondary); margin-bottom: 40px; }
.privacy-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  text-align: left;
}
.privacy-point {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--c-bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--c-border);
}
.privacy-point__icon { font-size: 1.5rem; flex-shrink: 0; }
.privacy-point h4 { font-size: .95rem; font-weight: 600; margin-bottom: 4px; }
.privacy-point p { color: var(--c-text-secondary); font-size: .85rem; }

/* ===== Pricing ===== */
.pricing { padding: 72px 24px; text-align: center; }
.pricing h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 12px; }
.pricing > .container > p { color: var(--c-text-secondary); margin-bottom: 40px; }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}
.price-card {
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: left;
  position: relative;
}
.price-card--pro {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 1px var(--c-primary), 0 8px 24px rgba(108,92,231,.12);
}
.price-card__badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--c-primary); color: #fff;
  font-size: .75rem; font-weight: 700;
  padding: 4px 12px; border-radius: 50px;
}
.price-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.price-card__price {
  font-size: 2rem; font-weight: 800; margin-bottom: 4px;
}
.price-card__price span { font-size: .9rem; font-weight: 500; color: var(--c-text-secondary); }
.price-card__desc { color: var(--c-text-secondary); font-size: .9rem; margin-bottom: 20px; }
.price-card ul {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.price-card li {
  font-size: .9rem; padding-left: 24px;
  position: relative;
}
.price-card li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--c-primary); font-weight: 700;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--c-border);
  text-align: center;
  color: var(--c-text-secondary);
  font-size: .85rem;
}
.footer__links { display: flex; gap: 24px; justify-content: center; margin-bottom: 12px; }
.footer__links a { color: var(--c-text-secondary); }
.footer__links a:hover { color: var(--c-primary); }

/* ===== Legal pages ===== */
.legal-page { padding: 48px 24px 80px; }
.legal-page h1 {
  font-size: 2rem; font-weight: 800;
  margin-bottom: 8px;
}
.legal-page .legal-date {
  color: var(--c-text-secondary); font-size: .9rem;
  margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 1.25rem; font-weight: 700;
  margin-top: 40px; margin-bottom: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}
.legal-page h2:first-of-type { border-top: none; padding-top: 0; }
.legal-page p { margin-bottom: 12px; color: var(--c-text-secondary); }
.legal-page ul, .legal-page ol {
  margin-bottom: 12px; padding-left: 24px;
  color: var(--c-text-secondary);
}
.legal-page li { margin-bottom: 6px; }
.legal-page strong { color: var(--c-text); }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero { padding: 56px 20px 48px; }
  .features, .privacy-section, .pricing { padding: 48px 20px; }
  .navbar__links { gap: 16px; }
}
