/* DatoVPN — цвета взяты из клиента (App.xaml) */
:root {
  --bg: #0B0B0B;
  --card: rgba(20, 20, 20, 0.85);
  --card-solid: #141414;
  --border: #222222;
  --border-2: #2A2A2A;
  --gold: #FFC41F;
  --gold-a: #FFD452;
  --gold-b: #F5B000;
  --on-gold: #141006;
  --text: #F2F2F2;
  --dim: #8E8E8E;
  --muted: #5E5E5E;
  --danger: #F07070;
  --green: #3DDC84;
  --radius: 18px;
  --radius-sm: 12px;
  --grad: linear-gradient(90deg, var(--gold-a), var(--gold-b));
  --wrap: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--on-gold); }

#net {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: .9;
}
.page { position: relative; z-index: 1; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; font-weight: 800; font-size: 20px; letter-spacing: -.01em; white-space: nowrap; }
.logo .peace { font-size: 22px; line-height: 1; margin-right: 8px; }
.logo b { color: var(--gold); font-weight: 800; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 11, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { color: var(--dim); font-size: 15px; font-weight: 500; transition: color .2s; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.burger { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 16px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: .25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -5px; } .burger span::after { top: 5px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }
.mobile-menu { display: none; }

@media (max-width: 1020px) {
  .nav, .header-actions .hide-m { display: none; }
  .burger { display: inline-flex; }
  .mobile-menu {
    display: grid; gap: 6px; padding: 0 16px; max-height: 0; overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    border-top: 1px solid transparent;
  }
  .menu-open .mobile-menu { max-height: 420px; padding: 12px 16px 18px; border-top-color: var(--border); }
  .mobile-menu a { padding: 12px 14px; border-radius: 12px; color: var(--dim); font-weight: 500; }
  .mobile-menu a:hover { background: rgba(255,255,255,.05); color: var(--text); }
  .mobile-menu .btn { margin-top: 6px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 14px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .15s ease, box-shadow .25s ease, background .2s, border-color .2s, filter .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--grad); color: var(--on-gold); box-shadow: 0 8px 30px -10px rgba(255, 184, 0, .55); }
.btn-gold:hover { filter: brightness(1.06); box-shadow: 0 10px 40px -8px rgba(255, 184, 0, .7); }
.btn-ghost { background: rgba(255,255,255,.05); border: 1px solid #262626; color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,196,31,.5); }
.btn-sm { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; border-radius: 16px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 99px;
  background: rgba(255,196,31,.08); border: 1px solid rgba(255,196,31,.25);
  color: var(--gold); font-size: 13px; font-weight: 600;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(61,220,132,.18); margin-left: 6px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 68px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800;
  margin: 22px 0 18px;
}
.hero h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--dim); font-size: clamp(16px, 1.6vw, 19px); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; color: var(--dim); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--gold); }

