:root {
  --bg: #071d16;
  --bg-soft: #0b2a20;
  --green: #45d483;
  --green-bright: #7cf0a9;
  --green-muted: #1e7f55;
  --text: #f5fff8;
  --text-soft: rgba(245,255,248,.78);
  --border: rgba(255,255,255,.14);
  --card: rgba(8, 35, 26, .58);
  --shadow: 0 30px 100px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -20%, #174b37 0%, transparent 45%),
    linear-gradient(180deg, #081e17 0%, #061610 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#scene,
.aurora,
.grid,
.page-shell {
  position: fixed;
  inset: 0;
}

#scene {
  width: 100%;
  height: 100%;
  display: block;
}

.aurora {
  pointer-events: none;
  filter: blur(70px);
  opacity: .48;
  mix-blend-mode: screen;
}

.aurora--one {
  width: 40vw;
  height: 40vw;
  left: -10vw;
  top: -12vw;
  border-radius: 50%;
  background: rgba(43, 204, 120, .28);
  animation: floatOne 12s ease-in-out infinite alternate;
}

.aurora--two {
  width: 44vw;
  height: 44vw;
  right: -12vw;
  bottom: -18vw;
  border-radius: 50%;
  background: rgba(38, 143, 255, .14);
  animation: floatTwo 14s ease-in-out infinite alternate;
}

.grid {
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 0%, black 35%, transparent 78%);
}

.page-shell {
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 24px;
}

.maintenance-card {
  position: relative;
  width: min(760px, 100%);
  padding: clamp(28px, 5vw, 58px);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)),
    var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  overflow: hidden;
  animation: cardIn .8s cubic-bezier(.2,.8,.2,1) both;
}

.maintenance-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(124,240,169,.11), transparent 25%, transparent 72%, rgba(124,240,169,.06));
}

.maintenance-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -100px;
  top: -120px;
  border-radius: 50%;
  background: rgba(84, 235, 145, .14);
  filter: blur(18px);
}

.status-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(124,240,169,.22);
  border-radius: 999px;
  background: rgba(69,212,131,.09);
  color: #dffff0;
  font-size: .87rem;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 0 rgba(124,240,169,.35);
  animation: pulse 2s infinite;
}

.brand-mark {
  position: relative;
  z-index: 1;
  width: 74px;
  height: 74px;
  margin: 22px auto 8px;
  color: var(--green-bright);
  filter: drop-shadow(0 12px 28px rgba(56,208,126,.24));
}
.brand-mark svg { width: 100%; height: 100%; display: block; }

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: #a6efc0;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
}

h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: .95;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.message {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 26px auto 0;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 2.1vw, 1.22rem);
  line-height: 1.75;
}
.message p { margin: 0; }
.message p + p { margin-top: 10px; color: var(--text); font-weight: 650; }

.actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.reload {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 15px;
  color: #0a2c1f;
  background: linear-gradient(180deg, #8af3ae 0%, #56d889 100%);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(77, 218, 137, .22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.reload:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 18px 40px rgba(77, 218, 137, .3);
}
.reload:focus-visible { outline: 3px solid rgba(255,255,255,.75); outline-offset: 4px; }
.reload svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(124,240,169,0); }
  100% { box-shadow: 0 0 0 0 rgba(124,240,169,0); }
}
@keyframes floatOne {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(7vw,5vh,0) scale(1.08); }
}
@keyframes floatTwo {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(-5vw,-4vh,0) scale(1.1); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
  .page-shell { padding: 14px; }
  .maintenance-card { border-radius: 24px; padding: 26px 18px 30px; }
  .brand-mark { width: 64px; height: 64px; margin-top: 18px; }
}

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