/* PlumVPN landing — face2: stable bg + auth UI */
:root {
  --bg: #030305;
  --bg-elev: #0c0c10;
  --silver: #f4f4f5;
  --muted: #a1a1aa;
  --red: #ef4444;
  --red-hot: #ff3b3b;
  --red-glow: rgba(255, 59, 59, 0.45);
  --line: rgba(255, 255, 255, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--silver);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: inherit; }

[hidden] { display: none !important; }

/* ── фон: база всегда красивая, orbs — бонус ── */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(165deg, #0a0a12 0%, #030305 42%, #08060a 100%);
}

.scene__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.scene__orb--1 {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: -8%;
  left: -10%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.45), transparent 68%);
  animation: drift1 22s ease-in-out infinite alternate;
}

.scene__orb--2 {
  width: min(360px, 60vw);
  height: min(360px, 60vw);
  top: 20%;
  right: -15%;
  background: radial-gradient(circle, rgba(80, 30, 30, 0.5), transparent 70%);
  animation: drift2 26s ease-in-out infinite alternate;
}

.scene__orb--3 {
  width: min(300px, 55vw);
  height: min(300px, 55vw);
  bottom: -5%;
  left: 30%;
  background: radial-gradient(circle, rgba(50, 50, 60, 0.55), transparent 72%);
  animation: drift3 20s ease-in-out infinite alternate;
}

.scene__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 25%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 65% at 50% 25%, #000 15%, transparent 72%);
}

@keyframes drift1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6%, 4%, 0) scale(1.08); }
}

@keyframes drift2 {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-5%, 6%, 0); }
}

@keyframes drift3 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4%, -3%, 0) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .scene__orb { animation: none; opacity: 0.35; }
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 12px;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav__brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255, 59, 59, 0.25), 0 8px 32px var(--red-glow);
}

.nav__name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav__name em {
  font-style: normal;
  color: var(--red-hot);
  text-shadow: 0 0 24px var(--red-glow);
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav__links a {
  text-decoration: none;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--silver); }

.nav__links .nav-dl { display: none; }
.nav__links .nav-dl.is-on { display: inline; }

.hero {
  text-align: center;
  padding: 48px 0 56px;
}

.hero__title {
  margin: 0 0 24px;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  animation: rise 0.95s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__title .glow {
  display: block;
  background: linear-gradient(135deg, #fff 0%, #fca5a5 45%, var(--red-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 34rem;
  margin: 0 auto 32px;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--muted);
  animation: rise 1s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__auth-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.btn--tg .btn__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.nav__name--orbit {
  font-family: "Orbitron", var(--font);
  letter-spacing: 0.08em;
}

.hero__auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: rise 1s 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__auth-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.hero__auth-row .btn {
  min-width: min(100%, 220px);
}

.hero__auth .tg-wrap {
  min-height: 44px;
}

.hero__dl {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero__dl.is-on { display: flex; }

.hero__greet {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero__greet strong { color: var(--silver); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #dc2626, var(--red-hot));
  box-shadow: 0 12px 40px rgba(239, 68, 68, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--ghost {
  color: var(--silver);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 64px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
  animation: rise 1s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  text-align: center;
  background: rgba(12, 12, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stat__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.stat__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  font-weight: 800;
  color: var(--red-hot);
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-align: center;
}

.stat__sub {
  display: block;
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  font-weight: 700;
  color: rgba(252, 165, 165, 0.85);
  line-height: 1.3;
}

.stat__sub--muted {
  visibility: visible;
  user-select: none;
  pointer-events: none;
  color: rgba(252, 165, 165, 0.75);
  font-weight: 600;
}

.stat__sub--reserve {
  visibility: hidden;
  height: 1.3em;
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  line-height: 1.3;
  pointer-events: none;
}

.info-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  font-size: 0.72rem;
  font-weight: 800;
  font-style: italic;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}

.card {
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(24, 24, 28, 0.92), rgba(8, 8, 12, 0.96));
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.28);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--red-hot);
  filter: drop-shadow(0 0 10px rgba(255, 59, 59, 0.25));
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.card--spotlight {
  border-color: rgba(239, 68, 68, 0.28);
  background: linear-gradient(160deg, rgba(40, 16, 16, 0.55), rgba(12, 12, 16, 0.96));
}

.card--spotlight .badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.card__tags span {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 20px;
}

.footer a:hover { color: var(--red-hot); }

.section-head__sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.section-head__sub a { color: var(--red-hot); }

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.price-card {
  position: relative;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.price-card--spot {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.08);
}

.price-card--best {
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.06);
}

.price-card .badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-card--spot .badge {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.price-card--best .badge {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.pricing-footnote {
  max-width: 720px;
  margin: -32px auto 48px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}

.price-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.price-card__sum {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--silver);
}

.price-card__note {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.legal-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.legal-band h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--red-hot);
}

.legal-band p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.legal-band a { color: var(--silver); }

.footer__legal a { margin-right: 16px; }

.split-dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0;
  max-width: 420px;
  background: #121216;
  color: var(--silver);
}

.split-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.split-dialog__inner { padding: 24px; }
.split-dialog h3 { margin: 0 0 12px; color: var(--red-hot); }
.split-dialog p { margin: 0 0 12px; color: var(--muted); line-height: 1.55; font-size: 0.95rem; }
.split-dialog form { margin: 0; padding-top: 8px; }
.split-dialog button {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: var(--red-hot);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 800px) {
  .nav__links { display: none; }
  .stats, .cards, .pricing, .legal-band { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
}
