/* Mouse-reactive glow for homepage title */
.heroCard {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Glow layer */
.heroCard .mouseGlow {
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* mouse position vars */
  --mx: 50%;
  --my: 50%;

  opacity: 0;
  transition: opacity 200ms ease;

  /* Put glow ABOVE the card background, but BELOW content */
  z-index: 1;

  background: radial-gradient(650px circle at var(--mx) var(--my),
      rgba(255, 120, 0, .22),
      rgba(255, 60, 0, .12) 22%,
      rgba(0, 0, 0, 0) 60%);
}

/* Show on hover */
.heroCard:hover .mouseGlow {
  opacity: 1;
}

/* Make sure actual content stays above the glow */
.heroCard>*:not(.mouseGlow) {
  position: relative;
  z-index: 2;
}

/* Keep animated border sweep on top */
.heroCard::before {
  z-index: 3;
}


:root {
  --bg0: #05060a;
  --bg1: #070816;
  --red: #ff0000;
  --orange: #ca7900;
  --glow: rgba(255, 120, 0, .55);
  --glass: rgba(0, 0, 0, .42);
  --stroke: rgba(202, 121, 0, 1);
  --text: rgba(245, 245, 245, .92);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg0), var(--bg1), var(--bg0));
  color: var(--text);
  font-family: "Orbitron", system-ui, sans-serif;
  overflow: hidden;
}

/* Background stack */
.bg {
  position: fixed;
  inset: 0;
  z-index: -10;
}

.bg__nebula {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(900px 600px at 20% 15%, rgba(255, 0, 0, .25), transparent 60%),
    radial-gradient(900px 600px at 80% 25%, rgba(255, 140, 0, .20), transparent 60%),
    radial-gradient(1000px 700px at 40% 85%, rgba(0, 255, 210, .10), transparent 65%),
    radial-gradient(1200px 900px at 70% 80%, rgba(110, 0, 255, .12), transparent 65%),
    linear-gradient(180deg, #05060a 0%, #070816 50%, #05060a 100%);
  filter: saturate(1.2) contrast(1.05);
  animation: nebulaDrift 18s ease-in-out infinite alternate;
}

@keyframes nebulaDrift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1.02);
  }

  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.05);
  }
}

.bg__grid {
  position: absolute;
  inset: -30%;
  background:
    linear-gradient(to right, rgba(255, 90, 0, .12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 90, 0, .10) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: perspective(900px) rotateX(65deg) translateY(18%);
  filter: blur(.3px);
  opacity: .55;
  animation: gridMove 10s linear infinite;
}

@keyframes gridMove {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 0 240px, 240px 0;
  }
}

.bg__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom,
      rgba(255, 255, 255, .05),
      rgba(255, 255, 255, .05) 1px,
      transparent 3px,
      transparent 6px);
  mix-blend-mode: overlay;
  opacity: .10;
  animation: scanFlicker 2.2s infinite;
}

@keyframes scanFlicker {

  0%,
  100% {
    opacity: .10;
  }

  50% {
    opacity: .16;
  }
}

.bg__vignette {
  position: absolute;
  inset: -2%;
  background: radial-gradient(circle at 50% 40%, transparent 40%, rgba(0, 0, 0, .65) 80%);
  pointer-events: none;
}

#sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/*  Hero layout  */
.hero {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.heroCard {
  width: min(920px, 94vw);
  border-radius: 28px;
  padding: 30px 32px 28px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 30px rgba(255, 60, 0, .25),
    0 0 80px rgba(255, 140, 0, .10),
    inset 0 0 40px rgba(255, 120, 0, .10);
  position: relative;
  overflow: hidden;
}

/* animated border sweep */
.heroCard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 2px;
  background: linear-gradient(120deg, transparent, rgba(255, 0, 0, .9), rgba(255, 170, 0, .95), transparent);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: borderSweep 4s linear infinite;
}

@keyframes borderSweep {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 200% 50%;
  }
}

/*  Logo  */
.logoWrap {
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  position: relative;
}

.logo {
  width: min(360px, 80vw);
  height: auto;
  filter: drop-shadow(0 0 18px rgba(255, 120, 0, .55)) drop-shadow(0 0 40px rgba(255, 0, 0, .22));
  animation: logoFloat 4.2s ease-in-out infinite;
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-18px) scale(1.1);
  }

  /* 100%{ transform: rotate(3deg);} */
  /* TODO: make it rotate left to right --- Needs fixing */
}

.logoGlow {
  position: absolute;
  width: min(420px, 90vw);
  height: min(260px, 60vw);
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 90, 0, .35), transparent 65%);
  filter: blur(10px);
  z-index: -1;
  animation: glowBreath 3.5s ease-in-out infinite;
}

