:root {
  --bg: #fafafa;
  --card: #ffffff;
  --ink: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --soft: #f4f4f5;
  --accent: #7c3aed;
  --accent-soft: #f3e8ff;
  --new: #7c3aed;
  --new-bg: #f3e8ff;
  --better: #2563eb;
  --better-bg: #dbeafe;
  --fix: #059669;
  --fix-bg: #d1fae5;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 40px -12px rgb(24 24 27 / 0.18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0c0c0e;
    --card: #17171a;
    --ink: #f4f4f5;
    --muted: #a1a1aa;
    --line: #27272a;
    --soft: #1f1f23;
    --accent: #a78bfa;
    --accent-soft: #2e1f4d;
    --new: #c4b5fd;
    --new-bg: #2e1f4d;
    --better: #93c5fd;
    --better-bg: #172554;
    --fix: #6ee7b7;
    --fix-bg: #064e3b;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 40px -12px rgb(0 0 0 / 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
i[data-icon] { display: inline-grid; place-items: center; }
i[data-icon] svg { display: block; }

main, .top, footer { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* шапка */
.top {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; color: var(--muted); }
.top nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .top nav a:not(.btn) { display: none; } }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: 16px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 24px -10px rgb(24 24 27 / 0.5);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn small { font-weight: 500; opacity: 0.6; font-size: 14px; }
.btn-sm { height: 38px; padding: 0 14px; border-radius: 12px; font-size: 14px; color: var(--bg) !important; }
.btn-lg { height: 68px; padding: 0 34px; border-radius: 20px; font-size: 19px; gap: 12px; }
.btn-lg i svg { width: 24px; height: 24px; }
@media (max-width: 640px) { .btn-lg { width: 100%; justify-content: center; } }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }

/* первый экран */
.hero { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 40px 0 72px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 0.9fr 1.1fr; padding: 72px 0 96px; } }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600;
}
h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; letter-spacing: -0.035em; margin: 18px 0 18px; font-weight: 800; }
.hand { font-family: Caveat, cursive; font-weight: 600; color: var(--accent); font-size: 1.15em; letter-spacing: 0; white-space: nowrap; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 33em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.shot { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transform: rotate(0.6deg); background: var(--card); }

/* возможности */
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 28px; font-weight: 800; }
.features { padding: 24px 0 56px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.grid article { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.grid article i { width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.grid h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.grid p { margin: 0; color: var(--muted); font-size: 15px; }

/* слайдер возможностей */
.tour { padding: 16px 0 72px; }
.tour-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 18px; padding: 2px 16px; }
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tabs button {
  flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--soft); color: var(--muted); font: inherit; font-size: 15px; font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.tour-tabs button[aria-selected='true'] { background: var(--ink); color: var(--bg); }
.tour-frame { position: relative; }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card);
}
.slides::-webkit-scrollbar { display: none; }
.slides figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 1310 / 820; }
.slides img, .slides video { display: block; width: 100%; height: 100%; object-fit: cover; }
.arrow {
  position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: color-mix(in srgb, var(--card) 88%, transparent); color: var(--ink);
  box-shadow: 0 6px 20px -6px rgb(0 0 0 / 0.35); backdrop-filter: blur(8px);
}
.arrow.prev { left: 14px; }
.arrow.next { right: 14px; }
@media (max-width: 640px) { .arrow { display: none; } }
.tour-caption { max-width: 640px; margin: 20px auto 0; text-align: center; }
.tour-caption h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.02em; }
.tour-caption p { margin: 0; color: var(--muted); }

/* что нового */
.changes { padding: 16px 0 72px; }
.changes-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.page { padding-top: 32px; }
.page-title { margin-top: 0; }
.timeline { display: grid; gap: 18px; }
.release {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px;
}
.release.latest { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin-bottom: 18px; }
.ver { font-weight: 800; font-size: 15px; padding: 4px 10px; border-radius: 10px; background: var(--soft); font-variant-numeric: tabular-nums; }
.latest .ver { background: var(--accent); color: #fff; }
.release h3 { margin: 0; font-size: 22px; letter-spacing: -0.02em; flex: 1 1 260px; }
.date { color: var(--muted); font-size: 14px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 10px; }
.item { display: flex; gap: 14px; padding: 14px; border-radius: 16px; background: var(--soft); }
.item i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.item i svg { display: block; }
.item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.item b { font-size: 15.5px; }
.item p { margin: 0; color: var(--muted); font-size: 14.5px; }
.kind { flex: none; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 7px; }
.k-new i, .k-new .kind { background: var(--new-bg); color: var(--new); }
.k-better i, .k-better .kind { background: var(--better-bg); color: var(--better); }
.k-fix i, .k-fix .kind { background: var(--fix-bg); color: var(--fix); }
.more { justify-self: center; height: 44px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--line); background: none; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }

/* установка */
.install { padding: 16px 0 40px; }
.final {
  margin: 0 0 88px; padding: 56px 24px; text-align: center; border-radius: 32px;
  background: radial-gradient(120% 90% at 50% 0%, var(--accent-soft), transparent 70%), var(--card); border: 1px solid var(--line);
}
.final img { margin: 0 auto 18px; border-radius: 20px; box-shadow: var(--shadow); }
.final h2 { margin: 0 0 8px; }
.final > p { margin: 0 0 28px; color: var(--muted); font-size: 17px; }
.final-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.final .note { margin: 18px 0 0; }
.install ol { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.install li { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.install li span { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 800; }
.install li p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

footer { display: flex; justify-content: space-between; padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

/* приглашение: код для ручного ввода */
.code { display: grid; justify-items: center; gap: 8px; margin-top: 28px; }
.code button {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 16px; cursor: pointer;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--card); color: var(--ink);
}
.code code { font: 700 20px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.06em; }
.code .note { margin: 0; }
main[hidden] { display: none; }
