/* =========================================================
   Landing page — plain white on black
   ========================================================= */

:root {
  --ink:    #000;
  --panel:  #0d0d0f;
  --line:   #232327;
  --paper:  #fff;
  --muted:  #fff;
  --accent: #ccff00; /* electric lime */

  --shell:  1100px;
  --pad:    24px;
  --ease:   cubic-bezier(.22, 1, .36, 1);

  --font: "Special Elite", "Courier New", Courier, monospace;
}

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Loader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity .55s var(--ease), visibility .55s;
}

.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader__bolt { width: 44px; height: auto; overflow: visible; }

.loader__path {
  fill: var(--accent);
  fill-opacity: 0;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.loader.is-running .loader__path {
  animation: bolt-draw .85s var(--ease) forwards,
             bolt-fill .45s ease .78s forwards;
}

@keyframes bolt-draw { to { stroke-dashoffset: 0; } }
@keyframes bolt-fill { to { fill-opacity: 1; } }

.reveal { opacity: 0; transform: translateY(14px); }

body.is-ready .reveal { animation: rise .7s var(--ease) forwards; }

@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Top bolt ---------- */

.top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(28px, 6vh, 52px);
}

/* name under the bolt */
.top__name {
  margin: 14px 0 0;
  color: var(--accent);
  font-size: 30px;
  line-height: 1;
  white-space: nowrap;
}

.top__bolt { width: 40px; height: auto; fill: var(--accent); }

/* ---------- Intro ---------- */

.intro { padding: clamp(56px, 14vh, 130px) 0 clamp(52px, 9vh, 90px); }

.intro p {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(21px, 5.4vw, 27px);
  line-height: 1.45;
  letter-spacing: 0;
}

/* ---------- Button ---------- */

.btn {
  display: inline-block;
  padding: 15px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s, transform .2s var(--ease);
}

