/* NormNet VPN — Landing page styles.
   Built on the design-system tokens. Brand-faithful: dark-first,
   signal gradient over ink, Geologica + Inter. */

@import "./tokens/fonts.css";
@import "./tokens/colors.css";
@import "./tokens/gradients.css";
@import "./tokens/typography.css";
@import "./tokens/spacing.css";

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--dur-slow) var(--ease-out), color var(--dur-slow) var(--ease-out);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-xs); }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.section { position: relative; padding: clamp(72px, 11vw, 140px) 0; }
.section--tight { padding: clamp(56px, 8vw, 96px) 0; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--text-overline);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--accent);
  opacity: 0.8;
}
.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  margin-top: 16px;
  text-wrap: balance;
}
.section-head p {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  max-width: 52ch;
  text-wrap: pretty;
}
.text-grad {
  background: var(--grad-signal-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   BACKGROUND LAYERS (aurora + canvas mesh + parallax)
   ============================================================ */
.bg-layers {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-deep);
}
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  mix-blend-mode: screen;
  will-change: transform;
}
[data-theme="light"] .aurora { opacity: 0.35; mix-blend-mode: multiply; filter: blur(90px); }
.aurora--a {
  width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
  top: -16vw; left: -8vw;
  background: radial-gradient(circle, rgba(0,227,122,0.55), transparent 65%);
  animation: drift-a 22s var(--ease-in-out) infinite alternate;
}
.aurora--b {
  width: 52vw; height: 52vw; max-width: 700px; max-height: 700px;
  top: -6vw; right: -10vw;
  background: radial-gradient(circle, rgba(0,194,255,0.5), transparent 65%);
  animation: drift-b 26s var(--ease-in-out) infinite alternate;
}
.aurora--c {
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  top: 38vh; left: 30vw;
  background: radial-gradient(circle, rgba(0,194,255,0.32), transparent 68%);
  animation: drift-c 30s var(--ease-in-out) infinite alternate;
}
@keyframes drift-a { to { transform: translate(14vw, 10vh) scale(1.18); } }
@keyframes drift-b { to { transform: translate(-12vw, 12vh) scale(1.1); } }
@keyframes drift-c { to { transform: translate(8vw, -10vh) scale(1.22); } }

#mesh { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
[data-theme="light"] #mesh { opacity: 0.6; }

/* subtle top vignette so content reads */
.bg-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, transparent 40%, var(--bg-deep) 100%),
    linear-gradient(180deg, transparent 60%, var(--bg-deep) 100%);
}
[data-theme="light"] .bg-veil {
  background:
    radial-gradient(120% 80% at 50% -10%, transparent 40%, var(--bg-base) 100%),
    linear-gradient(180deg, transparent 55%, var(--bg-base) 100%);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), backdrop-filter var(--dur-base);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: color-mix(in oklab, var(--bg-deep) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--border-subtle);
}
[data-theme="light"] .header.is-stuck { background: color-mix(in oklab, var(--bg-base) 78%, transparent); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
  padding-top: env(safe-area-inset-top);
}
.brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__mark { width: 26px; height: auto; filter: drop-shadow(0 2px 10px rgba(0,227,122,0.25)); }
.brand__word { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.18rem; letter-spacing: -0.01em; }
.brand__word b { color: var(--accent); font-weight: var(--fw-bold); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav a:hover { color: var(--text-primary); background: var(--border-subtle); }
.header__actions { display: flex; align-items: center; gap: 10px; }
/* match the login button height to the round theme toggle so the row sits level */
.header__actions .header__login { height: 44px; line-height: 1; }

/* theme toggle */
.theme-toggle {
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  display: grid; place-items: center;
  cursor: pointer;
  position: relative;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast);
  overflow: hidden;
}
.theme-toggle:hover { border-color: var(--border-strong); }

/* tech-support button — matches theme toggle, with an "online" status bullet */
.support-btn {
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  display: grid; place-items: center;
  position: relative;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast);
}
.support-btn:hover { border-color: var(--border-strong); }
.support-btn:active { transform: scale(0.94); }
.support-btn svg { width: 19px; height: 19px; stroke: var(--text-primary); }
.support-btn__dot {
  position: absolute; top: 7px; right: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface-card);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent);
  animation: support-pulse 2.4s var(--ease-out) infinite;
}
@keyframes support-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 6px transparent; }
}
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { width: 19px; height: 19px; stroke: var(--text-primary); position: absolute; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
.theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(0.4); }
.theme-toggle .i-moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .i-sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(0.4); }

/* menu button (burger) — mobile only, icon-only */
.menu-btn { display: none; align-items: center; justify-content: center; gap: 0; width: 44px; height: 44px; padding: 0; border-radius: var(--radius-pill); border: 1px solid var(--border-subtle); background: var(--surface-card); color: var(--text-primary); cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); }
.menu-btn:hover { border-color: var(--border-strong); background: var(--border-subtle); }
.menu-btn svg { width: 20px; height: 20px; stroke: var(--text-primary); }
/* desktop shows inline nav; tablet/mobile collapses to the burger */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header__actions { gap: 8px; }
  /* keep the cabinet button — collapse to an icon-only accent button */
  .header__actions .header__login {
    width: 44px; height: 44px; padding: 0; gap: 0;
    border-radius: var(--radius-pill); flex: 0 0 auto;
  }
  .header__actions .header__login .header__login-label { display: none; }
  .header__actions .header__login svg { width: 19px; height: 19px; }
}
/* simulated iPhone notch inset inside the mobile preview frame */
html.pv-notch .header__inner { padding-top: env(safe-area-inset-top); }
@media (max-width: 960px) {
  html.pv-notch .header__inner { padding-top: 34px; }
}
/* narrow phones: tighten the action row so 4 controls + brand always fit */
@media (max-width: 400px) {
  .header__actions { gap: 6px; }
  .header__actions .support-btn,
  .header__actions .theme-toggle,
  .header__actions .menu-btn,
  .header__actions .header__login { width: 44px; height: 44px; }
}
@media (max-width: 360px) {
  /* very narrow: drop the support button so brand + 3 controls never overflow */
  .header__actions .support-btn { display: none; }
}

/* ============================================================
   BUTTONS (design-system Button, recreated in CSS)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-body); font-weight: var(--fw-semibold); font-size: 15px; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), filter var(--dur-fast) var(--ease-out), background var(--dur-fast), border-color var(--dur-fast);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--grad-signal); color: var(--text-on-accent); }
.btn--primary:hover { filter: brightness(1.07) saturate(1.05); }
.btn--secondary { background: var(--surface-card); color: var(--text-primary); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--text-primary); border-color: var(--border-subtle); }
.btn--ghost:hover { border-color: var(--border-strong); background: var(--border-subtle); }
.btn--lg { height: 56px; padding: 0 30px; font-size: 17px; border-radius: var(--radius-md); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: var(--radius-sm); }
.btn svg { width: 18px; height: 18px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(120px, 16vh, 180px); padding-bottom: clamp(64px, 9vw, 110px); position: relative; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__col { max-width: 580px; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  font-size: var(--text-sm); color: var(--text-secondary);
  margin-bottom: 26px;
}
.badge-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0,227,122,0.18); animation: pulse-dot 2.4s var(--ease-in-out) infinite; }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 4px rgba(0,227,122,0.18);} 50% { box-shadow: 0 0 0 7px rgba(0,227,122,0.05);} }
.hero h1 {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02; letter-spacing: var(--ls-tight);
  text-wrap: balance;
}
.hero p.lead {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 46ch; text-wrap: pretty;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
/* pulsing primary CTA in hero */
#heroCtaPrimary { animation: cta-pulse 2.4s var(--ease-out) infinite; }
#heroCtaPrimary:hover { animation-play-state: paused; }
@keyframes cta-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,227,122,0.45); }
  70%  { box-shadow: 0 0 0 16px rgba(0,227,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,227,122,0); }
}
.hero__trust { display: flex; align-items: center; gap: 18px; margin-top: 30px; color: var(--text-tertiary); font-size: var(--text-sm); flex-wrap: wrap; }
.hero__trust .ck { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust .ck svg { width: 16px; height: 16px; stroke: var(--accent); }

/* hero mascot figure (Nox) */
.hero__visual { display: flex; justify-content: center; }
.hero-figure { position: relative; width: 100%; max-width: 440px; aspect-ratio: 0.82; margin-inline: auto; --orbit-r: 228px; }
.figure-glow {
  position: absolute; left: 50%; top: 6%; translate: -50% 0;
  width: 92%; height: 86%;
  background: var(--glow-signal);
  filter: blur(14px);
  animation: breathe 5s var(--ease-in-out) infinite;
}
.figure-floor {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%);
  width: 70%; height: 14%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,227,122,0.22), transparent 70%);
  filter: blur(6px);
}
.nox {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 0); z-index: 5;
  height: 102%; width: auto; max-width: 132%;
  object-fit: contain;
  /* guard pose is clean (no print) — keep its cool cyan rim-light on-brand */
  filter: contrast(1.05) brightness(1.02) drop-shadow(0 28px 46px rgba(0,0,0,0.55));
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 93%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 93%);
  animation: float-y 6.5s var(--ease-in-out) infinite alternate;
}
[data-theme="light"] .nox { filter: contrast(1.02) brightness(1.04) drop-shadow(0 24px 40px rgba(40,50,70,0.28)); }
@keyframes float-y { from { transform: translate(-50%, 8px); } to { transform: translate(-50%, -14px); } }

.scanline {
  position: absolute; left: 8%; right: 8%; top: 6%; height: 2px; z-index: 6;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  filter: blur(0.4px); opacity: 0; border-radius: 2px;
  animation: scan 4.6s var(--ease-in-out) infinite;
}
@keyframes scan { 0% { top: 8%; opacity: 0; } 12% { opacity: 0.85; } 80% { opacity: 0.85; } 100% { top: 60%; opacity: 0; } }

