/* THE GATOR - waitlist: asymmetric hero + in-app practice mockup */

:root {
  --bg: #0a0d0a;
  --line: rgba(182, 242, 62, 0.16);
  --line-strong: rgba(182, 242, 62, 0.4);
  --lime: #b6f23e;
  --ink-on-lime: #122902;
  --text: #f2efe6;
  --muted: #a2ad9e;
  --panel: #10150f;
  --display: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100dvh;
}

img { max-width: 100%; height: auto; display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- background layers ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 640px at 78% 42%, rgba(182, 242, 62, 0.07), transparent 65%),
    radial-gradient(760px 560px at 8% 96%, rgba(24, 68, 34, 0.5), transparent 70%),
    var(--bg);
}

#unicorn-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

#unicorn-bg canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* once the scene renders, the CSS fallback can stop painting */
body.unicorn-on .bg { display: none; }

.fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.fx-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 239, 230, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 239, 230, 0.03) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 62% 68% at 68% 44%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 68% at 68% 44%, #000 20%, transparent 78%);
}

.fx-word {
  position: absolute;
  left: 50%;
  bottom: -6vw;
  transform: translateX(-50%);
  width: 74vw;
  max-width: none;
  opacity: 0.035;
  user-select: none;
}

/* ---------- loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.1rem;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s 0.35s;
}

.loader.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s 0.45s;
}


.loader p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- page frame ---------- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.15rem clamp(1.4rem, 4.5vw, 4rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}

.brand img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  gap: 0.7rem;
}

.nav-links a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-links a:hover {
  background: rgba(182, 242, 62, 0.16);
  transform: translateY(-1px);
}

.nav-links img { opacity: 0.92; }

.btn-nav {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-on-lime);
  background: linear-gradient(180deg, #d3fa61 0%, #a2e335 100%);
  text-decoration: none;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 3px 16px rgba(150, 217, 44, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 5px 22px rgba(150, 217, 44, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-nav:active { transform: translateY(1px) scale(0.98); }

/* ---------- hero ---------- */
.hero {
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem clamp(1.4rem, 4.5vw, 4rem) 2.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  grid-template-areas:
    "copy viz"
    "meta viz";
  align-content: center;
  column-gap: clamp(1.5rem, 4vw, 4.5rem);
}

.hero-copy { grid-area: copy; align-self: end; }
.hero-viz { grid-area: viz; align-self: center; }
.hero-meta { grid-area: meta; align-self: start; }

/* ---------- copy ---------- */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}

h1 {
  margin-top: 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.9rem, 6.3vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.pill {
  display: inline-block;
  padding: 0 0.32em 0.05em;
  border-radius: 0.4em;
  background: linear-gradient(180deg, #d3fa61 0%, #a2e335 100%);
  color: var(--ink-on-lime);
  box-shadow: 0 0 24px rgba(182, 242, 62, 0.28);
  transform: rotate(-1.2deg);
}

.hero-sub {
  margin-top: 1.35rem;
  max-width: 42ch;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  color: var(--muted);
}

/* ---------- form ---------- */
.wl-form {
  margin-top: 2rem;
  width: min(100%, 540px);
}

.pill-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.38rem 0.38rem 1.35rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pill-input:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(182, 242, 62, 0.15);
}

.pill-input input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: none;
  border: 0;
  outline: none;
}

.pill-input input::placeholder { color: rgba(162, 173, 158, 0.75); }

