@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800&family=Rajdhani:wght@500;600;700&display=swap");

:root {
  --bg: #050505;
  --bg-2: #0a0a0c;
  --surface: rgba(16, 16, 20, .88);
  --surface-solid: #121218;
  --ink: #f5f5f7;
  --muted: #9a9aa3;
  --line: rgba(255, 60, 60, .18);
  --line-soft: rgba(255, 255, 255, .08);
  --red: #ff2a2a;
  --red-hot: #ff4d4d;
  --red-deep: #b30000;
  --glow: 0 0 24px rgba(255, 42, 42, .35);
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --radius: 16px;
  --nav-h: 4.4rem;
  --top-h: 4.2rem;
  --max: 1100px;
  --font: "Rajdhani", sans-serif;
  --display: "Orbitron", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 17px/1.45 var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(255, 42, 42, .18), transparent 55%),
    radial-gradient(700px 500px at 100% 20%, rgba(179, 0, 0, .12), transparent 50%),
    radial-gradient(700px 500px at 0% 80%, rgba(179, 0, 0, .1), transparent 50%),
    var(--bg);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .45;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,42,42,.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, rgba(255,42,42,.28) 0 1px, transparent 1.5px),
    linear-gradient(115deg, transparent 40%, rgba(255,42,42,.05) 50%, transparent 60%),
    linear-gradient(-115deg, transparent 40%, rgba(255,42,42,.04) 52%, transparent 62%);
  background-size: 180px 180px, 220px 220px, 100% 100%, 100% 100%;
  animation: plexus 18s linear infinite;
}
@keyframes plexus {
  from { background-position: 0 0, 40px 20px, 0 0, 0 0; }
  to { background-position: 180px 90px, -80px 120px, 0 0, 0 0; }
}

a { color: var(--red-hot); text-decoration: none; }
a:hover { text-decoration: underline; color: #fff; }

.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--top-h);
  padding: .75rem clamp(1rem, 3vw, 2rem);
  background: rgba(5, 5, 5, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0,0,0,.45);
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.15rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 18px rgba(255, 42, 42, .45);
}
.brand:hover { text-decoration: none; color: var(--red-hot); }
.top-nav { display: none; align-items: center; gap: .1rem; }
.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .5rem .85rem;
  border-radius: 999px;
}
.top-nav a:hover,
.top-nav a.active {
  color: #fff;
  background: rgba(255, 42, 42, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 42, 42, .35);
  text-decoration: none;
}
.top-actions { display: flex; align-items: center; gap: .4rem; }
.top-link {
  background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600;
  cursor: pointer; padding: .45rem .7rem; border-radius: 999px; letter-spacing: .03em;
  text-transform: uppercase; font-size: .92rem;
}
.top-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.top-cta {
  display: inline-flex; align-items: center;
  padding: .55rem 1rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff !important; font-weight: 700; font-size: .92rem;
  letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: var(--glow);
}
.top-cta:hover { filter: brightness(1.08); }

.shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 3vw, 2rem) 2rem;
  flex: 1;
}
body.has-nav .shell { padding-bottom: calc(var(--nav-h) + 1.5rem); }
body.is-home .shell {
  padding: 0;
  width: 100%;
  max-width: none;
}

h1, h2, .display {
  font-family: var(--display);
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.15;
}
h1 { margin: 0 0 .45rem; font-size: clamp(1.55rem, 3.5vw, 2.2rem); }
h2, .sec {
  margin: 2rem 0 .85rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}
.muted { color: var(--muted); margin: 0; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 36rem; }
.foot-note { margin-top: 1.2rem; font-size: .95rem; }
.err, .ok-msg {
  padding: .85rem 1rem; border-radius: 12px; margin: .85rem 0; font-weight: 700;
}
.err { color: #fecaca; background: rgba(255, 42, 42, .12); border: 1px solid rgba(255,42,42,.35); }
.ok-msg { color: #bbf7d0; background: rgba(22, 163, 74, .12); border: 1px solid rgba(22,163,74,.3); }

.stack { display: grid; gap: 1rem; margin-top: 1.1rem; }
.grid-2, .grid-3 { display: grid; gap: 1rem; }
@media (min-width: 720px) {
  .top-nav { display: flex; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  body.has-nav .shell { padding-bottom: 2rem; }
  .bottom-nav { display: none; }
}

label {
  display: grid; gap: .4rem; font-size: .95rem; color: var(--muted);
  font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
}
input, select, textarea {
  width: 100%; padding: .9rem 1rem; border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: #0b0b0e; color: var(--ink); font: inherit;
}
input:focus, select:focus {
  outline: none;
  border-color: rgba(255, 42, 42, .55);
  box-shadow: 0 0 0 3px rgba(255, 42, 42, .15), var(--glow);
}

.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: .4rem;
  width: 100%; padding: .95rem 1.15rem; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--red-hot) 0%, var(--red-deep) 100%);
  color: #fff; font-weight: 700; text-decoration: none !important; cursor: pointer;
  font-size: 1.02rem; letter-spacing: .06em; text-transform: uppercase;
  font-family: var(--font);
  box-shadow: var(--glow);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.alt {
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 42, 42, .45);
  box-shadow: inset 0 0 20px rgba(255, 42, 42, .08);
}
.btn.ghost {
  background: rgba(255,255,255,.03); color: var(--ink);
  border: 1px solid var(--line-soft); box-shadow: none;
}
.btn.small { width: auto; padding: .55rem .9rem; font-size: .88rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .65rem; }
.btn-row .btn { flex: 1 1 10rem; width: auto; min-width: 8rem; }

