/**
 * Zorix VPN — главная: premium retro-tech / pixel cyber
 * Токены согласованы с /css/style.css (юридические страницы)
 */
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Press+Start+2P&display=swap");

:root {
  --bg-dark: #0a0a1a;
  --bg-panel: rgba(18, 18, 42, 0.72);
  --bg-panel-solid: #12122a;
  --neon-cyan: #00ffcc;
  --neon-purple: #9945ff;
  --pixel-green: #39ff14;
  --neon-red: #ff3355;
  --text-muted: #8b8ba8;
  --text-bright: #e4e8ff;
  --border-glow-cyan: rgba(0, 255, 204, 0.35);
  --border-glow-purple: rgba(153, 69, 255, 0.3);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-pixel: "Press Start 2P", ui-monospace, monospace;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body.page-landing {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-bright);
  background: var(--bg-dark);
  overflow-x: hidden;
  padding-top: var(--safe-top);
  padding-bottom: calc(1.5rem + var(--safe-bottom));
}

/* --- FX layers --- */
.page-landing .fx-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 255, 204, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153, 69, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 20%, transparent 75%);
  opacity: 0.85;
}

.page-landing .fx-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 100% 80% at 50% 0%, transparent 40%, rgba(5, 5, 18, 0.85) 100%);
}

.page-landing .fx-noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page-landing .pixel-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.page-landing .pixel-bg .pixel {
  position: absolute;
  width: 3px;
  height: 3px;
  left: var(--x, 50%);
  top: -10px;
  background: var(--color, var(--neon-cyan));
  animation: pixelFall 14s linear infinite;
  animation-delay: var(--delay, 0s);
  box-shadow: 0 0 8px var(--color);
  border-radius: 0;
}

@keyframes pixelFall {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  6% {
    opacity: 0.85;
  }
  94% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(110vh);
    opacity: 0;
  }
}

.page-landing .scanlines {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.04),
    rgba(0, 0, 0, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.5;
}

/* --- Layout shell --- */
.landing-wrap {
  position: relative;
  z-index: 10;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

@media (min-width: 480px) {
  .landing-wrap {
    padding: 2rem 1.5rem 4rem;
  }
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 0.5rem 0 2.5rem;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: clamp(0.45rem, 2.8vw, 0.5rem);
  letter-spacing: 0.15em;
  color: var(--neon-purple);
  text-shadow: 0 0 12px var(--border-glow-purple);
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--neon-purple);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 20px var(--border-glow-purple),
    4px 4px 0 rgba(0, 0, 0, 0.45);
}

.hero__logo {
  font-family: var(--font-pixel);
  font-size: clamp(1.1rem, 6vw, 1.65rem);
  font-weight: normal;
  line-height: 1.35;
  margin: 0 0 1.5rem;
  color: var(--neon-cyan);
  text-shadow:
    2px 2px 0 #0a1628,
    0 0 24px rgba(0, 255, 204, 0.45),
    0 0 48px rgba(153, 69, 255, 0.25);
  letter-spacing: 0.08em;
}

.hero__logo span {
  color: var(--neon-purple);
  text-shadow:
    2px 2px 0 #0a1628,
    0 0 20px rgba(153, 69, 255, 0.5);
}

.hero__price {
  font-family: var(--font-pixel);
  font-size: clamp(0.62rem, 3.6vw, 0.78rem);
  line-height: 1.7;
  color: var(--text-bright);
  margin: 0 0 1rem;
  text-shadow: 0 0 16px rgba(0, 255, 204, 0.2);
}

.hero__lead {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 22rem;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  max-width: 22rem;
  margin: 0 auto;
}