/* floating UI cards/chips over the figure (demo) — sit ABOVE the orbit so the
   service icons fly behind their frosted-glass panels */
.float-card, .float-chip {
  position: absolute; z-index: 6;
  background: color-mix(in oklab, var(--surface-card) 76%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.card-status {
  top: 41%; left: 50%; transform: translate(-52%, 0);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px;
  animation: driftStatus 12s var(--ease-in-out) infinite;
}
.card-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0,227,122,0.18); animation: pulse-dot 2.4s var(--ease-in-out) infinite; flex: none; }
.fc-title { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 0.98rem; color: var(--accent); line-height: 1.1; }
.fc-sub { font-size: var(--text-xs); color: var(--text-secondary); margin-top: 2px; white-space: nowrap; }
.card-status { min-width: 150px; }
.fc-sub .orb__ip { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.chip-route {
  top: 21%; right: -2%; left: auto; transform: translateY(0);
  padding: 9px 14px; display: flex; align-items: center; gap: 8px;
  font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text-primary);
  animation: driftRoute 10s var(--ease-in-out) infinite;
}
.chip-route svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; }
.chip-speed {
  top: 66%; left: 0; transform: translateY(0);
  padding: 10px 14px; font-size: var(--text-sm); color: var(--text-secondary);
  display: flex; align-items: baseline; gap: 6px;
  animation: driftSpeed 14s var(--ease-in-out) infinite;
}
.chip-speed .text-grad { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.15rem; }
/* orbiting "available service" chips around the mascot */
.orbit { position: absolute; inset: 0; z-index: 4; pointer-events: none; animation: orbit-spin 34s linear infinite; }
.app-chip { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translate(0, calc(-1 * var(--orbit-r))); }
.app-spin { position: absolute; left: 0; top: 0; animation: orbit-spin 34s linear infinite reverse; }
.app-inner {
  position: absolute; left: 0; top: 0; width: 50px; height: 50px; margin: -25px 0 0 -25px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 0.92rem; letter-spacing: 0.02em;
  color: var(--c);
  background: color-mix(in oklab, var(--surface-card) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--border-strong); border-radius: 15px; box-shadow: var(--shadow-md);
  transform: rotate(calc(-1 * var(--a)));
}
.app-inner svg { width: 27px; height: 27px; display: block; opacity: 0.78; filter: saturate(0.85); }
.app-inner .av {
  position: absolute; top: -4px; right: -4px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--surface-card);
  box-shadow: 0 0 0 3px rgba(0,227,122,0.16); animation: pulse-dot 2.6s var(--ease-in-out) infinite;
}
@keyframes orbit-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

@keyframes floatA { from { transform: translate(-52%, 9px); } to { transform: translate(-52%, -9px); } }
@keyframes floatB { from { transform: translate(-50%, -7px); } to { transform: translate(-50%, 9px); } }
@keyframes floatC { from { transform: translateY(7px); } to { transform: translateY(-11px); } }

/* gentle elliptical "planetary" drift for the info plates (text stays upright + legible) */
@keyframes driftStatus {
  0%   { transform: translate(-54%, -7px); }
  25%  { transform: translate(-49%, 5px); }
  50%  { transform: translate(-55%, 11px); }
  75%  { transform: translate(-51%, 2px); }
  100% { transform: translate(-54%, -7px); }
}
@keyframes driftRoute {
  0%   { transform: translate(0, 0); }
  30%  { transform: translate(-9px, 9px); }
  60%  { transform: translate(5px, 16px); }
  100% { transform: translate(0, 0); }
}
@keyframes driftSpeed {
  0%   { transform: translate(0, 0); }
  35%  { transform: translate(9px, -11px); }
  65%  { transform: translate(-6px, -5px); }
  100% { transform: translate(0, 0); }
}

/* connect orb */
.orb-stage { display: grid; place-items: center; position: relative; aspect-ratio: 1; width: 100%; max-width: 440px; margin-inline: auto; }
.orb-stage::before { /* glow */
  content: ""; position: absolute; inset: 8%;
  background: var(--glow-signal);
  filter: blur(12px);
  animation: breathe 4.5s var(--ease-in-out) infinite;
}
@keyframes breathe { 0%,100% { scale: 0.92; opacity: 0.75; } 50% { scale: 1.08; opacity: 1; } }
.orb-ring { position: absolute; border-radius: 50%; border: 1px solid var(--border-strong); }
.orb-ring--1 { inset: 6%; }
.orb-ring--2 { inset: -2%; border-color: var(--border-subtle); }
.radar { position: absolute; inset: 6%; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; animation: radar 3.4s var(--ease-out) infinite; }
.radar:nth-child(2) { animation-delay: 1.7s; }
@keyframes radar { 0% { transform: scale(0.7); opacity: 0.6; } 100% { transform: scale(1.35); opacity: 0; } }
.orb {
  position: relative;
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: var(--grad-signal);
  display: grid; place-items: center;
  box-shadow: var(--shadow-glow-strong);
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out);
}
.orb:hover { transform: scale(1.03); }
.orb:active { transform: scale(0.98); }
.orb__inner {
  width: 86%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #1b2027, #0a0d12);
  display: grid; place-items: center; gap: 2px;
  border: 1px solid rgba(255,255,255,0.06);
}
.orb__power { width: 38%; height: 38%; stroke: var(--accent); stroke-width: 2.4; fill: none; filter: drop-shadow(0 0 10px rgba(0,227,122,0.6)); }
.orb__label { position: absolute; bottom: -2px; left: 0; right: 0; text-align: center; }
.orb__status { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 1.05rem; color: var(--accent); letter-spacing: 0.01em; }
.orb__sub { font-size: var(--text-xs); color: var(--text-tertiary); margin-top: 2px; }
.orb__ip { font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat { background: var(--surface-card); padding: clamp(22px, 3vw, 34px); }
.stat__num { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat__num .text-grad { display: inline; }
.stat__suffix { -webkit-text-fill-color: var(--text-primary); color: var(--text-primary); background: none; }
.stat__pre { -webkit-text-fill-color: var(--text-primary); color: var(--text-secondary); font-size: 0.55em; font-weight: var(--fw-semibold); }
.stat__inf { font-size: 1.15em; }
.stat__label { margin-top: 10px; color: var(--text-secondary); font-size: var(--text-sm); }

/* ============================================================
   FEATURES
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(22px, 2.6vw, 30px);
  position: relative;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base);
  overflow: hidden;
}
.card::after { /* hover glow */
  content: ""; position: absolute; inset: 0;
  background: var(--grad-signal-soft);
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card:hover::after { opacity: 1; }
.card > * { position: relative; }
.feat-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(0,227,122,0.14), rgba(0,194,255,0.10));
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}
.feat-icon svg { width: 24px; height: 24px; stroke: var(--accent); stroke-width: 2; fill: none; }
.card h3 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-h4); letter-spacing: -0.01em; }
.card p { margin-top: 10px; color: var(--text-secondary); font-size: var(--text-base); text-wrap: pretty; }
.feat-grid .card--wide { grid-column: span 2; }

/* ============================================================
   BENEFITS — «Нажал и забыл про VPN»
   ============================================================ */
