/* ═══════════════════════════════════════════════════════════════
   TRADEPRIME — WAITING LIST
   Standalone page. Design tokens and hero treatment lifted from the
   main site (css/style.css + css/hero-v3.css) so it stays on-brand,
   but this folder ships on its own with no build step.
═══════════════════════════════════════════════════════════════ */

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

:root {
  --bg:      #000;
  --blue:    #2563eb;
  --blue-l:  #60a5fa;
  --blue-d:  #1a3fd4;
  --text:    #f5f5f7;
  --font:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue-d); border-radius: 2px; }

/* ─── Hero shell ──────────────────────────────────────────── */

.wl-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  background: #000;
}

/* WebGL canvas mounts here — 'lighten' matches the site hero */
.wl-pillar {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  mix-blend-mode: lighten;
}

/* If WebGL is unavailable the script tags the container and this
   static gradient stands in for the shader. */
.wl-pillar.no-webgl {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(37,99,235,0.55), transparent 60%),
    linear-gradient(115deg, #0b1a3a 0%, #1d4ed8 55%, #0b1a3a 100%);
  opacity: 0.5;
}

/* Dark overlay for readability */
.wl-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(8,13,20,0.2) 0%,
    rgba(8,13,20,0.1) 50%,
    rgba(8,13,20,0.6) 100%
  );
  pointer-events: none;
}

.wl-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Copy block ──────────────────────────────────────────── */

.wl-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
}

/* Scrim so the copy stays readable over the WebGL blinds */
.wl-copy::before {
  content: '';
  position: absolute;
  inset: -200px -24vw;
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.86) 0%,
    rgba(0,0,0,0.6) 44%,
    rgba(0,0,0,0.24) 68%,
    transparent 82%
  );
  pointer-events: none;
  z-index: -1;
}

.wl-logo {
  display: block;
  width: 104px;
  height: auto;
  margin-bottom: 48px;
}

.wl-headline {
  font-size: clamp(2.6rem, 5.4vw, 4.1rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
}
.wl-headline em {
  font-style: normal;
  background: linear-gradient(135deg, #93c5fd, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Form ────────────────────────────────────────────────── */

.wl-form {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 44px;
  width: 100%;
  max-width: 520px;
}
/* display:flex would otherwise beat the UA rule for [hidden] */
.wl-form[hidden] { display: none; }

.wl-field { position: relative; flex: 1; }

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

.wl-input {
  width: 100%;
  height: 52px;
  padding: 0 22px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: #fff;
  background: rgba(15,20,30,0.62);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  outline: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.wl-input::placeholder { color: rgba(255,255,255,0.32); }
.wl-input:focus {
  border-color: rgba(96,165,250,0.7);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.18);
  background: rgba(15,20,30,0.85);
}
.wl-input.is-invalid { border-color: rgba(234,57,67,0.8); }

/* honeypot */
.wl-hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.wl-submit {
  flex: none;
  height: 52px;
  padding: 0 32px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 24px rgba(37,99,235,0.6), 0 0 48px rgba(37,99,235,0.25);
  transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.wl-submit:hover {
  background: var(--blue-l);
  box-shadow: 0 0 32px rgba(96,165,250,0.7);
}
.wl-submit:disabled { opacity: 0.55; cursor: default; }
.wl-submit:disabled:hover { background: var(--blue); box-shadow: 0 0 24px rgba(37,99,235,0.4); }

.wl-error {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #ea3943;
}

/* ─── Success state (replaces the form) ───────────────────── */

.wl-success {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  padding: 18px 26px;
  max-width: 520px;
  text-align: left;
  border: 1px solid rgba(37,99,235,0.35);
  border-radius: 16px;
  background: rgba(15,20,30,0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(37,99,235,0.18);
}
.wl-success[hidden] { display: none; }
.wl-success-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
}
.wl-success-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
}
.wl-success-text strong {
  display: block;
  font-weight: 600;
  color: #fff;
}

/* ─── Footer ──────────────────────────────────────────────── */

.wl-foot {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.3);
}

/* ─── Responsive ──────────────────────────────────────────── */

@media (max-width: 560px) {
  .wl-inner { padding: 40px 20px; }
  .wl-logo { width: 84px; margin-bottom: 38px; }
  .wl-foot { bottom: 24px; }
  .wl-form {
    flex-direction: column;
    gap: 10px;
    margin-top: 36px;
  }
  .wl-submit { width: 100%; padding: 0 24px; }
  .wl-copy::before { inset: -160px -30vw; }
  .wl-success { margin-top: 32px; padding: 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
