/* ===== NODAL — design tokens ===== */
:root {
  --accent: #00e5c3;
  --accent-2: #5df5ff;
  --accent-rgb: 0, 229, 195;
  --on-accent: #04211d;

  --bg: #060e0f;
  --bg-2: #091516;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #eaf6f5;
  --text-muted: rgba(234, 246, 245, 0.66);
  /* 0.48 — минимум, при котором мелкий текст проходит WCAG AA 4.5:1 на --bg и --bg-2 */
  --text-faint: rgba(234, 246, 245, 0.48);

  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --s1: 8px; --s2: 12px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-glow: 0 18px 50px -18px rgba(var(--accent-rgb), 0.5);
  --maxw: 1180px;
}

[data-theme="light"] {
  --bg: #f3f8f8;
  --bg-2: #ffffff;
  --surface: rgba(6, 30, 28, 0.035);
  --surface-2: rgba(6, 30, 28, 0.06);
  --border: rgba(6, 30, 28, 0.11);
  --border-strong: rgba(6, 30, 28, 0.18);

  --accent: #00806c;
  --accent-2: #0a9f96;
  --accent-rgb: 0, 128, 108;
  --on-accent: #ffffff;

  --text: #06201d;
  --text-muted: rgba(6, 32, 29, 0.7);
  /* 0.62 — минимум для AA 4.5:1 на светлом фоне (--bg и --bg-2) */
  --text-faint: rgba(6, 32, 29, 0.62);
  --shadow-glow: 0 18px 44px -20px rgba(var(--accent-rgb), 0.42);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s3); }
@media (min-width: 768px) { .container { padding: 0 var(--s4); } }

.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 0; left: 0; z-index: 999;
  width: auto; height: auto; clip: auto; margin: 0;
  padding: var(--s1) var(--s3); border-radius: 0 0 var(--radius-sm) 0;
  background: var(--accent); color: var(--on-accent); font-weight: 700;
}

/* ===== PRELOADER (warp) ===== */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), filter 0.55s var(--ease);
}
.preloader__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.preloader__brand {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: var(--s1);
  text-align: center;
}
.preloader__mark {
  width: 52px; height: 52px;
  background: url("../../assets/icons/favicon.svg") center / contain no-repeat;
  border-radius: 14px;
  box-shadow: 0 0 34px -4px rgba(var(--accent-rgb), 0.85);
  animation: warp-pulse 1.6s ease-in-out infinite;
}
.preloader__name {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.9rem; letter-spacing: -0.02em;
  color: var(--text);
}
.preloader__status {
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
@keyframes warp-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 34px -4px rgba(var(--accent-rgb), 0.85); }
  50% { transform: scale(1.07); box-shadow: 0 0 48px -2px rgba(var(--accent-rgb), 1); }
}
/* финальный «прыжок»: вспышка и уход вглубь */
.preloader.is-jumping { opacity: 0; transform: scale(1.35); filter: brightness(2.2); }
.preloader.is-done { display: none; }
body.is-loading { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .preloader__mark { animation: none; }
}

/* ===== TRACEROUTE (маршрут по секциям) ===== */
.trace {
  position: fixed; left: 26px; top: 50%; transform: translateY(-50%);
  z-index: 60;
  display: none;
}
@media (min-width: 1100px) { .trace { display: block; } }

.trace__line {
  position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; border-radius: 2px;
  background: var(--border-strong);
  overflow: hidden;
}
.trace__fill {
  display: block; width: 100%; height: 0%;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.9);
  transition: height 0.18s linear;
}
.trace__list { display: flex; flex-direction: column; gap: var(--s4); }
.trace__item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 2px 0;
}
.trace__dot {
  position: relative; z-index: 1;
  flex: 0 0 auto;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-strong);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.trace__label {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.trace:hover .trace__label { opacity: 1; transform: none; }
.trace__item:hover .trace__dot { border-color: var(--accent); }
.trace__item:hover .trace__label { color: var(--text); opacity: 1; transform: none; }
.trace__item:focus-visible { outline: none; }
.trace__item:focus-visible .trace__dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.35);
}
.trace__item:focus-visible .trace__label { opacity: 1; transform: none; color: var(--text); }

.trace__item.is-active .trace__dot {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 14px 1px rgba(var(--accent-rgb), 0.9);
  animation: trace-ping 2.2s ease-out infinite;
}
.trace__item.is-active .trace__label { color: var(--accent); opacity: 1; transform: none; }
@keyframes trace-ping {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.55), 0 0 14px 1px rgba(var(--accent-rgb), 0.9); }
  70% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0), 0 0 14px 1px rgba(var(--accent-rgb), 0.9); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0), 0 0 14px 1px rgba(var(--accent-rgb), 0.9); }
}
@media (prefers-reduced-motion: reduce) {
  .trace__item.is-active .trace__dot { animation: none; }
  .trace__fill { transition: none; }
}

