/* ============================================================
   Backdoor Blues Band — coming soon
   Dark, smoky, cinematic. 1am in a dim-lit bar.
   ============================================================ */

:root {
  --bg:        #0B0B0C;   /* near-black charcoal */
  --bg-2:      #131013;   /* warm shadow */
  --amber:     #C8871A;   /* bourbon amber accent */
  --amber-lo:  #8a5c11;   /* dimmed amber */
  --ivory:     #F2ECDD;   /* off-white text */
  --ivory-dim: rgba(242, 236, 221, 0.62);
  --ivory-fnt: rgba(242, 236, 221, 0.34);
  --red:       #B4321F;   /* hot red CTA */
  --red-hot:   #d23c26;

  --maxw: 720px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100dvh;
}

/* ---------- Ambient stage: glow + vignette + grain ---------- */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* slow-drifting warm tungsten glow */
.glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(42% 42% at 50% 34%, rgba(200, 135, 26, 0.22) 0%, rgba(200, 135, 26, 0.06) 42%, transparent 68%),
    radial-gradient(38% 30% at 68% 74%, rgba(180, 50, 31, 0.10) 0%, transparent 60%),
    radial-gradient(60% 60% at 22% 82%, rgba(120, 78, 20, 0.10) 0%, transparent 62%);
  filter: blur(6px);
  animation: drift 22s var(--ease) infinite alternate;
}

@keyframes drift {
  0%   { transform: translate3d(-2%, -1.5%, 0) scale(1.02); opacity: 0.9; }
  50%  { transform: translate3d(1.5%, 1%, 0)  scale(1.08); opacity: 1; }
  100% { transform: translate3d(2.5%, 2%, 0)  scale(1.04); opacity: 0.85; }
}

/* soft vignette to pull the eye in */
.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 100% at 50% 40%, transparent 46%, rgba(0,0,0,0.55) 82%, rgba(0,0,0,0.85) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 22%, transparent 72%, rgba(0,0,0,0.55) 100%);
}

/* film grain via tiled SVG fractal noise */
.grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainshift 0.6s steps(2) infinite;
  will-change: transform;
}

@keyframes grainshift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-6%, 4%); }
}

/* ---------- Layout ---------- */
.wrap {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.5rem, 3.5vh, 2.4rem) clamp(1.25rem, 5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 3.2vh, 2.1rem);
  justify-content: space-between;
}

