/* ============================================================
   CADIAN — PRE-LAUNCH WAITLIST (password page)
   Standalone: loaded by layout/password.liquid, which renders no
   theme header/footer/announcement/cart. 1:1 with cadian-waitlist.html.
   ============================================================ */
:root {
  --navy: #121957;
  --navy-deep: #0D1142;
  --navy-mid: #1A2270;
  --royal-blue: #1636FA;
  --yellow: #FBFF12;
  --powder-blue: #A8D2FD;
  --white: #FFFFFF;

  --text-primary: var(--white);
  --text-secondary: rgba(168, 210, 253, 0.85);
  --text-faint: rgba(168, 210, 253, 0.55);
  --field-border: rgba(255, 255, 255, 0.22);
  --field-border-focus: rgba(255, 255, 255, 0.7);

  --font-display: 'Host Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body { height: 100%; }

body.cadian-prelaunch {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--navy);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ============================================
   HERO — full-bleed navy with depth
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 32px 24px 24px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--navy-mid) 0%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 100%, var(--navy-deep) 0%, transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 50%, transparent 40%, rgba(13, 17, 66, 0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   STARFIELD
   ============================================ */
.stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.stars__dots { position: absolute; inset: -10%; background-repeat: repeat; will-change: opacity, transform; }

.stars__dots--small {
  background-image:
    radial-gradient(1px 1px at 14% 22%, rgba(251, 255, 18, 0.55) 50%, transparent),
    radial-gradient(1px 1px at 38% 64%, rgba(251, 255, 18, 0.45) 50%, transparent),
    radial-gradient(1px 1px at 72% 18%, rgba(255, 255, 255, 0.6) 50%, transparent),
    radial-gradient(1px 1px at 91% 47%, rgba(251, 255, 18, 0.5) 50%, transparent),
    radial-gradient(1px 1px at 7% 78%, rgba(255, 255, 255, 0.55) 50%, transparent),
    radial-gradient(1px 1px at 53% 38%, rgba(251, 255, 18, 0.4) 50%, transparent),
    radial-gradient(1px 1px at 28% 88%, rgba(168, 210, 253, 0.55) 50%, transparent),
    radial-gradient(1px 1px at 84% 72%, rgba(251, 255, 18, 0.45) 50%, transparent),
    radial-gradient(1px 1px at 62% 52%, rgba(255, 255, 255, 0.55) 50%, transparent),
    radial-gradient(1px 1px at 19% 8%, rgba(251, 255, 18, 0.6) 50%, transparent);
  background-size: 600px 600px;
  animation: twinkle-fast 4.5s ease-in-out infinite, drift 180s linear infinite;
}

.stars__dots--medium {
  background-image:
    radial-gradient(1.5px 1.5px at 31% 14%, rgba(251, 255, 18, 0.7) 50%, transparent),
    radial-gradient(1.5px 1.5px at 67% 41%, rgba(255, 255, 255, 0.7) 50%, transparent),
    radial-gradient(1.5px 1.5px at 12% 56%, rgba(251, 255, 18, 0.65) 50%, transparent),
    radial-gradient(1.5px 1.5px at 88% 26%, rgba(168, 210, 253, 0.75) 50%, transparent),
    radial-gradient(1.5px 1.5px at 44% 82%, rgba(251, 255, 18, 0.6) 50%, transparent),
    radial-gradient(1.5px 1.5px at 76% 68%, rgba(255, 255, 255, 0.65) 50%, transparent);
  background-size: 800px 800px;
  animation: twinkle-mid 6.5s ease-in-out infinite, drift 220s linear infinite;
  animation-delay: -2s, 0s;
}

.sparkle { position: absolute; color: var(--yellow); will-change: opacity, transform; animation: sparkle-twinkle 4s ease-in-out infinite; }
.sparkle svg { display: block; width: 100%; height: 100%; }
.sparkle--1 { top: 12%; left: 18%; width: 28px; height: 28px; animation-delay: 0s; }
.sparkle--2 { top: 22%; left: 72%; width: 22px; height: 22px; animation-delay: -1.2s; }
.sparkle--3 { top: 38%; left: 8%; width: 18px; height: 18px; animation-delay: -2.4s; }
.sparkle--4 { top: 8%; left: 52%; width: 16px; height: 16px; animation-delay: -3s; }
.sparkle--5 { top: 60%; left: 88%; width: 24px; height: 24px; animation-delay: -1.8s; }
.sparkle--6 { top: 78%; left: 14%; width: 20px; height: 20px; animation-delay: -3.6s; }
.sparkle--7 { top: 48%; left: 92%; width: 14px; height: 14px; animation-delay: -0.6s; }
.sparkle--8 { top: 86%; left: 64%; width: 18px; height: 18px; animation-delay: -2.1s; }
.sparkle--9 { top: 30%; left: 38%; width: 12px; height: 12px; animation-delay: -1.5s; }
.sparkle--10 { top: 70%; left: 42%; width: 14px; height: 14px; animation-delay: -2.8s; }

@keyframes twinkle-fast { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
@keyframes twinkle-mid { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes sparkle-twinkle { 0%, 100% { opacity: 0.5; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1); } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-40px, -20px); } }

