/* ==========================================================================
   Under Maintenance — reusable holding page
   Mobile-first. No external fonts/images/requests, so it renders identically
   on any host with zero dependencies.
   ========================================================================== */

:root {
  --bg: #001f39;
  --fg: #f5f5f5;
  --fg-dim: rgba(217, 143, 54, 0.55);
  --fg-faint: rgba(245, 245, 245, 0.28);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden; /* this is a single full-screen view, never a scrolling page */
  overscroll-behavior: none; /* stop mobile pull-to-refresh / rubber-banding */
  background: var(--bg);
  color: var(--fg);
}

body {
  height: 100dvh; /* accounts for mobile browser chrome; falls back to 100vh below */
  height: 100vh;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* ---- background layers ---------------------------------------------- */

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---- content ----------------------------------------------------------- */

.content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.1rem;
  padding: 1.75rem;
  padding: max(1.75rem, env(safe-area-inset-top)) max(1.75rem, env(safe-area-inset-right))
    max(1.75rem, env(safe-area-inset-bottom)) max(1.75rem, env(safe-area-inset-left));
  max-width: 640px;
  margin: 0 auto;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg);
  animation: pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(245, 245, 245, 0.35);
  }
  50% {
    opacity: 0.4;
    box-shadow: 0 0 0 6px rgba(245, 245, 245, 0);
  }
}

.headline {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2.25rem, 7vw + 1rem, 4.5rem);
}

.headline .dud {
  color: var(--fg-faint);
}

.message {
  margin: 0;
  max-width: 46ch;
  color: var(--fg-dim);
  font-size: clamp(0.95rem, 1.6vw + 0.7rem, 1.15rem);
  line-height: 1.55;
}

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

.countdown {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 2.6em;
}

.countdown-value {
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 600;
}

.countdown-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.countdown-sep {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--fg-faint);
  transform: translateY(-0.7em); /* optically align with the digits, not the labels */
}

.eta-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-faint);
  letter-spacing: 0.02em;
}

/* Maintenance-provider credit mark. Same restraint as .eta-label: small,
   low-contrast, no hover/motion — a quiet "who's behind this", not a badge.
   filter normalizes whatever color the source SVG uses (this one is a dark
   gray meant for light backgrounds) into a flat light silhouette that reads
   correctly on our dark background, so swapping the file for a different
   logo later doesn't require re-tuning this rule. */
.credit-logo {
  display: block;
  height: 32px;
  width: auto;
  margin-top: 0.15rem;
  filter: brightness(0) invert(1);
  opacity: 0.3;
}

/* ---- larger screens ---------------------------------------------------- */

@media (min-width: 640px) {
  .content {
    gap: 1.5rem;
  }
  .countdown {
    gap: 1.5rem;
  }
}

/* ---- respect reduced-motion preference ---------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .status-dot {
    animation: none;
  }
}