/* --- Buttons (pixel premium) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: clamp(0.5rem, 2.8vw, 0.62rem);
  line-height: 1.5;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1rem 1.25rem;
  border: 2px solid;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    filter 0.2s;
  -webkit-tap-highlight-color: transparent;
  border-radius: 0 !important;
}

.btn:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
}

.btn--primary {
  color: var(--bg-dark);
  background: linear-gradient(180deg, #00f5d0 0%, #00c9a8 45%, #00a88a 100%);
  border-color: var(--neon-cyan);
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.35),
    inset -2px -2px 0 rgba(0, 0, 0, 0.2),
    4px 4px 0 rgba(0, 0, 0, 0.55),
    5px 5px 0 var(--neon-purple),
    0 0 28px rgba(0, 255, 204, 0.35);
  animation: btnGlow 3s ease-in-out infinite;
}

.btn--primary:hover {
  filter: brightness(1.08);
  transform: translate(1px, 1px);
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.28),
    inset -2px -2px 0 rgba(0, 0, 0, 0.25),
    3px 3px 0 rgba(0, 0, 0, 0.5),
    4px 4px 0 var(--neon-purple),
    0 0 36px rgba(0, 255, 204, 0.45);
}

.btn--ghost {
  color: var(--neon-cyan);
  background: rgba(18, 18, 42, 0.85);
  border-color: rgba(0, 255, 204, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(0, 255, 204, 0.12),
    4px 4px 0 rgba(0, 0, 0, 0.45);
}

.btn--ghost:hover {
  color: var(--text-bright);
  border-color: var(--neon-cyan);
  box-shadow:
    inset 0 0 20px rgba(0, 255, 204, 0.08),
    0 0 24px rgba(0, 255, 204, 0.2),
    4px 4px 0 rgba(0, 0, 0, 0.45);
  transform: translate(1px, 1px);
}

@keyframes btnGlow {
  0%,
  100% {
    box-shadow:
      inset 2px 2px 0 rgba(255, 255, 255, 0.35),
      inset -2px -2px 0 rgba(0, 0, 0, 0.2),
      4px 4px 0 rgba(0, 0, 0, 0.55),
      5px 5px 0 var(--neon-purple),
      0 0 28px rgba(0, 255, 204, 0.35);
  }
  50% {
    box-shadow:
      inset 2px 2px 0 rgba(255, 255, 255, 0.35),
      inset -2px -2px 0 rgba(0, 0, 0, 0.2),
      4px 4px 0 rgba(0, 0, 0, 0.55),
      5px 5px 0 var(--neon-purple),
      0 0 40px rgba(0, 255, 204, 0.55);
  }
}

.hero__note {
  margin-top: 1rem;
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* --- Sections --- */
.section {
  margin-top: 2.5rem;
  scroll-margin-top: 1rem;
}

.section__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section__head::before,
.section__head::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
  opacity: 0.6;
}

.section__title {
  font-family: var(--font-pixel);
  font-size: clamp(0.55rem, 3vw, 0.65rem);
  color: var(--pixel-green);
  text-shadow: 0 0 14px rgba(57, 255, 20, 0.35);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* --- Pixel cards --- */
.pixel-cards {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.pixel-card {
  position: relative;
  padding: 1.125rem 1rem 1.125rem 3rem;
  background: var(--bg-panel);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid var(--neon-cyan);
  box-shadow:
    inset 0 0 0 1px rgba(0, 255, 204, 0.08),
    4px 4px 0 rgba(0, 0, 0, 0.4),
    0 0 24px rgba(0, 255, 204, 0.12);
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    border-color 0.2s;
}

.pixel-card::before {
  content: attr(data-marker);
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--neon-purple);
  text-shadow: 0 0 10px rgba(153, 69, 255, 0.5);
  line-height: 1;
}

.pixel-card:hover {
  transform: translateY(-2px);
  border-color: var(--neon-purple);
  box-shadow:
    inset 0 0 0 1px rgba(153, 69, 255, 0.15),
    4px 4px 0 rgba(0, 0, 0, 0.35),
    0 0 32px rgba(153, 69, 255, 0.2);
}

.pixel-card:active {
  transform: translateY(0) scale(0.99);
}

.pixel-card__title {
  font-family: var(--font-pixel);
  font-size: clamp(0.45rem, 2.5vw, 0.52rem);
  line-height: 1.6;
  color: var(--neon-cyan);
  margin: 0 0 0.35rem;
  letter-spacing: 0.04em;
}

.pixel-card__text {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Steps row (how it works) */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  counter-reset: step;
}

.step-pixel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(18, 18, 42, 0.95) 0%, rgba(10, 10, 30, 0.98) 100%);
  border: 2px solid rgba(153, 69, 255, 0.45);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
}

.step-pixel__num {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  background: var(--neon-purple);
  border: 2px solid #c084fc;
  box-shadow: 0 0 16px rgba(153, 69, 255, 0.45);
}

