/* ============================================================
   BASSLAYERZ - Rock City, Nottingham - presale signup
   Palette sampled from the poster: chrome gold on moody steel.
   Display: Anton (echoes the venue marquee blocks). Body: Barlow.
   ============================================================ */

:root {
  --gold:        #E9B11E;
  --gold-bright: #F7C631;
  --gold-deep:   #B6841A;
  --ink:         #0C0F13;
  --steel:       #161E27;
  --steel-2:     #1F2A36;
  --steel-line:  #33424F;
  --cream:       #F3EFE6;
  --muted:       #9DA8B2;
  --danger:      #ff6b5e;

  --display: "Anton", "Arial Narrow", sans-serif;
  --body:    "Barlow", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--cream);
  background: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- blurred poster background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--ink);
  background-image: url("/assets/images/bg-mobile.jpg");
  background-image: image-set(
    url("/assets/images/bg-mobile.webp") type("image/webp"),
    url("/assets/images/bg-mobile.jpg")  type("image/jpeg"));
  background-position: center;
  background-size: cover;
  transform: scale(1.04); /* hide blur-edge bleed */
}
@media (min-width: 880px) {
  .bg {
    background-image: url("/assets/images/bg-desktop.jpg");
    background-image: image-set(
      url("/assets/images/bg-desktop.webp") type("image/webp"),
      url("/assets/images/bg-desktop.jpg")  type("image/jpeg"));
  }
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(233,177,30,.10), transparent 55%),
    linear-gradient(180deg, rgba(8,11,15,.58) 0%, rgba(8,11,15,.80) 52%, rgba(8,11,15,.93) 100%);
}

/* ---------- film grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   STAGE LAYOUT
   ============================================================ */
.stage {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 56px) clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
}
.stage__inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}

/* ---------- the framed poster ---------- */
.poster {
  justify-self: center;
  width: 100%;
  max-width: 600px;
}
.poster__frame {  /* transparent cutout: drop-shadow follows the silhouette so it pops */
  position: relative;
  filter:
    drop-shadow(0 10px 16px rgba(0,0,0,.5))
    drop-shadow(0 34px 52px rgba(0,0,0,.55));
  animation: posterIn .9s cubic-bezier(.16,.84,.36,1) both;
}
.poster img {
  display: block;
  width: 100%;
  height: auto;
}
@keyframes posterIn {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   SIGNUP PANEL
   ============================================================ */
.panel {
  justify-self: center;
  width: 100%;
  max-width: 520px;
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(22,30,39,.94), rgba(12,15,19,.96));
  border: 1px solid var(--steel-line);
  border-top: 3px solid var(--gold);
  box-shadow: 0 30px 64px -28px rgba(0,0,0,.8);
  animation: panelIn .9s .12s cubic-bezier(.16,.84,.36,1) both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.panel__inner { padding: clamp(26px, 3.4vw, 40px); }

/* ---------- eyebrow (marquee rule) ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow span {
  flex: 0 0 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }

/* ---------- titles ---------- */
.panel__title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .94;
  font-size: clamp(2.3rem, 6vw, 3.25rem);
  margin: 0 0 14px;
  color: var(--cream);
  text-wrap: balance;
}
.panel__title em { font-style: normal; color: var(--gold); }

.panel__lede {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--muted);
  max-width: 42ch;
}
.panel__lede strong { color: var(--cream); font-weight: 600; }

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown { margin: 0 0 24px; }
.countdown__label {
  margin: 0 0 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}
.countdown__clock {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.cdseg {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px 9px;
  background: linear-gradient(180deg, var(--steel-2), #11171f);
  border: 1px solid var(--steel-line);
  border-radius: 4px;
}
.cdseg b {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 5.6vw, 2.2rem);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.cdseg i {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.cdsep {
  align-self: center;
  margin-top: -8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-deep);
  box-shadow: 0 -7px 0 var(--gold-deep);
}
.countdown__live {
  display: none;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--gold);
  padding: 11px 16px;
  border-radius: 4px;
}
.countdown.is-live .countdown__clock { display: none; }
.countdown.is-live .countdown__label { color: var(--gold-bright); }
.countdown.is-live .countdown__live { display: inline-block; }

/* ============================================================
   FORM
   ============================================================ */
.form__row { margin: 0 0 16px; }
.form__label {
  display: block;
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.form__input {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--cream);
  background: #10161d;
  border: 1px solid var(--steel-line);
  border-radius: 4px;
  padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.form__input::placeholder { color: #5d6b78; }
.form__input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(233,177,30,.18);
}
.form__input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255,107,94,.16);
}
.form__err {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--danger);
}

