/* =========================================================
   BASE / RESET
========================================================= */

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

html, body {
  height: 100%;
}

body {
  font-family: 'Orbitron', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: black;
  color: #ffffff;
  overflow-x: hidden;
}

/* =========================================================
   IMMUTABLE BACKGROUND ART (DO NOT MODIFY IMAGE)
========================================================= */

.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140vh; /* taller than viewport to preserve full poster */
  background-image: url("assets/hero-bg.png");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}

/* =========================================================
   UI LAYER (ALL CONTENT FLOATS ABOVE BACKGROUND)
========================================================= */

.ui-layer {
  position: relative;
  z-index: 1;
  min-height: 140vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* =========================================================
   LOGO + BPM-SYNCED GLITCH / NEON
   BPM = 128 → 0.46875s per beat
========================================================= */

.logo-container {
  padding-top: 40px;
  text-align: center;
}

.logo {
  width: min(480px, 80vw);
  max-width: 520px;
  filter: drop-shadow(0 0 18px #00ffff);
}

/* Neon pulse synced to BPM */
.glitch {
  animation: pulse 0.46875s infinite alternate;
}

@keyframes pulse {
  from {
    filter:
      drop-shadow(0 0 10px #00ffff)
      drop-shadow(0 0 20px #ff00ff);
  }
  to {
    filter:
      drop-shadow(0 0 26px #00ffff)
      drop-shadow(0 0 46px #ff00ff);
  }
}

/* Optional hover glitch jitter */
.logo:hover {
  animation: glitch 0.15s infinite;
}

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

@keyframes glowPulse {
  0% { box-shadow: 0 0 10px rgba(0,255,255,0.3); }
  100% { box-shadow: 0 0 26px rgba(255,0,255,0.6); }
}

/* =========================================================
   CLOCK OVERLAY (SVG – BACKGROUND UNAFFECTED)
========================================================= */

.clock {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 420px;
  height: 420px;
  pointer-events: none;
  z-index: 2;
}

/* Clock hands assume SVG classes */
.hour-hand {
  transform-origin: bottom center;
  animation: hourDrift 240s infinite linear;
}

.minute-hand {
  transform-origin: bottom center;
  animation: minuteDrift 30s infinite linear;
}

@keyframes hourDrift {
  from { transform: rotate(359deg); }
  to   { transform: rotate(360deg); }
}

@keyframes minuteDrift {
  from { transform: rotate(354deg); }
  to   { transform: rotate(360deg); }
}

/* =========================================================
   BOTTOM CONTENT OVERLAY (BELOW RED BORDER)
========================================================= */

.bottom-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95),
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0)
  );
  padding: 140px 40px 70px;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: flex-start;

  margin-top: calc(140vh - 220px);
}

/* =========================================================
   CONTENT PANELS
========================================================= */

.panel h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00ffff;
}

.panel p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #dddddd;
}

.panel a {
  color: #ff00ff;
  text-decoration: none;
}

.panel {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 255, 255, 0.25);
  padding: 28px 32px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  animation: glowPulse 0.46875s infinite alternate;
  flex: 1 1 calc(50% - 25px);
}

.panel + .panel {
  margin-top: 24px;
}

.expandable .panel-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.expandable.open .panel-body {
  max-height: 500px;
}

.panel-header {
  background: none;
  border: none;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: inherit;
}

.chevron {
  font-size: 1.6rem;
  color: #00ffff;
}

/* =========================================================
   EMBED PLACEHOLDERS
========================================================= */

.embed.placeholder {
  border: 1px dashed rgba(0,255,255,0.4);
  padding: 16px;
  margin-top: 12px;
  font-size: 0.95rem;
  color: #aaaaaa;
}

/* =========================================================
   EMAIL SIGNUP GLITCH BUTTON
========================================================= */

.glitch-button {
  grid-column: span 2;
  margin: 45px auto 0;
  padding: 16px 42px;
  font-size: 1.15rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000000;
  background: #00ffff;
  border: none;
  cursor: pointer;
  animation: pulse 0.46875s infinite alternate;
}

.glitch-button:hover {
  background: #ff00ff;
  color: #ffffff;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
  .bottom-overlay {
    grid-template-columns: 1fr;
    padding: 120px 24px 60px;
  }

  .glitch-button {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .logo {
    width: 85vw;
  }

  .clock {
    width: 300px;
    height: 300px;
  }
}

.signup {
  grid-column: span 2;
  text-align: center;
  margin-top: 40px;
}

.signup-form {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.signup-form.hidden {
  display: none;
}

.signup-form input {
  padding: 12px 16px;
  background: rgba(0,0,0,0.7);
  border: 1px solid #00ffff;
  color: #fff;
}

.signup-form button {
  padding: 12px 18px;
  background: #ff00ff;
  border: none;
  color: #000;
  cursor: pointer;
}