@keyframes glowBreath {

  0%,
  100% {
    transform: scale(1);
    opacity: .7;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

/* ---------- Title ---------- */
.titleBlock {
  text-align: center;
  margin-top: 8px;
}

.title {
  margin: 0;
  line-height: 0.95;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.title__top {
  display: block;
  font-size: clamp(42px, 6vw, 86px);
  color: var(--red);
  -webkit-text-stroke: 2px var(--stroke);
  text-shadow: 0 0 12px rgba(255, 60, 0, .75), 0 0 30px rgba(255, 140, 0, .35);
}

.title__bottom {
  display: block;
  font-size: clamp(26px, 3.6vw, 54px);
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 0 10px rgba(255, 120, 0, .35);
  opacity: .95;
}

.subtitle {
  margin: 12px 0 24px;
  font-family: system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 14px;
  opacity: .92;
}

.blink {
  display: inline-block;
  margin-left: 6px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

/* ---------- CTA Row ---------- */
.ctaRow {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* EVIL BUTTON */
.evilBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 26px;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  color: #fff;

  background: linear-gradient(145deg, rgba(255, 0, 0, .92), rgba(255, 160, 0, .82));
  box-shadow:
    0 0 18px rgba(255, 90, 0, .55),
    0 0 44px rgba(255, 0, 0, .25),
    inset 0 0 14px rgba(255, 255, 255, .20);

  transform: translateZ(0);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
}

.evilBtn__text {
  position: relative;
  z-index: 2;
}

.evilBtn__skull {
  position: relative;
  z-index: 2;
  font-size: 20px;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, .55));
}

.evilBtn__shine {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: rotate(18deg) translateX(-60%);
  animation: shineSweep 2.4s ease-in-out infinite;
  opacity: .55;
}

@keyframes shineSweep {
  0% {
    transform: rotate(18deg) translateX(-70%);
  }

  60% {
    transform: rotate(18deg) translateX(120%);
  }

  100% {
    transform: rotate(18deg) translateX(120%);
  }
}

/* hover: evil intensifies */
.evilBtn:hover {
  transform: scale(1.07);
  filter: brightness(1.12) saturate(1.15);
  box-shadow:
    0 0 28px rgba(255, 140, 0, .85),
    0 0 70px rgba(255, 0, 0, .38),
    inset 0 0 18px rgba(255, 255, 255, .28);
  animation: evilShiver 700ms ease-in-out infinite;
}

@keyframes evilShiver {

  0%,
  100% {
    transform: scale(1.07) rotate(0deg);
  }

  25% {
    transform: scale(1.07) rotate(-.6deg);
  }

  75% {
    transform: scale(1.07) rotate(.6deg);
  }
}

.evilBtn:active {
  transform: scale(.98);
  animation: none;
}

/* Mini buttons */
.miniActions {
  display: flex;
  justify-content: center;
}

.ctaRow {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.miniBtn {
  border: 1px solid rgba(255, 140, 0, .35);
  background: rgba(0, 0, 0, .35);
  color: rgba(255, 255, 255, .9);
  padding: 12px 14px;
  border-radius: 14px;
  letter-spacing: .1em;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  backdrop-filter: blur(6px);
}

.miniBtn:hover {
  transform: translateY(-2px);
  background: rgba(255, 140, 0, .12);
  box-shadow: 0 0 18px rgba(255, 120, 0, .25);
}

.miniBtn:active {
  transform: translateY(0);
}

/* Status bar */
.statusBar {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  opacity: .9;
  font-family: system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}

.statusBar__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 255, 160, .9);
  box-shadow: 0 0 12px rgba(0, 255, 160, .45);
  animation: dotPulse 1.6s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: .8;
  }

  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

/* -------- Reduced motion support -------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  body {
    overflow: auto;
  }
}

/* ===== Make it mobile friendly ===== */
@media (max-width: 700px) {


  /* Core mobile safety */
  html,
  body {
    overflow-x: hidden;
  }

  body {
    min-width: 0;
    padding: 1rem;
  }


  /* ===== Page content mobile tweaks ===== */

  /* Center the hero area */
  .hero {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 12px;
    box-sizing: border-box;
  }

  /* Force the card to fit the viewport and be centered */
  .heroCard {
    width: min(520px, 100%);
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    left: auto !important;
    right: auto !important;
    transform: none !important;

    .logoWrap {
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .logo {
      margin: 0 auto;
      display: block;
    }
  }

}

.statusBar__text {
  font-size: 10px;
}

.statusBar__dot {
  font-size: 10px;
  max-height: 10px;
  max-width: 10px;
}