/* ============================================================
   BENNY L - PROJECT-DaRK - Clock Factory, Bristol - presale signup
   Identity: acid-green machine-glow on near-black teal (sampled from
   the cyborg/UFO poster). Display+HUD: Chakra Petch. Body: Barlow.
   Signature: machine-vision targeting frame (neon corner brackets +
   a single slow scanline sweep) around the signup panel.
   ============================================================ */

:root {
  --void:      #07130F;   /* near-black teal, darkest poster areas */
  --abyss:     #0A1813;   /* panel base */
  --abyss-2:   #0E2019;   /* raised surfaces (inputs / chips) */
  --line:      #1E4035;   /* hairline borders */
  --line-neon: rgba(53,242,164,.30);

  --neon:      #35F2A4;   /* acid spring-green - the UFO glow, the signature */
  --neon-hot:  #69FFC2;   /* brightest highlight */
  --neon-deep: #0F8F63;   /* dim green */

  --chrome:    #9DB2AC;   /* Terminator steel - secondary text */
  --ice:       #EAF6F1;   /* cool white - primary text */
  --danger:    #ff5a52;

  --display: "Chakra Petch", "Arial Narrow", sans-serif;
  --ui:      "Chakra Petch", "Helvetica Neue", Arial, 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(--ice);
  background: var(--void);
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- blurred poster backdrop ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--void);
  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.05); /* 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% 95% at 70% 12%, rgba(53,242,164,.10), transparent 52%),
    linear-gradient(180deg, rgba(5,14,11,.62) 0%, rgba(5,14,11,.82) 54%, rgba(5,14,11,.94) 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;
}

/* ---------- framed poster ---------- */
.poster {
  justify-self: center;
  width: 100%;
  max-width: 560px;
}
.poster__frame {
  position: relative;
  padding: 7px;
  background:
    linear-gradient(180deg, rgba(53,242,164,.45), rgba(53,242,164,.06) 30%, rgba(53,242,164,.06) 70%, rgba(53,242,164,.30));
  border: 1px solid var(--line-neon);
  box-shadow:
    0 0 0 1px rgba(5,14,11,.6),
    0 24px 60px -26px rgba(0,0,0,.85),
    0 0 60px -22px rgba(53,242,164,.45);
  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  +  targeting-frame signature
   ============================================================ */
.panel {
  justify-self: center;
  width: 100%;
  max-width: 520px;
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(14,32,25,.95), rgba(7,19,15,.97));
  border: 1px solid var(--line);
  box-shadow:
    0 30px 64px -28px rgba(0,0,0,.85),
    inset 0 1px 0 rgba(53,242,164,.10);
  animation: panelIn .9s .12s cubic-bezier(.16,.84,.36,1) both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* scanline sweep - clipped to its own wrapper so it never clips the
   intl-tel-input dropdown (which lives in .panel__inner above it). */
.panel__scan {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.panel__scan::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 130px;
  top: -130px;
  background: linear-gradient(180deg,
    transparent, rgba(53,242,164,.05) 44%, rgba(53,242,164,.14) 50%,
    rgba(53,242,164,.05) 56%, transparent);
  animation: scan 6.5s linear infinite;
}
@keyframes scan { from { top: -130px; } to { top: 100%; } }

/* neon corner brackets - machine-vision target lock */
.bracket {
  position: absolute;
  width: 20px; height: 20px;
  z-index: 3;
  pointer-events: none;
  border: 2px solid var(--neon);
  box-shadow: 0 0 8px -1px rgba(53,242,164,.7);
}
.bracket--tl { top: -1px; left: -1px;  border-right: 0; border-bottom: 0; }
.bracket--tr { top: -1px; right: -1px; border-left: 0;  border-bottom: 0; }
.bracket--bl { bottom: -1px; left: -1px;  border-right: 0; border-top: 0; }
.bracket--br { bottom: -1px; right: -1px; border-left: 0;  border-top: 0; }

.panel__inner { position: relative; z-index: 2; padding: clamp(26px, 3.4vw, 40px); }

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

/* ---------- presenter tag ---------- */
.kicker {
  margin: 0 0 12px;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--chrome);
}
.kicker::before { content: "[ "; color: var(--neon-deep); }
.kicker::after  { content: " ]"; color: var(--neon-deep); }

