/* averyscaryhalloween.com — spooky, playful, mobile-first */
:root {
  --bg: #0a0612;
  --bg-2: #120b1e;
  --bg-3: #1a0f2a;
  --orange: #ff7a1a;
  --orange-deep: #e8761d;
  --pumpkin: #ffb347;
  --purple: #7b2ff7;
  --purple-soft: #a86bff;
  --blood: #c1121f;
  --text: #f2e9e4;
  --muted: #b9a8c9;
  --card: rgba(26, 15, 42, 0.85);
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

#embers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  background: rgba(10, 6, 18, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 122, 26, 0.25);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.wordmark svg { width: 34px; height: 34px; filter: drop-shadow(0 0 6px rgba(255, 122, 26, 0.7)); }

.wordmark span {
  font-family: 'Creepster', cursive;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--orange);
}

.nav-links { display: flex; gap: 1.1rem; }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links a:hover { color: var(--orange); }

@media (max-width: 640px) {
  .nav-links a:not(:first-child):not(:nth-child(3)) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  padding: 4rem 1.25rem 3rem;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(123, 47, 247, 0.22), transparent),
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(232, 118, 29, 0.12), transparent);
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
}

.hero-art { position: relative; justify-self: center; }

.hero-art img {
  width: min(420px, 80vw);
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(255, 122, 26, 0.35), 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: flicker 4s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { filter: brightness(1); }
  48% { filter: brightness(1.06); }
  52% { filter: brightness(0.97); }
  70% { filter: brightness(1.03); }
}

.art-glow {
  position: absolute;
  inset: -30px;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.25), transparent 65%);
  filter: blur(10px);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--purple-soft);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-family: 'Creepster', cursive;
  font-size: clamp(3rem, 8vw, 4.8rem);
  line-height: 1.02;
  color: var(--orange);
  text-shadow: 0 0 30px rgba(255, 122, 26, 0.55), 0 4px 0 #5c1a00;
  margin-bottom: 1rem;
}

.hero h1 .hallow {
  color: var(--pumpkin);
}

.tagline { color: var(--muted); font-size: 1.05rem; margin-bottom: 0.75rem; max-width: 34rem; }
.release-line { font-size: 0.95rem; margin-bottom: 1.25rem; }
.release-line strong { color: var(--pumpkin); }

.countdown.terminal {
  display: inline-block;
  font-family: ui-monospace, 'Courier New', Courier, monospace;
  background: rgba(5, 4, 4, 0.88);
  border: 1px solid rgba(255, 122, 26, 0.4);
  border-radius: 10px;
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
  box-shadow: 0 0 26px rgba(255, 122, 26, 0.14), inset 0 0 22px rgba(0, 0, 0, 0.65);
  position: relative;
  overflow: hidden;
  text-align: left;
}
.countdown.terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 3px);
}
.term-line {
  color: var(--pumpkin);
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(255, 179, 71, 0.55);
}
.term-prompt { color: var(--orange); font-weight: 700; }
.term-cursor {
  display: inline-block;
  width: 0.58em;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: var(--pumpkin);
  box-shadow: 0 0 8px rgba(255, 179, 71, 0.8);
  animation: term-blink 1.06s steps(1) infinite;
}
@keyframes term-blink { 50% { opacity: 0; } }
.term-sub {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  margin-top: 0.45rem;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .term-line { font-size: 0.82rem; }
  .term-sub { font-size: 0.6rem; letter-spacing: 0.14em; }
}

.hero-buttons { display: flex; gap: 0.9rem; flex-wrap: wrap; }
@media (max-width: 800px) { .hero-buttons { justify-content: center; } }

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--blood));
  color: #fff;
  box-shadow: 0 6px 24px rgba(255, 122, 26, 0.4);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 122, 26, 0.55); }

.btn-ghost {
  border: 2px solid var(--purple-soft);
  color: var(--purple-soft);
}

