:root {
  --bg-1: #02030a;
  --bg-2: #050816;
  --bg-1-rgb: 2, 3, 10;
  --bg-2-rgb: 5, 8, 22;
  --body-top: #171b3a;
  --body-mid: #050816;
  --body-bottom: #010109;
  --card-top: #151b3a;
  --card-mid: #050816;
  --card-bottom: #020308;
  --accent-1: #00e5ff;
  --accent-1-rgb: 0, 229, 255;
  --accent-2: #ff00ff;
  --accent-2-rgb: 255, 0, 255;
  --accent-3: #7cff00;
  --accent-3-rgb: 124, 255, 0;
  --text-main: #f5f5f5;
  --text-muted: #8b8fa8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-1);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, var(--body-top) 0, var(--body-mid) 40%, var(--body-bottom) 100%);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  overflow: hidden;
}

.camera-shake {
  animation: cameraShake 0.5s cubic-bezier(.36,.07,.19,.97) both;
  transform: translate3d(0, 0, 0);
}

@keyframes cameraShake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(var(--accent-1-rgb), 0.24), rgba(var(--bg-2-rgb), 0.92) 60%),
    radial-gradient(circle at 80% 25%, rgba(var(--accent-2-rgb), 0.22), rgba(var(--bg-1-rgb), 0.92) 60%);
  background-size: 120% 120%, 120% 120%;
  animation: gradientShift 16s ease-in-out infinite alternate;
  mix-blend-mode: screen;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

@keyframes gradientShift {
  0% {
    background:
      radial-gradient(circle at 16% 18%, rgba(var(--accent-1-rgb), 0.24), rgba(var(--bg-2-rgb), 0.92) 60%),
      radial-gradient(circle at 84% 26%, rgba(var(--accent-2-rgb), 0.22), rgba(var(--bg-1-rgb), 0.92) 60%);
  }
  50% {
    background:
      radial-gradient(circle at 36% 24%, rgba(var(--accent-1-rgb), 0.32), rgba(var(--bg-2-rgb), 0.9) 60%),
      radial-gradient(circle at 70% 30%, rgba(var(--accent-2-rgb), 0.26), rgba(var(--bg-1-rgb), 0.9) 60%);
  }
  100% {
    background:
      radial-gradient(circle at 16% 18%, rgba(var(--accent-1-rgb), 0.24), rgba(var(--bg-2-rgb), 0.92) 60%),
      radial-gradient(circle at 84% 26%, rgba(var(--accent-2-rgb), 0.22), rgba(var(--bg-1-rgb), 0.92) 60%);
  }
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mix-blend-mode: soft-light;
  opacity: 0.35;
  pointer-events: none;
  animation: gridFloat 40s linear infinite;
}

@keyframes gridFloat {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-80px, -80px, 0); }
}

.scanline {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0px,
    rgba(0, 0, 0, 0.1) 1px,
    transparent 2px,
    transparent 3px
  );
  mix-blend-mode: soft-light;
  opacity: 0.4;
  pointer-events: none;
  animation: scan 5s linear infinite;
}

@keyframes scan {
  0%   { transform: translateY(-100vh); }
  100% { transform: translateY(100vh); }
}

.page-transition {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(var(--accent-1-rgb), 0.18), rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.9) 70%),
    radial-gradient(circle at 50% 55%, rgba(var(--accent-2-rgb), 0.15), rgba(0, 0, 0, 0.95) 70%);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
  backdrop-filter: blur(2px);
  mix-blend-mode: screen;
}

.page-transition::before {
  content: '';
  position: absolute;
  inset: -22%;
  background: linear-gradient(
    120deg,
    rgba(var(--accent-1-rgb), 0.45) 0%,
    rgba(255, 255, 255, 0.4) 24%,
    rgba(var(--accent-2-rgb), 0.28) 52%,
    rgba(var(--bg-2-rgb), 0.35) 72%,
    rgba(var(--bg-1-rgb), 0.05) 100%
  );
  transform: translateX(-120%) skewX(-16deg);
  filter: blur(18px);
  opacity: 0;
  mix-blend-mode: screen;
}

.page-transition::after {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.28), rgba(0, 0, 0, 0.9) 62%);
  opacity: 0;
  transform: scale(0.8);
  filter: blur(10px);
}

.page-transition__glow {
  position: absolute;
  inset: -20%;
  background:
    conic-gradient(
      from 160deg,
      rgba(var(--accent-1-rgb), 0.02),
      rgba(255, 255, 255, 0.24),
      rgba(var(--accent-2-rgb), 0.18),
      rgba(var(--accent-1-rgb), 0.2),
      rgba(var(--accent-2-rgb), 0.02)
    );
  filter: blur(18px);
  opacity: 0.3;
  transform: scale(0.7) rotate(-12deg);
  transition: transform 0.6s ease, opacity 0.6s ease;
  pointer-events: none;
}

.page-transition--active {
  opacity: 1;
  transform: scale(1.06);
}

.page-transition--active::before {
  animation: bladeSweep 0.78s ease-out forwards;
}

.page-transition--active::after {
  animation: flashPulse 0.6s ease-out forwards;
}

.page-transition--active .page-transition__glow {
  opacity: 0.65;
  transform: scale(1.06) rotate(8deg);
}

@keyframes bladeSweep {
  0% {
    transform: translateX(-120%) skewX(-16deg);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateX(40%) skewX(-10deg);
    opacity: 0.15;
  }
}

