:root {
  --bg: #0b0e14;
  --surface: #141925;
  --surface-2: #1b2231;
  --border: rgba(148, 163, 184, 0.16);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --brand: #6366f1;
  --brand-strong: #4f46e5;
  --accent: #fbbf24;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(11, 14, 20, 0.72);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  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.05rem;
  text-decoration: none;
}
.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: block;
  object-fit: cover;
}
.header-right { display: flex; align-items: center; gap: 18px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.92rem; }
.nav-links a:hover { color: var(--text); }

/* Language switcher (flags) — kept outside .nav-links so it stays visible on mobile. */
.lang-switch { display: inline-flex; gap: 6px; }
.lang-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
}
.lang-opt:hover { color: var(--text); }
.lang-opt.active {
  color: var(--text);
  border-color: rgba(129, 140, 248, 0.55);
  background: var(--surface-2);
}
.lang-opt .flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  display: block;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.1s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.4);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-2); }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 760px; height: 460px;
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.28), transparent);
  pointer-events: none;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(129, 140, 248, 0.4);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 auto 18px;
  max-width: 12ch;
  letter-spacing: -0.02em;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #818cf8, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 32px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 0.85rem; color: var(--text-subtle); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 44px;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.step-num {
  width: 34px; height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature h3 { margin: 0 0 6px; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; margin: 0 auto; }
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.plan-pro { border-color: rgba(251, 191, 36, 0.45); background: linear-gradient(170deg, rgba(251, 191, 36, 0.1), var(--surface)); }
.plan h3 { margin: 0 0 4px; font-size: 1.2rem; }
.plan .price { font-size: 2rem; font-weight: 800; margin: 10px 0 4px; }
.plan .price small { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.plan .price-alt { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 18px; }
.plan ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { position: relative; padding-left: 22px; font-size: 0.95rem; color: var(--text); }
.plan li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 999px; background: var(--text-subtle);
}
.plan-pro li::before { background: var(--accent); }
.plan-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0b0e14;
  background: var(--accent);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--text-muted); margin: 10px 0 0; }

/* CTA band */
.cta-band { text-align: center; }
.cta-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 24px;
  padding: 48px 28px;
}
.cta-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 22px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-subtle);
  font-size: 0.88rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.site-footer a { color: var(--text-muted); text-decoration: none; margin-left: 18px; }
.site-footer a:hover { color: var(--text); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 0; }
.legal h1 { font-size: 2rem; margin-bottom: 6px; }
.legal .updated { color: var(--text-subtle); font-size: 0.88rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 8px; }
.legal p, .legal li { color: var(--text-muted); }
.legal a { color: #818cf8; }
.legal ul { padding-left: 20px; }

@media (max-width: 760px) {
  .steps, .features, .pricing { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  /* .lang-switch stays visible on mobile. */
}
