:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080c12;
}

* { box-sizing: border-box; }

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

body {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.95);
  background-color: #080c12;
  background-image:
    radial-gradient(1000px 760px at 13% 12%, rgba(39, 105, 196, 0.34) 0%, rgba(39, 105, 196, 0.17) 24%, rgba(39, 105, 196, 0.06) 43%, transparent 64%),
    radial-gradient(1200px 920px at 88% 88%, rgba(33, 91, 176, 0.25) 0%, rgba(33, 91, 176, 0.11) 27%, rgba(33, 91, 176, 0.035) 44%, transparent 63%),
    radial-gradient(900px 700px at 54% 36%, rgba(62, 116, 174, 0.09) 0%, rgba(62, 116, 174, 0.03) 35%, transparent 56%),
    linear-gradient(135deg, #101925 0%, #0a1018 45%, #04070c 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: -24%;
  pointer-events: none;
  background:
    radial-gradient(circle at 27% 24%, rgba(89, 151, 230, 0.10), transparent 31%),
    radial-gradient(circle at 75% 72%, rgba(68, 128, 209, 0.075), transparent 36%);
  filter: blur(64px);
  transform: translateZ(0);
  animation: drift 20s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.105;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  text-align: center;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: enter 900ms cubic-bezier(.2, .8, .2, 1) both;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: block;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 8px 22px rgba(24, 144, 207, 0.25));
}

.brand-name {
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.25em;
  white-space: nowrap;
  padding-left: 0.25em;
}

.message {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.24);
}

.status-line {
  width: min(520px, 72vw);
  display: grid;
  grid-template-columns: minmax(36px, 1fr) auto minmax(36px, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.status-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 18%, rgba(255, 255, 255, 0.28) 100%);
}

.status-rule--reverse {
  transform: scaleX(-1);
}

.subtext {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 15px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
  from { transform: translate3d(-1.25%, -0.75%, 0) scale(1); }
  to { transform: translate3d(1.25%, 0.75%, 0) scale(1.035); }
}

@media (max-width: 640px) {
  .page {
    padding: 0 18px;
  }

  .content {
    position: relative;
    width: 100%;
    min-height: 100svh;
  }

  /* On phones, use a compact horizontal brand lockup near the top
     while keeping the main status message visually centered. */
  .brand {
    position: absolute;
    top: clamp(28px, 4svh, 40px);
    left: 50%;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin: 0;
    transform: translateX(-50%);
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  .brand-name {
    font-size: 24px;
    letter-spacing: 0.20em;
    padding-left: 0.20em;
  }

  .message {
    position: absolute;
    top: 51%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 50px);
    line-height: 1.07;
    letter-spacing: 0.045em;
  }

  .status-line {
    width: min(380px, 88vw);
    grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
    gap: 12px;
    margin-top: 32px;
  }

  .subtext {
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .page {
    padding-inline: 16px;
  }

  .brand {
    top: clamp(24px, 3.5svh, 34px);
    gap: 18px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    margin-bottom: 0;
  }

  .brand-name {
    font-size: 24px;
    letter-spacing: 0.18em;
    padding-left: 0.18em;
  }

  .message {
    top: 50.5%;
  }

  h1 {
    font-size: clamp(32px, 10.5vw, 44px);
    line-height: 1.08;
    letter-spacing: 0.035em;
  }

  .status-line {
    width: 90vw;
    gap: 10px;
    margin-top: 30px;
  }

  .status-rule {
    opacity: 0.78;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content,
  body::before { animation: none; }
}