@media (prefers-reduced-motion: reduce) {
  .stars__dots, .sparkle { animation: none; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: center;
  text-align: center;
  padding: 48px 0;
}

/* ============================================
   LOGO — vertical white lockup (icon over wordmark)
   ============================================ */
.logo { margin-bottom: 64px; display: flex; flex-direction: column; align-items: center; }
.logo__icon { width: 120px; height: auto; display: block; }

.launch-label { font-size: 11px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--yellow); margin-bottom: 24px; }

.headline { font-family: var(--font-display); font-weight: 500; font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; color: var(--white); margin-bottom: 18px; max-width: 380px; }
.subhead { font-size: 15px; line-height: 1.6; font-weight: 400; color: var(--text-secondary); margin-bottom: 40px; max-width: 360px; }

/* ============================================
   FORM
   ============================================ */
.waitlist-form { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.waitlist-form__field {
  width: 100%; height: 54px; padding: 0 18px; background: transparent;
  border: 1px solid var(--field-border); border-radius: 999px; color: var(--white);
  font-family: var(--font-display); font-size: 15px; font-weight: 400; letter-spacing: 0.01em;
  transition: border-color 0.25s var(--ease); -webkit-appearance: none; appearance: none;
}
.waitlist-form__field::placeholder { color: var(--text-faint); font-weight: 400; }
.waitlist-form__field:focus { outline: none; border-color: var(--field-border-focus); }

.waitlist-form__submit {
  width: 100%; height: 54px; margin-top: 4px; background: #FBFF12; color: var(--navy);
  border: none; border-radius: 999px; font-family: var(--font-display); font-size: 13px;
  font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.15s var(--ease), color 0.25s var(--ease);
}
.waitlist-form__submit:hover { background: #DEE100; color: var(--navy); }
.waitlist-form__submit:active { background: #C5C800; color: var(--navy); transform: scale(0.985); }
.waitlist-form__submit:disabled { opacity: 0.6; cursor: default; }
.waitlist-form__submit:disabled:hover { background: #FBFF12; color: var(--navy); }

.waitlist-form__error {
  display: none; margin-top: 4px; font-size: 13px; line-height: 1.4; font-weight: 400;
  color: var(--yellow); letter-spacing: 0.01em;
}
.waitlist-form__error.is-visible { display: block; }

.waitlist-form__footnote { margin-top: 16px; font-size: 12px; line-height: 1.5; font-weight: 400; color: var(--text-faint); letter-spacing: 0.01em; }

/* ============================================
   CONFIRMATION STATE
   ============================================ */
.confirmation { width: 100%; max-width: 340px; display: none; flex-direction: column; align-items: center; gap: 20px; animation: fadeIn 0.5s var(--ease); }
.confirmation.is-visible { display: flex; }
.waitlist-form.is-hidden { display: none; }
.confirmation__check { width: 56px; height: 56px; background: var(--yellow); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--navy); }
.confirmation__check svg { width: 24px; height: 24px; }
.confirmation__title { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.2; color: var(--white); letter-spacing: -0.02em; }
.confirmation__body { font-size: 14px; font-weight: 400; color: var(--text-secondary); line-height: 1.6; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================
   FOOTER + STAFF PASSWORD PANEL
   ============================================ */
.footer { position: relative; z-index: 2; width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 24px; }
.footer__links { display: flex; justify-content: center; gap: 24px; font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.footer__links a, .footer__team { color: inherit; text-decoration: none; background: none; border: none; cursor: pointer; font-family: var(--font-display); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; padding: 0; transition: color 0.2s var(--ease); }
.footer__links a:hover, .footer__team:hover { color: var(--white); }

.team-panel { display: none; width: 100%; max-width: 300px; flex-direction: column; gap: 10px; animation: fadeIn 0.4s var(--ease); }
.team-panel.is-visible { display: flex; }
.team-panel__field { width: 100%; height: 46px; padding: 0 16px; background: transparent; border: 1px solid var(--field-border); border-radius: 999px; color: var(--white); font-family: var(--font-display); font-size: 14px; -webkit-appearance: none; appearance: none; }
.team-panel__field::placeholder { color: var(--text-faint); }
.team-panel__field:focus { outline: none; border-color: var(--field-border-focus); }
.team-panel__submit { width: 100%; height: 46px; background: transparent; color: var(--text-secondary); border: 1px solid var(--field-border); border-radius: 999px; font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.team-panel__submit:hover { color: var(--white); border-color: var(--field-border-focus); }
.team-panel__error { font-size: 12px; color: var(--yellow); text-align: center; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
  .hero { padding: 48px 32px 32px; }
  .logo__icon { width: 140px; }
  .headline { font-size: 42px; max-width: 440px; }
  .subhead { font-size: 16px; max-width: 400px; }
}

@media (min-width: 1024px) {
  .logo__icon { width: 160px; }
  .headline { font-size: 50px; max-width: 520px; }
  .hero__inner { max-width: 560px; }
}