.btn-ghost:hover { background: rgba(168, 107, 255, 0.12); transform: translateY(-2px); }

/* Bats */
.hero-bats { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bat { position: absolute; opacity: 0.55; animation: fly 14s linear infinite; }
.bat-1 { width: 70px; top: 12%; left: -10%; animation-delay: 0s; }
.bat-2 { width: 44px; top: 28%; left: -8%; animation-delay: 5s; }
.bat-3 { width: 58px; top: 6%; left: -12%; animation-delay: 9s; }

@keyframes fly {
  0% { transform: translateX(0) translateY(0) scaleX(1); }
  25% { transform: translateX(30vw) translateY(-40px) scaleX(1); }
  50% { transform: translateX(60vw) translateY(20px) scaleX(1); }
  75% { transform: translateX(90vw) translateY(-30px) scaleX(1); }
  100% { transform: translateX(120vw) translateY(0) scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .bat, .hero-art img { animation: none; }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(123, 47, 247, 0.06), transparent);
}

.section-title {
  font-family: 'Creepster', cursive;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--orange);
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 24px rgba(255, 122, 26, 0.35);
}

.section-sub { color: var(--muted); margin-bottom: 1.8rem; max-width: 44rem; }

/* ---------- Platform grid ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.platform {
  display: block;
  background: var(--card);
  border: 1px solid rgba(255, 122, 26, 0.25);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

a.platform:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: 0 12px 32px rgba(255, 122, 26, 0.2);
}

.platform-soon { opacity: 0.65; border-style: dashed; }

.platform-name { display: block; font-weight: 700; font-size: 1.15rem; margin-bottom: 0.25rem; color: var(--pumpkin); }
.platform-note { display: block; font-size: 0.85rem; color: var(--muted); }
.badge-soon { color: var(--purple-soft); font-weight: 600; }

/* ---------- Song / facts ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.two-col p { margin-bottom: 1rem; color: #ddd3e8; }

.hook {
  border-left: 4px solid var(--orange);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--pumpkin);
  background: rgba(255, 122, 26, 0.06);
  border-radius: 0 12px 12px 0;
}

.facts {
  background: var(--card);
  border: 1px solid rgba(123, 47, 247, 0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
  align-self: start;
}

.facts div { padding: 0.55rem 0; border-bottom: 1px solid rgba(185, 168, 201, 0.12); }
.facts div:last-child { border-bottom: none; }
.facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--purple-soft); font-weight: 700; }
.facts dd { font-weight: 600; color: var(--text); }

/* ---------- About / cards ---------- */
.about-card {
  background: var(--card);
  border: 1px solid rgba(255, 122, 26, 0.3);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 46rem;
}

.about-card p { margin-bottom: 1rem; color: #ddd3e8; }
.about-card p:last-child { margin-bottom: 0; }
.about-card strong { color: var(--pumpkin); }
.about-card a { color: var(--purple-soft); }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.proof-card {
  background: var(--card);
  border: 1px solid rgba(123, 47, 247, 0.35);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.proof-card h3 {
  font-size: 1.15rem;
  color: var(--pumpkin);
  margin-bottom: 0.2rem;
}

.proof-loc {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--purple-soft);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.proof-card p { color: #ddd3e8; font-size: 0.95rem; margin-bottom: 0.8rem; }

.inline-link {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 122, 26, 0.4);
}

.inline-link:hover { border-bottom-color: var(--orange); }

.cta-strip {
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.12), rgba(193, 18, 31, 0.12));
  border: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  max-width: 46rem;
  color: #ddd3e8;
}

/* ---------- Lyrics ---------- */
.lyrics-box {
  background: var(--card);
  border: 1px solid rgba(123, 47, 247, 0.3);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  max-width: 46rem;
}

.lyrics-box summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--pumpkin);
  list-style: none;
}