@keyframes flashPulse {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  40% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

.container {
  position: relative;
  max-width: 960px;
  width: 100%;
  padding: 32px;
  z-index: 1;
}

.card {
  position: relative;
  border-radius: 18px;
  padding: 40px 32px 32px;
  background: radial-gradient(circle at top, var(--card-top) 0, var(--card-mid) 60%, var(--card-bottom) 100%);
  border: 1px solid rgba(var(--accent-1-rgb), 0.25);
  box-shadow:
    0 0 40px rgba(var(--accent-1-rgb), 0.2),
    0 0 120px rgba(var(--accent-2-rgb), 0.2);
  overflow: hidden;
}

.card::before,
.card::after {
  content: '';
  position: absolute;
  inset: -2px;
  background:
    conic-gradient(
      from 0deg,
      rgba(var(--accent-1-rgb), 0.0),
      rgba(var(--accent-1-rgb), 0.9),
      rgba(var(--accent-2-rgb), 0.0),
      rgba(var(--accent-3-rgb), 0.9),
      rgba(var(--accent-1-rgb), 0.0)
    );
  opacity: 0.5;
  filter: blur(8px);
  mix-blend-mode: screen;
  animation: electricBorder 6s linear infinite;
  pointer-events: none;
}

.card::after {
  animation-direction: reverse;
  animation-duration: 8s;
  opacity: 0.6;
}

@keyframes electricBorder {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.lightning-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.5))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.35));
  opacity: 0;
}

.lightning-canvas.flash-bolt {
  animation: boltFade 0.9s ease-out;
}

@keyframes boltFade {
  0% { opacity: 0; }
  15% { opacity: 1; }
  100% { opacity: 0; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-1-rgb), 0.7);
  background: rgba(0, 0, 0, 0.35);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent-1), transparent);
  box-shadow:
    0 0 10px rgba(var(--accent-1-rgb), 0.9),
    0 0 24px rgba(var(--accent-1-rgb), 0.9);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50%      { transform: scale(1.2); opacity: 1; }
}

.brand {
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.headline {
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 800;
  line-height: 1.0;
  text-transform: uppercase;
  margin: 0 auto 16px;
  position: relative;
  display: inline-block;
  text-align: center;
}

.headline-main {
  position: relative;
  color: var(--text-main);
  text-shadow:
    0 0 12px rgba(var(--accent-1-rgb), 0.7),
    0 0 24px rgba(var(--accent-1-rgb), 0.5);
  text-align: center;
}

.headline-glitch {
  position: absolute;
  inset: 0;
  color: var(--accent-1);
  mix-blend-mode: screen;
  animation: glitchShift 2s infinite;
  pointer-events: none;
  text-align: center;
}

.headline-glitch:nth-child(2) {
  color: var(--accent-2);
  animation-duration: 2.4s;
  animation-delay: 0.12s;
}

@keyframes glitchShift {
  0%, 100% { transform: translate(0, 0); clip-path: inset(0 0 0 0); opacity: 0.35; }
  10%      { transform: translate(-1px, 1px); clip-path: inset(0 0 40% 0); opacity: 1; }
  20%      { transform: translate(1px, -1px); clip-path: inset(60% 0 0 0); opacity: 0.7; }
  30%      { transform: translate(-2px, 2px); opacity: 1; }
  40%      { transform: translate(2px, -2px); opacity: 0.3; }
  50%      { transform: translate(0, 0); opacity: 0.8; }
  60%      { transform: translate(1px, 1px); }
  70%      { transform: translate(-1px, -1px); }
  80%      { transform: translate(0.5px, -0.5px); }
  90%      { transform: translate(-0.5px, 0.5px); }
}

.subheadline {
  max-width: 520px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  opacity: 0.9;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meta-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(var(--accent-3-rgb), 0.4);
  color: var(--accent-3);
  font-size: 10px;
  text-transform: uppercase;
}

.meta-pill--flicker {
  animation: pillFlicker 2.4s infinite steps(1, end);
  box-shadow:
    0 0 10px rgba(var(--accent-3-rgb), 0.4),
    0 0 18px rgba(var(--accent-3-rgb), 0.25);
}

@keyframes pillFlicker {
  0%   { opacity: 1; }
  6%   { opacity: 0.5; }
  8%   { opacity: 1; }
  12%  { opacity: 0.3; }
  16%  { opacity: 1; }
  22%  { opacity: 0.6; }
  28%  { opacity: 1; }
  100% { opacity: 1; }
}

.cta-row {
  margin: 6px 0 24px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-1-rgb), 0.6);
  background: linear-gradient(120deg, rgba(var(--accent-1-rgb), 0.12), rgba(var(--accent-2-rgb), 0.1));
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  box-shadow:
    0 0 18px rgba(var(--accent-1-rgb), 0.2),
    0 0 26px rgba(var(--accent-2-rgb), 0.12);
  transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(var(--accent-3-rgb), 0.2), transparent 55%);
  opacity: 0;
  transform: translateX(-20%);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.cta-button:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 0 26px rgba(var(--accent-1-rgb), 0.32),
    0 0 34px rgba(var(--accent-2-rgb), 0.18);
  border-color: rgba(var(--accent-1-rgb), 0.9);
}

.cta-button:hover::after {
  opacity: 1;
  transform: translateX(10%);
}

.cta-icon {
  font-size: 16px;
  margin-top: -2px;
}

.footer {
  margin-top: 24px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(139, 143, 168, 0.75);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer span {
  opacity: 0.85;
}

.noise {
  position: fixed;
  inset: -50px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.55;
  pointer-events: none;
  animation: noiseShift 1.2s steps(4) infinite;
}

@keyframes noiseShift {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-20px, 25px, 0); }
}

@media (max-width: 640px) {
  .card {
    padding: 28px 20px 24px;
  }
  .subheadline {
    font-size: 13px;
  }
}
