:root {
  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --accent: #10b981;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #131c31;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --border: #1e293b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 24px; font-size: 0.95rem; align-items: center; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
.lang { border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }

/* Hero */
.hero { padding: 96px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 640px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 28%, transparent), transparent 70%);
}
.hero-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: var(--shadow); }
.eyebrow {
  display: inline-block; margin: 28px 0 12px; padding: 6px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary);
  font-weight: 600; font-size: 0.85rem;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.03em; }
.gradient-text {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 14px;
  font-weight: 600; font-size: 1rem; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: linear-gradient(120deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.note { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }

/* Sections */
section { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 12px; letter-spacing: -0.02em; }
.section-title p { color: var(--muted); margin: 0 auto; max-width: 620px; font-size: 1.05rem; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem;
  background: color-mix(in srgb, var(--primary) 14%, transparent); margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); }

/* Pricing */
.pricing { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 760px; margin: 0 auto; }
.plan { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.plan.featured { border: 2px solid var(--primary); box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2); }
.plan h3 { margin: 0 0 4px; font-size: 1.3rem; }
.plan .tag { color: var(--muted); margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 10px; }

/* Privacy band */
.band {
  border-radius: 28px; padding: 48px; text-align: center; color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
}
.band h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.band p { margin: 0 auto; max-width: 640px; opacity: 0.92; }
.band a { color: #fff; text-decoration: underline; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 0 80px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 8px; letter-spacing: -0.02em; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { margin: 36px 0 10px; font-size: 1.3rem; }
.doc ul { padding-left: 22px; }
.doc .callout { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 640px) {
  .nav a:not(.lang) { display: none; }
  .hero { padding: 64px 0 48px; }
  section { padding: 56px 0; }
  .band { padding: 32px 22px; }
  .doc { padding: 40px 0 64px; }
}
