:root {
  --bg: #0b0714;
  --bg-2: #120a22;
  --text: #f1ecfb;
  --muted: #a99bc4;
  --faint: #6f6290;
  --accent: #a77bff;
  --accent-2: #6a3df0;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --radius: 28px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* фон: размытые фиолетовые пятна + сетка */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg::before, .bg::after, .bg span {
  content: ""; position: absolute; border-radius: 50%; filter: blur(110px); opacity: .55;
}
.bg::before { width: 620px; height: 620px; background: #5b2be0; top: -220px; left: -160px; }
.bg::after  { width: 520px; height: 520px; background: #a03cc9; top: 30%; right: -200px; opacity: .35; }
.bg span    { width: 460px; height: 460px; background: #2c1a8a; bottom: -200px; left: 25%; opacity: .5; }
.grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 24px; }

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 60px -30px rgba(0,0,0,.6);
}

/* шапка */
header.top { position: sticky; top: 16px; z-index: 10; margin-top: 16px; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 12px 22px; border-radius: 999px;
}
.brand { font-weight: 800; letter-spacing: .18em; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.brand i {
  width: 10px; height: 10px; border-radius: 3px; display: block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px var(--accent);
}
.nav ul { list-style: none; display: flex; gap: 6px; }
.nav ul a { padding: 9px 16px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; transition: .2s; }
.nav ul a:hover { color: var(--text); background: var(--glass-strong); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, #b48cff, #6a3df0);
  color: #fff; box-shadow: 0 10px 30px -8px rgba(122,72,255,.7), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(122,72,255,.85); }
.btn-ghost { background: var(--glass-strong); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* hero */
.hero { padding-block: 120px 90px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted);
}
.eyebrow b { width: 8px; height: 8px; border-radius: 50%; background: #7dffb2; box-shadow: 0 0 12px #7dffb2; }
h1 {
  font-size: clamp(44px, 8.4vw, 112px); line-height: .95; letter-spacing: -.045em; font-weight: 800;
  margin: 28px 0 28px; max-width: 12ch;
}
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #d8c4ff 0%, #a77bff 45%, #6a3df0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 90px; overflow: hidden; }
.stats div { padding: 28px 30px; border-right: 1px solid var(--border); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-size: 34px; letter-spacing: -.03em; font-weight: 800; }
.stats span { color: var(--muted); font-size: 14px; }

section { padding-block: 70px; scroll-margin-top: 40px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -.035em; line-height: 1; font-weight: 800; }
.sec-head p { color: var(--muted); max-width: 380px; }
.num { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; color: var(--faint); letter-spacing: .1em; }

/* приложения */
.apps { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.app-main { padding: 40px; position: relative; overflow: hidden; }
.app-main::after {
  content: ""; position: absolute; width: 360px; height: 360px; right: -120px; bottom: -160px;
  background: radial-gradient(circle, rgba(47,143,91,.45), transparent 65%); filter: blur(20px);
}
.app-top { display: flex; align-items: center; gap: 18px; }
.app-top img { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 12px 30px -10px rgba(47,143,91,.7); }
.app-top h3 { font-size: 32px; letter-spacing: -.03em; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; margin-right: 6px; }
.tag-green { background: rgba(125,255,178,.12); color: #8dffbd; border: 1px solid rgba(125,255,178,.25); }
.tag-violet { background: rgba(167,123,255,.14); color: #c9b0ff; border: 1px solid rgba(167,123,255,.3); }
.app-main p.desc { color: var(--muted); font-size: 18px; margin: 24px 0 26px; max-width: 480px; }
.features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 32px; position: relative; z-index: 1; }
.features li { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.features li small { display: block; color: var(--muted); font-weight: 500; margin-top: 2px; }
.app-main .btn { position: relative; z-index: 1; }

.soon { display: grid; gap: 20px; grid-template-rows: 1fr 1fr; }
.soon .glass { padding: 30px; display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; }
.soon .ph {
  width: 56px; height: 56px; border-radius: 16px; border: 1px dashed var(--border-strong);
  display: grid; place-items: center; color: var(--faint); font-size: 22px;
}
.soon h4 { font-size: 22px; letter-spacing: -.02em; margin-top: 18px; }
.soon p { color: var(--muted); font-size: 14px; }

/* принципы */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principles .glass { padding: 32px; }
.principles h3 { font-size: 22px; letter-spacing: -.02em; margin: 40px 0 10px; }
.principles p { color: var(--muted); font-size: 15px; }

.cta { padding: 64px; text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(122,72,255,.45), transparent 60%);
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.035em; line-height: 1.05; margin-bottom: 16px; }
.cta p { color: var(--muted); margin-bottom: 30px; }

footer { padding-block: 60px 40px; color: var(--faint); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 28px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a:hover { color: var(--text); }

/* юридические страницы */
.doc { padding-block: 80px 40px; }
.doc .paper { padding: 56px; }
.doc h2 { scroll-margin-top: 110px; }
.doc h1 { font-size: clamp(36px, 6vw, 64px); margin: 18px 0 10px; max-width: none; }
.doc .updated { color: var(--faint); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 22px; letter-spacing: -.02em; margin: 40px 0 12px; }
.doc p, .doc li { color: #cfc5e4; font-size: 16px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin-top: 10px; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--accent); }

@media (max-width: 900px) {
  .apps, .principles { grid-template-columns: 1fr; }
  .soon { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .nav ul { display: none; }
  .hero { padding-block: 80px 60px; }
  .stats { grid-template-columns: 1fr; margin-top: 60px; }
  .stats div { border-right: 0; border-bottom: 1px solid var(--border); }
  .stats div:last-child { border-bottom: 0; }
  .app-main, .cta, .doc .paper { padding: 28px 22px; }
  .features, .soon { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

