:root {
  --bg: #07050c;
  --pink: #ff2fd6;
  --cyan: #2ff2ff;
  --violet: #9b5cff;
  --acid: #c6ff2f;
  --orange: #ff8a2f;
  --ink: #f4f1ff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Rubik', -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* фон: тёмный радиальный градиент как база под всплывающие пятна */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, #1a0f2e 0%, var(--bg) 65%);
  z-index: 0;
}

.bg-blobs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(38px);
  mix-blend-mode: screen;
  animation: blob-pop 3.2s ease-out forwards;
  will-change: transform, opacity;
}

@keyframes blob-pop {
  0%   { transform: scale(0) translate(0, 0); opacity: 0; }
  25%  { opacity: 0.7; }
  100% { transform: scale(1.8) translate(0, -10%); opacity: 0; }
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.05) 0px,
    rgba(255,255,255,0.05) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  opacity: 0.5;
}

.noise {
  position: fixed;
  inset: -10%;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.9) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

.noise.flash {
  opacity: 0.15;
  transition: opacity 0.05s linear;
}

.screen {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 480px;
  padding: 32px 24px;
  text-align: center;
}

.title {
  margin: 0 0 20px;
  font-weight: 900;
  font-size: clamp(28px, 9vw, 44px);
  line-height: 1.15;
  letter-spacing: 0.5px;
  position: relative;
  background: linear-gradient(90deg, var(--pink), var(--cyan), var(--violet), var(--acid), var(--pink));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flow 6s linear infinite;
}

@keyframes flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.title.glitching {
  animation: flow 6s linear infinite, glitch-jitter 0.22s steps(3, end);
  text-shadow: 2px 0 rgba(47,242,255,0.7), -2px 0 rgba(255,47,214,0.7);
}

@keyframes glitch-jitter {
  0%   { transform: translate(0, 0) skew(0deg); }
  20%  { transform: translate(-3px, 1px) skew(-2deg); }
  40%  { transform: translate(3px, -2px) skew(2deg); }
  60%  { transform: translate(-2px, 2px) skew(-1deg); }
  80%  { transform: translate(2px, -1px) skew(1deg); }
  100% { transform: translate(0, 0) skew(0deg); }
}

.tagline {
  margin: 0 0 36px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(244,241,255,0.75);
}

.cta {
  appearance: none;
  border: 1px solid rgba(244,241,255,0.35);
  background: rgba(244,241,255,0.06);
  color: var(--ink);
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 40px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 0 0 rgba(255,47,214,0);
}

.cta:active {
  transform: scale(0.96);
}

.cta.pulse {
  border-color: var(--pink);
  box-shadow: 0 0 28px rgba(255,47,214,0.55), 0 0 60px rgba(47,242,255,0.25);
}

.toast {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translate(-50%, 12px);
  white-space: nowrap;
  font-size: 13px;
  color: rgba(244,241,255,0.8);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 28px);
}

@media (prefers-reduced-motion: reduce) {
  .title, .title.glitching, .blob { animation: none !important; }
}
