/* ============================================================
   QuaPN — премиальная тёмная тема.
   Один акцент (electric cyan), холодные нейтрали, Golos Text
   (variable, OFL, self-hosted), слоистые поверхности, мягкие
   ауры, аккуратная типографика. Без эмодзи в интерфейсе.
   ============================================================ */

@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-400-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-400-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #06080d;
  --bg-soft: #0a0e16;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #e9eff8;
  --ink-dim: #c3cde0;
  --muted: #93a1b6;
  --accent: #4cd7ff;
  --accent-deep: #0ea5e9;
  --ok: #43e0a0;
  --radius: 18px;
  --radius-lg: 26px;
  --wrap: 1120px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --font: "Golos Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(76, 215, 255, 0.14), transparent 60%),
    radial-gradient(800px 500px at 90% 0%, rgba(14, 165, 233, 0.10), transparent 55%),
    radial-gradient(700px 700px at 50% 110%, rgba(30, 64, 175, 0.15), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

::selection { background: rgba(76, 215, 255, 0.25); color: #fff; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #9de9ff; }

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

.icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }

/* ---------------- header ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: linear-gradient(to bottom, rgba(6, 8, 13, 0.86), rgba(6, 8, 13, 0.62));
  border-bottom: 1px solid var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(76, 215, 255, 0.22), rgba(14, 165, 233, 0.06));
  border: 1px solid rgba(76, 215, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 24px rgba(76, 215, 255, 0.18);
  color: var(--accent);
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 12px;
  font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid var(--line-strong);
  color: var(--ink); background: var(--surface);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--surface-2); color: var(--ink); }
.btn-primary {
  background: linear-gradient(180deg, #63dfff, #23b6e8);
  border-color: rgba(120, 228, 255, 0.7);
  color: #05202c;
  box-shadow: 0 12px 30px -10px rgba(76, 215, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover { background: linear-gradient(180deg, #7ce6ff, #35c2ef); color: #04202c; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: 96px 0 84px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-dim); font-size: 13.5px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(67, 224, 160, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(67, 224, 160, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(67, 224, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 224, 160, 0); }
}
h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 800;
  margin: 22px 0 20px;
}
h1 em {
  font-style: italic;
  background: linear-gradient(100deg, #7de6ff 10%, #38bdf8 55%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}
.lead { color: var(--muted); font-size: 19px; max-width: 56ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.trust {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-top: 30px; color: var(--muted); font-size: 14px;
}
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust .icon { width: 16px; height: 16px; color: var(--accent); }

.hero-visual { position: relative; min-height: 360px; }
.orb {
  position: absolute; inset: 8% 4% 12% 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(76, 215, 255, 0.32), rgba(30, 64, 175, 0.12) 45%, transparent 70%);
  filter: blur(30px);
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(0, -14px, 0) scale(1.03); } }
.panel {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(18, 26, 38, 0.9), rgba(9, 13, 20, 0.85));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 26px;
  backdrop-filter: blur(10px);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-title { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.badge-ok { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ok); }
.panel-num { font-size: 58px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin: 14px 0 4px; }
.panel-sub { color: var(--muted); font-size: 14.5px; }
.rows { margin-top: 20px; border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.row:last-child { border-bottom: 0; }
.row b { font-weight: 600; }
.row .tag { color: var(--accent); font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 44px; margin-top: 14px; }
.mini-bars i { flex: 1; background: linear-gradient(to top, rgba(76, 215, 255, 0.12), rgba(76, 215, 255, 0.65)); border-radius: 3px 3px 0 0; animation: bar 3.2s ease-in-out infinite; }
@keyframes bar { 0%, 100% { transform: scaleY(0.72); } 50% { transform: scaleY(1); } }

/* ---------------- section scaffolding ---------------- */
section { padding: 84px 0; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.kicker { color: var(--accent); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; margin: 12px 0 14px; font-weight: 800; }
.sec-head p { color: var(--muted); }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  padding: 26px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); }
.card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(320px 160px at 20% 0%, rgba(76, 215, 255, 0.10), transparent 70%);
  opacity: 0; transition: opacity 0.25s ease; pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card .ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(76, 215, 255, 0.08);
  border: 1px solid rgba(76, 215, 255, 0.25);
  color: var(--accent);
  margin-bottom: 18px;
}
.card h3 { font-size: 18px; letter-spacing: -0.015em; margin-bottom: 8px; font-weight: 700; }
.card p { color: var(--muted); font-size: 15px; }
.card.wide { grid-column: span 2; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  display: inline-block; margin-bottom: 14px; letter-spacing: 0.1em;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.price {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  padding: 30px 26px;
  display: flex; flex-direction: column;
}
.price.featured {
  border-color: rgba(76, 215, 255, 0.45);
  background: linear-gradient(180deg, rgba(76, 215, 255, 0.09), rgba(76, 215, 255, 0.02));
  box-shadow: 0 30px 70px -35px rgba(76, 215, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-8px);
}
.price .plan { color: var(--muted); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.price .amount { font-size: 46px; font-weight: 800; letter-spacing: -0.04em; margin: 12px 0 2px; }
.price .amount small { font-size: 18px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price .per { color: var(--muted); font-size: 14px; }
.price ul { list-style: none; margin: 22px 0 26px; display: grid; gap: 10px; }
.price li { display: flex; gap: 10px; color: var(--ink-dim); font-size: 15px; }
.price li .icon { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 2px; }
.price .btn { margin-top: auto; justify-content: center; }
.flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #04202c; background: linear-gradient(180deg, #7ce6ff, #35c2ef); white-space: nowrap; }

.faq { display: grid; gap: 10px; max-width: 820px; }
details {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface);
  padding: 0 20px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
details:hover { border-color: var(--line-strong); }
details[open] { background: var(--surface-2); border-color: rgba(76, 215, 255, 0.3); }
summary {
  cursor: pointer; list-style: none;
  padding: 18px 0; font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1;
  transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding: 0 0 18px; font-size: 15.5px; max-width: 70ch; }

.band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(76, 215, 255, 0.3);
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(76, 215, 255, 0.18), transparent 60%),
    radial-gradient(600px 300px at 90% 100%, rgba(129, 140, 248, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  padding: 54px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.band h2 { margin: 0 0 8px; }
.band p { color: var(--muted); margin: 0; }

.footer { border-top: 1px solid var(--line); padding: 44px 0 34px; margin-top: 40px; }
.foot-grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot-brand p { color: var(--muted); font-size: 14.5px; max-width: 34ch; margin-top: 10px; }
.foot-links { display: grid; gap: 8px; font-size: 14.5px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-legal { margin-top: 30px; color: var(--muted); font-size: 13.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------------- legal/doc pages ---------------- */
.doc { max-width: 860px; margin: 0 auto; padding: 64px 0 40px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); margin: 8px 0 6px; }
.doc .meta { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.doc h2 { font-size: 22px; margin: 34px 0 10px; letter-spacing: -0.01em; }
.doc h3 { font-size: 17px; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--ink-dim); font-size: 15.5px; }
.doc p { margin: 10px 0; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 5px 0; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc code { font-family: var(--mono); font-size: 0.92em; background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 6px; }
.doc blockquote { border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; color: var(--muted); margin: 16px 0; font-size: 15px; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-reveal].on { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .price.featured { transform: none; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding: 64px 0 56px; }
  .bento { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .band { padding: 36px 24px; }
  section { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
