/* Xul Valley — coming soon
   Liquid Glass aesthetic: dusk-valley gradient backdrop, frosted glass card.
   Pure CSS, no dependencies. */

:root {
  --bg-0: #070b16;
  --bg-1: #0b1020;
  --ink: #f4f7ff;
  --ink-dim: rgba(244, 247, 255, 0.66);
  --ink-faint: rgba(244, 247, 255, 0.42);

  /* "flow" accent — cyan → sky → violet */
  --flow-a: #5eead4;
  --flow-b: #38bdf8;
  --flow-c: #a78bfa;

  --glass-fill: rgba(255, 255, 255, 0.06);
  --glass-edge: rgba(255, 255, 255, 0.18);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 50% -10%, #12203f 0%, var(--bg-1) 45%, var(--bg-0) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden; /* single-viewport landing */
}

/* ---- Ambient backdrop glows ------------------------------------------- */

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

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.glow--a {
  width: 46vmax; height: 46vmax;
  left: -8vmax; top: -6vmax;
  background: radial-gradient(circle, var(--flow-b), transparent 62%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.glow--b {
  width: 40vmax; height: 40vmax;
  right: -6vmax; top: 8vmax;
  background: radial-gradient(circle, var(--flow-c), transparent 62%);
  animation: drift-b 26s ease-in-out infinite alternate;
}

.glow--c {
  width: 52vmax; height: 52vmax;
  left: 20vmax; bottom: -22vmax;
  background: radial-gradient(circle, var(--flow-a), transparent 60%);
  opacity: 0.4;
  animation: drift-c 30s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-5vmax, 6vmax, 0) scale(1.12); }
}
@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vmax, -5vmax, 0) scale(1.06); }
}

/* ---- Layout ----------------------------------------------------------- */

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 3rem);
}

/* ---- Glass card ------------------------------------------------------- */

.glass {
  position: relative;
  width: min(560px, 100%);
  min-width: 0; /* let the flex item shrink below its content size */
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  border-radius: 28px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,     /* top edge highlight */
    0 -1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 80px rgba(0, 0, 0, 0.45),             /* cast shadow */
    0 8px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Specular sweep across the top of the glass */
.specular {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% -20%, rgba(255, 255, 255, 0.22), transparent 60%);
  mix-blend-mode: screen;
}

/* ---- Content ---------------------------------------------------------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.6rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  background: rgba(255, 255, 255, 0.04);
}

.status__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--flow-a);
  box-shadow: 0 0 10px var(--flow-a);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

.wordmark {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.tagline {
  margin: 0.5rem 0 0;
  font-size: clamp(1.05rem, 3.4vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(100deg, var(--flow-a), var(--flow-b) 45%, var(--flow-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 1.4rem auto 0;
  max-width: 34ch;
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
  line-height: 1.6;
  color: var(--ink-dim);
}

.platforms {
  margin: 1.9rem 0 0;
}

.badge {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  background: rgba(255, 255, 255, 0.05);
}

/* ---- Newsletter signup (opens Tally popup) ---------------------------- */

.signup {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.signup__label {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-dim);
}

/* Liquid Glass button — translucent, blurred, softly lit (Apple-style) */
.notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  cursor: pointer;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,   /* top edge highlight */
    0 -1px 0 rgba(255, 255, 255, 0.04) inset,
    0 6px 18px rgba(0, 0, 0, 0.28);           /* soft cast shadow */
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              background 0.15s ease, border-color 0.15s ease;
}

.notify-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 -1px 0 rgba(255, 255, 255, 0.05) inset,
    0 10px 26px rgba(0, 0, 0, 0.34);
}

.notify-btn:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.1);
}

.notify-btn:focus-visible {
  outline: 2px solid var(--flow-b);
  outline-offset: 3px;
}

.notify-btn__arrow {
  transition: transform 0.15s ease;
}

.notify-btn:hover .notify-btn__arrow {
  transform: translateX(3px);
}

/* ---- Motion & responsive ---------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .glow, .status__dot { animation: none; }
  .notify-btn, .notify-btn__arrow { transition: none; }
}

@media (max-width: 380px) {
  .glass { border-radius: 22px; }
}
