:root {
  --bg: #ffffff;
  --bg-alt: #f5f5fa;
  --card: #ffffff;
  --border: #e6e6ee;
  --text: #15151c;
  --muted: #5d5d6b;
  --accent: #3a42c8;
  --accent-2: #5b63f0;
  --accent-soft: #eeeffe;
  --deep: #1a1d66;
  --frame: #15161c;
  --shadow-lg: 0 30px 60px -20px rgba(26, 29, 102, .35), 0 12px 24px -12px rgba(26, 29, 102, .2);
  --shadow: 0 1px 2px rgba(20, 22, 60, .05), 0 6px 20px rgba(20, 22, 60, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f14;
    --bg-alt: #16161d;
    --card: #1c1c24;
    --border: #2a2a34;
    --text: #f0f0f4;
    --muted: #a3a3b0;
    --accent: #8b93ff;
    --accent-2: #a6acff;
    --accent-soft: #20224a;
    --frame: #000;
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
b, strong { font-weight: 600; color: var(--text); }
h1, h2, h3 { font-weight: 700; letter-spacing: -.025em; color: var(--text); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap { padding: 0 18px; } }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.8) blur(14px);
  -webkit-backdrop-filter: saturate(1.8) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
header .wrap { display: flex; align-items: center; height: 64px; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: var(--text); text-decoration: none; margin-right: auto; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
nav { display: flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 500; white-space: nowrap; }
nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; transition: color .15s, background .15s; }
nav a:hover { color: var(--text); background: var(--bg-alt); }
nav a[aria-current] { color: var(--text); }
nav a[lang] { margin-left: 6px; font-size: 13px; font-weight: 600; padding: 6px 10px; border: 1px solid var(--border); }
@media (max-width: 520px) {
  nav { font-size: 14px; }
  nav a { padding: 8px 8px; }
  .brand span { display: none; }
}

/* ---------- buttons ---------- */
.buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 14px;
  background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(20, 22, 60, .45); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--border); }
.btn.ghost:hover { background: var(--bg-alt); box-shadow: inset 0 0 0 1.5px var(--border); }
@media (max-width: 520px) { .buttons .btn { flex: 1 1 100%; } }

/* ---------- phone frame ---------- */
.phone {
  position: relative; width: 280px; aspect-ratio: 960 / 1920;
  padding: 10px; border-radius: 44px; background: var(--frame);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
  flex: none;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; }
.phone::before { /* camera */
  content: ""; position: absolute; top: 20px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: #2a2b33; z-index: 1; display: none;
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; top: -380px; right: -260px; width: 1000px; height: 1000px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent);
}
.hero .wrap { display: grid; grid-template-columns: 1fr 520px; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-size: 14px; font-weight: 600;
}
.pill img { width: 26px; height: 26px; border-radius: 7px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); margin: 0 0 32px; max-width: 540px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); font-weight: 500; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.hero-art { position: relative; height: 660px; }
.hero-art .phone { position: absolute; }
.hero-art .phone.front { right: 210px; top: 10px; z-index: 2; }
.hero-art .phone.back { right: 0; top: 90px; transform: rotate(5deg); opacity: .97; }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-text { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .buttons, .checks { justify-content: center; }
  .hero-art { height: 520px; width: 440px; max-width: 100%; margin: 0 auto; }
  .hero-art .phone { width: 230px; }
  .hero-art .phone.front { right: auto; left: 0; }
}
@media (max-width: 520px) {
  .hero { padding-top: 44px; }
  .hero-art { height: 470px; width: 330px; }
  .hero-art .phone { width: 196px; border-radius: 34px; padding: 8px; }
  .hero-art .phone img { border-radius: 27px; }
  .hero-art .phone.back { top: 60px; }
}

/* ---------- showcase ---------- */
.section { padding: 112px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 72px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 0 0 16px; }
.section-head p { font-size: 18px; color: var(--muted); margin: 0; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature .art { display: flex; justify-content: center; position: relative; }
.feature .art::before {
  content: ""; position: absolute; inset: 8% 10%; border-radius: 40px; z-index: 0;
  background: linear-gradient(140deg, var(--accent-soft), color-mix(in srgb, var(--accent-2) 18%, var(--bg-alt)));
}
.feature .phone { z-index: 1; width: 270px; }
.feature:nth-child(even) .art { order: 2; }
.feature h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; margin: 0 0 14px; }
.feature p { font-size: 18px; color: var(--muted); margin: 0 0 20px; }
.feature ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.feature li svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 1px; }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.num svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature + .feature { margin-top: 80px; }
  .feature:nth-child(even) .art { order: 0; }
  .feature .phone { width: 230px; }
}

/* ---------- extras grid ---------- */
.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.extra { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 26px 24px; }
.extra .num { margin-bottom: 16px; }
.extra h3 { font-size: 17px; letter-spacing: -.01em; margin: 0 0 6px; }
.extra p { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 980px) { .extras { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .extras { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 32px; padding: 64px 48px; text-align: center; color: #fff;
  background: radial-gradient(600px 300px at 80% 0%, rgba(255, 255, 255, .18), transparent 70%), linear-gradient(135deg, #4048d8, var(--deep));
}
.cta img { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.cta h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 0 0 12px; }
.cta p { color: rgba(255, 255, 255, .8); font-size: 18px; margin: 0 0 32px; }
.cta .btn { background: #fff; color: #1a1d66; }
@media (max-width: 520px) { .cta { padding: 48px 22px; border-radius: 24px; } }

/* ---------- text pages ---------- */
main.doc { padding: 72px 0 112px; }
main.doc .wrap { max-width: 760px; }
main.doc h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 16px; }
main.doc h2 { font-size: 22px; letter-spacing: -.02em; margin: 48px 0 12px; }
main.doc .lead { font-size: 19px; color: var(--muted); margin: 0 0 40px; }
main.doc p, main.doc li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
main.doc ul { padding-left: 22px; }
main.doc li { margin: 8px 0; }
main.doc li::marker { color: var(--accent); }
.updated { display: inline-block; color: var(--accent); font-size: 13px; font-weight: 600; background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; margin: 0 0 20px; }

details { border-bottom: 1px solid var(--border); }
details:first-of-type { border-top: 1px solid var(--border); }
summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 22px 48px 22px 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background:
    linear-gradient(var(--muted), var(--muted)) center / 12px 2px no-repeat,
    linear-gradient(var(--muted), var(--muted)) center / 2px 12px no-repeat;
  transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
summary:hover { color: var(--accent); }
details > p, details > ul, details > ol { margin: -6px 0 0; padding: 0 48px 24px 0; color: var(--muted) !important; }

.contact {
  margin-top: 64px; padding: 40px; border-radius: 28px; color: #fff;
  background: radial-gradient(500px 260px at 90% 0%, rgba(255, 255, 255, .16), transparent 70%), linear-gradient(135deg, #4048d8, var(--deep));
}
.contact h2 { color: #fff; margin: 0 0 10px !important; font-size: 26px !important; }
.contact p { margin: 0 0 24px; color: rgba(255, 255, 255, .82) !important; }
.contact .btn { background: #fff; color: #1a1d66; white-space: normal; height: auto; min-height: 52px; word-break: break-all; }
@media (max-width: 520px) { .contact { padding: 28px 22px; border-radius: 22px; } main.doc { padding-top: 48px; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 10px 24px; flex-wrap: wrap; align-items: center; }
footer .copy { margin-right: auto; display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
footer .copy img { width: 24px; height: 24px; border-radius: 7px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
