@font-face {
  font-family: 'Onest';
  src: url('assets/fonts/onest-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Onest';
  src: url('assets/fonts/onest-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Onest';
  src: url('assets/fonts/onest-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Onest';
  src: url('assets/fonts/onest-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0913;
  --surface: #161020;
  --line: #2a2137;
  --text: #ece8df;
  --muted: #9a91a8;
  --accent: #b388ff;
  --ok: #4cc38a;
  --warn: #e8b64c;
  --bad: #e5645a;
  --off: #2a2338;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 76px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(13, 16, 23, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -0.01em; }
.logo img { border-radius: 7px; }
.logo span { color: var(--accent); }
.logo .vpn {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 7px 1px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.04em;
  vertical-align: 3px;
}
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--muted); }
.nav ul a { text-decoration: none; }
.nav ul a:hover { color: var(--text); }
.navbtns { display: flex; gap: 8px; }

.btn {
  display: inline-block;
  background: var(--text);
  color: #12151d;
  font: 600 15px/1 var(--font);
  padding: 14px 22px;
  border-radius: 10px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--muted); background: transparent; }
.btn.sm { padding: 10px 16px; font-size: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

section { padding: 84px 0; }
h1 {
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 700;
  max-width: 14ch;
}
h2 {
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 600;
  max-width: 20ch;
}
.lead { color: var(--muted); font-size: 18px; max-width: 52ch; margin: 0 0 30px; }
.sub { color: var(--muted); max-width: 56ch; margin: 0 0 36px; }
.hero { padding: 64px 0 40px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* uptime */
.status { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.status-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.now { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--bad); }
.dot.maint { background: var(--accent); }
.pct { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.pct small { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 6px; letter-spacing: 0; }
.bars { display: flex; gap: 3px; height: 44px; }
.bars i { flex: 1; border-radius: 2px; background: var(--ok); min-width: 0; position: relative; }
.bars i.w { background: var(--warn); }
.bars i.b { background: var(--bad); }
.bars i.m { background: var(--accent); opacity: .55; }
.bars i.off { background: var(--off); }
.bars i:hover::after, .bars i:focus::after {
  content: attr(data-t);
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #12151d;
  font: 500 12px/1.3 var(--font);
  padding: 6px 9px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 3;
  pointer-events: none;
}
.bars i:nth-child(-n+10):hover::after { left: 0; transform: none; }
.bars i:nth-last-child(-n+10):hover::after { left: auto; right: 0; transform: none; }
.axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: 8px; }
.status-note { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; }
.nodes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; margin-top: 20px; }
.nodes div { background: var(--surface); padding: 14px 16px; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.nodes b { font-weight: 500; color: var(--ok); }
.nodes b.warn { color: var(--warn); }
.nodes b.bad { color: var(--bad); }
.nodes b.maint { color: var(--accent); }
.nodes small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.inc { margin-top: 24px; border-top: 1px solid var(--line); }
.inc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 0;
  font-size: 15px;
  font-weight: 600;
}
.inc summary::-webkit-details-marker { display: none; }
.inc summary::after { content: "+"; color: var(--muted); font-size: 20px; font-weight: 300; line-height: 1; }
.inc[open] summary::after { content: "−"; }
.inc-item { display: grid; grid-template-columns: 110px 1fr; gap: 6px 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.inc-item time { color: var(--muted); font-size: 14px; }
.inc-item p { margin: 0; font-size: 15px; }
.inc-item p span { color: var(--muted); display: block; }
.tag { font-size: 12px; color: var(--ok); border: 1px solid var(--line); border-radius: 20px; padding: 1px 9px; margin-left: 8px; white-space: nowrap; }
.inc-item p .tag { display: inline-block; }
.tag.ongoing { color: var(--bad); }
.inc-empty { color: var(--muted); font-size: 14px; padding: 12px 0; border-top: 1px solid var(--line); }

/* routing */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.route { border: 1px solid var(--line); border-radius: 14px; padding: 26px; background: var(--surface); }
.route h3 { margin: 0 0 6px; font-size: 19px; }
.route .path { color: var(--accent); font-size: 14px; margin: 0 0 14px; }
.route p { margin: 0 0 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: 14px; }

/* devices */
.devs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.dev { padding: 24px 20px 24px 0; border-bottom: 1px solid var(--line); }
.dev h3 { margin: 0 0 4px; font-size: 18px; }
.dev p { margin: 0; color: var(--muted); font-size: 14px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.plan {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.plan:hover { border-color: var(--muted); }
.plan[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan--hot { border-color: rgba(157, 180, 255, 0.6); }
.plan .n { font-weight: 600; font-size: 15px; }
.plan .p { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 2px; }
.plan .p small { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan .d { color: var(--muted); font-size: 13px; margin: 0; }
.plan ul { margin: 16px 0 20px; padding: 0; list-style: none; display: grid; gap: 7px; }
.plan li { color: var(--muted); font-size: 13px; }
.plan li::before { content: "—"; margin-right: 7px; color: var(--off); }
.plan .actions { display: flex; gap: 6px; margin-top: auto; }
.plan .actions .btn { flex: 1; padding: 10px 8px; font-size: 13px; }
.note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.note a { color: var(--accent); }
.buy { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; align-items: stretch; }
.buy input {
  flex: 1 1 240px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  padding: 0 16px;
  min-height: 46px;
}
.buy input::placeholder { color: #5d6679; }
#msg { color: var(--accent); }
.paybox {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.paybox h3 { margin: 0 0 8px; font-size: 18px; }
.paybox p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.paybox b { color: var(--text); }
.paybox .suburl { display: flex; gap: 8px; margin: 12px 0 4px; }
.paybox .suburl input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.4 var(--font);
}
.paybox .p2p-file {
  width: 100%;
  margin: 6px 0 10px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
}
.paybox .statusline { min-height: 18px; color: var(--accent); font-size: 13px; }

/* faq */
.faq { max-width: 820px; }
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 12px 0 0; max-width: 62ch; }

footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; margin-left: 18px; }
footer a:hover { color: var(--text); }

@media (max-width: 980px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .nodes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav ul { display: none; }
  section { padding: 60px 0; }
  .split { grid-template-columns: 1fr; }
  .devs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .devs { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .nodes { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
  .btn.sm { width: auto; }
  .inc-item { grid-template-columns: 1fr; }
  .plan .actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
