/* ------------------------------------------------------------------
   Utilyse — coming soon page styles

   Everything is driven by the design tokens in :root — change those
   and the whole page re-themes. Dark-first by design (see color-scheme
   meta tag in index.html).
   ------------------------------------------------------------------ */

:root {
  --bg: #07070d;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.1);
  --border-2: rgba(255, 255, 255, 0.22);
  --text: #eceaf5;
  --muted: #a5a3ba;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-ink-1: #6d4aff;
  --accent-ink-2: #5b21b6;
  --success: #6ee7b7;
  --danger: #fda4af;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --ring: 0 0 0 3px rgba(124, 92, 255, 0.35);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 50% -12%, rgba(124, 92, 255, 0.25), transparent 62%),
    radial-gradient(900px 520px at 105% 108%, rgba(34, 211, 238, 0.13), transparent 66%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(124, 92, 255, 0.45);
  color: #fff;
}

a {
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.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;
}

/* off-screen rather than sr-only: stops autofill and screen readers
   from ever touching the honeypot */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---------- decorative background ---------- */

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

.bg__grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 38%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 55% at 50% 38%, #000 20%, transparent 72%);
}

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

.bg__blob--1 {
  width: 34rem;
  height: 34rem;
  top: -12rem;
  left: -10rem;
  background: var(--accent);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.bg__blob--2 {
  width: 26rem;
  height: 26rem;
  right: -8rem;
  bottom: -9rem;
  background: var(--accent-2);
  opacity: 0.35;
  animation: drift-b 26s ease-in-out infinite alternate;
}

.bg__blob--3 {
  width: 20rem;
  height: 20rem;
  top: 42%;
  left: 58%;
  background: #ff6bd6;
  opacity: 0.18;
  animation: drift-c 30s ease-in-out infinite alternate;
}

.bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90% 70% at 50% 45%,
    transparent 40%,
    rgba(7, 7, 13, 0.85) 100%
  );
}

@keyframes drift-a {
  to {
    transform: translate3d(6rem, 3rem, 0) scale(1.12);
  }
}

@keyframes drift-b {
  to {
    transform: translate3d(-5rem, -4rem, 0) scale(1.08);
  }
}

@keyframes drift-c {
  to {
    transform: translate3d(-4rem, 4rem, 0) scale(1.15);
  }
}

/* ---------- layout ---------- */

.page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  text-align: center;
}

/* staggered entrance — delays are declared after the shorthand so the
   shorthand's `0s` is overridden for each block */
.page > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.brand {
  animation-delay: 0.05s;
}

.badge {
  animation-delay: 0.12s;
}

.title {
  animation-delay: 0.18s;
}

.lede {
  animation-delay: 0.26s;
}

.countdown {
  animation-delay: 0.34s;
}

.signup {
  animation-delay: 0.42s;
}

.status {
  animation-delay: 0.5s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  box-shadow: 0 10px 26px -10px rgba(124, 92, 255, 0.95);
}

.brand__name {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

/* ---------- status badge ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.badge__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.55);
  }
  100% {
    box-shadow: 0 0 0 0.65rem rgba(110, 231, 183, 0);
  }
}

/* ---------- headline ---------- */

.title {
  margin: 0;
  font-size: clamp(2.15rem, 7.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.title .grad {
  background-image: linear-gradient(100deg, #a78bfa 0%, #7c5cff 45%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.4vw, 1.075rem);
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- countdown ---------- */

.countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
}

.countdown__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(4.25rem, 1fr));
  gap: clamp(0.4rem, 1.6vw, 0.75rem);
}

.count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 4.25rem;
  padding: clamp(0.7rem, 2vw, 1rem) clamp(0.5rem, 2vw, 1.1rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.count__num {
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.count__label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.count__num.is-tick {
  animation: tick 0.5s ease-out;
}

@keyframes tick {
  from {
    opacity: 0.45;
    transform: translateY(-2px) scale(1.06);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.live {
  margin: 0;
  padding: 0.85rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(110, 231, 183, 0.08);
  border: 1px solid rgba(110, 231, 183, 0.32);
  border-radius: 999px;
}

.live a {
  color: var(--success);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- signup form ---------- */

.signup {
  display: flex;
  gap: 0.6rem;
  width: 100%;
  max-width: 28rem;
}

.signup__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.95rem 1.05rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.signup__input::placeholder {
  color: rgba(165, 163, 186, 0.7);
}

.signup__input:hover {
  border-color: var(--border-2);
}

.signup__input:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.75);
  background: var(--surface-2);
  box-shadow: var(--ring);
}

.signup__btn {
  flex: 0 0 auto;
  padding: 0.95rem 1.4rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  color: #fff;
  cursor: pointer;
  background-color: var(--accent-ink-1);
  background-image: linear-gradient(135deg, var(--accent-ink-1) 0%, var(--accent-ink-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px -14px rgba(124, 92, 255, 0.95);
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.signup__btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 16px 38px -14px rgba(124, 92, 255, 1);
}

.signup__btn:active:not(:disabled) {
  transform: translateY(0);
}

.signup__btn:disabled {
  cursor: progress;
  opacity: 0.72;
}

.fallback {
  display: none;
  margin: 0;
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.fallback a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.status {
  margin: 0;
  min-height: 1.2rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

.status.is-error {
  color: var(--danger);
}

/* ---------- success panel ---------- */

.success {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 30rem;
  padding: 1rem 1.25rem;
  text-align: left;
  background: rgba(110, 231, 183, 0.08);
  border: 1px solid rgba(110, 231, 183, 0.3);
  border-radius: var(--radius-lg);
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.success__icon {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  color: var(--success);
}

.success__text {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--muted);
}

.success__text strong {
  display: block;
  color: var(--text);
}

/* ---------- footer ---------- */

.foot {
  position: relative;
  z-index: 1;
  padding: 1.5rem clamp(1.25rem, 5vw, 2.5rem) 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.55s both;
}

.foot__copy {
  margin: 0;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
}

.foot a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.foot a:hover {
  color: var(--text);
}

/* ---------- no-JS fallback ---------- */

.no-js .signup,
.no-js .status,
.no-js .countdown {
  display: none;
}

.no-js .fallback {
  display: block;
}

/* ---------- responsive ---------- */

@media (max-width: 34rem) {
  .signup {
    flex-direction: column;
  }

  .signup__btn {
    width: 100%;
    padding: 1rem 1.4rem;
  }

  .countdown__grid {
    gap: 0.4rem;
  }

  .count {
    min-width: 0;
    padding: 0.7rem 0.3rem;
  }

  .countdown__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .count__label {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .bg__blob,
  .badge__dot {
    animation: none !important;
  }
}