/* ===== SHARED ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 1px rgba(var(--accent-rgb), 0.8);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.gradient-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 26px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  border-radius: 999px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
              filter 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease);
  will-change: transform;
}
.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn--primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  box-shadow: 0 10px 30px -12px rgba(var(--accent-rgb), 0.75);
}
.btn--primary:hover { filter: brightness(1.08); box-shadow: 0 16px 40px -12px rgba(var(--accent-rgb), 0.9); }
.btn--ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--accent); }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); height: 72px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
}
.logo__mark {
  width: 30px; height: 30px; flex: 0 0 auto;
  background: url("../../assets/icons/favicon.svg") center / contain no-repeat;
  border-radius: 9px;
  box-shadow: 0 0 18px -4px rgba(var(--accent-rgb), 0.6);
}
.nav { display: none; gap: var(--s3); }
.nav__link {
  position: relative;
  color: var(--text-muted); font-weight: 600; font-size: 0.95rem;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), text-shadow 0.2s var(--ease);
}
/* точка-узел слева — перекликается с темой сети */
.nav__link::before {
  content: ""; position: absolute; left: 3px; top: 50%;
  width: 4px; height: 4px; margin-top: -2px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 1px rgba(var(--accent-rgb), 0.9);
  opacity: 0; transform: scale(0.4);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
/* градиентный разряд-подчёркивание */
.nav__link::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.85);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.32s var(--ease);
}
.nav__link:hover {
  color: var(--text);
  text-shadow: 0 0 14px rgba(var(--accent-rgb), 0.55);
}
.nav__link:hover::after { transform: scaleX(1); animation: spark 0.42s steps(1) 1; }
.nav__link:hover::before { opacity: 1; transform: scale(1); }

/* фокус с клавиатуры читается иначе, чем наведение: подложка + кольцо */
.nav__link:focus-visible {
  outline: none;
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.12);
  box-shadow: 0 0 0 2px var(--accent), 0 0 18px -2px rgba(var(--accent-rgb), 0.7);
}
.nav__link:focus-visible::after { transform: scaleX(1); }
.nav__link:focus-visible::before { opacity: 1; transform: scale(1); }

@keyframes spark {
  0%, 100% { opacity: 1; }
  35%, 65% { opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) {
  .nav__link:hover::after { animation: none; }
}
.header__actions { display: flex; align-items: center; gap: var(--s2); }
.header__cta { display: none; }

.theme-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle__icon--sun { display: none; }
[data-theme="light"] .theme-toggle__icon--sun { display: block; }
[data-theme="light"] .theme-toggle__icon--moon { display: none; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
}

/* ===== HERO ===== */
/* hero тянется под прозрачный хедер, чтобы сеть не обрывалась на его границе */
main { margin-top: -72px; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: calc(72px + var(--s5)) 0 var(--s6);
  isolation: isolate;
  overflow: hidden;
}
.hero__canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
/* мягкое сияние + затемнение к низу, чтобы текст читался поверх сети */
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(var(--accent-rgb), 0.16), transparent 70%),
    linear-gradient(to bottom, transparent 55%, var(--bg) 97%);
}
/* в светлой теме заливка забеливает сеть — оставляем только нижнее затухание */
[data-theme="light"] .hero__veil {
  background: linear-gradient(to bottom, transparent 68%, var(--bg) 98%);
}
.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: var(--s3); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.3rem, 7.2vw, 4.9rem);
  line-height: 1.07;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
  max-width: 16ch;
}
.hero__sub {
  max-width: 60ch;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; }
.hero__note { font-size: 0.85rem; color: var(--text-faint); }

