:root {
  --bg-dark: #07070d;
  --bg-dark-2: #0f1020;
  --neon-cyan: #43f3ff;
  --neon-purple: #8f5bff;
  --neon-pink: #ff3fd1;
  --terminal-green: #42ff93;
  --text-main: #ecf2ff;
  --text-muted: #9ca8c8;
  --card-bg: rgba(14, 16, 34, 0.58);
  --border-glow: rgba(143, 91, 255, 0.45);
  --shadow-soft: 0 18px 50px rgba(1, 6, 30, 0.6);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  font-family: "Rajdhani", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 20% 18%, rgba(67, 243, 255, 0.12), transparent 40%),
    radial-gradient(circle at 75% 18%, rgba(255, 63, 209, 0.14), transparent 38%),
    linear-gradient(160deg, var(--bg-dark), var(--bg-dark-2));
  overflow-x: hidden;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0.5px, transparent 0.8px);
  background-size: 3px 3px;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 50%, rgba(4, 0, 10, 0.24) 50%);
  background-size: 100% 4px;
  opacity: 0.26;
  mix-blend-mode: soft-light;
}

.glass-panel {
  background: var(--card-bg);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}

.site-header,
.hero,
.about,
.site-footer {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.site-header {
  margin-top: 2rem;
  border-radius: 1rem;
  padding: 1rem 1.4rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.brand {
  margin: 0;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  letter-spacing: 0.1em;
  line-height: 1;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-shadow:
    0 0 10px rgba(67, 243, 255, 0.65),
    0 0 22px rgba(143, 91, 255, 0.7);
}

.brand-subtitle {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.tagline {
  margin: 0;
  font-weight: 600;
  color: var(--terminal-green);
}

.hero {
  min-height: calc(100dvh - 10rem);
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.hero-content {
  width: 100%;
  border-radius: 1.3rem;
  padding: clamp(1.3rem, 3vw, 2.2rem);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--terminal-green);
}

#hero-title {
  margin: 0.5rem 0;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.1;
}

.hero-copy {
  max-width: 64ch;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
}

.cta-group {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn,
.social-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

.btn:hover,
.btn:focus-visible,
.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-2px) scale(1.02);
}

.btn:focus-visible,
.social-btn:focus-visible,
input:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid var(--terminal-green);
  outline-offset: 3px;
}

.btn-primary {
  color: #021218;
  border-color: rgba(67, 243, 255, 0.8);
  background: linear-gradient(120deg, var(--neon-cyan), #8ffaff);
  box-shadow: 0 0 24px rgba(67, 243, 255, 0.48);
}

.btn-secondary {
  color: var(--text-main);
  border-color: rgba(255, 63, 209, 0.6);
  background: rgba(255, 63, 209, 0.1);
}

.countdown-wrap {
  margin-top: 2.1rem;
}

.countdown-wrap h3 {
  margin-bottom: 0.95rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.time-card {
  border: 1px solid rgba(67, 243, 255, 0.35);
  border-radius: 0.85rem;
  padding: 0.85rem;
  text-align: center;
  background: linear-gradient(160deg, rgba(12, 18, 36, 0.8), rgba(20, 12, 44, 0.6));
  box-shadow:
    inset 0 0 25px rgba(143, 91, 255, 0.14),
    0 0 20px rgba(67, 243, 255, 0.14);
}

.time-value {
  display: block;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: clamp(1.45rem, 5vw, 2.1rem);
}

.time-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.time-card.tick {
  animation: tickFlash 350ms ease;
}

.live-message {
  margin-top: 1rem;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: clamp(1.2rem, 4vw, 2rem);
  color: var(--terminal-green);
  text-shadow:
    0 0 12px rgba(66, 255, 147, 0.66),
    0 0 25px rgba(66, 255, 147, 0.4);
  animation: livePulse 1.6s ease-in-out infinite;
}

.about {
  border-radius: 1.2rem;
  padding: 1.4rem;
  margin-top: 1.4rem;
  margin-bottom: 1.6rem;
}

.about p {
  color: var(--text-muted);
  line-height: 1.45;
}

.features-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.feature-card {
  border: 1px solid rgba(143, 91, 255, 0.35);
  border-radius: 0.95rem;
  padding: 1rem;
  background: rgba(13, 18, 39, 0.6);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
  border: 1px solid rgba(67, 243, 255, 0.55);
  box-shadow: 0 0 16px rgba(67, 243, 255, 0.3);
}

.feature-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: var(--neon-cyan);
}

.feature-card h4 {
  margin: 0.15rem 0 0.4rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
}

.site-footer {
  border-radius: 1rem 1rem 0 0;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 0.5rem;
}

.social-btn {
  background: rgba(143, 91, 255, 0.16);
  color: var(--text-main);
  border-color: rgba(143, 91, 255, 0.45);
  padding: 0.48rem 0.85rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 5, 15, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  width: min(430px, 94vw);
  border-radius: 1rem;
  padding: 1.2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  background: transparent;
  border: 0;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

#notify-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.7rem;
}

#notify-form input {
  border-radius: 0.7rem;
  border: 1px solid rgba(67, 243, 255, 0.4);
  padding: 0.72rem 0.85rem;
  background: rgba(4, 8, 20, 0.8);
  color: var(--text-main);
  font: inherit;
}

.form-feedback {
  min-height: 1.3rem;
  margin: 0;
  font-weight: 600;
}

.form-feedback.success {
  color: var(--terminal-green);
}

.form-feedback.error {
  color: #ff8fb7;
}

.reveal-up {
  animation: revealUp 700ms ease both;
}

.pulse-once {
  animation: pulseSoft 500ms ease;
}

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

@keyframes tickFlash {
  0% {
    transform: scale(1);
    border-color: rgba(67, 243, 255, 0.35);
  }
  50% {
    transform: scale(1.05);
    border-color: rgba(66, 255, 147, 0.9);
    box-shadow: 0 0 20px rgba(66, 255, 147, 0.48);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes pulseSoft {
  0% {
    box-shadow: 0 0 0 rgba(66, 255, 147, 0);
  }
  55% {
    box-shadow: 0 0 26px rgba(66, 255, 147, 0.65);
  }
  100% {
    box-shadow: 0 0 0 rgba(66, 255, 147, 0);
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .scanlines,
  .page-noise {
    opacity: 0.08;
  }
}