@media (max-width: 960px) {
  .hero { padding: 40px 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-app { justify-self: center; }
}
@media (max-width: 480px) {
  .hero-cta .btn { width: 100%; }
}

/* ---------- App mock (копия клиента) ---------- */
.hero-app { position: relative; width: 100%; max-width: 400px; justify-self: end; }
.hand {
  position: absolute; width: 230px; right: -70px; top: -60px; z-index: 3;
  mix-blend-mode: lighten; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 55%, transparent 72%);
          mask-image: radial-gradient(circle at 50% 50%, #000 55%, transparent 72%);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-12px) rotate(-3deg); } }
@media (max-width: 600px) { .hand { width: 150px; right: -20px; top: -50px; } }

.app {
  position: relative; z-index: 2;
  background: #0B0B0B; border: 1px solid var(--border); border-radius: 22px;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden; aspect-ratio: 440 / 540;
  display: flex; flex-direction: column;
}
.app canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.app-bar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; color: #7A7A7A; }
.app-bar svg { width: 18px; height: 18px; }
.app-bar .logo { font-size: 16px; }
.app-bar .logo .peace { font-size: 17px; }
.app-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.app-glow {
  position: absolute; width: 130%; aspect-ratio: 1; left: 50%; top: 44%;
  transform: translate(-50%, -50%) scale(.6);
  background: radial-gradient(circle, rgba(255,184,0,.33) 0%, rgba(255,168,0,.13) 32%, transparent 62%);
  opacity: 0; transition: opacity .6s ease, transform .8s ease; pointer-events: none;
}
.app.on .app-glow { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.power {
  position: relative; width: 38%; aspect-ratio: 1; border-radius: 50%;
  background: #121212; border: 1.5px solid #2A2A2A;
  display: grid; place-items: center; margin-bottom: 22px;
  transition: border-color .4s, box-shadow .4s, transform .15s;
}
.power:hover { border-color: #3C3C3C; }
.power:active { transform: scale(.97); }
.power svg { width: 30%; height: 30%; color: #7A7A7A; transition: color .4s; }
.app.on .power { border-color: rgba(255,196,31,.6); box-shadow: 0 0 60px -10px rgba(255,184,0,.45); }
.app.on .power svg { color: var(--gold); }
.app.busy .power { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { border-color: rgba(255,196,31,.45); box-shadow: 0 0 40px -10px rgba(255,184,0,.35); } }
.app-status { font-size: 20px; font-weight: 700; }
.app-sub { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; min-height: 20px; }
.app-server {
  position: relative; z-index: 1; margin: 0 16px 16px;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: rgba(255,255,255,.05); border: 1px solid #262626; border-radius: 12px;
  font-size: 14px;
}
.app-server .globe { width: 30px; height: 30px; border-radius: 50%; background: #1C1C1C; display: grid; place-items: center; color: #8E8E8E; flex: none; }
.app-server .globe svg { width: 16px; height: 16px; }
.app-server .ping { margin-left: auto; color: var(--dim); font-size: 12px; }
.app-server .chev { width: 14px; height: 14px; color: var(--muted); }
.app-hint { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
@media (max-width: 700px) { section { padding: 60px 0; } }
.eyebrow { color: var(--gold); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; margin: 12px 0 14px; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { color: var(--dim); font-size: 17px; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px; transition: border-color .25s, transform .25s; }
.feature:hover { border-color: rgba(255,196,31,.35); transform: translateY(-3px); }
.f-ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(255,196,31,.1); border: 1px solid rgba(255,196,31,.22); color: var(--gold);
}
.f-ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.01em; }
.feature p { color: var(--dim); font-size: 15px; }
.feature.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; grid-template-columns: 1fr; }
}

/* Toggle list (как настройки клиента) */
.toggles { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: #111; }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-size: 14px; }
.toggle-row + .toggle-row { border-top: 1px solid #1E1E1E; }
.toggle-row small { display: block; color: var(--muted); font-size: 12px; }
.switch { margin-left: auto; width: 40px; height: 22px; border-radius: 11px; background: #2E2E2E; position: relative; flex: none; transition: background .25s; cursor: pointer; }
.switch::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #BDBDBD; left: 3px; top: 3px; transition: left .25s, background .25s; }
.switch.on { background: var(--grad); }
.switch.on::after { left: 21px; background: var(--on-gold); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 28px; position: relative; }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); color: var(--on-gold); font-weight: 800; margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--dim); font-size: 15px; }
.step a.link { color: var(--gold); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; font-size: 14px; }
.step a.link:hover { text-decoration: underline; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: stretch; }
.plan.trial { border-style: dashed; border-color: rgba(61,220,132,.4); }
.plan { padding: 28px; display: flex; flex-direction: column; position: relative; transition: transform .25s, border-color .25s; }
.plan:hover { transform: translateY(-4px); }
.plan.popular { border-color: rgba(255,196,31,.55); background: linear-gradient(180deg, rgba(255,196,31,.07), rgba(20,20,20,.9) 40%); }
.plan .tag {
  position: absolute; top: -12px; left: 28px; padding: 4px 12px; border-radius: 99px;
  background: var(--grad); color: var(--on-gold); font-size: 12px; font-weight: 700;
}
.plan h3 { font-size: 18px; font-weight: 700; color: var(--dim); }
.price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 4px; flex-wrap: wrap; }
.price b { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price s { color: var(--muted); font-size: 18px; }
.per { color: var(--muted); font-size: 14px; min-height: 22px; }
.badge-line { display: inline-flex; margin-top: 14px; align-self: flex-start; padding: 4px 10px; border-radius: 8px; background: rgba(61,220,132,.1); color: var(--green); font-size: 13px; font-weight: 600; }
.plan ul { list-style: none; display: grid; gap: 10px; margin: 22px 0 26px; color: #CFCFCF; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; }
.plans-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }
.plans-note a { color: var(--gold); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr 1fr; gap: 24px 16px; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* Download / split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split .card { padding: 32px; }
.split h3 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 8px; }
.split p { color: var(--dim); margin-bottom: 22px; }
.clients { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid #262626; font-size: 13px; color: #CFCFCF; }
.keybox {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; color: #CFCFCF;
  background: #0F0F0F; border: 1px solid #262626; border-radius: 12px; padding: 14px; margin-bottom: 22px;
  overflow-wrap: anywhere;
}
.keybox em { color: var(--gold); font-style: normal; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split .card { padding: 24px; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { padding: 0; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 24px; font-weight: 400; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { border-color: rgba(255,196,31,.3); }
.faq .ans { padding: 0 22px 20px; color: var(--dim); font-size: 15px; }
.faq .ans a { color: var(--gold); }

/* CTA */
.cta {
  position: relative; overflow: hidden; text-align: center; padding: 64px 24px;
  border-radius: 28px; border: 1px solid rgba(255,196,31,.3);
  background: radial-gradient(ellipse at 50% 120%, rgba(255,184,0,.28), transparent 60%), var(--card-solid);
}
.cta .big { font-size: 56px; margin-bottom: 10px; }
.cta h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 12px; }
.cta p { color: var(--dim); margin-bottom: 28px; }
.cta .btn-row { justify-content: center; }
@media (max-width: 480px) { .cta .btn { width: 100%; } }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0 32px; margin-top: 40px; color: var(--dim); font-size: 14px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h4 { color: var(--text); font-size: 14px; margin-bottom: 12px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a:hover { color: var(--gold); }
.footer .copy { grid-column: 1 / -1; border-top: 1px solid #1A1A1A; padding-top: 20px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) { .footer .wrap { grid-template-columns: 1fr 1fr; } .footer .brand { grid-column: 1 / -1; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Buy page ---------- */
.buy-main { padding: 48px 0 40px; }
.buy-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .buy-grid { grid-template-columns: 1fr; } }
.buy-title { font-size: clamp(30px, 5vw, 44px); letter-spacing: -.03em; font-weight: 800; line-height: 1.1; margin: 10px 0 10px; }
.buy-sub { color: var(--dim); margin-bottom: 28px; }
.panel { padding: 24px; }
.panel + .panel { margin-top: 16px; }
.panel-title { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 14px; letter-spacing: .02em; }
.plan-pick { display: grid; gap: 10px; }
.plan-opt {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid #262626; cursor: pointer; transition: border-color .2s, background .2s;
}
.plan-opt:hover { border-color: #3a3a3a; }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #3C3C3C; flex: none; display: grid; place-items: center; transition: border-color .2s; }
.plan-opt .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); transform: scale(0); transition: transform .2s; }
.plan-opt.sel { border-color: rgba(255,196,31,.7); background: rgba(255,196,31,.06); }
.plan-opt.sel .radio { border-color: var(--gold); }
.plan-opt.sel .radio::after { transform: scale(1); }
.plan-opt .po-name { font-weight: 600; }
.plan-opt .po-note { display: block; font-size: 13px; color: var(--green); font-weight: 500; }
.plan-opt .po-price { margin-left: auto; text-align: right; font-weight: 700; font-size: 18px; white-space: nowrap; }
.plan-opt .po-price s { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }

.field { display: grid; gap: 8px; }
.field + .field { margin-top: 14px; }
.field label { font-size: 14px; color: #CFCFCF; font-weight: 500; }
.field small { color: var(--muted); font-size: 12px; }
.input {
  height: 48px; padding: 0 14px; border-radius: 12px; width: 100%;
  background: #0F0F0F; border: 1px solid #262626; color: var(--text); font: inherit; font-size: 15px;
  transition: border-color .2s;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: rgba(255,196,31,.6); }
.input.err { border-color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--dim); cursor: pointer; margin-top: 18px; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); margin-top: 2px; flex: none; }
.check a { color: var(--gold); }

.summary { position: sticky; top: 88px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--dim); font-size: 15px; }
.sum-row b { color: var(--text); font-weight: 600; }
.sum-total { border-top: 1px solid #1E1E1E; margin-top: 8px; padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; }
.sum-total span { color: var(--dim); }
.sum-total b { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.msg { margin-top: 14px; font-size: 14px; border-radius: 12px; padding: 12px 14px; display: none; }
.msg.show { display: block; }
.msg.warn { background: rgba(255,196,31,.08); border: 1px solid rgba(255,196,31,.3); color: #F5D88A; }
.msg.err { color: var(--danger); background: rgba(240,112,112,.08); border: 1px solid rgba(240,112,112,.3); }
.msg a { color: var(--gold); font-weight: 600; }
.secure { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 14px; justify-content: center; }
.secure svg { width: 14px; height: 14px; }
.alt-buy { margin-top: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.alt-buy a { color: var(--gold); font-weight: 600; }
