/*
 * Friday Ledger — launch / wedding page
 * Friday Triad LOCKED 10: cyan · magenta · purple · ice
 */

:root {
  --cyan: #00e5ff;
  --magenta: #ff2bd6;
  --purple: #2e0848;
  --ice: #f2f6ff;
  --deeper: #140224;
  --void: #07010f;
  --text: #e8eef8;
  --muted: rgba(242, 246, 255, 0.55);
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(46, 8, 72, 0.55), transparent 60%),
    radial-gradient(900px 500px at 15% 90%, rgba(0, 229, 255, 0.08), transparent 50%),
    radial-gradient(800px 480px at 90% 80%, rgba(255, 43, 214, 0.08), transparent 50%),
    var(--void);
  overflow-x: hidden;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  animation: breathe 8s ease-in-out infinite;
}
.glow-cyan {
  width: 420px;
  height: 420px;
  top: -80px;
  left: 8%;
  background: rgba(0, 229, 255, 0.35);
}
.glow-magenta {
  width: 380px;
  height: 380px;
  bottom: -60px;
  right: 6%;
  background: rgba(255, 43, 214, 0.3);
  animation-delay: -2.5s;
}
.glow-purple {
  width: 520px;
  height: 520px;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(46, 8, 72, 0.55);
  animation-name: breathe-center;
  animation-delay: -4s;
}

@keyframes breathe {
  0%, 100% { opacity: 0.32; transform: scale(1); }
  50% { opacity: 0.52; transform: scale(1.06); }
}
@keyframes breathe-center {
  0%, 100% { opacity: 0.38; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.62; transform: translate(-50%, -50%) scale(1.08); }
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 2.5rem;
  text-align: center;
  gap: 0.75rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(0, 229, 255, 0.9);
  text-transform: uppercase;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow:
    0 0 10px var(--cyan),
    0 0 22px rgba(255, 43, 214, 0.45);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.title {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 0.35rem;
}

.word {
  display: inline-block;
}
.word.cyan {
  background: linear-gradient(120deg, var(--cyan) 0%, #7af0ff 45%, var(--ice) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(0, 229, 255, 0.35));
}
.word.magenta {
  background: linear-gradient(120deg, var(--magenta) 0%, #ff8ae8 50%, var(--ice) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(255, 43, 214, 0.35));
  margin-left: 0.2em;
}

.tagline {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.35rem 0 1.5rem;
}

.card {
  position: relative;
  width: min(480px, 100%);
  padding: 1.75rem 1.5rem 1.4rem;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(46, 8, 72, 0.55), rgba(7, 1, 15, 0.85));
  border: 1px solid rgba(0, 229, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 43, 214, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(242, 246, 255, 0.06);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.card-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--magenta) 50%, var(--purple) 100%);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
}

.status {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, var(--ice), var(--cyan), var(--magenta));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shift 6s ease infinite;
  margin-bottom: 0.75rem;
}

@keyframes shift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.copy {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.copy.highlight {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(0, 229, 255, 0.95);
  letter-spacing: 0.04em;
}
.copy.big {
  font-size: 1.35rem;
  font-weight: 800;
  color: rgba(255, 43, 214, 0.95);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 0 24px rgba(255, 43, 214, 0.35);
}
.copy strong {
  color: var(--ice);
  font-weight: 700;
}
.copy em {
  color: rgba(0, 229, 255, 0.9);
  font-style: normal;
  font-weight: 600;
}

/* ── Waitlist soft gate ───────────────────────────────────────────────── */
.waitlist {
  margin: 1.35rem 0 0.5rem;
  padding: 1.1rem 1rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.04);
  text-align: left;
}
.waitlist-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 43, 214, 0.9);
  margin-bottom: 0.35rem;
}
.waitlist-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ice);
  margin-bottom: 0.25rem;
}
.waitlist-sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
  line-height: 1.45;
}
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.waitlist-form input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(7, 1, 15, 0.65);
  color: var(--ice);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.waitlist-form input::placeholder {
  color: rgba(242, 246, 255, 0.35);
}
.waitlist-form input:focus {
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}
.waitlist-btn {
  margin-top: 0.25rem;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: #07010f;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), #8a2be2, var(--cyan));
  background-size: 300% 300%;
  animation: shift 5s ease infinite;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.25);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.waitlist-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.waitlist-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.waitlist-msg {
  min-height: 1.2em;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(0, 229, 255, 0.9);
}
.waitlist-msg.error {
  color: #ff7aa8;
}
.waitlist-msg.ok {
  color: #7dffa8;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.swatches {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin: 1.1rem 0 0.9rem;
}

.swatches { position: relative; }
.swatch {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(242, 246, 255, 0.2);
  box-shadow: 0 0 14px currentColor;
  will-change: transform, box-shadow;
}
/* The color balls throw a little party of their own — bob, weave, and cross
   places on staggered timers so they never sit still. */
@keyframes swatch-dance {
  0%   { transform: translate(0, 0) scale(1); }
  20%  { transform: translate(14px, -16px) scale(1.18); }
  40%  { transform: translate(-6px, 6px) scale(0.92); }
  60%  { transform: translate(-16px, -12px) scale(1.14); }
  80%  { transform: translate(8px, 5px) scale(0.96); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes swatch-glow {
  0%, 100% { box-shadow: 0 0 12px currentColor; }
  50%      { box-shadow: 0 0 26px currentColor, 0 0 44px currentColor; }
}
@media (prefers-reduced-motion: no-preference) {
  .swatch {
    animation: swatch-dance 3.2s ease-in-out infinite,
               swatch-glow 1.6s ease-in-out infinite;
  }
  .swatch.cyan    { animation-delay: 0s,    0s;    }
  .swatch.magenta { animation-delay: 0.8s,  0.4s;  }
  .swatch.purple  { animation-delay: 1.6s,  0.8s;  }
  .swatch.ice     { animation-delay: 2.4s,  1.2s;  }
  .swatch:hover   { animation-play-state: paused; }
}
.swatch.cyan { background: var(--cyan); color: rgba(0, 229, 255, 0.55); }
.swatch.magenta { background: var(--magenta); color: rgba(255, 43, 214, 0.55); }
.swatch.purple { background: var(--purple); color: rgba(46, 8, 72, 0.9); border-color: rgba(255, 43, 214, 0.25); }
.swatch.ice { background: var(--ice); color: rgba(242, 246, 255, 0.4); }

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: rgba(0, 229, 255, 0.55);
  text-transform: uppercase;
}

.foot {
  margin-top: 2.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 246, 255, 0.35);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.foot .sep { color: rgba(255, 43, 214, 0.45); }

@media (prefers-reduced-motion: reduce) {
  .glow, .dot, .status { animation: none !important; }
  #scene { display: none; }
}