.btn:hover { background: #dbff4d; }
.btn:active { transform: scale(.98); }
.btn--block { width: 100%; }

/* secondary: lime outline, fills on hover */
.btn--outline { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn--outline:hover { background: var(--accent); color: #000; }

/* ---------- Carousel ---------- */

.features { padding-bottom: clamp(52px, 9vh, 90px); }

.carousel { position: relative; }

.carousel__track {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 4px var(--pad) 8px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar { display: none; }

.card {
  position: relative;
  flex: 0 0 auto;
  width: min(80vw, 330px);
  aspect-ratio: 1000 / 1750;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(90% 55% at 72% 94%, rgba(204, 255, 0, .2), rgba(204, 255, 0, 0) 70%),
    #000;
  overflow: hidden;
  scroll-snap-align: center;
}

.card__text { position: relative; z-index: 2; }

.card__rule {
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 18px;
  background: var(--accent);
}

.card__title {
  margin: 0 0 8px;
  font-size: clamp(22px, 5.4vw, 29px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
}

.card__sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.card__art {
  position: absolute;
  z-index: 1;
  right: -11%;
  bottom: -7%;
  width: 83%;
  height: auto;
  pointer-events: none;
}

.card__art--tag { right: -14%; bottom: -4%; width: 92%; }

.card__bolt {
  position: absolute;
  z-index: 2;
  left: 26px;
  bottom: 26px;
  width: 22px;
  height: auto;
  fill: var(--accent);
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: none;
  translate: 0 -50%;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(6px);
  color: var(--paper);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.carousel__arrow:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.carousel__arrow[disabled] { opacity: .3; pointer-events: none; }

.carousel__arrow svg {
  width: 20px;
  height: 20px;
  margin-inline: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel__arrow--prev { left: 14px; }
.carousel__arrow--next { right: 14px; }

@media (hover: hover) and (min-width: 820px) {
  .carousel__arrow { display: block; }
}

.dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
}

.dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #3a3a40;
  cursor: pointer;
  transition: background .25s, width .25s var(--ease);
}

.dots button[aria-selected="true"] {
  width: 26px;
  border-radius: 4px;
  background: var(--accent);
}

/* ---------- Waitlist ---------- */

.waitlist { padding-bottom: clamp(60px, 11vh, 110px); }

/* sign-up slides at the start and end of the carousel */
.card--cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

/* golden ratio: space above the content : space below = 1 : 1.618 */
.card--cta::before,
.card--cta::after { content: ""; }
.card--cta::before { flex: 1; }
.card--cta::after  { flex: 1.618; }

/* still arrow under the text on the first slide, prompting a swipe */
.swipe-hint {
  padding: 8px;
  border: 0;
  background: none;
  color: var(--accent);
  cursor: pointer;
}

.swipe-hint svg {
  width: 64px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__note { max-width: 22ch; margin: 0; font-size: 15px; line-height: 1.5; }

.accent { color: var(--accent); }

.form-panel {
  max-width: 420px;
  margin-top: 28px;
}

.waitlist__title { max-width: 26ch; margin: 0; font-size: clamp(21px, 5.4vw, 27px); line-height: 1.4; }

/* fades and slides up as it scrolls into view; the form follows the title */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.scroll-reveal.is-visible { opacity: 1; transform: none; }
.form-panel.scroll-reveal { transition-delay: .15s; }

.field { margin-bottom: 18px; }

.optional { margin: 30px 0 0; padding: 22px 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }

.optional__title { float: left; width: 100%; padding: 0; margin-bottom: 16px; font-size: 15px; }
.optional__title + * { clear: both; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.req { color: var(--accent); }

.hint { margin: -2px 0 9px; font-size: 13px; line-height: 1.5; opacity: .7; }

.field input,
.field select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #2c2c32;
  border-radius: 12px;
  background: var(--panel);
  color: var(--paper);
  font: inherit;
  font-size: 16px; /* stops iOS zooming on focus */
  transition: border-color .2s;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238e8e96' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  padding-right: 40px;
}

.field input:focus,
.field select:focus { border-color: var(--accent); outline: none; }

.field input[aria-invalid="true"] { border-color: #ff4d4d; }

/* price slider */
.price__value { display: block; margin-bottom: 6px; font-size: 22px; line-height: 1.3; }
.price__slider:not(.is-set) + .price__scale,
.price__slider:not(.is-set) { opacity: .55; }

.field input.price__slider {
  --fill: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.price__slider::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--line) var(--fill));
}
.price__slider::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
.price__slider::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
.price__slider:not(.is-set)::-webkit-slider-runnable-track { background: var(--line); }
.price__slider:not(.is-set)::-moz-range-progress { background: transparent; }
.price__slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -10px;
  border-radius: 50%; background: var(--paper); border: 0;
}
.price__slider::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 0; }
.price__slider:focus-visible { outline: none; }
.price__slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--accent); }
.price__slider:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--accent); }

.price__scale { display: flex; justify-content: space-between; margin-top: 4px; font-size: 13px; }

.error { margin: 7px 0 0; font-size: 13px; color: #ff6b6b; }
.error--form { margin-top: 10px; text-align: center; }

.btn:disabled { opacity: .6; cursor: progress; }

.turnstile { display: flex; justify-content: center; margin-top: 14px; }
.turnstile:empty { display: none; }

/* honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.success { margin: 0; font-size: 19px; }

.joined {
  margin: 0;
  padding: 14px 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--accent);
  color: var(--accent);
  font-size: 16px;
  text-align: center;
}

.form-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */

.footer { padding: 40px 0 52px; border-top: 1px solid var(--line); }

/* bolt in the middle, name on the right */
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer__bolt { grid-column: 2; width: 16px; height: auto; fill: var(--accent); }

.footer__name {
  grid-column: 3;
  justify-self: end;
  margin: 0;
  color: var(--accent);
  font-size: 15px;
  white-space: nowrap;
}

/* ---------- Larger screens ---------- */

@media (min-width: 700px) {
  :root { --pad: 40px; }
  body { font-size: 18px; }
  .card { width: 340px; padding: 34px 30px; }
  .carousel__track { gap: 20px; }
  .footer__inner { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1024px) {
  .carousel__track {
    padding-inline: max(var(--pad), calc((100vw - var(--shell)) / 2));
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .loader.is-running .loader__path {
    animation: none;
    stroke-dashoffset: 0;
    fill-opacity: 1;
  }
  .reveal { opacity: 1; transform: none; animation: none !important; }
  .form-panel { animation: none; }
  .scroll-reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