.lyrics-box summary::-webkit-details-marker { display: none; }
.lyrics-box summary::before { content: "🎃 "; }
.lyrics-box[open] summary::before { content: "👻 "; }

.lyrics-text { margin-top: 1rem; color: #ddd3e8; }
.lyrics-text p { margin-bottom: 1rem; }
.lyrics-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--purple-soft);
  font-weight: 700;
  margin-bottom: 0.3rem !important;
}
.lyrics-credit { font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1.25rem 2.5rem;
  border-top: 1px solid rgba(255, 122, 26, 0.25);
  background: rgba(10, 6, 18, 0.9);
}

.disclosure {
  font-size: 1.05rem;
  color: var(--pumpkin);
  margin-bottom: 1.2rem;
}

.footer-links a {
  color: var(--purple-soft);
  text-decoration: none;
  font-weight: 600;
  margin: 0 0.5rem;
}

.footer-links a:hover { color: var(--orange); }
.footer-links span { color: var(--muted); }

.copyright { color: var(--muted); font-size: 0.85rem; margin-top: 1rem; }

/* ---------- Ghost List signup ---------- */
.ghostlist-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2.5rem;
  align-items: start;
  max-width: 58rem;
}
.ghostlist-media img {
  width: 100%;
  max-width: 300px;
  border-radius: 14px;
  display: block;
  margin-bottom: 1.25rem;
  box-shadow: 0 12px 44px rgba(255, 122, 26, 0.28);
}
.spotify-embed {
  border-radius: 12px;
  max-width: 400px;
  display: block;
}
.signup-form {
  background: var(--card);
  border: 1px solid rgba(185, 168, 201, 0.16);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-field input {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid rgba(185, 168, 201, 0.28);
  border-radius: 10px;
  padding: 0.8rem 1rem;
}
.form-field input:focus {
  outline: 2px solid var(--orange);
  border-color: var(--orange);
}
.form-field input::placeholder { color: var(--muted); opacity: 0.7; }
.btn-full { width: 100%; margin-top: 0.3rem; }
.form-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}
.form-success {
  background: var(--card);
  border: 1px solid var(--pumpkin);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.form-success h3 { color: var(--pumpkin); margin-bottom: 0.5rem; }
.form-success p { color: var(--muted); }
@media (max-width: 760px) {
  .ghostlist-grid { grid-template-columns: 1fr; }
  .ghostlist-media img { max-width: 240px; }
}

/* ---------- Scroll-triggered ghost surprise ---------- */
.ghost-pop {
  position: fixed;
  right: 26px;
  bottom: -190px;
  z-index: 60;
  text-align: center;
  pointer-events: none;
  transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ghost-pop.popped { bottom: 26px; }
.ghost-pop .ghost {
  width: 96px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 22px rgba(123, 47, 247, 0.5));
  animation: ghost-float 3s ease-in-out infinite;
}
@keyframes ghost-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
.ghost-bubble {
  display: inline-block;
  background: #ffffff;
  color: #0a0612;
  font-weight: 800;
  font-size: 1rem;
  padding: 6px 16px;
  border-radius: 14px;
  margin-bottom: 8px;
  position: relative;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.25s ease 0.35s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s;
}
.ghost-pop.popped .ghost-bubble { opacity: 1; transform: scale(1); }
.ghost-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #ffffff;
  border-bottom: 0;
}
@media (max-width: 560px) {
  .ghost-pop { right: 14px; }
  .ghost-pop.popped { bottom: 16px; }
  .ghost-pop .ghost { width: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .ghost-pop { display: none; }
}

/* ---------- Embedded lyric video ---------- */
.video-embed {
  max-width: 720px;
  margin: 2rem auto 0;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 122, 26, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 122, 26, 0.12);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Share card (button styled as platform card) ---------- */
.platform-button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
  appearance: none;
}
.platform-button:hover { border-color: var(--pumpkin); }
.platform-button:active { transform: scale(0.98); }