/* ---------- honeypot (spam trap) ----------
   display:none, NOT left:-9999px: off-screen honeypots get autofilled by
   Chrome/Edge and silently block real signups. display:none is skipped by
   autofill and by screen readers. */
.hp-field { display: none; }

/* ---------- consent ---------- */
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 4px 0 22px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.form__consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--gold);
}
.form__consent a { color: var(--gold); text-underline-offset: 2px; }

/* ---------- submit ---------- */
.btn-ticket {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color: var(--ink);
  border-radius: 4px;
  padding: 0;
  box-shadow: 0 10px 24px -10px rgba(233,177,30,.6);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-ticket .btn__face {
  display: block;
  padding: 15px 18px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.btn-ticket:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 30px -10px rgba(233,177,30,.7); }
.btn-ticket:active { transform: translateY(0); }
.btn-ticket:disabled { filter: grayscale(.4) brightness(.8); cursor: default; transform: none; }

/* ---------- success state ---------- */
.panel__success { text-align: left; }
.panel__success .panel__lede { margin-bottom: 0; }

/* ============================================================
   intl-tel-input (v25) - dark theme + searchable dropdown
   ============================================================ */
.iti { width: 100%; display: block; }
.iti__selected-country {
  background: #0c1218;
  border-radius: 4px 0 0 4px;
}
.iti__selected-country:hover,
.iti__selected-country-primary:hover { background: #141d26; }
.iti--separate-dial-code .iti__selected-dial-code { color: var(--cream); }
.iti__dropdown-content {
  background: var(--steel);
  border: 1px solid var(--steel-line);
  border-radius: 6px;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.85);
  color: var(--cream);
}
.iti__search-input {
  background: #10161d;
  color: var(--cream);
  border: none;
  border-bottom: 1px solid var(--steel-line);
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 15px;
}
.iti__search-input::placeholder { color: #5d6b78; }
.iti__search-input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--gold); }
.iti__search-icon { display: none; }              /* remove magnifying-glass icon */
.iti__search-input { padding-left: 14px; }        /* reclaim the space it left */
.iti__country-list { background: var(--steel); }
.iti__country { color: var(--cream); }
.iti__country:hover,
.iti__country.iti__highlight { background: #243240; }
.iti__dial-code { color: var(--muted); }
.iti__country-name { color: var(--cream); }
/* the dropdown must sit above the panel */
.iti--inline-dropdown .iti__dropdown-content { z-index: 50; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 18px clamp(16px, 4vw, 40px) 26px;
  background: rgba(8,11,15,.62);
  border-top: 1px solid var(--steel-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.foot__left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot__legal { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.foot__legal a { color: var(--muted); text-decoration: none; }
.foot__legal a:hover { color: var(--gold); }
.site-built { margin: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 11px;
  border: 1px solid var(--steel-line);
  border-radius: 999px;
}
.site-built a:hover { border-color: var(--gold); color: var(--cream); }
.site-built img { display: block; opacity: .9; }

/* ============================================================
   RESPONSIVE - two columns on wider screens
   ============================================================ */
@media (min-width: 880px) {
  .stage__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
  }
  .poster { justify-self: end; max-width: 560px; }
  .panel  { justify-self: start; }
  .foot { justify-content: space-between; }
}

@media (max-width: 879px) {
  .foot { justify-content: center; text-align: center; }
  .foot__left { justify-content: center; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.iti__selected-country:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .poster__frame, .panel { animation: none; }
  * { scroll-behavior: auto; }
}