.step-pixel__body h3 {
  font-family: var(--font-pixel);
  font-size: clamp(0.45rem, 2.4vw, 0.5rem);
  color: var(--neon-cyan);
  margin: 0 0 0.35rem;
  letter-spacing: 0.05em;
}

.step-pixel__body p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Device chips */
.device-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.device-chip {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  color: var(--text-bright);
  border: 1px solid rgba(0, 255, 204, 0.35);
  background: rgba(0, 255, 204, 0.06);
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.08);
}

/* iOS block */
.ios-block {
  padding: 1.25rem 1rem;
  border: 2px solid rgba(57, 255, 20, 0.4);
  background: rgba(57, 255, 20, 0.04);
  box-shadow:
    inset 0 0 30px rgba(57, 255, 20, 0.06),
    4px 4px 0 rgba(0, 0, 0, 0.4);
}

.ios-block h3 {
  font-family: var(--font-pixel);
  font-size: clamp(0.48rem, 2.8vw, 0.55rem);
  color: var(--pixel-green);
  margin: 0 0 1rem;
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.35);
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.ios-block ol {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.ios-block li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.ios-block li:last-child {
  margin-bottom: 0;
}

/* Footer */
.landing-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(153, 69, 255, 0.35);
  text-align: center;
}

.landing-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
}

.landing-footer__legal a {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.landing-footer__legal a:hover,
.landing-footer__legal a:focus-visible {
  color: var(--neon-cyan);
  text-decoration: underline;
}

.landing-footer__contact {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.landing-footer__contact a {
  color: var(--neon-cyan);
  text-decoration: none;
}

.landing-footer__contact a:hover {
  text-decoration: underline;
}

.landing-footer__copy {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* Utility */
.is-hidden {
  display: none !important;
}

/* Toast */
.toast {
  position: fixed;
  top: calc(1rem + var(--safe-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  max-width: 22rem;
  padding: 0.65rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-bright);
  background: rgba(18, 18, 42, 0.95);
  border: 2px solid var(--neon-purple);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
  text-align: center;
}

button.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

@media (min-width: 600px) {
  .pixel-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .pixel-card {
    min-height: 100%;
  }
}

/* --- Вход / микродвижение (стресс-UX без перегруза) --- */
.page-landing--enter .landing-wrap {
  animation: landingIn 0.7s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

@keyframes landingIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__logo--pulse {
  animation: logoPulse 5s ease-in-out infinite;
}

@keyframes logoPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(0, 255, 204, 0.35));
  }
}

.btn--shine {
  position: relative;
  overflow: hidden;
}

.btn--shine::after {
  content: "";
  position: absolute;
  inset: -40% -40%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: shineSweep 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shineSweep {
  0%,
  70% {
    transform: translateX(-120%);
  }
  85% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.scanlines--animated {
  animation: scanlineFlicker 6s ease-in-out infinite;
}

@keyframes scanlineFlicker {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.38;
  }
}

.section--fade {
  animation: sectionFade 0.85s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.section--fade:nth-of-type(1) {
  animation-delay: 0.05s;
}
.section--fade:nth-of-type(2) {
  animation-delay: 0.12s;
}
.section--fade:nth-of-type(3) {
  animation-delay: 0.18s;
}
.section--fade:nth-of-type(4) {
  animation-delay: 0.24s;
}

@keyframes sectionFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Компактный лендинг (SaaS) */
.landing-wrap--compact {
  max-width: 26rem;
  padding-bottom: 2rem;
}

.hero--compact {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.hero__emergency {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  line-height: 1;
}

.hero__hook {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--neon-purple);
  margin: 0 0 1rem;
  font-weight: 600;
}

.hero__tagline {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.5rem 0 1.25rem;
}

.hero__price--accent {
  font-family: var(--font-pixel);
  font-size: clamp(0.58rem, 3.2vw, 0.72rem);
  color: var(--text-bright);
  margin: 0 0 0.25rem;
  line-height: 1.6;
}

.btn--large {
  padding: 1.15rem 1.35rem;
  font-size: clamp(0.52rem, 2.9vw, 0.64rem);
  min-height: 3.25rem;
}

.pwa-hint {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.ios-block--compact {
  padding: 1rem 0.9rem;
}

.pwa-hint__list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.pwa-hint__list li {
  margin-bottom: 0.4rem;
}
