@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --w-rgb: 255, 255, 255;
  --text-hi: #fff;
  --bg: #060a14;
  --glass: rgba(var(--w-rgb), 0.05);
  --glass-2: rgba(var(--w-rgb), 0.08);
  --line: rgba(var(--w-rgb), 0.1);
  --line-2: rgba(var(--w-rgb), 0.16);
  --text: #f2f2f4;
  --dim: rgba(var(--w-rgb), 0.66);
  --accent: #4486ff;
  --accent-hi: #7fb0ff;
  --accent-soft: rgba(68, 134, 255, 0.16);
  --fill: linear-gradient(145deg, #2563eb, #1d4ed8);
  --ok: #3ddc84;
  --warn: #f0c27a;
  --danger: #f06d6d;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1.5px 1.5px at 24px 36px, rgba(var(--w-rgb), 0.6), transparent 100%) 0 0 / 230px 230px fixed,
    radial-gradient(1px 1px at 118px 78px, rgba(var(--w-rgb), 0.4), transparent 100%) 0 0 / 230px 230px fixed,
    radial-gradient(1.5px 1.5px at 76px 148px, rgba(var(--w-rgb), 0.5), transparent 100%) 0 0 / 230px 230px fixed,
    radial-gradient(1px 1px at 162px 24px, rgba(var(--w-rgb), 0.35), transparent 100%) 0 0 / 230px 230px fixed,
    radial-gradient(900px 700px at 92% 10%, rgba(68, 134, 255, 0.16), transparent 65%) fixed,
    radial-gradient(1100px 760px at 6% 96%, rgba(13, 30, 74, 0.5), transparent 70%) fixed,
    linear-gradient(160deg, #08101f 0%, #060a14 46%, #04070e 100%) fixed;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-hi); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  background: rgba(6, 10, 20, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-hi);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.2px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--fill);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}
.brand-mark svg { display: block; }
.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav a {
  color: var(--dim);
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover, .nav a.active { color: var(--text-hi); text-decoration: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--r-sm);
  padding: 10px 18px;
  font: 600 14px var(--font);
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--fill);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.7);
}
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(37, 99, 235, 0.85); }
.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--glass-2); }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }
.header-cta { margin-left: 4px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 70px;
  text-align: center;
  overflow: hidden;
}
.hero-rings {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-rings i {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 2px solid rgba(68, 134, 255, 0.3);
  transform: translate(-50%, -50%);
  animation: ring-breathe 6s ease-in-out infinite;
}
.hero-rings i:nth-child(1) { width: 360px; height: 360px; border-width: 3px; border-color: rgba(68, 134, 255, 0.45); }
.hero-rings i:nth-child(2) { width: 560px; height: 560px; animation-delay: .6s; border-color: rgba(68, 134, 255, 0.3); }
.hero-rings i:nth-child(3) { width: 780px; height: 780px; animation-delay: 1.2s; border-color: rgba(68, 134, 255, 0.18); }
.hero-rings i:nth-child(4) { width: 1020px; height: 1020px; animation-delay: 1.8s; border-color: rgba(68, 134, 255, 0.1); }
@keyframes ring-breathe { 50% { opacity: .55; } }

.hero h1 {
  position: relative;
  margin: 0 auto 18px;
  max-width: 760px;
  font-size: clamp(34px, 5.4vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.5px;
  color: var(--text-hi);
}
.hero h1 .grad {
  background: linear-gradient(100deg, #7fb0ff 10%, #4486ff 55%, #9a6bff 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  position: relative;
  margin: 0 auto 30px;
  max-width: 620px;
  color: var(--dim);
  font-size: 17px;
}
.hero-cta {
  position: relative;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.badges {
  position: relative;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
.badge {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dim);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
}
.badge b { color: var(--text-hi); font-weight: 600; }
.hero-quote {
  position: relative;
  display: inline-block;
  margin-top: 40px;
  padding: 13px 22px;
  border-radius: 999px;
  background: rgba(68, 134, 255, 0.1);
  border: 1px solid rgba(68, 134, 255, 0.35);
  color: var(--accent-hi);
  font-size: 15px;
}
.hero-quote::before { content: "“"; opacity: .7; margin-right: 4px; }
.hero-quote::after { content: "”"; opacity: .7; margin-left: 4px; }

/* ---------- sections ---------- */
.section { padding: 54px 0; }
.section-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.4vw, 32px);
  color: var(--text-hi);
  letter-spacing: -0.3px;
}
.section-sub { margin: 0 0 34px; color: var(--dim); max-width: 640px; }

/* ---------- feature cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 20px 18px;
  transition: border-color var(--ease), transform var(--ease), background var(--ease);
}
.card:hover {
  border-color: rgba(68, 134, 255, 0.5);
  background: var(--glass-2);
  transform: translateY(-2px);
}
.card .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(68, 134, 255, 0.3);
  margin-bottom: 13px;
  color: var(--accent-hi);
}
.card h3 { margin: 0 0 6px; font-size: 15.5px; color: var(--text-hi); }
.card p { margin: 0; font-size: 13.5px; color: var(--dim); line-height: 1.55; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 20px 18px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 14px var(--font);
  color: var(--accent-hi);
  background: var(--accent-soft);
  border: 1px solid rgba(68, 134, 255, 0.35);
}
.step h3 { margin: 0 0 8px; font-size: 16px; color: var(--text-hi); padding-right: 36px; }
.step p { margin: 0; font-size: 14px; color: var(--dim); }

/* ---------- license plans ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.plan {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.plan.pro {
  border-color: rgba(68, 134, 255, 0.55);
  background: linear-gradient(180deg, rgba(68, 134, 255, 0.12), rgba(68, 134, 255, 0.03));
  box-shadow: 0 24px 60px -30px rgba(37, 99, 235, 0.8);
}
.plan .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-hi);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.plan h3 { margin: 0 0 4px; font-size: 22px; color: var(--text-hi); }
.plan .price { margin: 0 0 16px; color: var(--dim); font-size: 14px; }
.plan ul { list-style: none; margin: 0 0 20px; padding: 0; }
.plan li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px dashed var(--line);
}
.plan li:last-child { border-bottom: 0; }
.plan li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--ok);
  font-weight: 700;
}

/* ---------- docs layout ---------- */
.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  padding: 44px 0 70px;
  align-items: start;
}
.docs-nav {
  position: sticky;
  top: 84px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
}
.docs-nav .label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--dim);
  padding: 4px 10px 8px;
}
.docs-nav a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--dim);
  font-size: 13.5px;
  font-weight: 500;
}
.docs-nav a:hover { background: var(--glass-2); color: var(--text-hi); text-decoration: none; }
.docs-content { min-width: 0; }
.docs-content h1 { color: var(--text-hi); font-size: 32px; letter-spacing: -0.4px; margin: 0 0 6px; }
.docs-content .lead { color: var(--dim); margin: 0 0 34px; font-size: 16px; }
.docs-content section { margin-bottom: 42px; scroll-margin-top: 84px; }
.docs-content h2 {
  color: var(--text-hi);
  font-size: 22px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px;
}
.docs-content h3 { color: var(--text-hi); font-size: 16.5px; margin: 22px 0 8px; }
.docs-content p { color: var(--text); margin: 0 0 12px; }
.docs-content ul, .docs-content ol { color: var(--text); margin: 0 0 14px; padding-left: 22px; }
.docs-content li { margin-bottom: 6px; }
.docs-content code {
  background: var(--glass-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 13px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.docs-content pre {
  background: #04070e;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  overflow-x: auto;
  margin: 0 0 16px;
}
.docs-content pre code { background: none; border: 0; padding: 0; font-size: 13.5px; line-height: 1.65; color: #cfe0ff; }
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 14px;
}
.docs-content th, .docs-content td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.docs-content th { color: var(--text-hi); font-weight: 600; background: var(--glass); }
.docs-content td { color: var(--dim); }
.docs-content td:first-child { color: var(--text); white-space: nowrap; }
.note {
  background: var(--accent-soft);
  border: 1px solid rgba(68, 134, 255, 0.4);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  color: var(--accent-hi);
  font-size: 14px;
  margin: 0 0 16px;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px;
  margin-bottom: 14px;
}
.faq-item h3 { margin: 0 0 8px; font-size: 16.5px; color: var(--text-hi); }
.faq-item p { margin: 0; color: var(--dim); font-size: 14.5px; }

/* ---------- changelog ---------- */
.release {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  margin-bottom: 18px;
}
.release .ver {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-hi);
}
.release .date { color: var(--dim); font-size: 13px; font-weight: 500; }
.release .pill {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ok);
  background: rgba(61, 220, 132, 0.12);
  border: 1px solid rgba(61, 220, 132, 0.4);
  border-radius: 999px;
  padding: 3px 10px;
}
.release ul { margin: 14px 0 0; padding-left: 20px; color: var(--dim); }
.release li { margin-bottom: 6px; font-size: 14.5px; }
.release li b { color: var(--text); font-weight: 600; }

/* ---------- cta band ---------- */
.cta-band {
  text-align: center;
  background: linear-gradient(180deg, rgba(68, 134, 255, 0.14), rgba(68, 134, 255, 0.03));
  border: 1px solid rgba(68, 134, 255, 0.4);
  border-radius: var(--r-lg);
  padding: 46px 26px;
}
.cta-band h2 { margin: 0 0 8px; font-size: 28px; color: var(--text-hi); }
.cta-band p { margin: 0 0 24px; color: var(--dim); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 30px 0 40px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--dim);
  font-size: 13.5px;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--dim); }
.footer-links a:hover { color: var(--text-hi); }

/* ---------- page hero (inner pages) ---------- */
.page-head { padding: 56px 0 8px; }
.page-head h1 { margin: 0 0 10px; font-size: clamp(30px, 4.6vw, 42px); color: var(--text-hi); letter-spacing: -0.4px; }
.page-head p { margin: 0; color: var(--dim); max-width: 640px; font-size: 16px; }

@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; gap: 20px; }
  .docs-nav { position: static; }
  .nav { display: none; }
  .site-header .container { gap: 12px; }
  .header-cta { margin-left: auto; }
}