.hero__scroll {
  position: absolute; bottom: var(--s3); left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 10px; border-radius: 999px;
  color: var(--text-muted);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.hero__scroll:hover { color: var(--accent); transform: translateX(-50%) translateY(-2px); }
.hero__scroll-label {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.hero__scroll-chevron {
  width: 15px; height: 15px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: chevron 1.9s ease-in-out infinite;
}
@keyframes chevron {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50% { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

/* ===== METRICS ===== */
.metrics { padding: var(--s6) 0; border-block: 1px solid var(--border); background: var(--bg-2); }
.metrics__grid {
  display: grid; gap: var(--s4);
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}
@media (min-width: 860px) { .metrics__grid { grid-template-columns: repeat(4, 1fr); } }
.metric { display: flex; flex-direction: column; gap: 6px; }
.metric__value {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.metric__label { font-size: 0.9rem; color: var(--text-muted); }

/* ===== LOGOS ===== */
.logos { padding: var(--s6) 0; }
.logos__inner { display: flex; flex-direction: column; align-items: center; gap: var(--s4); }
.logos__stat {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  text-align: center;
}
.logos__stat .gradient-text { font-weight: 800; }
.logos__list {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: var(--s3) var(--s5); width: 100%;
}
.logos__item {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1rem, 2.3vw, 1.25rem);
  color: var(--text-faint);
  transition: color 0.25s var(--ease);
}
.logos__item:hover { color: var(--accent); }

/* ===== SECTION SHARED ===== */
.section { padding: var(--s7) 0; position: relative; }
.section__head {
  max-width: 700px; margin: 0 auto var(--s5);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
}
.section__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.15; letter-spacing: -0.02em;
  text-wrap: balance;
}
.section__lead { color: var(--text-muted); max-width: 58ch; }

/* ===== CARDS ===== */
.features__grid { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features__grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  display: flex; flex-direction: column; gap: var(--s2);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb), 0.15), transparent 68%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border-strong));
  box-shadow: var(--shadow-glow);
}
.card--accent {
  border-color: rgba(var(--accent-rgb), 0.4);
  background:
    linear-gradient(var(--surface), var(--surface)),
    radial-gradient(120% 120% at 0% 0%, rgba(var(--accent-rgb), 0.14), transparent 55%);
}
.card__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  margin-bottom: var(--s1);
}
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.card__text { color: var(--text-muted); font-size: 0.96rem; }
.card__text code {
  font-family: var(--font-mono); font-size: 0.88em;
  padding: 2px 6px; border-radius: 6px;
  background: var(--surface-2); color: var(--accent);
}
.card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: var(--s2); }
.card__tags li {
  font-family: var(--font-mono); font-size: 0.76rem;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ===== QUICK START ===== */
.start__panel { display: grid; gap: var(--s4); align-items: start; }
@media (min-width: 1000px) { .start__panel { grid-template-columns: 1.15fr 0.85fr; gap: var(--s5); } }

.code {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  overflow: hidden;
}
.code__tabs {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 8px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.code__tab {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted);
  padding: 9px 14px; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.code__tab:hover { color: var(--text); }
.code__tab.is-active { color: var(--accent); background: var(--surface); }
.code__copy {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--border);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.code__copy:hover { color: var(--accent); border-color: var(--accent); }
.code__body { padding: var(--s3); overflow-x: auto; }
.code__pane { display: none; }
.code__pane.is-active { display: block; }
.code__pane code {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--text-muted);
  white-space: pre;
}

.steps { display: flex; flex-direction: column; gap: var(--s3); }
.step { display: flex; gap: var(--s3); align-items: flex-start; }
.step__num {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: 0.9rem;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
}
.step__title { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; margin-bottom: 2px; }
.step__text { color: var(--text-muted); font-size: 0.93rem; }

/* ===== NETWORK NODES ===== */
.nodes {
  display: grid; gap: var(--s2);
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.node {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s2);
  padding: 14px var(--s3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.node:hover { border-color: var(--accent); transform: translateY(-3px); }
.node__city { font-weight: 600; font-size: 0.95rem; }
.node__ping {
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--accent);
}

/* ===== PRICING ===== */
.plans { display: grid; gap: var(--s3); grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); } }

.plan {
  position: relative;
  display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.plan::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb), 0.13), transparent 68%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.plan:hover::before { opacity: 1; }
.plan > * { position: relative; z-index: 1; }
.plan:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border-strong)); }
.plan--featured {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: var(--shadow-glow);
}
.plan__badge {
  position: absolute; top: var(--s3); right: var(--s3);
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
}
.plan__name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--text-muted); }
.plan__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan__amount {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  letter-spacing: -0.03em;
}
.plan__period { color: var(--text-faint); font-size: 0.95rem; }
.plan__note { color: var(--text-faint); font-size: 0.88rem; }
.plan__list { display: flex; flex-direction: column; gap: 10px; margin: var(--s2) 0 var(--s3); }
.plan__list li {
  position: relative; padding-left: 26px;
  color: var(--text-muted); font-size: 0.93rem;
}
.plan__list li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan__btn { margin-top: auto; width: 100%; }

/* ===== CTA + FORM ===== */
.cta__inner {
  display: flex; flex-direction: column; align-items: center; gap: var(--s3);
  text-align: center;
  padding: var(--s6) var(--s3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(var(--accent-rgb), 0.14), transparent 65%),
    var(--surface);
}
.form { width: 100%; max-width: 520px; }
.form__row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.form__input {
  flex: 1 1 240px;
  padding: 14px var(--s3);
  font-family: var(--font-body); font-size: 1rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: border-color 0.2s var(--ease);
}
.form__input::placeholder { color: var(--text-faint); }
.form__input:focus { outline: none; border-color: var(--accent); }
.form__input.is-error { border-color: #ff5c72; }
.form__error { min-height: 1.3em; margin-top: 8px; font-size: 0.85rem; color: #ff5c72; text-align: left; }
.form__note { font-size: 0.82rem; color: var(--text-faint); }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); padding: var(--s5) 0; background: var(--bg-2); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: var(--s2); text-align: center; }
.footer__text { color: var(--text-faint); font-size: 0.88rem; max-width: 52ch; }
.footer__copy { color: var(--text-faint); font-size: 0.85rem; }

/* ===== TOAST ===== */
.toast {
  position: fixed; left: 50%; bottom: var(--s4);
  transform: translate(-50%, 16px);
  z-index: 200;
  padding: 13px var(--s3);
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--accent);
  color: var(--text);
  font-size: 0.92rem; font-weight: 600;
  box-shadow: var(--shadow-glow);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