.section-head--center { max-width: 680px; margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center p { margin-inline: auto; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(20px, 2.4vw, 28px);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.why-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
/* dopamine glow — staggered pulse, alternating green/cyan */
.why-card { animation: why-glow 3.6s var(--ease-in-out) infinite; }
.why-card:nth-child(1) { --gc: #00E37A; animation-delay: 0s; }
.why-card:nth-child(2) { --gc: #00C2FF; animation-delay: .9s; }
.why-card:nth-child(3) { --gc: #00E37A; animation-delay: 1.8s; }
.why-card:nth-child(4) { --gc: #00C2FF; animation-delay: 2.7s; }
@keyframes why-glow {
  0%, 100% { box-shadow: 0 6px 22px -14px color-mix(in oklab, var(--gc) 45%, transparent); }
  50%      { box-shadow: 0 12px 34px -10px color-mix(in oklab, var(--gc) 72%, transparent); }
}
.why-ico {
  width: 50px; height: 50px; border-radius: var(--radius-sm);
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad-signal-soft);
  border: 1px solid var(--border-subtle);
}
.why-ico svg { width: 24px; height: 24px; stroke: var(--accent); }
.why-card h3 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 1.18rem; letter-spacing: -0.01em; }
.why-card p { margin-top: 8px; color: var(--text-secondary); font-size: var(--text-base); text-wrap: pretty; }

.why-bullets {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px;
}
.why-bullets li { display: inline-flex; align-items: center; gap: 9px; color: var(--text-secondary); font-size: var(--text-sm); }
.why-bullets svg { width: 17px; height: 17px; stroke: var(--accent); fill: none; flex: none; }

/* compact live-connection demo (Nox + status panel) */
.why-demo {
  margin-top: clamp(34px, 5vw, 52px);
  display: flex; justify-content: center; align-items: center;
  background: var(--grad-ink);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
  position: relative; overflow: hidden;
}
[data-theme="light"] .why-demo { background: linear-gradient(200deg, #F4F7FA, #E7ECF4); }
.why-demo__fig { position: relative; width: min(440px, 100%); aspect-ratio: 1.12; }
.why-demo__fig .figure-glow { display: none; }

/* NormNet hub broadcasting to services — all keep working with NormNet on */
.svc-cluster { position: absolute; inset: 0; }
.svc-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.svc-links .spokes path {
  fill: none; stroke: color-mix(in oklab, var(--accent) 42%, transparent);
  stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 6;
  filter: drop-shadow(0 0 3px color-mix(in oklab, var(--accent) 60%, transparent));
  animation: spoke-flow 0.9s linear infinite;
}
.svc-links .spokes path:nth-child(2) { animation-delay: .22s; }
.svc-links .spokes path:nth-child(3) { animation-delay: .45s; }
.svc-links .spokes path:nth-child(4) { animation-delay: .68s; }
@keyframes spoke-flow { to { stroke-dashoffset: -10; } }

.svc-core {
  position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px;
  border-radius: 50%; display: grid; place-items: center; z-index: 3;
  background: var(--grad-signal);
  box-shadow: 0 0 26px 3px color-mix(in oklab, var(--accent) 55%, transparent), var(--shadow-md);
}
.svc-core img { width: 56%; height: auto; }
.svc-core::before, .svc-core::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--accent); animation: core-radar 3s var(--ease-out) infinite;
}
.svc-core::after { animation-delay: 1.5s; }
@keyframes core-radar { 0% { transform: scale(0.7); opacity: 0.7; } 100% { transform: scale(2.2); opacity: 0; } }

.svc-node {
  position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 17px; display: grid; place-items: center; z-index: 2;
  background: color-mix(in oklab, var(--surface-card) 90%, transparent);
  backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--g) 0%, transparent);
  animation: node-glow 2.6s var(--ease-in-out) infinite;
}
.svc-node::after {
  content: ""; position: absolute; inset: -12%; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, color-mix(in oklab, var(--g) 55%, transparent), transparent 70%);
  opacity: 0.3; filter: blur(8px); animation: node-halo 2.6s var(--ease-in-out) infinite;
}
.svc-node svg { width: 30px; height: 30px; }
.svc-node:nth-child(4) { animation-delay: .65s; }
.svc-node:nth-child(4)::after { animation-delay: .65s; }
.svc-node:nth-child(5) { animation-delay: 1.3s; }
.svc-node:nth-child(5)::after { animation-delay: 1.3s; }
.svc-node:nth-child(6) { animation-delay: 1.95s; }
.svc-node:nth-child(6)::after { animation-delay: 1.95s; }
.svc-ok {
  position: absolute; right: -5px; top: -5px; width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text-on-accent); background: var(--accent);
  box-shadow: 0 0 0 3px var(--surface-card); animation: ok-pop 2.6s var(--ease-in-out) infinite;
}
.svc-ok svg { width: 11px; height: 11px; stroke-width: 3.2; }
.svc-node:nth-child(4) .svc-ok { animation-delay: .65s; }
.svc-node:nth-child(5) .svc-ok { animation-delay: 1.3s; }
.svc-node:nth-child(6) .svc-ok { animation-delay: 1.95s; }
.svc-node:nth-child(7) { animation-delay: 2.6s; }
.svc-node:nth-child(7)::after { animation-delay: 2.6s; }
.svc-node:nth-child(7) .svc-ok { animation-delay: 2.6s; }
@keyframes node-glow {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--g) 0%, transparent); }
  50%      { box-shadow: 0 0 20px 2px color-mix(in oklab, var(--g) 55%, transparent); }
}
@keyframes node-halo { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.8; } }
@keyframes ok-pop { 0%, 100% { transform: scale(0.82); opacity: 0.7; } 50% { transform: scale(1); opacity: 1; } }
.why-demo__panel {
  background: color-mix(in oklab, var(--surface-card) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(16px, 2vw, 22px);
}
.why-demo__top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border-subtle); }
.why-demo__top .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0,227,122,0.18); animation: pulse-dot 2.4s var(--ease-in-out) infinite; flex: none; }
.why-demo__state { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-sm); color: var(--accent); }
.why-demo__speed { margin-left: auto; color: var(--text-secondary); font-size: var(--text-sm); white-space: nowrap; }
.why-demo__speed b { font-family: var(--font-display); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; color: var(--text-primary); font-size: 1.05rem; }
.why-demo__rows { display: grid; gap: 2px; margin-top: 12px; }
.why-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 6px;
  opacity: 0; transform: translateY(6px);
  animation: why-row-in 0.5s var(--ease-out) forwards; animation-delay: var(--d);
}
.why-row:not(:last-child) { border-bottom: 1px solid var(--border-subtle); }
.why-row__name { margin-right: auto; font-size: var(--text-sm); color: var(--text-primary); }
.why-row .sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 15px; }
.why-row .sig i { width: 3px; border-radius: 2px; background: var(--accent); display: block; transform-origin: bottom; animation: sig-rise 1.8s var(--ease-in-out) infinite; }
.why-row .sig i:nth-child(1){ height: 5px; animation-delay: 0s; }
.why-row .sig i:nth-child(2){ height: 9px; animation-delay: .15s; }
.why-row .sig i:nth-child(3){ height: 12px; animation-delay: .3s; }
.why-row .sig i:nth-child(4){ height: 15px; animation-delay: .45s; }
.why-row__ok { display: inline-flex; align-items: center; font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: 0.04em; color: var(--accent); background: var(--grad-signal-soft); border: 1px solid color-mix(in oklab, var(--accent) 26%, transparent); padding: 3px 9px; border-radius: var(--radius-pill); }
@keyframes why-row-in { to { opacity: 1; transform: none; } }
@keyframes sig-rise { 0%,100% { transform: scaleY(0.55); opacity: 0.65; } 50% { transform: scaleY(1); opacity: 1; } }

@media (max-width: 920px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-demo__speed { display: none; }
}

/* roadmap banner */
.roadmap {
  margin-top: 18px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 18px 22px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--grad-signal-soft);
}
.roadmap__tag {
  flex: none;
  font-family: var(--font-body); font-weight: var(--fw-semibold);
  font-size: var(--text-overline); letter-spacing: var(--ls-overline); text-transform: uppercase;
  color: var(--text-on-accent);
  background: var(--grad-signal-h);
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.roadmap p { color: var(--text-secondary); font-size: var(--text-base); margin: 0; }
.roadmap p b { color: var(--text-primary); font-weight: var(--fw-semibold); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.step { position: relative; }
.step__n {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: 1rem; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong); color: var(--accent);
  font-variant-numeric: tabular-nums; margin-bottom: 20px;
}
.step h3 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-h4); }
.step p { margin-top: 10px; color: var(--text-secondary); text-wrap: pretty; }
.step:not(:last-child)::before {
  content: ""; position: absolute; top: 23px; left: 58px; right: -10%;
  height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent);
}

/* ============================================================
   SERVERS
   ============================================================ */
.servers-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.server-list {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-md);
}
.server-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
  cursor: pointer;
}
.server-row:hover { background: var(--border-subtle); }
.server-row .flag { font-size: 1.5rem; line-height: 1; width: 30px; text-align: center; }
.server-row .meta { margin-right: auto; }
.server-row .name { font-weight: var(--fw-medium); }
.server-row .sub { font-size: var(--text-xs); color: var(--text-tertiary); }
.server-row .ping { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: var(--text-sm); color: var(--text-secondary); }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.bars i { width: 3px; border-radius: 2px; background: var(--accent); display: block; }
.bars i:nth-child(1){height:6px;} .bars i:nth-child(2){height:10px;} .bars i:nth-child(3){height:14px;} .bars i:nth-child(4){height:16px; opacity:0.3;}
.server-row.is-best .bars i:nth-child(4){opacity:1;}

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--border-subtle); }
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-primary);
}
.faq-q .chev { width: 22px; height: 22px; stroke: var(--text-tertiary); transition: transform var(--dur-base) var(--ease-out); flex: none; }
.faq-item.open .chev { transform: rotate(180deg); stroke: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease-out); }
.faq-a__inner { padding: 0 4px 24px; color: var(--text-secondary); max-width: 64ch; text-wrap: pretty; }

/* referral / partner program */
.refer { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px,4vw,56px); align-items: center; }
.refer__copy h2 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(2rem,4vw,2.9rem); letter-spacing: var(--ls-tight); line-height: 1.06; margin-top: 14px; text-wrap: balance; }
.refer__copy p { margin-top: 18px; color: var(--text-secondary); font-size: 1.08rem; max-width: 46ch; }
.refer__copy .hero__cta { margin-top: 28px; }
/* pulsing primary CTA, matching the other primary buttons */
.refer__copy .hero__cta .btn--primary { animation: cta-pulse 2.4s var(--ease-out) infinite; }
.refer__copy .hero__cta .btn--primary:hover { animation-play-state: paused; }
.refer__card { position: relative; overflow: hidden; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: clamp(28px,3.5vw,40px); }
.refer__card::before { content: ""; position: absolute; inset: -50% 30% auto -10%; height: 120%; background: var(--glow-signal); opacity: 0.4; filter: blur(26px); pointer-events: none; }
.refer__card > * { position: relative; }
.refer__pct { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(3rem,7vw,4.4rem); line-height: 1; letter-spacing: -0.03em; }
.refer__pctlabel { margin-top: 8px; color: var(--text-secondary); font-size: var(--text-sm); }
.refer__steps { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--border-subtle); display: grid; gap: 16px; }
.refer__steps li { display: flex; align-items: center; gap: 14px; color: var(--text-primary); font-size: 1rem; }
.refer__n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 0.9rem; color: var(--accent); background: var(--grad-signal-soft); border: 1px solid var(--border-strong); }
@media (max-width: 860px) { .refer { grid-template-columns: 1fr; } }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(44px, 6vw, 84px);
  text-align: center;
  background: var(--grad-ink);
  border: 1px solid var(--border-subtle);
}
[data-theme="light"] .cta-band { background: linear-gradient(200deg, #F4F7FA, #E1E7F0); }
.cta-band::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 120%;
  background: var(--glow-signal); opacity: 0.5; filter: blur(20px); pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: var(--ls-tight); text-wrap: balance; }
.cta-band p { margin: 18px auto 0; color: var(--text-secondary); max-width: 48ch; font-size: 1.1rem; }
.cta-band .hero__cta { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border-subtle); padding: clamp(48px, 6vw, 80px) 0 calc(40px + env(safe-area-inset-bottom)); background: var(--bg-base); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.footer__brand p { color: var(--text-secondary); font-size: var(--text-sm); margin-top: 16px; max-width: 32ch; }
.footer h4 { font-size: var(--text-sm); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-overline); color: var(--text-tertiary); margin-bottom: 14px; }
.footer li { margin-bottom: 2px; }
.footer li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-secondary); font-size: var(--text-sm); transition: color var(--dur-fast); }
.footer li a:hover { color: var(--text-primary); }
.footer__bot { display: flex; align-items: center; justify-content: flex-start; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-subtle); color: var(--text-tertiary); font-size: var(--text-xs); }
.footer__bot .footer-cookie { margin-left: auto; }