/* ---------- title ---------- */
.panel__title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .96;
  font-size: clamp(2.1rem, 5.6vw, 3rem);
  margin: 0 0 16px;
  color: var(--ice);
  text-wrap: balance;
}
.panel__title em {
  font-style: normal;
  color: var(--neon);
  text-shadow: 0 0 22px rgba(53,242,164,.5);
}

/* ---------- HUD fact chips ---------- */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 0;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.facts li {
  display: flex;
  align-items: center;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--chrome);
}
.facts li + li { margin-left: 12px; }
.facts li + li::before {
  content: "";
  width: 5px; height: 5px;
  margin-right: 12px;
  transform: rotate(45deg);
  background: var(--neon);
  box-shadow: 0 0 7px rgba(53,242,164,.8);
}

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

/* ============================================================
   FORM
   ============================================================ */
.form__row { margin: 0 0 16px; }
.form__label {
  display: block;
  margin: 0 0 7px;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--chrome);
}
.form__input {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ice);
  background: var(--abyss-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.form__input::placeholder { color: #5c7268; }
.form__input:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(53,242,164,.16);
}
.form__input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255,90,82,.16);
}

/* ---------- 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 engines and 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(--chrome);
  line-height: 1.55;
}
.form__consent input {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 1px;
  accent-color: var(--neon);
}
.form__consent a { color: var(--neon); text-underline-offset: 2px; }

/* ---------- submit ---------- */
.btn-ticket {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, var(--neon-hot), var(--neon-deep));
  color: #04130D;
  border-radius: 3px;
  padding: 0;
  box-shadow: 0 12px 28px -12px rgba(53,242,164,.7);
  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: 700;
  font-size: 1.12rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.btn-ticket:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 16px 34px -12px rgba(53,242,164,.8); }
.btn-ticket:active { transform: translateY(0); }
.btn-ticket:disabled { filter: grayscale(.45) 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: var(--abyss-2);
  border-radius: 3px 0 0 3px;
}
.iti__selected-country:hover,
.iti__selected-country-primary:hover { background: #14271f; }
.iti--separate-dial-code .iti__selected-dial-code { color: var(--ice); }
.iti__dropdown-content {
  background: var(--abyss);
  border: 1px solid var(--line-neon);
  border-radius: 5px;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.88);
  color: var(--ice);
}
.iti__search-input {
  background: var(--abyss-2);
  color: var(--ice);
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 15px;
}
.iti__search-input::placeholder { color: #5c7268; }
.iti__search-input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--neon); }
.iti__search-icon { display: none; }
.iti__country-list { background: var(--abyss); }
.iti__country { color: var(--ice); }
.iti__country:hover,
.iti__country.iti__highlight { background: #173027; }
.iti__dial-code { color: var(--chrome); }
.iti__country-name { color: var(--ice); }
.iti--inline-dropdown .iti__dropdown-content { z-index: 50; }

/* ============================================================
   FOOTER  (full-width - matches basslayerz)
   ============================================================ */
.foot {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 18px clamp(16px, 4vw, 40px) 26px;
  background: rgba(5,14,11,.62);
  border-top: 1px solid var(--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(--chrome); letter-spacing: .02em; }
.foot__legal a { color: var(--chrome); text-decoration: none; }
.foot__legal a:hover { color: var(--neon); }
.site-built { margin: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--chrome);
  text-decoration: none;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.site-built a:hover { border-color: var(--neon); color: var(--ice); }
.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.02fr) minmax(0, 1fr);
    align-items: center;
  }
  .poster { justify-self: end; max-width: 540px; }
  .panel  { justify-self: start; }
}
@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(--neon);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .poster__frame, .panel { animation: none; }
  .panel__scan::before { animation: none; display: none; }
  * { scroll-behavior: auto; }
}