.card {
  padding: 1.15rem 1.2rem; border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  display: grid; gap: .7rem;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,42,42,.55), transparent);
}
.card.ok-card { text-align: center; padding: 2rem 1.4rem; }
.row { display: flex; justify-content: space-between; gap: .6rem; align-items: center; }
.badge {
  font-size: .72rem; padding: .22rem .55rem; border-radius: 999px;
  background: rgba(255,42,42,.12); color: var(--red-hot);
  white-space: nowrap; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.badge.ok { background: rgba(255,42,42,.18); color: #fff; box-shadow: 0 0 12px rgba(255,42,42,.25); }
.price { font-weight: 700; white-space: nowrap; font-family: var(--display); letter-spacing: .02em; }
.price.big { font-size: 1.55rem; margin: .8rem 0; }
.tariff .btn { margin-top: .35rem; }
.tariff-grid { display: grid; gap: 1rem; }
@media (min-width: 800px) {
  .tariff-grid { grid-template-columns: repeat(3, 1fr); }
}

.tabs { display: flex; gap: .5rem; margin: 1rem 0 .2rem; }
.tabs a {
  flex: 1; text-align: center; padding: .7rem; border-radius: 12px; text-decoration: none;
  color: var(--muted); background: rgba(255,255,255,.03); border: 1px solid var(--line-soft);
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.tabs a.active {
  color: #fff; border-color: rgba(255,42,42,.5);
  background: rgba(255,42,42,.14); box-shadow: var(--glow);
}

.hidden { display: none !important; }
.steps { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.steps li { margin: .4rem 0; }
.steps b { color: var(--ink); }
.warn-box {
  margin-top: .6rem; padding: .85rem 1rem; border-radius: 12px;
  background: rgba(255, 42, 42, .1); color: #fecaca; font-size: .95rem; font-weight: 600;
  border: 1px solid rgba(255,42,42,.28);
}
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .92rem; }
.mono.wrap { word-break: break-all; }
.big-code {
  font-size: 1.5rem; letter-spacing: .12em; margin: .25rem 0 .75rem;
  font-family: var(--display); color: #fff; text-shadow: 0 0 16px rgba(255,42,42,.45);
}

/* Hero — full-bleed brand art */
.hero-bleed {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 820px);
  display: grid;
  place-items: end center;
  padding: 0;
  background: #000 url("/static/hero-vpn.png") center top / cover no-repeat;
}
.hero-bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.2) 45%, rgba(5,5,5,.92) 88%, var(--bg) 100%),
    radial-gradient(600px 280px at 50% 28%, rgba(255,42,42,.18), transparent 70%);
  pointer-events: none;
}
.hero-bleed::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 42%, rgba(255,42,42,.12) 50%, transparent 58%);
  animation: slash 7s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes slash {
  from { transform: translateX(-2%) rotate(0.2deg); opacity: .55; }
  to { transform: translateX(3%) rotate(-0.4deg); opacity: .9; }
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(2.2rem, 5vw, 3.5rem);
  display: grid;
  gap: .85rem;
  justify-items: center;
  text-align: center;
}
.hero-mark {
  width: min(42vw, 180px);
  height: auto;
  margin-bottom: .2rem;
  filter: drop-shadow(0 0 22px rgba(255,42,42,.55));
  animation: pulse-glow 3.2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(255,42,42,.4)); transform: translateY(0); }
  50% { filter: drop-shadow(0 0 28px rgba(255,42,42,.75)); transform: translateY(-3px); }
}
.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.4rem, 9vw, 5rem);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: .95;
  margin: 0;
  color: #fff;
  text-shadow: 0 0 30px rgba(255,42,42,.35);
  animation: rise .7s ease both;
}
.hero-rule {
  width: min(220px, 50vw);
  height: 2px;
  border: 0;
  margin: .15rem 0;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  box-shadow: 0 0 18px rgba(255,42,42,.8);
  animation: rise .75s ease .05s both;
}
.hero-tag {
  margin: 0;
  font-size: clamp(.85rem, 2vw, 1rem);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  font-weight: 600;
  animation: rise .8s ease .08s both;
}
.hero-tag span { color: var(--red); margin: 0 .35rem; }
.hero-copy {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
  color: rgba(245,245,247,.78);
  margin: .2rem 0 0;
  animation: rise .85s ease .1s both;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
  margin-top: .55rem;
  animation: rise .9s ease .14s both;
}
.hero-actions .btn { width: auto; min-width: 11rem; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.home-wrap {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 3rem;
}
.feature-strip {
  display: grid; gap: 1rem; margin: 0 0 1.5rem; position: relative; z-index: 2;
}
@media (min-width: 800px) {
  .feature-strip { grid-template-columns: repeat(3, 1fr); }
}
.feature {
  padding: 1.25rem 1.3rem; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,42,42,.08), rgba(18,18,24,.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.feature b {
  display: block; font-family: var(--display); font-size: 1rem;
  margin-bottom: .4rem; letter-spacing: .06em; text-transform: uppercase;
}
.feature p { margin: 0; color: var(--muted); font-size: 1.02rem; }

.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 1rem; margin: 1.5rem 0 1rem;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 28rem; }

.auth-shell {
  width: min(100%, 440px); margin: 1.5rem auto 0; display: grid; gap: 1rem;
}
.auth-shell .card { padding: 1.4rem; }

.dash-head {
  display: grid; gap: .45rem; padding: 1.3rem 1.4rem;
  border-radius: calc(var(--radius) + 2px);
  background:
    radial-gradient(500px 160px at 10% 0%, rgba(255,42,42,.22), transparent 55%),
    linear-gradient(180deg, #16161c, #101014);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 0 40px rgba(255,42,42,.05);
  margin-bottom: 1rem;
}
.dash-head h1 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
.balance-line { margin: .15rem 0 0; font-size: 1.08rem; }
.status-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .75rem; border-radius: 999px;
  background: rgba(255,42,42,.14); color: #fff;
  font-weight: 700; font-size: .9rem; width: fit-content;
  border: 1px solid rgba(255,42,42,.35);
  box-shadow: 0 0 16px rgba(255,42,42,.2);
  letter-spacing: .04em; text-transform: uppercase;
}

.menu-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 1rem 0 1.4rem;
}
@media (min-width: 800px) {
  .menu-grid { grid-template-columns: repeat(4, 1fr); }
}
.menu-btn {
  display: flex; align-items: center; justify-content: center; min-height: 3.4rem;
  padding: .8rem .85rem; border-radius: 14px;
  background: rgba(18,18,24,.92); border: 1px solid var(--line-soft);
  color: var(--ink); text-decoration: none !important;
  font-size: 1rem; font-weight: 700; text-align: center; line-height: 1.2;
  letter-spacing: .03em; text-transform: uppercase;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.menu-btn:hover {
  border-color: rgba(255,42,42,.55);
  box-shadow: var(--glow);
  transform: translateY(-1px);
  color: #fff;
}
.amounts-grid .inline-form { margin: 0; }
.amounts-grid .menu-btn { width: 100%; border: 0; cursor: pointer; font: inherit; }

.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-block; padding: .28rem .6rem; border-radius: 999px;
  background: rgba(255,42,42,.12); font-size: .8rem; color: var(--red-hot);
  font-weight: 700; text-decoration: none; letter-spacing: .03em;
}
.device-row {
  display: flex; justify-content: space-between; gap: .75rem; align-items: center;
  padding: .65rem 0; border-top: 1px solid var(--line-soft);
}
.device-row:first-of-type { border-top: 0; padding-top: 0; }
.stats { grid-template-columns: 1fr 1fr; display: grid; gap: .85rem; }
.stat { display: grid; gap: .15rem; }
.stat b { font-size: 1.35rem; font-family: var(--display); }
.prose { line-height: 1.6; color: var(--muted); }
.inline-form { display: inline; margin: 0; }
.flex-form { display: grid; gap: .75rem; padding: .75rem 0; border-top: 1px solid var(--line-soft); }
.quote-live {
  padding: .85rem 1rem; border-radius: 12px;
  background: rgba(255,42,42,.1); font-weight: 700;
  border: 1px solid rgba(255,42,42,.28);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem clamp(1rem, 3vw, 2rem) 1.8rem;
  color: var(--muted); font-size: .95rem;
  background: rgba(0,0,0,.35);
}
.site-footer .inner {
  width: min(100%, var(--max)); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem;
  justify-content: space-between; align-items: center;
}
.site-footer a { color: #ddd; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; font-size: .88rem; }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(5,5,5,.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom));
}
.bottom-nav__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: .5rem .25rem; color: var(--muted); text-decoration: none;
  font-size: .78rem; border-radius: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.bottom-nav__item.active {
  color: #fff; background: rgba(255,42,42,.14);
  box-shadow: inset 0 0 0 1px rgba(255,42,42,.35);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
