/* CaseWhale waitlist — shared base (2026-11-06)
   Tokens mirror web/src/styles/_tokens.scss. Brand blue = actions only.
   Mint = live / money / verified. Pack and prize art carries the colour. */

:root {
  --bg: #05080e;
  --surface: #0a0d14;
  --elevated: #13171e;
  --overlay: #1c2028;
  --border: #1c2028;
  --border-2: #282e38;
  --text: #f8f8f8;
  --text-2: #8a90a0;
  --text-3: #5c6474;
  --brand: #1d3ee5;
  --brand-hover: #2950ff;
  --brand-glow: rgba(41, 80, 255, 0.35);
  --mint: #7ef786;
  --mint-dim: rgba(126, 247, 134, 0.12);
  --danger: #ff8a7a;
  --r-btn: 8px;
  --r-card: 14px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Sometype Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --w: 1180px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
.wrap { width: min(var(--w), 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum' 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--r-btn); border: 1px solid transparent;
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em; cursor: pointer; white-space: nowrap;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn:focus-visible, input:focus-visible { outline: 2px solid var(--brand-hover); outline-offset: 2px; }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 8px 28px -8px var(--brand-glow); }
.btn-brand:hover { background: var(--brand-hover); }
.btn-ghost { background: var(--elevated); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { background: var(--overlay); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- header ---------- */
.hdr { position: relative; z-index: 20; }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.hdr .logo img { height: 24px; width: auto; }
.hdr .right { display: flex; align-items: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border-2); background: rgba(19, 23, 30, .6);
  font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.pill b { color: var(--text); font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px var(--mint-dim); animation: pulse 2.2s infinite; flex: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(126, 247, 134, 0); } }

/* ---------- waitlist form ---------- */
.wl-form { width: 100%; }
.wl-row { display: flex; gap: 8px; padding: 6px; border-radius: 12px; background: rgba(10, 13, 20, .8); border: 1px solid var(--border-2); transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.wl-row:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29, 62, 229, .18); }
.wl-row input[type=email], .wl-row input[type=text] {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 0; background: transparent; font-size: 16px; outline: none;
}
.wl-row input::placeholder { color: var(--text-3); }
.wl-alt { display: flex; gap: 8px; margin-top: 10px; }
.wl-alt .btn { flex: 1; height: 44px; font-size: 14px; font-weight: 600; }
.wl-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: var(--text-2); line-height: 1.45; cursor: pointer; }
.wl-consent input { appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border-radius: 5px; border: 1px solid var(--border-2); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.wl-consent input:checked { background: var(--brand); border-color: var(--brand); }
.wl-consent input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.wl-consent a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.wl-err { min-height: 20px; margin-top: 8px; font-size: 13px; color: var(--danger); }

/* success state */
.wl-done { display: none; padding: 22px; border-radius: var(--r-card); background: linear-gradient(180deg, rgba(126, 247, 134, .07), rgba(10, 13, 20, .9)); border: 1px solid rgba(126, 247, 134, .25); text-align: left; animation: rise 500ms var(--ease-out); }
.wl-form.is-done .wl-fields { display: none; }
.wl-form.is-done .wl-done { display: block; }
.wl-done .ok { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.wl-done .ok svg { width: 22px; height: 22px; color: var(--mint); }
.wl-done .pos { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 4px; }
.wl-done .pos .n { font-family: var(--mono); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.wl-done .pos .l { color: var(--text-2); font-size: 14px; }
.wl-done p { margin: 0 0 14px; color: var(--text-2); font-size: 14px; }
.ref { display: flex; gap: 8px; }
.ref code { flex: 1; min-width: 0; display: flex; align-items: center; height: 44px; padding: 0 12px; border-radius: var(--r-btn); background: var(--surface); border: 1px solid var(--border-2); font-family: var(--mono); font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text); }
.ref .btn { height: 44px; }

/* ---------- social proof ---------- */
.proof { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.stack { display: flex; }
.stack img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bg); background: var(--elevated); margin-left: -10px; }
.stack img:first-child { margin-left: 0; }
.proof b { color: var(--text); font-family: var(--mono); font-weight: 600; }

/* ---------- countdown ---------- */
.cd { display: flex; gap: 10px; }
.cd-u { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cd-n { font-family: var(--mono); font-weight: 600; font-feature-settings: 'tnum' 1; letter-spacing: -0.03em; }
.cd-l { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--border); padding: 28px 0 36px; color: var(--text-3); font-size: 13px; }
.ftr .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.ftr .badge18 { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--text-3); font-weight: 700; font-size: 11px; color: var(--text-2); margin-right: 10px; flex: none; }
.ftr .legal { display: flex; align-items: center; max-width: 640px; }
.ftr nav { display: flex; gap: 20px; }
.ftr nav a:hover { color: var(--text); }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.in { opacity: 0; animation: rise 800ms var(--ease-out) forwards; }
.d1 { animation-delay: 80ms; } .d2 { animation-delay: 160ms; } .d3 { animation-delay: 240ms; } .d4 { animation-delay: 320ms; } .d5 { animation-delay: 400ms; }

@media (max-width: 640px) {
  .hdr .pill.hide-sm { display: none; }
  .wl-alt { flex-direction: column; }
  .wl-row { flex-direction: column; }
  .wl-row .btn { width: 100%; }
  .ftr nav { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .in { opacity: 1; }
}
