
:root {
  --bg: #f3f2f6;
  --surface: #ffffff;
  --text: #1c1b22;
  --muted: #6b6a76;
  --line: #e6e5ec;

  --dark: #1b1a21;
  --dark-text: rgba(255, 255, 255, .62);
  --dark-line: rgba(255, 255, 255, .14);

  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-soft: #ede9fe;
  --accent-text: #ffffff;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow: 0 1px 2px rgba(28, 27, 34, .04), 0 8px 24px rgba(28, 27, 34, .04);

  --header-h: 68px;
  --container: 990px;
  --gutter: 20px;
  --logo-h: 36px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

::selection { background: var(--accent); color: var(--accent-text); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--lg { padding: 15px 30px; font-size: 15px; }

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}
.logo img { height: var(--logo-h); width: auto; }

.header__actions { display: flex; align-items: center; gap: 10px; }

.hero {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--container);
  margin: calc(var(--header-h) + 12px) auto 0;
  padding: 68px 44px 76px;
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, #e9e3ff 0%, #f2edff 48%, #fbf7ff 100%);
}

.hero > .container { max-width: none; padding: 0; }
.hero__title {
  margin: 0 0 18px;
  max-width: 820px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.025em;
}
.hero__text {
  margin: 0 0 32px;
  max-width: 580px;
  font-size: 17px;
  color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.section { padding: 64px 0; }

.section__title { margin: 0 0 10px; }
.section__lead { margin: 0 0 32px; max-width: 640px; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: card;
}
.card {
  margin: 0;
  padding: 28px 26px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card::before {
  counter-increment: card;
  content: counter(card, decimal-leading-zero);
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent);
}
.card h3 { margin: 12px 0 8px; font-size: 18px; line-height: 1.3; font-weight: 700; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }

.apps { padding: 0 0 8px; }
.apps__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 36px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.apps__text { flex: 1 1 300px; }
.apps h2 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.02em;
}
.apps p { margin: 0; color: var(--muted); }
.apps__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; flex: 0 1 auto; }
.apps__note { flex: 1 0 100%; font-size: 13px; }

.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }

.section__title,
.prose h2 {
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.02em;
}
.prose h2 { margin: 48px 0 14px; }
.prose h3 { margin: 36px 0 10px; font-size: 19px; line-height: 1.3; font-weight: 700; }
.prose p { margin: 0 0 16px; }
.prose a:not(.btn) { color: var(--accent); }

.prose ul,
.prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--accent); }

.steps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; margin-bottom: 12px; padding-left: 42px; }
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.chips li {
  margin: 0;
  padding: 9px 18px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  font-size: 14px;
  line-height: 1.3;
}

.prose blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.prose figure { margin: 28px 0; }
.prose figure a { display: block; text-decoration: none; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.prose img { border-radius: var(--radius); }

.table-wrap {
  margin: 0 0 16px;
  overflow-x: auto;
  background: var(--surface);
  border-radius: var(--radius);
}
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th,
.prose td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--accent);
  background: var(--accent-soft);
  white-space: nowrap;
}
.prose tbody tr:last-child td { border-bottom: 0; }

.footer {
  margin-top: 24px;
  padding: 36px 0 28px;
  background: var(--dark);
  color: var(--dark-text);
  font-size: 14px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 22px; }
.footer__links a {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.footer__links a:hover { color: var(--accent); }

.footer__note { margin: 0 0 8px; }

.footer__copy {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--dark-line);
  font-size: 13px;
  opacity: .75;
}

@media (max-width: 1024px), (pointer: coarse) {
  .btn { min-height: 48px; }
  .logo { padding: 10px 0; }
  .footer__links a { padding: 13px 0; }
}

@media (max-width: 900px) {
  .prose figure { overflow-x: auto; }
  .prose figure img { width: 820px; max-width: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .apps__inner { padding: 30px 28px; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; --logo-h: 28px; --radius-lg: 16px; }
  .hero { padding: 44px 22px 48px; }
  .hero__text { font-size: 16px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .header__actions .btn--ghost { display: none; }
  .section { padding: 44px 0; }
  .cards { grid-template-columns: 1fr; }
  .apps__inner { padding: 26px 22px; }
  .apps__actions .btn { flex: 1 1 100%; }
  .prose h2 { margin-top: 36px; }
}