/* ---------- Kicker ---------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  animation: rise 1s var(--ease) both;
}
.kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-hot);
  box-shadow: 0 0 10px 1px rgba(210, 60, 38, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.82); }
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex: 1 1 auto;
  justify-content: center;
}

.wordmark {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.005em;
  font-size: clamp(3.2rem, 13.5vw, 7.4rem);
  color: var(--ivory);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
}
.wordmark .line {
  display: block;
  animation: rise 1.1s var(--ease) both;
}
.wordmark .line:nth-child(1) { animation-delay: 0.05s; }
.wordmark .line:nth-child(2) { animation-delay: 0.16s; }
.wordmark .line:nth-child(3) { animation-delay: 0.27s; }
.wordmark .accent {
  color: var(--amber);
  background: linear-gradient(180deg, #e6a638 0%, var(--amber) 55%, var(--amber-lo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 44px rgba(200, 135, 26, 0.28);
}

.tagline {
  margin: 0;
  font-size: clamp(1.05rem, 3.2vw, 1.5rem);
  font-weight: 500;
  color: var(--ivory);
  letter-spacing: 0.01em;
  animation: rise 1.1s var(--ease) 0.36s both;
}
.blurb {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(0.92rem, 2.4vw, 1.02rem);
  line-height: 1.65;
  color: var(--ivory-dim);
  animation: rise 1.1s var(--ease) 0.46s both;
}

/* ---------- Equalizer (single ambient motion piece) ---------- */
.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 46px;
  margin-top: 0.6rem;
  animation: rise 1.1s var(--ease) 0.56s both;
}
.equalizer span {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-lo) 100%);
  box-shadow: 0 0 8px rgba(200, 135, 26, 0.35);
  animation: bar 1.4s ease-in-out infinite;
  opacity: 0.85;
}
.equalizer span:nth-child(1)  { animation-delay: -0.1s;  animation-duration: 1.5s; }
.equalizer span:nth-child(2)  { animation-delay: -0.9s;  animation-duration: 1.7s; }
.equalizer span:nth-child(3)  { animation-delay: -0.4s;  animation-duration: 1.2s; }
.equalizer span:nth-child(4)  { animation-delay: -1.1s;  animation-duration: 1.9s; }
.equalizer span:nth-child(5)  { animation-delay: -0.2s;  animation-duration: 1.4s; }
.equalizer span:nth-child(6)  { animation-delay: -0.7s;  animation-duration: 1.6s; }
.equalizer span:nth-child(7)  { animation-delay: -1.3s;  animation-duration: 1.3s; }
.equalizer span:nth-child(8)  { animation-delay: -0.5s;  animation-duration: 2.0s; }
.equalizer span:nth-child(9)  { animation-delay: -1.0s;  animation-duration: 1.5s; }
.equalizer span:nth-child(10) { animation-delay: -0.3s;  animation-duration: 1.7s; }
.equalizer span:nth-child(11) { animation-delay: -0.8s;  animation-duration: 1.2s; }
.equalizer span:nth-child(12) { animation-delay: -1.2s;  animation-duration: 1.8s; }
.equalizer span:nth-child(13) { animation-delay: -0.6s;  animation-duration: 1.4s; }
.equalizer span:nth-child(14) { animation-delay: -0.15s; animation-duration: 1.6s; }
.equalizer span:nth-child(15) { animation-delay: -0.95s; animation-duration: 1.3s; }
@keyframes bar {
  0%, 100% { height: 8px; opacity: 0.55; }
  50%      { height: 42px; opacity: 1; }
}

/* ---------- Signup ---------- */
.signup {
  animation: rise 1.1s var(--ease) 0.66s both;
}
.signup-title {
  margin: 0 0 0.9rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  letter-spacing: 0.01em;
}
.form { max-width: 460px; }
.field {
  display: flex;
  gap: 0.5rem;
  padding: 6px;
  border: 1px solid rgba(242, 236, 221, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(4px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field:focus-within {
  border-color: rgba(200, 135, 26, 0.6);
  box-shadow: 0 0 0 3px rgba(200, 135, 26, 0.12);
}
.field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  outline: none;
}
.field input::placeholder { color: var(--ivory-fnt); }

.btn {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ivory);
  padding: 0.7rem 1.4rem;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--red-hot) 0%, var(--red) 100%);
  box-shadow: 0 6px 18px -6px rgba(180, 50, 31, 0.7), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), filter 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 10px 24px -6px rgba(180, 50, 31, 0.8); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

.status {
  margin: 0.85rem 2px 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--ivory-dim);
  transition: color 0.3s var(--ease);
}
.status.ok  { color: var(--amber); }
.status.err { color: var(--red-hot); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(242, 236, 221, 0.08);
  animation: rise 1.1s var(--ease) 0.78s both;
}
.socials { display: flex; gap: 0.4rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ivory-dim);
  border: 1px solid rgba(242, 236, 221, 0.10);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.2s var(--ease);
}
.socials a:hover {
  color: var(--amber);
  border-color: rgba(200, 135, 26, 0.45);
  background: rgba(200, 135, 26, 0.06);
  transform: translateY(-2px);
}
.socials a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.copyright {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-fnt);
}

/* ---------- Utilities ---------- */
.visually-hidden, .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- Motion / accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .equalizer span { height: 22px; opacity: 0.8; }
}

@media (max-width: 480px) {
  .footer { flex-direction: column-reverse; align-items: flex-start; }
  .equalizer { height: 38px; }
}
