:root {
  --bg: #0b0d12;
  --bg-2: #12151d;
  --line: #222736;
  --text: #e8eaf0;
  --muted: #9aa1b2;
  --accent: #8ab4ff;
  --accent-2: #b59cff;
  --radius: 16px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 13, 18, 0.8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 18px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand:hover { text-decoration: none; }
nav a { color: var(--muted); margin-left: 22px; font-size: 15px; }
nav a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--text); color: #0b0d12; }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: #3a4256; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }

.hero { padding: 96px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 640px; z-index: -1;
  background: radial-gradient(closest-side, rgba(138, 180, 255, 0.18), transparent),
              radial-gradient(closest-side at 70% 40%, rgba(181, 156, 255, 0.14), transparent);
}
.hero img.app-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.02em; margin: 28px 0 16px; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 16px; color: var(--muted); font-size: 14px; }

section { padding: 72px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 32px; letter-spacing: -0.01em; margin: 0 0 12px; text-align: center; }
section p.sub { color: var(--muted); text-align: center; max-width: 620px; margin: 0 auto 40px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ico { font-size: 22px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #1a1f2b; margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.pricing { display: grid; place-items: center; }
.price-card { width: 100%; max-width: 420px; text-align: center; padding: 36px 32px; }
.price { font-size: 56px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 0; }
.price small { font-size: 18px; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 28px; text-align: left; }
.price-card li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.price-card li::before { content: "✓"; color: var(--accent); margin-right: 10px; font-weight: 700; }
.price-card .btn { width: 100%; }

.req { max-width: 720px; margin: 0 auto; }
.req table { width: 100%; border-collapse: collapse; }
.req td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.req td:first-child { color: var(--muted); width: 38%; }

details { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 0 auto 10px; max-width: 760px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

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

/* Юридичні сторінки */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: 36px; letter-spacing: -0.01em; margin-bottom: 4px; }
.doc .updated { color: var(--muted); margin-top: 0; }
.doc h2 { font-size: 20px; margin-top: 36px; }
.doc p, .doc li { color: #c9cdd8; }

/* Сторінка «Дякуємо» */
.thanks { max-width: 640px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.keybox {
  margin: 24px 0; padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2);
  font: 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; text-align: left;
}
.muted { color: var(--muted); }

@media (max-width: 640px) {
  nav a:not(.btn) { display: none; }
  .hero { padding-top: 64px; }
}