.btn-cta {
  flex: 0 0 auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  color: var(--ink-on-lime);
  background: linear-gradient(180deg, #d3fa61 0%, #a2e335 100%);
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.45rem;
  cursor: pointer;
  box-shadow: 0 4px 22px rgba(150, 217, 44, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 30px rgba(150, 217, 44, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-cta:active { transform: translateY(1px) scale(0.97); }
.btn-cta:disabled { opacity: 0.7; cursor: wait; }

.form-error {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: #ffb3a1;
}

.consent-note { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.72rem; line-height: 1.45; }
.consent-note a { color: inherit; text-decoration: underline; }

.wl-success { margin-top: 2rem; }

.success-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
}

.success-sub { color: var(--muted); margin-top: 0.3rem; }
.success-sub strong { color: var(--lime); }
.referral-box { margin-top: 1rem; max-width: 34rem; }
.referral-box p { margin: 0 0 0.45rem; color: var(--muted); font-size: 0.85rem; }
.referral-row { display: flex; gap: 0.5rem; }
.referral-row input { min-width: 0; flex: 1; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; background: rgba(0, 0, 0, 0.35); color: var(--text); padding: 0.72rem 1rem; }
.referral-row button { border: 0; border-radius: 999px; background: var(--lime); color: var(--ink-on-lime); font-family: var(--display); font-weight: 800; padding: 0.72rem 1.1rem; cursor: pointer; }

/* ---------- proof + countdown ---------- */
.hero-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1.8rem;
  row-gap: 0.4rem;
}

.proof {
  font-size: 0.95rem;
  color: var(--muted);
}

.proof strong { color: var(--text); }

.cd-line {
  font-size: 0.92rem;
  color: var(--muted);
}

.cd-line strong {
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

/* ---------- product visualization ---------- */
.hero-viz {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

.viz-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 130%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(182, 242, 62, 0.14), rgba(182, 242, 62, 0.04) 55%, transparent 75%);
  filter: blur(12px);
  pointer-events: none;
}

.phone-parallax { position: relative; z-index: 1; }

.phone-wrap { transform: rotate(-3deg); }

.phone {
  width: min(340px, 86vw);
  background: linear-gradient(180deg, #141a13 0%, #0b100b 100%);
  border: 1px solid #263124;
  border-radius: 46px;
  padding: 1.05rem 1.05rem 1.25rem;
  box-shadow:
    0 44px 90px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.p-island {
  width: 86px;
  height: 24px;
  margin: 0.15rem auto 0.9rem;
  border-radius: 999px;
  background: #050705;
}

.p-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.p-chip {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--lime);
  background: rgba(182, 242, 62, 0.12);
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
}

.p-streak {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
}

.p-scenario {
  margin-top: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.p-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #08120b;
  background: linear-gradient(135deg, #8fe8b8 0%, #d3fa61 100%);
}

.p-who { display: flex; flex-direction: column; line-height: 1.25; }
.p-who strong { font-size: 0.98rem; }
.p-who span { font-size: 0.8rem; color: var(--muted); }

.p-prompt {
  margin-top: 0.95rem;
  font-size: 0.83rem;
  color: var(--muted);
}

.p-quote {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.32rem;
  line-height: 1.25;
  margin-top: 0.15rem;
}

.p-options {
  margin-top: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.p-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 0.85rem;
  font-size: 0.92rem;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}

.p-key {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 7px;
}

.p-opt.is-selected {
  background: rgba(182, 242, 62, 0.1);
  border-color: rgba(182, 242, 62, 0.55);
}

.p-opt.is-selected .p-key {
  color: var(--ink-on-lime);
  background: var(--lime);
}

.p-xp {
  position: absolute;
  right: 0.7rem;
  bottom: -0.85rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--ink-on-lime);
  background: linear-gradient(180deg, #d3fa61 0%, #a2e335 100%);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.p-progress {
  margin-top: 1.35rem;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.p-progress span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a2e335, #d3fa61);
}

.p-next {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- floating cards ---------- */
.float-card {
  position: absolute;
  z-index: 2;
  font-size: 0.88rem;
  color: var(--text);
  background: rgba(16, 21, 15, 0.88);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.6rem 0.95rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.float-card strong { color: var(--lime); }

.fc-1 { left: 2%; top: 10%; }
.fc-2 { right: 0; top: 44%; }
.fc-3 { left: -2%; bottom: 12%; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* entrance waits for the loader (body.ready is added by main.js;
     if JS never runs, content just shows statically) */
  body.js:not(.ready) :is(.nav, .hero-copy > *, .hero-meta, .hero-viz) { opacity: 0; }

  body.ready .nav { animation: fade-down 0.7s ease backwards; }
  body.ready .enter { animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
  .e1 { animation-delay: 0.1s; }
  .e2 { animation-delay: 0.18s; }
  .e3 { animation-delay: 0.28s; }
  .e4 { animation-delay: 0.38s; }
  .e5 { animation-delay: 0.5s; }

  body.ready .hero-viz { animation: viz-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s backwards; }

  /* the phone keeps floating after it lands */
  .phone { animation: float 6.5s ease-in-out 1.6s infinite; }

  /* the picked answer pulses once when everything has settled */
  body.ready .p-opt.is-selected { animation: sel-pulse 1.1s ease-out 1.9s 1; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes fade-down {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes viz-in {
    from { opacity: 0; transform: translateX(44px); }
    to { opacity: 1; transform: translateX(0); }
  }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }

  @keyframes sel-pulse {
    from { box-shadow: 0 0 0 0 rgba(182, 242, 62, 0.4); }
    to { box-shadow: 0 0 0 16px rgba(182, 242, 62, 0); }
  }

  .loader img { animation: loader-pulse 1.3s ease-in-out infinite; }

  @keyframes loader-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.9); opacity: 0.75; }
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1.5rem;
  }

  .hero-copy { align-self: stretch; }

  h1 { font-size: clamp(2.7rem, 9.6vw, 4.2rem); }

  .hero-viz {
    align-self: center;
    width: 100%;
    max-width: 480px;
    margin-top: 2.4rem;
    padding: 1rem 0;
  }

  .hero-meta { margin-top: 2rem; }

  .fc-1 { left: 0; top: 6%; }
  .fc-2 { right: 0; top: 46%; }
  .fc-3 { left: 2%; bottom: 8%; }
}

@media (max-width: 760px) {
  .nav { gap: 1rem; }
  .nav-links { gap: 0.45rem; }
  .nav-links a { width: 34px; height: 34px; }
}

@media (max-width: 480px) {
  .float-card { font-size: 0.8rem; padding: 0.5rem 0.75rem; }

  .wl-form .pill-input {
    flex-wrap: wrap;
    padding: 0.38rem;
    border-radius: 26px;
  }

  .pill-input input {
    flex: 1 1 100%;
    padding: 0.55rem 1rem 0.35rem;
  }

  .btn-cta { flex: 1 1 100%; }
}
