/* ---------- Design tokens ---------- */
:root {
  --void: #14101f; /* page background */
  --dusk: #221833; /* panel / alt-section background */
  --dusk-light: #2f2247; /* borders, hairlines on dark */
  --pink: #ff5fa8;/* primary neon accent */
  --cyan: #52e8d6; /* secondary neon accent */
  --gold: #f4c14f; /* warm accent, CTAs */
  --parchment: #f4ecff; /* body text on dark */
  --muted: #b7a9d6; /* secondary text on dark */
  --ink: #1c1428; /* body text on light panels */
  --ink-muted: #5b5074; /* secondary text on light panels */

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-pixel: "Silkscreen", monospace;

  --max-width: 68rem;
  --space-section: clamp(4rem, 8vw, 7rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--void);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-weight: 700;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout primitives ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 0.5rem;
  position: relative;
  z-index: 2;
}

.wordmark {
  font-family: var(--font-pixel);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--parchment);
}
.wordmark__dot { color: var(--pink); }

.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--cyan); }

.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.footer-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-link:hover { color: var(--cyan); }

/* ---------- Legal / standalone content pages ---------- */
.legal {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem 5rem;
}
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.legal__updated {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 2.5rem;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}
.legal p {
  color: var(--muted);
  margin-bottom: 1rem;
}
.legal a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--pink); }
.legal__back {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}
.legal__back:hover { color: var(--cyan); }

section { position: relative; }

.eyebrow {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1rem;
}
.eyebrow--dark { color: var(--dusk); }

.section-heading {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--ink);
  max-width: 22ch;
}
.section-heading--light { color: var(--parchment); }

.section-lead {
  max-width: 46ch;
  margin-top: 1.25rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn--primary {
  background: var(--gold);
  color: #241708;
  box-shadow: 0 0 0 rgba(244, 193, 79, 0);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(244, 193, 79, 0.55);
}
.btn--primary:active { transform: translateY(0); }

/* ---------- Decorative bits ---------- */
.motes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.mote {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 8px 2px var(--cyan);
  opacity: 0.55;
  animation: drift 14s ease-in-out infinite;
}
.mote--1 { top: 12%; left: 8%; animation-delay: 0s; background: var(--pink); box-shadow: 0 0 8px 2px var(--pink); }
.mote--2 { top: 30%; left: 85%; animation-delay: 2s; }
.mote--3 { top: 60%; left: 15%; animation-delay: 4s; background: var(--gold); box-shadow: 0 0 8px 2px var(--gold); }
.mote--4 { top: 75%; left: 92%; animation-delay: 1s; }
.mote--5 { top: 20%; left: 50%; animation-delay: 6s; background: var(--pink); box-shadow: 0 0 8px 2px var(--pink); }
.mote--6 { top: 85%; left: 60%; animation-delay: 3s; }

@keyframes drift {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  50% { transform: translateY(-18px) translateX(10px); opacity: 0.75; }
}

.scallop {
  height: 22px;
  background: radial-gradient(circle at 11px -6px, transparent 12px, var(--dusk) 12.5px) 0 0/22px 22px repeat-x;
}
.scallop-cap {
  height: 20px;
  background-repeat: repeat-x;
  background-size: 22px 20px;
  position: relative;
  z-index: 1;
}
.scallop-cap--top {
  background-image: radial-gradient(circle at 11px -6px, transparent 12px, var(--void) 12.5px);
}
.scallop-cap--bottom {
  background-image: radial-gradient(circle at 11px -6px, transparent 12px, var(--parchment) 12.5px);
  transform: rotate(180deg);
}

.screenshot-banner {
  position: relative;
  overflow: hidden;
  line-height: 0;
  background: linear-gradient(120deg, var(--dusk), var(--dusk-light));
}
.screenshot-banner img {
  width: 100%;
  height: clamp(220px, 32vw, 380px);
  object-fit: cover;
  display: block;
}
.screenshot-banner::before,
.screenshot-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 70px;
  pointer-events: none;
}
.screenshot-banner::before {
  top: 0;
  background: linear-gradient(to bottom, var(--void), transparent);
}
.screenshot-banner::after {
  bottom: 0;
  background: linear-gradient(to top, var(--parchment), transparent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 10vw, 6rem) 1.5rem clamp(3rem, 8vw, 4.5rem);
  text-align: center;
}

.hero__headline {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 600;
  color: var(--parchment);
  text-wrap: balance;
}

.hero__headline-accent {
  font-style: italic;
  font-weight: 500;
  color: var(--pink);
  text-shadow:
    0 0 12px rgba(255, 95, 168, 0.65),
    0 0 32px rgba(255, 95, 168, 0.35);
  animation: flicker 6s ease-in-out infinite;
}

@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.55; }
  94% { opacity: 1; }
  95% { opacity: 0.7; }
  96% { opacity: 1; }
}

.hero__sub {
  margin: 1.5rem auto 2.25rem;
  max-width: 40ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__scroll-cue {
  margin-top: 2.5rem;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--dusk-light);
}

/* ---------- Newsletter / ticket ---------- */
.newsletter {
  background: var(--parchment);
  color: var(--ink);
  padding: var(--space-section) 1.5rem calc(var(--space-section) + 1rem);
  text-align: center;
}
.newsletter .eyebrow,
.newsletter .section-heading {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.ticket {
  position: relative;
  max-width: 32rem;
  margin: 2.5rem auto 0;
  background: var(--void);
  color: var(--parchment);
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  border: 1.5px dashed var(--dusk-light);
  text-align: left;
}

.ticket__notch {
  position: absolute;
  top: 50%;
  width: 28px;
  height: 28px;
  background: var(--parchment);
  border-radius: 50%;
  transform: translateY(-50%);
}
.ticket__notch--left { left: -14px; }
.ticket__notch--right { right: -14px; }

.ticket__copy {
  font-size: 0.98rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.ticket__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ticket__row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.ticket__input {
  flex: 1 1 12rem;
  min-width: 0;
  background: var(--dusk);
  border: 1.5px solid var(--dusk-light);
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.ticket__input::placeholder { color: var(--muted); }
.ticket__input:focus { border-color: var(--cyan); outline: none; }

.ticket__submit { flex: 0 0 auto; }
.btn__label-loading { display: none; }
.ticket__form.is-loading .btn__label-default { display: none; }
.ticket__form.is-loading .btn__label-loading { display: inline; }
.ticket__form.is-loading .ticket__submit { opacity: 0.75; cursor: progress; }

.ticket__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.ticket__consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 0.2rem;
  accent-color: var(--cyan);
  cursor: pointer;
}
.ticket__consent label {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.ticket__consent a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ticket__consent a:hover { color: var(--pink); }

.ticket__status {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.ticket__status[data-state="success"] { color: var(--cyan); }
.ticket__status[data-state="error"] { color: var(--pink); }

/* ---------- Responsive + motion ---------- */
@media (max-width: 640px) {
  .site-nav { gap: 1rem; }
  .site-nav a { font-size: 0.75rem; }
  .ticket { padding: 1.75rem 1.25rem; }
  .ticket__row { flex-direction: column; }
  .ticket__input { flex: 1 1 auto; width: 100%; }
  .ticket__submit { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mote { animation: none; opacity: 0.4; }
  .hero__headline-accent { animation: none; }
  .btn { transition: none; }
}
