:root {
  --bg: #f7f7fb;
  --ink: #191825;
  --muted: #6f6c7d;
  --line: #e7e5ef;
  --accent: #6957f5;
  --accent-soft: #efedff;
  --surface: #ffffff;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(105, 87, 245, 0.12), transparent 36%),
    linear-gradient(180deg, #fbfaff 0%, var(--bg) 100%);
  line-height: 1.55;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 750;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 11px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

.lang-picker select {
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 13px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 48px;
  padding: 16px 0 56px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.lead {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 18px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(0.96); text-decoration: none; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { text-decoration: none; background: #fff; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}
.trust li { display: flex; align-items: center; gap: 7px; }
.trust li::before {
  color: var(--accent);
  font-weight: 800;
  content: "✓";
}

.hero-media { margin: 0; }
.browser-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 26px 60px rgba(38, 27, 89, 0.16);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f6f5fb;
}
.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dcd9e8;
}
.hero-media video {
  display: block;
  width: 100%;
  background: #fff;
}
.hero-media figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 64px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
}
.stat { text-align: center; }
.stat strong {
  display: block;
  color: var(--accent);
  font-size: 34px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat span { color: var(--muted); font-size: 14px; }

/* Sections */
section { margin-bottom: 72px; }
.section-title {
  margin: 0 0 10px;
  max-width: 22ch;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-lead { margin: 0 0 24px; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card, .price, .doc {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(34, 27, 73, 0.05);
}
.card { padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Showcase */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 36px;
  margin-top: 32px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}
.showcase.reverse .showcase-copy { order: 2; }
.showcase h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.showcase p { margin: 0; color: var(--muted); }
.showcase img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(38, 27, 89, 0.12);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.steps li { padding: 22px 20px; }
.step-num {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 14px;
  font-weight: 700;
}
.steps h3 { margin: 0 0 6px; font-size: 16px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.price { display: flex; flex-direction: column; padding: 24px; }
.price.featured {
  border-color: rgba(105, 87, 245, 0.35);
  background: linear-gradient(160deg, #f7f5ff, #fff 55%);
}
.price .tag {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #5a48d7;
  font-size: 11px;
  font-weight: 700;
}
.price-amount { margin: 0 0 6px; font-size: 32px; letter-spacing: -0.03em; }
.price .amount { margin: 0 0 16px; color: var(--muted); }
.price ul {
  flex: 1;
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--muted);
}
.price li { margin-bottom: 6px; }
.note { margin: 0; color: var(--muted); font-size: 13px; }

/* FAQ */
.faq { margin-top: 22px; }
.faq details {
  margin-bottom: 10px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}
.faq summary {
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  float: right;
  color: var(--accent);
  content: "+";
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* Final CTA */
.final-cta {
  padding: 48px 28px;
  border: 1px solid rgba(105, 87, 245, 0.3);
  border-radius: 24px;
  background: linear-gradient(150deg, #efedff, #fff 60%);
  text-align: center;
}
.final-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.03em;
}
.final-cta p { margin: 0 0 22px; color: var(--muted); }
.final-cta .note { margin-top: 14px; }

/* Legal pages */
.doc { padding: 28px; }
.doc h1 { margin-top: 0; letter-spacing: -0.03em; }
.doc h2 { margin-top: 28px; font-size: 18px; }
.doc p, .doc li { color: #3b3850; }
.meta { color: var(--muted); font-size: 13px; }

.footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: space-between;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase { grid-template-columns: 1fr; gap: 22px; }
  .showcase.reverse .showcase-copy { order: 0; }
}

@media (max-width: 760px) {
  .nav { flex-wrap: wrap; }
  .nav-links { gap: 14px; font-size: 13px; }
  .grid, .grid-4, .pricing, .steps, .stats { grid-template-columns: 1fr; }
  .stats { gap: 18px; }
  section { margin-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