/* ---- mobile: collapsible footer groups + tidy bottom bar ---- */
@media (max-width: 640px) {
  .footer__top { grid-template-columns: 1fr; gap: 0; }
  .footer__brand { grid-column: 1 / -1; padding-bottom: 18px; }
  .footer__top > div:not(.footer__brand) { border-top: 1px solid var(--border-subtle); }
  .footer__top > div:not(.footer__brand) > h4 {
    display: flex; align-items: center; justify-content: space-between;
    margin: 0; min-height: 54px; cursor: pointer; user-select: none;
  }
  .footer__top > div:not(.footer__brand) > h4::after {
    content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform .26s var(--ease-out); opacity: .6;
  }
  .footer__top > div.is-open > h4::after { transform: rotate(-135deg); opacity: 1; }
  .footer__top > div:not(.footer__brand) > ul {
    overflow: hidden; max-height: 0; transition: max-height .28s var(--ease-out);
  }
  .footer__top > div.is-open > ul { max-height: 440px; padding-bottom: 6px; }
  .footer li { margin-bottom: 0; }
  .footer li a { width: 100%; }
  .footer__bot { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 26px; }
  .footer__bot .footer-cookie { margin-left: 0; min-height: 40px; }
}

/* footer support — icon badges (mail / bot / Nox channel) */
.foot-badges { display: flex; flex-direction: column; gap: 8px; }
.foot-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text-secondary); font-size: var(--text-sm); transition: color var(--dur-fast); }
.foot-badge:hover { color: var(--text-primary); }
.foot-badge .fb-ico { flex: none; width: 34px; height: 34px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--grad-signal-soft); border: 1px solid var(--border-subtle); color: var(--accent); transition: border-color var(--dur-fast); }
.foot-badge .fb-ico svg { width: 17px; height: 17px; }
.foot-badge:hover .fb-ico { border-color: var(--accent); }
.foot-badge .fb-lbl { font-weight: var(--fw-medium); }

/* footer "follow" hook band — Nox channel + YouTube, featured at top */
.footer__follow {
  display: grid; grid-template-columns: minmax(170px, auto) 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 34px);
  margin-bottom: clamp(36px, 5vw, 56px);
  background: var(--grad-ink); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  position: relative; overflow: hidden;
}
[data-theme="light"] .footer__follow { background: linear-gradient(200deg, #F4F7FA, #E7ECF4); }
.footer__follow::before { content: ""; position: absolute; inset: -40% 35% auto -12%; height: 130%; background: var(--glow-signal); opacity: .32; filter: blur(26px); pointer-events: none; }
.footer__follow > * { position: relative; }
.ff-title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(1.25rem, 2.4vw, 1.7rem); letter-spacing: var(--ls-tight); margin-top: 10px; text-wrap: balance; }
.ff-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ff-card { display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 13px 16px; border-radius: var(--radius-md); background: color-mix(in oklab, var(--surface-card) 88%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--border-strong); transition: transform .2s var(--ease-out), border-color .2s, box-shadow .2s; }
.ff-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 30px -16px color-mix(in oklab, var(--accent) 60%, transparent); }
.ff-ico { flex: none; width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--grad-signal); color: var(--text-on-accent); box-shadow: 0 6px 16px -5px color-mix(in oklab, var(--accent) 60%, transparent); }
.ff-ico svg { width: 22px; height: 22px; }
.ff-txt { display: flex; flex-direction: column; gap: 2px; margin-right: auto; min-width: 0; }
.ff-txt b { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 1rem; color: var(--text-primary); }
.ff-txt span { font-size: var(--text-xs); color: var(--text-tertiary); overflow-wrap: anywhere; }
.ff-arr { flex: none; color: var(--text-tertiary); transition: transform .2s var(--ease-out), color .2s; }
.ff-arr svg { width: 18px; height: 18px; }
.ff-card:hover .ff-arr { color: var(--accent); transform: translateX(3px); }
@media (max-width: 760px) { .footer__follow { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 560px) { .ff-cards { grid-template-columns: 1fr; } }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.40s; }

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(20px, 5vh, 48px);
  background:
    radial-gradient(120% 80% at 50% 38%, rgba(0,194,255,0.10), transparent 60%),
    var(--bg-deep);
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
#preloader.done { opacity: 0; visibility: hidden; }

/* --- stage holds the mascot, its glow, sonar pulse + scan --- */
.pre-stage {
  position: relative;
  display: grid; place-items: center;
  width: min(60vw, 240px);
  height: clamp(240px, 44vh, 380px);
}
.pre-figure {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  animation: pre-float 3.4s var(--ease-in-out) infinite;
}
.pre-nox {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 0 26px rgba(0,194,255,0.45)) drop-shadow(0 14px 24px rgba(0,0,0,0.6));
}
/* scanning sweep — a free-floating soft glow, NOT clipped to the image box,
   so it has no hard rectangular edges; it feathers to nothing on every side */
.pre-scan {
  position: absolute; left: -10%; right: -10%; top: 0; height: 38%;
  pointer-events: none; z-index: 3;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(0,227,122,0.04) 26%,
    rgba(0,227,122,0.38) 50%,
    rgba(0,194,255,0.08) 74%,
    transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%, #000 66%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 34%, #000 66%, transparent 100%);
  filter: blur(14px);
  animation: pre-scan 3.6s var(--ease-in-out) infinite;
}
/* glow halo behind the helmet */
.pre-glow {
  position: absolute; z-index: 1;
  top: 8%; left: 50%; width: 56%; aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0,194,255,0.5), rgba(0,194,255,0) 68%);
  filter: blur(6px);
  animation: pre-glow 3.4s var(--ease-in-out) infinite;
}
/* radar / sonar rings rising from the feet */
.pre-sonar {
  position: absolute; z-index: 0;
  bottom: 2%; left: 50%; transform: translateX(-50%);
  width: 220px; height: 70px;
}
.pre-sonar span {
  position: absolute; inset: 0;
  border: 1.5px solid rgba(0,227,122,0.55);
  border-radius: 50%;
  opacity: 0;
  animation: pre-sonar 2.8s var(--ease-out) infinite;
}
.pre-sonar span:nth-child(2) { animation-delay: 0.93s; border-color: rgba(0,194,255,0.5); }
.pre-sonar span:nth-child(3) { animation-delay: 1.86s; }
/* soft contact shadow under the feet */
.pre-shadow {
  position: absolute; z-index: 0;
  bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 46%; height: 18px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,0.55), transparent);
  animation: pre-shadow 3.4s var(--ease-in-out) infinite;
}

