:root {
  --bg: #f4f4f2;
  --ink: #131313;
  --gold: #f9b21f;
  --gold-dark: #a4740c;
  --gold-1: #fbc02d;
  --gold-2: #f59e0b;
  --gold-3: #f08a00;
  --gold-gradient: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 55%, var(--gold-3) 100%);
  --muted: #55554f;
  --muted-2: #5c5c58;
  --muted-3: #3d3d3a;
  --muted-4: #7a7a74;
  --muted-5: #8a8a83;
  --display: 'Barlow Condensed', Helvetica, Arial, sans-serif;
  --body: Barlow, Helvetica, Arial, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

@keyframes jpFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes jpPulse { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: .9; transform: scale(1.06); } }
@keyframes jpBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } }

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  box-sizing: border-box;
  font-family: var(--body);
  color: var(--ink);
}

.bg-lines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(19,19,19,.045) 0 2px, transparent 2px 26px);
}

.glow {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.glow--gold {
  top: -18%; right: -12%; width: 52vw; height: 52vw;
  background: radial-gradient(circle, rgba(249,178,31,.30), rgba(249,178,31,0) 68%);
  animation: jpPulse 9s ease-in-out infinite;
}
.glow--dark {
  bottom: -22%; left: -14%; width: 46vw; height: 46vw;
  background: radial-gradient(circle, rgba(19,19,19,.14), rgba(19,19,19,0) 70%);
  animation: jpPulse 11s ease-in-out infinite;
}

.topbar {
  position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: var(--ink); overflow: hidden;
}
.topbar__sweep {
  position: absolute; inset: 0; width: 32%;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-3));
  animation: jpBar 3.4s linear infinite;
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 5vh, 56px);
  width: 100%;
  max-width: 1040px;
  min-width: 0;
  text-align: center;
}

.kicker {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display);
  font-weight: 700; font-size: 15px;
  letter-spacing: .42em; text-transform: uppercase;
  color: var(--muted-2);
}
.kicker__line { width: 34px; height: 2px; background: var(--gold-gradient); display: block; flex: 0 0 auto; }

.logo {
  position: relative; width: 100%; max-width: 820px;
  animation: jpFloat 7s ease-in-out infinite;
}
.logo img,
.logo__fallback { display: block; width: 100%; height: auto; }
.logo img[hidden],
.logo__fallback[hidden] { display: none; }

.headline {
  display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%;
}
.title {
  margin: 0;
  font-family: var(--display);
  font-style: italic; font-weight: 700; text-transform: uppercase;
  font-size: clamp(56px, 11vw, 150px);
  line-height: .86; letter-spacing: -.02em;
  color: var(--ink);
}
.title__dot {
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.subtitle {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
}
.subtitle__line { height: 3px; width: clamp(40px, 10vw, 120px); background: var(--ink); display: block; }
.subtitle__text {
  font-family: var(--display);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: .34em; font-size: clamp(13px, 1.6vw, 18px);
  color: var(--muted-3);
}

.signup {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(20px, 3.4vh, 32px); width: 100%;
}
.signup__copy {
  margin: 0; max-width: 520px;
  font-size: clamp(15px, 1.7vw, 18px); line-height: 1.6;
  color: var(--muted); text-wrap: pretty;
}
.signup__form {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  width: 100%; max-width: 520px;
}
.signup__input {
  flex: 1 1 240px; min-width: 0;
  padding: 17px 20px;
  font-family: var(--body); font-size: 16px;
  color: var(--ink); background: #fff;
  border: 2px solid var(--ink); border-radius: 0; outline: none;
}
.signup__input:focus { border-color: var(--gold); }
.signup__input[aria-invalid="true"] { border-color: #c0392b; }
.signup__hp {
  position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0;
}
.signup__button {
  flex: 0 0 auto;
  padding: 17px 30px;
  font-family: var(--display);
  font-style: italic; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: 18px;
  color: var(--ink); background: var(--gold-gradient);
  border: 2px solid var(--ink); cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.signup__button:hover,
.signup__button:focus-visible {
  background: var(--ink); color: var(--gold-1); transform: translateY(-2px);
}
.signup__button[disabled] { opacity: .7; cursor: progress; transform: none; }
.signup__done,
.signup__error {
  font-family: var(--display);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: .24em; font-size: 14px;
  color: var(--gold-dark);
}
.signup__error { color: #b3261e; }

.countdown {
  display: flex; gap: clamp(20px, 5vw, 64px); flex-wrap: wrap; justify-content: center; margin-top: 8px;
}
.countdown__unit { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.countdown__value {
  font-family: var(--display);
  font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.countdown__value--accent { color: var(--gold); }
.countdown__label {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-4);
}

.footer {
  position: relative;
  margin-top: clamp(36px, 7vh, 72px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
.age-badge {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px 9px 9px;
  border: 2px solid var(--ink); background: #fff;
}
.age-badge__pill {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--gold);
  font-family: var(--display); font-weight: 700; font-size: 15px;
}
.age-badge__text {
  font-family: var(--display);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: .2em; font-size: 13px; color: var(--ink);
}
.footer__legal {
  margin: 0; max-width: 460px;
  font-size: 12.5px; line-height: 1.6; letter-spacing: .02em;
  color: var(--muted-4); text-wrap: pretty;
}
.footer__meta {
  display: flex; justify-content: center; gap: 26px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted-5);
}

@media (max-width: 480px) {
  .page { padding: 56px 20px 40px; }
  .kicker { font-size: 13px; letter-spacing: .28em; gap: 10px; }
  .kicker__line { width: 22px; }
  .signup__form { flex-direction: column; }
  .signup__button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .logo, .glow, .topbar__sweep { animation: none; }
}