@keyframes pre-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pre-float-lockup { 0%,100% { transform: translate(-50%, -122%); } 50% { transform: translate(-50%, calc(-122% - 10px)); } }
@keyframes pre-glow  { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes pre-shadow{ 0%,100% { opacity: 0.8; transform: translateX(-50%) scaleX(1); } 50% { opacity: 0.5; transform: translateX(-50%) scaleX(0.86); } }
@keyframes pre-scan  { 0% { top: -34%; opacity: 0; } 16% { opacity: 0; } 32% { opacity: 1; } 68% { opacity: 1; } 84% { opacity: 0; } 100% { top: 100%; opacity: 0; } }
@keyframes pre-sonar {
  0%   { opacity: 0; transform: scale(0.25); }
  25%  { opacity: 0.9; }
  100% { opacity: 0; transform: scale(1.15); }
}

/* --- holographic brand lockup, projected over the guardian --- */
.pre-lockup {
  position: absolute; z-index: 5; top: 0; left: 50%;
  transform: translate(-50%, -122%);
  width: max-content;
  display: inline-flex; align-items: center; gap: 9px;
  animation: pre-float-lockup 3.4s var(--ease-in-out) infinite;
}
.pre-logomark { flex: none; width: 26px; height: auto; filter: drop-shadow(0 0 9px rgba(0,194,255,0.7)); }
.pre-logomark path { fill: #00E37A; animation: pre-logohue 2.6s var(--ease-in-out) infinite; }
.pre-logoword {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: 21px; letter-spacing: -0.01em; line-height: 1;
  background: linear-gradient(100deg, #00E37A 0%, #00C2FF 36%, #B9F0FF 50%, #00C2FF 64%, #00E37A 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: pre-flow 2.6s linear infinite;
}
.pre-bracket { flex: none; width: 6px; height: 20px; border: 2px solid rgba(0,194,255,0.5); }
.pre-bracket--l { border-right: 0; }
.pre-bracket--r { border-left: 0; }
@keyframes pre-logohue { 0%,100% { fill: #00E37A; } 50% { fill: #00C2FF; } }
@keyframes pre-flow { 0% { background-position: 0 0; } 100% { background-position: 220% 0; } }

/* --- progress + status line --- */
.pre-meta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pre-bar { width: clamp(150px, 52vw, 200px); height: 3px; border-radius: 2px; background: var(--border-subtle); overflow: hidden; }
.pre-bar i { display: block; height: 100%; width: 40%; border-radius: 2px; background: var(--grad-signal-h); animation: load-sweep 1.1s var(--ease-in-out) infinite; }
@keyframes load-sweep { 0% { transform: translateX(-120%);} 100% { transform: translateX(360%);} }
.pre-word {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: var(--fw-medium);
  font-size: var(--text-sm); color: var(--text-secondary); letter-spacing: 0.01em;
  text-align: center;
}
.pre-word__lock { width: 15px; height: 15px; color: var(--accent); flex: none; }
.pre-dots { display: inline-flex; gap: 3px; }
.pre-dots i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.3; animation: pre-dots 1.4s var(--ease-in-out) infinite; }
.pre-dots i:nth-child(2) { animation-delay: 0.2s; }
.pre-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes pre-dots { 0%,100% { opacity: 0.25; } 50% { opacity: 1; } }

@media (max-width: 600px) {
  #preloader { gap: clamp(34px, 7vh, 60px); }
  /* taller + wider stage so the full figure shows, never cropped at the legs */
  .pre-stage { width: min(84vw, 290px); height: clamp(340px, 58vh, 480px); }
  .pre-sonar { width: 72vw; max-width: 260px; }
  .pre-logoword { font-size: 19px; }
  .pre-logomark { width: 24px; }
  .pre-word { font-size: 13px; padding-inline: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .pre-figure, .pre-glow, .pre-scan, .pre-sonar span, .pre-shadow, .pre-bar i, .pre-dots i,
  .pre-lockup, .pre-logomark path, .pre-logoword { animation: none; }
  .pre-scan { display: none; }
  .pre-glow { opacity: 0.7; }
  .pre-logomark path { fill: #00E37A; }
}

/* page sits under the preloader; the preloader fades/removes on top of it */
.page { opacity: 1; }
html.no-preloader #preloader { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__col { max-width: none; }
  .orb-stage { max-width: 360px; grid-row: 1; }
  .hero-figure { max-width: 380px; --orbit-r: 192px; }
  .servers-wrap { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid .card--wide { grid-column: span 2; }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-grid .card--wide { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step:not(:last-child)::before { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand { grid-column: span 2; }
  /* hero visual: keep the orbit inside the figure + clear of the trust text */
  .hero__visual { margin-top: 26px; }
  .hero-figure { max-width: 312px; --orbit-r: 138px; }
  .app-inner { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .app-inner svg { width: 23px; height: 23px; }
  .app-chip:nth-child(3n) { display: none; }   /* thin the ring on phones */
  .chip-route { right: 2%; }
  .chip-speed { left: 2%; }
}
@media (max-width: 480px) {
  .wrap { width: min(1200px, 100% - 32px); }
  .footer__top { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
  .hero-figure { max-width: 286px; --orbit-r: 122px; }
  .app-inner { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .app-inner svg { width: 21px; height: 21px; }
  .chip-speed { left: 2%; }
  .card-status { min-width: 128px; padding: 10px 13px; }
  .float-card, .float-chip { font-size: 13px; }
}

/* mobile menu — fullscreen overlay */
.drawer {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column;
  background: color-mix(in oklab, var(--bg-deep) 82%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.drawer.open { opacity: 1; visibility: visible; transition: opacity var(--dur-base) var(--ease-out); }
.drawer__panel {
  position: relative;
  width: 100%; flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  padding: max(18px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) calc(26px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: transparent;
  transform: translateY(16px);
  transition: transform var(--dur-base) var(--ease-out);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.drawer.open .drawer__panel { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 4px 16px; margin-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.drawer__close {
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle); background: var(--surface-card);
  color: var(--text-primary); display: grid; place-items: center; cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.drawer__close:hover { border-color: var(--border-strong); background: var(--border-subtle); }
.drawer__close svg { width: 20px; height: 20px; }
.drawer__nav { display: flex; flex-direction: column; gap: 8px; margin-top: clamp(12px, 4vh, 40px); }
.drawer__nav a {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 14px; border-radius: var(--radius-md); min-height: 60px;
  font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 1.18rem;
  color: var(--text-primary); text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.drawer__nav a:hover, .drawer__nav a:active, .drawer__nav a:focus-visible { background: var(--surface-card); border-color: var(--border-subtle); }
.drawer__nav a .di {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: var(--surface-card); border: 1px solid var(--border-subtle); color: var(--accent);
}
.drawer__nav a .di svg { width: 19px; height: 19px; }
.drawer__nav a .dc { margin-left: auto; color: var(--text-tertiary); display: grid; place-items: center; }
.drawer__nav a .dc svg { width: 18px; height: 18px; }
.drawer__foot {
  margin-top: auto; padding-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.drawer__foot .btn { width: 100%; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   MASCOT — shared render treatment (Nox poses)
   Several render poses carry an off-brand printed graphic on the
   chest; desaturating + the small display size neutralises it and
   keeps the figure on-palette (cool mono with signal glow).
   ============================================================ */
.nox-mono {
  filter: grayscale(1) brightness(0.74) contrast(1.12) drop-shadow(0 22px 38px rgba(0,0,0,0.5));
}
[data-theme="light"] .nox-mono { filter: grayscale(1) brightness(0.8) contrast(1.1) drop-shadow(0 18px 30px rgba(40,50,70,0.24)); }

/* ============================================================
   HERO — V2 greeting plate + dynamic CTA states
   ============================================================ */
.hero-greet {
  display: inline-flex; align-items: center; gap: 13px;
  padding: 12px 18px 12px 14px;
  border-radius: var(--radius-md);
  background: var(--grad-signal-soft);
  border: 1px solid var(--border-strong);
  margin-bottom: 22px;
  max-width: 100%;
  position: relative; overflow: hidden;
}
.hero-greet::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--grad-signal-h);
}
.hero-greet .gift {
  flex: none; width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--grad-signal); color: var(--text-on-accent);
  box-shadow: 0 6px 16px rgba(0,227,122,0.3);
}
.hero-greet .gift svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.hero-greet .greet-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.hero-greet .greet-kicker {
  font-size: var(--text-xs); color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: var(--ls-overline); font-weight: var(--fw-semibold);
}
.hero-greet .greet-main { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 1.02rem; color: var(--text-primary); margin-top: 2px; }
.hero-greet .greet-main b { color: var(--accent); }

/* when JS marks a source, the cold-only badge hides and the greet shows */
.hero[data-mode="ref"] .badge-pill { display: none; }
[hidden] { display: none !important; }

/* ============================================================
   SOURCE PREVIEW SWITCHER (V1 / V2 sources)
   ============================================================ */
.src-switch {
  position: fixed; left: 16px; bottom: 16px; z-index: 80;
  background: color-mix(in oklab, var(--surface-card) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 246px; max-width: calc(100vw - 32px);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base);
}
.src-switch__head {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 13px; cursor: pointer; user-select: none;
  border-bottom: 1px solid var(--border-subtle);
}
.src-switch__head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0,227,122,0.16); flex: none; }
.src-switch__head .lbl { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-sm); }
.src-switch__head .cur { margin-left: auto; font-size: var(--text-xs); color: var(--text-tertiary); }
.src-switch__head .caret { width: 16px; height: 16px; stroke: var(--text-tertiary); transition: transform var(--dur-base); flex: none; }
.src-switch.collapsed .caret { transform: rotate(180deg); }
.src-switch__body { display: grid; gap: 4px; padding: 9px; transition: max-height var(--dur-base) var(--ease-out), opacity var(--dur-base); }
.src-switch.collapsed .src-switch__body { max-height: 0; padding-block: 0; opacity: 0; overflow: hidden; }
.src-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid transparent; cursor: pointer; text-align: left;
  color: var(--text-secondary); font-size: var(--text-sm); transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.src-opt:hover { background: var(--border-subtle); color: var(--text-primary); }
.src-opt.active { border-color: var(--accent); background: var(--grad-signal-soft); color: var(--text-primary); }
.src-opt .tag { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--text-tertiary); }
.src-opt.active .tag { background: var(--accent); }
.src-opt .o-goal { margin-left: auto; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); font-weight: var(--fw-semibold); }
.src-opt.active .o-goal { color: var(--accent); }

/* ============================================================
   HOW IT WORKS — mascot beside steps
   ============================================================ */
.how-wrap { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.how-figure { position: relative; align-self: stretch; min-height: 360px; }
.how-figure .figure-glow { width: 80%; height: 70%; top: 10%; }
.how-figure .nox-pose {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  height: 104%; width: auto; max-width: 130%; object-fit: contain;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 97%);
          mask-image: linear-gradient(180deg, #000 70%, transparent 97%);
  animation: float-y 6.5s var(--ease-in-out) infinite alternate;
}
.how-figure .figure-floor { width: 60%; }

/* ============================================================
   PRICING — preset term cards (Solo / 2 devices)
   ============================================================ */
.pricing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.pricing-head .section-head { margin-bottom: 0; }
.pricing-note { display: inline-flex; align-items: center; gap: 9px; color: var(--text-tertiary); font-size: var(--text-sm); }
.pricing-note svg { width: 17px; height: 17px; stroke: var(--accent); fill: none; stroke-width: 2; flex: none; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.4vw, 28px) clamp(20px, 2vw, 24px);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base);
  overflow: hidden;
}
.plan::after { content: ""; position: absolute; inset: 0; background: var(--grad-signal-soft); opacity: 0; transition: opacity var(--dur-base); pointer-events: none; }
.plan:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.plan:hover::after { opacity: 0.6; }
.plan > * { position: relative; }
.plan.is-pop {
  border-color: color-mix(in oklab, var(--accent-cyan, #00C2FF) 60%, var(--border-strong));
  box-shadow: 0 16px 46px -20px color-mix(in oklab, #00C2FF 55%, transparent);
}
.plan.is-best {
  border-color: color-mix(in oklab, var(--accent) 70%, var(--border-strong));
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent),
    0 22px 54px -16px color-mix(in oklab, var(--accent) 50%, transparent),
    var(--shadow-md);
}
.plan.is-best::after { opacity: 0.45; }
.plan__badge {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--font-body); font-weight: var(--fw-semibold);
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--radius-pill); color: var(--text-on-accent);
}
.plan__badge--pop { background: #00C2FF; }
.plan__badge--best { background: var(--grad-signal-h); }
.plan__term { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 1.08rem; }
.plan__termsub { font-size: var(--text-xs); color: var(--text-tertiary); margin-top: 3px; }
.plan__permo { display: flex; align-items: baseline; gap: 5px; margin-top: 20px; }
.plan__price { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(2.1rem, 3.4vw, 2.6rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan__permo .u { color: var(--text-secondary); font-size: var(--text-sm); }
.plan__total { margin-top: 12px; color: var(--text-secondary); font-size: var(--text-sm); }
.plan__total b { color: var(--text-primary); font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: var(--fw-semibold); }
.plan__save {
  align-self: flex-start;
  display: inline-flex; align-items: baseline; gap: 8px; margin-top: 14px;
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.05rem; letter-spacing: -0.01em;
  color: var(--accent);
  background: var(--grad-signal-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 32%, transparent);
  padding: 7px 13px; border-radius: var(--radius-pill);
}
.plan__save span { font-family: var(--font-body); font-weight: var(--fw-medium); font-size: var(--text-xs); letter-spacing: 0; color: var(--text-secondary); }
.plan__save--xl { font-size: 1.32rem; }
.plan.is-best .plan__save { background: var(--grad-signal-h); color: var(--text-on-accent); border-color: transparent; }
.plan.is-best .plan__save span { color: color-mix(in oklab, var(--text-on-accent) 80%, transparent); }
.plan__save.is-empty { visibility: hidden; }
.plan .btn { margin-top: auto; width: 100%; margin-top: 22px; }
.plans-foot { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; }
.plans-foot a.link-soft { color: var(--text-secondary); font-size: var(--text-sm); border-bottom: 1px dashed var(--border-strong); padding-bottom: 2px; transition: color var(--dur-fast), border-color var(--dur-fast); }
.plans-foot a.link-soft:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   BUILD-YOUR-OWN CTA (конструктор)
   ============================================================ */
.build-cta {
  display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 60px);
  align-items: center;
  background: var(--grad-ink);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 4.5vw, 60px);
  position: relative; overflow: hidden;
}
[data-theme="light"] .build-cta { background: linear-gradient(200deg, #F4F7FA, #E1E7F0); }
.build-cta::before { content: ""; position: absolute; inset: -40% auto -40% -15%; width: 55%; background: var(--glow-signal); opacity: 0.4; filter: blur(26px); pointer-events: none; }
.build-cta > * { position: relative; }
.build-cta__copy h2 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: var(--ls-tight); line-height: 1.06; margin-top: 14px; text-wrap: balance; }
.build-cta__copy p { margin-top: 16px; color: var(--text-secondary); font-size: 1.08rem; max-width: 50ch; text-wrap: pretty; }
.build-cta__copy p a { color: var(--accent); border-bottom: 1px solid color-mix(in oklab, var(--accent) 50%, transparent); font-weight: var(--fw-medium); transition: border-color var(--dur-fast); }
.build-cta__copy p a:hover { border-color: var(--accent); }
.build-cta__platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.build-cta__platforms span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: var(--radius-pill); border: 1px solid var(--border-subtle); background: var(--surface-card); color: var(--text-secondary); font-size: var(--text-sm); }
.build-cta__platforms svg { width: 16px; height: 16px; stroke: var(--accent); flex: none; }
.build-cta__copy .btn { margin-top: 26px; }
/* pulsing CTA, matching hero / telegram primary buttons */
.build-cta__copy .btn--primary { animation: cta-pulse 2.4s var(--ease-out) infinite; }
.build-cta__copy .btn--primary:hover { animation-play-state: paused; }

/* dopamine "assembly" animation — translucent build-blocks rise & lock in,
   confined to the empty right area, behind the copy, reduced-motion safe */
.build-spark { position: absolute; right: 0; top: 0; bottom: 0; width: 42%; pointer-events: none; z-index: 0; }
.build-cta__copy { z-index: 1; }
.bs-block {
  position: absolute; left: var(--x); bottom: -10%;
  width: var(--s); height: var(--s);
  border-radius: 8px;
  background: color-mix(in oklab, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  opacity: 0;
  animation: bs-rise 6s var(--ease-in-out) infinite;
  animation-delay: var(--d);
}
.bs-spark {
  position: absolute; right: 26%; top: 22%;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px color-mix(in oklab, var(--accent) 70%, transparent);
  opacity: 0;
  animation: bs-pop 6s var(--ease-out) infinite;
  animation-delay: 1.1s;
}
@keyframes bs-rise {
  0%   { transform: translateY(0) rotate(var(--r)) scale(0.85); opacity: 0; }
  18%  { opacity: 0.9; }
  64%  { transform: translateY(-150px) rotate(0deg) scale(1); opacity: 0.9; }
  76%  { transform: translateY(-150px) rotate(0deg) scale(1); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes bs-pop {
  0%, 60% { transform: scale(0); opacity: 0; }
  72%     { transform: scale(1.3); opacity: 1; }
  100%    { transform: scale(0.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .build-spark { display: none; }
  .build-cta__copy .btn--primary { animation: none; }
}

/* interactive-looking constructor preview card (links to the tool) */
.build-cta__preview {
  display: block; align-self: stretch;
  background: color-mix(in oklab, var(--surface-card) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 2.6vw, 28px);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.build-cta__preview:hover { transform: translateY(-4px); border-color: var(--accent); }
.bcp-row { display: flex; align-items: baseline; justify-content: space-between; }
.bcp-row + .bcp-track { margin-top: 12px; }
.bcp-lbl { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 0.98rem; }
.bcp-val { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.15rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.bcp-track { position: relative; height: 8px; border-radius: 999px; background: var(--border-strong); margin-bottom: 22px; }
.bcp-track i { position: absolute; inset: 0 42% 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2, #00C2FF)); }
.bcp-knob { position: absolute; top: 50%; left: 58%; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); transform: translate(-50%, -50%); box-shadow: 0 4px 12px rgba(0,0,0,0.35); }
.bcp-seg { display: inline-flex; gap: 5px; }
.bcp-seg b { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 0.82rem; color: var(--text-tertiary); padding: 5px 9px; border-radius: var(--radius-sm); background: var(--surface-card); border: 1px solid var(--border-subtle); font-variant-numeric: tabular-nums; }
.bcp-seg b.on { color: var(--text-on-accent); background: var(--grad-signal); border-color: transparent; }
.bcp-result { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-subtle); }
.bcp-price { color: var(--text-secondary); font-size: var(--text-sm); }
.bcp-price b { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.5rem; color: var(--text-primary); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bcp-go { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--text-sm); color: var(--accent); }
.bcp-go svg { width: 17px; height: 17px; stroke: currentColor; transition: transform var(--dur-fast); }
.build-cta__preview:hover .bcp-go svg { transform: translateX(3px); }
@media (max-width: 860px) {
  .build-cta { grid-template-columns: 1fr; }
  .build-spark { display: none; }
}

/* auto-playing constructor mini-demo (price drops as term grows) */
.bc-demo {
  position: relative; align-self: stretch;
  background: color-mix(in oklab, var(--surface-card) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 2.6vw, 28px);
  overflow: hidden;
}
.bc-demo__glow { position: absolute; inset: -40% 25% auto -12%; height: 130%; background: var(--glow-signal); opacity: 0.22; filter: blur(26px); pointer-events: none; }
.bc-demo > *:not(.bc-demo__glow) { position: relative; }
.bcd-head { display: flex; align-items: baseline; justify-content: space-between; }
.bcd-lbl { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 0.98rem; }
.bcd-dev { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.2rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.bcd-track { position: relative; height: 8px; border-radius: 999px; margin: 12px 0 22px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2, #00C2FF) 58%, var(--border-strong) 58%); }
.bcd-knob { position: absolute; top: 50%; left: 58%; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); transform: translate(-50%,-50%); box-shadow: 0 4px 12px rgba(0,0,0,0.35); animation: knob-idle 7s var(--ease-in-out) infinite alternate; }
@keyframes knob-idle { 0%,100% { left: 54%; } 50% { left: 62%; } }

.bcd-seg { position: relative; display: grid; grid-template-columns: repeat(5,1fr); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: var(--surface-card); overflow: hidden; }
.bcd-seg b { position: relative; z-index: 1; text-align: center; padding: 9px 2px; font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 0.78rem; color: var(--text-secondary); }
.bcd-seg__hl { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 20%; background: color-mix(in oklab, var(--accent) 20%, transparent); border-bottom: 2px solid var(--accent); animation: seg-move 7s var(--ease-in-out) infinite alternate; }
@keyframes seg-move {
  0%,12%  { transform: translateX(0%); }
  20%,32% { transform: translateX(100%); }
  40%,52% { transform: translateX(200%); }
  60%,72% { transform: translateX(300%); }
  80%,100%{ transform: translateX(400%); }
}

.bcd-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-subtle); }
.bcd-price { display: flex; align-items: baseline; gap: 6px; }
.bcd-roll { display: block; height: 2.1rem; overflow: hidden; animation: price-roll 7s var(--ease-in-out) infinite alternate; }
.bcd-roll i { display: block; height: 2.1rem; line-height: 2.1rem; font-style: normal; font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.7rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  background: var(--grad-signal-h); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
@keyframes price-roll {
  0%,12% { transform: translateY(0); }
  20%,32% { transform: translateY(-2.1rem); }
  40%,52% { transform: translateY(-4.2rem); }
  60%,72% { transform: translateY(-6.3rem); }
  80%,100%{ transform: translateY(-8.4rem); }
}
.bcd-u { font-size: 0.9rem; color: var(--text-secondary); }
.bcd-save { display: inline-flex; align-items: center; height: 1.5rem; padding: 0 10px; border-radius: var(--radius-pill); background: var(--grad-signal-soft); border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent); overflow: hidden; animation: save-pop 7s var(--ease-in-out) infinite alternate; }
.bcd-roll--save { height: 1.5rem; animation-name: save-roll; }
.bcd-roll--save i { height: 1.5rem; line-height: 1.5rem; font-size: 0.82rem; -webkit-text-fill-color: var(--accent); color: var(--accent); background: none; }
@keyframes save-roll {
  0%,12% { transform: translateY(0); }
  20%,32% { transform: translateY(-1.5rem); }
  40%,52% { transform: translateY(-3rem); }
  60%,72% { transform: translateY(-4.5rem); }
  80%,100%{ transform: translateY(-6rem); }
}
@keyframes save-pop {
  0%,58% { box-shadow: 0 0 0 0 transparent; }
  80%,100% { box-shadow: 0 0 16px 1px color-mix(in oklab, var(--accent) 50%, transparent); }
}

/* ============================================================
   TELEGRAM block
   ============================================================ */
.tg {
  max-width: 600px; margin-inline: auto;
  text-align: center;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 4.5vw, 52px) clamp(24px, 4vw, 56px) clamp(28px, 4vw, 44px);
  position: relative; overflow: hidden;
}
.tg::before { content: ""; position: absolute; inset: -45% 0 auto 0; height: 70%; background: var(--glow-signal); opacity: 0.32; filter: blur(30px); pointer-events: none; }
.tg > * { position: relative; }
.tg .eyebrow { justify-content: center; }
.tg h2 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: var(--ls-tight); margin-top: 12px; }

/* animated emblem: telegram glyph + orbiting plane */
.tg__emblem { position: relative; width: 132px; height: 132px; margin: 0 auto 22px; }
.tg__glow { position: absolute; inset: 14%; border-radius: 50%; background: var(--glow-signal); filter: blur(10px); animation: breathe 5s var(--ease-in-out) infinite; }
.tg__ring { position: absolute; border-radius: 50%; border: 1px solid var(--border-strong); }
.tg__ring--1 { inset: 8%; }
.tg__ring--2 { inset: -4%; border-style: dashed; border-color: color-mix(in oklab, var(--accent) 30%, transparent); animation: orbit-spin 26s linear infinite; }
.tg__badge {
  position: absolute; inset: 22%; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #1b2027, #0a0d12);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-glow, 0 0 24px rgba(0,227,122,0.25));
  color: var(--accent);
}
.tg__badge svg { width: 46%; height: 46%; filter: drop-shadow(0 0 8px rgba(0,194,255,0.5)); }
.tg__orbit { position: absolute; inset: 0; animation: orbit-spin 7s linear infinite; }
.tg__plane {
  position: absolute; top: -6px; left: 50%; width: 30px; height: 30px; margin-left: -15px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--grad-signal); color: var(--text-on-accent);
  box-shadow: 0 4px 14px rgba(0,227,122,0.4);
  animation: orbit-spin 7s linear infinite reverse;
}
.tg__plane svg { width: 16px; height: 16px; }
.tg__dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0,227,122,0.16); }
.tg__dot--a { top: 16%; left: 6%; animation: float-y 4s var(--ease-in-out) infinite alternate; }
.tg__dot--b { bottom: 18%; right: 8%; background: var(--accent-2, #00C2FF); box-shadow: 0 0 0 4px rgba(0,194,255,0.16); animation: float-y 5.5s var(--ease-in-out) infinite alternate-reverse; }

.tg__points { margin-top: 22px; display: grid; gap: 14px; }
.tg__points p { color: var(--text-secondary); font-size: 1.05rem; line-height: var(--lh-normal); text-wrap: pretty; }
.tg__points b { color: var(--accent); font-weight: var(--fw-semibold); }
.tg__note {
  display: flex; align-items: center; gap: 12px; text-align: left;
  margin-top: 22px; padding: 14px 16px;
  background: var(--grad-signal-soft); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  color: var(--text-secondary); font-size: var(--text-sm); text-wrap: pretty;
}
.tg__note-ico { flex: none; width: 34px; height: 34px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--surface-card); border: 1px solid var(--border-subtle); }
.tg__note-ico svg { width: 17px; height: 17px; stroke: var(--accent); }
.tg__actions { display: grid; gap: 12px; margin-top: 22px; }
.tg__actions .btn { width: 100%; }
.tg__actions .btn svg { width: 19px; height: 19px; }
/* highlight the primary "Перейти в бот" action */
.tg__actions .btn--primary { box-shadow: 0 8px 26px -6px color-mix(in oklab, var(--accent) 60%, transparent); animation: cta-pulse 2.4s var(--ease-out) infinite; }
.tg__actions .btn--primary:hover { animation-play-state: paused; }

/* small mascot accent that points at the plans */
.pricing-mascot { position: absolute; right: 2%; bottom: -6%; width: clamp(120px, 13vw, 190px); pointer-events: none; z-index: 1; }
.pricing-mascot img { width: 100%; height: auto; }

/* ============================================================
   PARTNER / CTA mascot accents
   ============================================================ */
.refer { position: relative; }
.refer-mascot { position: absolute; right: -14px; bottom: -40px; width: clamp(110px, 12vw, 168px); pointer-events: none; z-index: 0; opacity: 0.96; }
.refer-mascot img { width: 100%; height: auto; }

/* referral earnings — dopamine reward animation (tucked into the card's empty top-right corner) */
.refer-earn { position: absolute; right: 18px; top: 16px; bottom: auto; width: 100px; height: 104px; pointer-events: none; z-index: 1; }
.refer-earn .re-glow { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); width: 92px; height: 92px; border-radius: 50%; background: var(--glow-signal); filter: blur(15px); opacity: 0.45; animation: breathe 4.5s var(--ease-in-out) infinite; }
.re-coin {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-signal); color: var(--text-on-accent);
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.45rem;
  box-shadow: 0 8px 22px rgba(0,227,122,0.4), 0 0 0 5px color-mix(in oklab, var(--accent) 14%, transparent);
  animation: re-bob 2.6s var(--ease-in-out) infinite;
}
.re-pop {
  position: absolute; left: 50%; bottom: 50px; transform: translate(-50%, 0);
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 0.82rem; color: var(--accent); white-space: nowrap;
  background: var(--surface-card); border: 1px solid color-mix(in oklab, var(--accent) 32%, transparent);
  padding: 4px 9px; border-radius: var(--radius-pill); box-shadow: 0 5px 14px rgba(0,227,122,0.28);
  opacity: 0; animation: re-rise 3.9s var(--ease-out) infinite;
}
.re-pop--2 { animation-delay: 1.3s; }
.re-pop--3 { animation-delay: 2.6s; }
@keyframes re-bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }
@keyframes re-rise {
  0%   { opacity: 0; transform: translate(-50%, 6px) scale(0.8); }
  16%  { opacity: 1; transform: translate(-50%, -6px) scale(1); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -44px) scale(0.95); }
}
@media (max-width: 860px) { .refer-earn { display: none; } }
.cta-band { /* keep, add room for mascot */ }
.cta-mascot { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); width: clamp(150px, 18vw, 240px); pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(180deg,#000 80%,transparent 99%); mask-image: linear-gradient(180deg,#000 80%,transparent 99%); }
.cta-mascot img { width: 100%; height: auto; }

/* ============================================================
   RESPONSIVE — new blocks (mobile-first priority)
   ============================================================ */
@media (max-width: 1024px) {
  .how-wrap { grid-template-columns: 1fr; }
  .how-figure { display: none; }   /* steps lead on tablet/phone; mascot is desktop garnish */
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .src-switch { width: 210px; }
  .pricing-mascot, .refer-mascot { display: none; }   /* avoid clutter on phone */
  /* plan cards: strictly vertical stack on phone — no horizontal swipe */
  .plans { grid-template-columns: 1fr; gap: 14px; }
  .pricing-head { margin-bottom: 22px; }
}
@media (max-width: 480px) {
  .hero-greet { gap: 11px; padding: 11px 14px 11px 12px; }
  .hero-greet .greet-main { font-size: 0.95rem; }
  .cta-mascot { width: 150px; }
}

/* how-it-works: steps as stacked card rows beside the mascot */
.how-wrap .steps { grid-template-columns: 1fr; gap: 14px; counter-reset: none; }
.how-wrap .step {
  display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start;
  padding: 18px 20px; background: var(--surface-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
}
.how-wrap .step__n { margin-bottom: 0; }
.how-wrap .step:not(:last-child)::before { display: none; }
.how-wrap .step h3 { font-size: var(--text-h4); }
.how-wrap .step p { margin-top: 6px; }

/* pricing save-line icon */
.plan__save svg { width: 14px; height: 14px; flex: none; }

/* CTA mascot — right-aligned so it never sits behind centred copy */
.cta-mascot { left: auto; right: 3%; bottom: 0; transform: none; z-index: 1; }
@media (max-width: 920px) {
  .cta-mascot, .refer-mascot { display: none; }
}

/* ============================================================
   PERF — paint-property pulses re-expressed as GPU-composited
   transform/opacity (identical look, no per-frame box-shadow /
   top repaints). Reduced-motion still disables everything above.
   ============================================================ */

/* expanding CTA ring (was: animated box-shadow on the button) */
#heroCtaPrimary,
.refer__copy .hero__cta .btn--primary,
.build-cta__copy .btn--primary,
.tg__actions .btn--primary { position: relative; animation: none; }
.tg__actions .btn--primary { box-shadow: 0 8px 26px -6px color-mix(in oklab, var(--accent) 60%, transparent); }
#heroCtaPrimary::after,
.refer__copy .hero__cta .btn--primary::after,
.build-cta__copy .btn--primary::after,
.tg__actions .btn--primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 55%, transparent);
  opacity: 0; will-change: transform, opacity;
  animation: cta-ring 2.4s var(--ease-out) infinite;
}
#heroCtaPrimary:hover::after,
.refer__copy .hero__cta .btn--primary:hover::after,
.build-cta__copy .btn--primary:hover::after,
.tg__actions .btn--primary:hover::after { animation-play-state: paused; }
@keyframes cta-ring {
  0%   { opacity: .55; transform: scale(1); }
  70%  { opacity: 0;   transform: scale(1.14); }
  100% { opacity: 0;   transform: scale(1.14); }
}

/* pulsing status dots → expanding opacity ring on a pseudo-element */
.card-status .dot, .app-inner .av, .support-btn__dot { animation: none; }
.card-status .dot { position: relative; }
.card-status .dot::after, .app-inner .av::after, .support-btn__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 30%, transparent);
  opacity: 1; will-change: transform, opacity;
  animation: dot-ring 2.4s var(--ease-in-out) infinite;
}
@keyframes dot-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0; transform: scale(1.9); }
}

/* why-card dopamine glow → animate opacity of a static halo (composited) */
.why-card { position: relative; animation: none; }
.why-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; pointer-events: none;
  box-shadow: 0 12px 34px -10px color-mix(in oklab, var(--gc) 72%, transparent);
  opacity: .45; will-change: opacity;
  animation: card-glow 3.6s var(--ease-in-out) infinite;
}
.why-card:nth-child(1)::after { animation-delay: 0s; }
.why-card:nth-child(2)::after { animation-delay: .9s; }
.why-card:nth-child(3)::after { animation-delay: 1.8s; }
.why-card:nth-child(4)::after { animation-delay: 2.7s; }
@keyframes card-glow { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

/* service nodes: drop the box-shadow pulse, keep the opacity-animated halo */
.svc-node { animation: none; }
.svc-node::after { opacity: .35; animation: node-halo 2.6s var(--ease-in-out) infinite; }
@keyframes node-halo { 0%, 100% { opacity: .25; } 50% { opacity: .85; } }

/* hero scan line: travel via transform (container-unit) instead of top */
.hero-figure { container-type: size; }
.scanline { top: 8%; animation: scan 4.6s var(--ease-in-out) infinite; }
@keyframes scan {
  0%   { transform: translateY(0);     opacity: 0; }
  12%  { opacity: .85; }
  80%  { opacity: .85; }
  100% { transform: translateY(52cqh); opacity: 0; }
}

/* preloader scan sweep: transform instead of top */
.pre-figure { container-type: size; }
.pre-scan { top: 0; animation: pre-scan 3.6s var(--ease-in-out) infinite; }
@keyframes pre-scan {
  0%   { transform: translateY(-34cqh); opacity: 0; }
  16%  { opacity: 0; }
  32%  { opacity: 1; }
  68%  { opacity: 1; }
  84%  { opacity: 0; }
  100% { transform: translateY(100cqh); opacity: 0; }
}

/* ============================================================
   LEGAL PAGES (terms / privacy / refund / cookies / contacts)
   ============================================================ */
.legal { position: relative; padding-top: clamp(108px, 14vh, 150px); padding-bottom: clamp(56px, 8vw, 100px); }
.legal__inner { width: min(820px, 100% - 48px); margin-inline: auto; }
@media (max-width: 480px) { .legal__inner { width: min(820px, 100% - 32px); } }
.legal__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text-secondary); font-size: var(--text-sm); font-weight: var(--fw-medium); }
.legal__back:hover { color: var(--text-primary); }
.legal__back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.legal__head { margin-top: 6px; }
.legal h1 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; letter-spacing: var(--ls-tight); margin-top: 12px; text-wrap: balance; }
.legal__sub { display: block; font-size: 0.46em; color: var(--text-secondary); font-weight: var(--fw-semibold); letter-spacing: 0; margin-top: 10px; }
.legal__meta { margin-top: 16px; color: var(--text-tertiary); font-size: var(--text-sm); }
.legal__body { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: clamp(22px, 3vw, 34px); }
.legal__body section { scroll-margin-top: 100px; }
.legal__body h2 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: clamp(1.2rem, 2.4vw, 1.5rem); letter-spacing: -0.01em; color: var(--text-primary); }
.legal__body h3 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 1.05rem; margin-top: 18px; color: var(--text-primary); }
.legal__body p { margin-top: 12px; color: var(--text-secondary); font-size: 1rem; line-height: 1.7; text-wrap: pretty; }
.legal__body ul { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; padding-left: 0; list-style: none; }
.legal__body li { display: flex; gap: 11px; color: var(--text-secondary); font-size: 1rem; line-height: 1.65; text-wrap: pretty; }
.legal__body li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 9px; }
.legal__body a { color: var(--accent); border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); }
.legal__body a:hover { border-color: var(--accent); }
.legal__ph { color: var(--accent); background: color-mix(in oklab, var(--accent) 12%, transparent); border: 1px dashed color-mix(in oklab, var(--accent) 45%, transparent); padding: 1px 7px; border-radius: 6px; font-weight: var(--fw-semibold); font-size: 0.92em; font-family: var(--font-body); }
.legal__callout { margin-top: 6px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: clamp(16px, 2.4vw, 24px); }
.legal__callout.is-key { border-color: color-mix(in oklab, var(--accent) 40%, var(--border-strong)); background: var(--grad-signal-soft); }
.legal__contact { display: grid; gap: 12px; margin-top: 20px; }
.legal__crow { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 14px 16px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); color: var(--text-primary); transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.legal__crow:hover { border-color: var(--accent); transform: translateY(-2px); }
.legal__crow .ico { flex: none; width: 42px; height: 42px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--grad-signal-soft); border: 1px solid var(--border-subtle); }
.legal__crow .ico svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 2; }
.legal__crow .ct { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.legal__crow .ct b { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 0.98rem; }
.legal__crow .ct span { font-size: var(--text-sm); color: var(--text-secondary); overflow-wrap: anywhere; }

/* ============================================================
   COOKIE CONSENT — banner + settings sheet
   ============================================================ */
.cc-banner {
  position: fixed; right: 16px; left: auto;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 120; width: min(346px, calc(100vw - 24px)); margin: 0;
  background: color-mix(in oklab, var(--surface-card) 90%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  box-shadow: 0 14px 36px -20px rgba(0,0,0,0.55);
  padding: 14px 15px 11px;
  transform: translateY(14px); opacity: 0;
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out);
}
.cc-banner.show { transform: none; opacity: 1; }
.cc-text { color: var(--text-secondary); font-size: 13px; line-height: 1.45; }
.cc-text a { color: var(--accent); border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.cc-btn { flex: 1 1 auto; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: var(--radius-sm); font-family: var(--font-body); font-weight: var(--fw-semibold); font-size: 13px; cursor: pointer; border: 1px solid var(--border-strong); background: var(--surface-card); color: var(--text-primary); white-space: nowrap; transition: border-color var(--dur-fast), filter var(--dur-fast), background var(--dur-fast); }
.cc-btn:hover { border-color: var(--accent); }
/* Quiet 'accept' — soft brand tint, not the loud gradient CTA, so the cookie bar never competes
   with the page's real green call-to-action. */
.cc-btn--primary { background: var(--grad-signal-soft); color: var(--accent); border-color: color-mix(in oklab, var(--accent) 32%, transparent); }
.cc-btn--primary:hover { filter: none; border-color: var(--accent); }
.cc-btn--ghost { background: transparent; border-color: var(--border-subtle); }
.cc-link { margin-top: 6px; background: none; border: 0; padding: 0 2px; min-height: 40px; display: inline-flex; align-items: center; color: var(--text-tertiary); font-size: 12.5px; font-weight: var(--fw-medium); cursor: pointer; transition: color var(--dur-fast); }
.cc-link:hover { color: var(--text-secondary); text-decoration: underline; }
.cc-sheet { position: fixed; inset: 0; z-index: 130; display: none; align-items: center; justify-content: center; padding: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--bg-deep) 64%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cc-sheet.show { display: flex; }
.cc-panel { width: 100%; max-width: 460px; max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--bg-base); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(22px, 4vw, 30px); }
.cc-title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.3rem; }
.cc-sub { margin-top: 8px; color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.5; }
.cc-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-subtle); cursor: pointer; }
.cc-row__t { margin-right: auto; display: flex; flex-direction: column; gap: 3px; }
.cc-row__t b { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 0.98rem; color: var(--text-primary); }
.cc-row__t span { font-size: var(--text-xs); color: var(--text-tertiary); line-height: 1.4; }
.cc-fixed { flex: none; font-size: var(--text-xs); color: var(--text-tertiary); font-weight: var(--fw-semibold); }
.cc-switch { position: relative; flex: none; width: 46px; height: 28px; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cc-switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--border-strong); transition: background var(--dur-fast); pointer-events: none; }
.cc-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform var(--dur-fast) var(--ease-out); }
.cc-switch input:checked + i { background: var(--accent); }
.cc-switch input:checked + i::after { transform: translateX(18px); }
.cc-switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.cc-sheet__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cc-sheet__actions .cc-btn { flex: 1 1 auto; }
.footer-cookie { background: none; border: 0; padding: 0; color: var(--text-tertiary); font-size: var(--text-xs); cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; transition: color var(--dur-fast); }
.footer-cookie:hover { color: var(--text-secondary); }

/* ============================================================
   PERF GOVERNOR (2026-06-23) — visual-preserving animation control.
   Decorative CSS animations cost CPU/GPU even when scrolled off-screen or
   when the tab / Telegram webview is backgrounded. The <AnimGovernor> island
   adds `.nn-frozen` to animated elements that leave the viewport (resumed the
   instant they scroll back — invisible to the user) and `.nn-frozen-all` on
   <html> while the document is hidden. Nothing here alters on-screen visuals.
   ============================================================ */
.nn-frozen, .nn-frozen::before, .nn-frozen::after { animation-play-state: paused !important; }
html.nn-frozen-all *, html.nn-frozen-all *::before, html.nn-frozen-all *::after { animation-play-state: paused !important; }

/* Global reduced-motion backstop: honour the OS "Reduce Motion" setting by
   collapsing every looping/decorative animation + transition. Content-entrance
   keyframes end in their visible state, so reduced-motion users still see
   everything — they just don't get the motion. Individual @media blocks above
   already cover key cases; this guarantees nothing keeps looping. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

