:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #f7fbff;
  --muted: #b5c7db;
  --accent: #72d8ff;
  --violet: #a59bff;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--ink);
  background-color: #020817;
  background-image: url("assets/hero-background.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 43%, rgba(1, 13, 35, 0.2) 0, rgba(1, 8, 24, 0.48) 54%, rgba(1, 5, 17, 0.74) 100%),
    linear-gradient(180deg, rgba(1, 7, 20, 0.25), rgba(1, 7, 20, 0.58));
}

body::after {
  z-index: 1;
  opacity: 0.16;
  background-image: linear-gradient(90deg, transparent 0 49.8%, rgba(117, 216, 255, 0.18) 50%, transparent 50.2%);
  background-size: min(18vw, 240px) 100%;
  mask-image: linear-gradient(to bottom, transparent, #000 38%, transparent 82%);
}

.page-shell {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: clamp(24px, 5vw, 72px);
}

.language-control {
  position: fixed;
  z-index: 4;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
}

.language-control select {
  min-width: 142px;
  padding: 10px 36px 10px 14px;
  color: #eaf6ff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  border: 1px solid rgba(157, 220, 255, 0.24);
  border-radius: 999px;
  outline: none;
  background-color: rgba(3, 14, 36, 0.72);
  box-shadow: 0 12px 34px rgba(0, 5, 20, 0.28);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  cursor: pointer;
}

.language-control select:hover {
  border-color: rgba(157, 220, 255, 0.46);
}

.language-control select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(114, 216, 255, 0.22), 0 12px 34px rgba(0, 5, 20, 0.28);
}

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

.status-card {
  width: min(100%, 890px);
  min-height: min(620px, calc(100dvh - 96px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(42px, 7vw, 84px) clamp(24px, 7vw, 88px);
  text-align: center;
  border: 1px solid rgba(157, 220, 255, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(8, 25, 55, 0.55), rgba(4, 13, 34, 0.28)),
    rgba(2, 9, 25, 0.34);
  box-shadow:
    0 40px 100px rgba(0, 4, 18, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
}

.brand-lockup {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.brand-symbol {
  display: block;
  width: clamp(104px, 11vw, 138px);
  height: auto;
  margin: -15px 0 -17px;
  object-fit: contain;
  filter: drop-shadow(0 14px 30px rgba(22, 136, 255, 0.22));
}

.eyebrow {
  margin: 20px 0 17px;
  color: #9adfff;
  font-size: clamp(0.68rem, 1.3vw, 0.78rem);
  font-weight: 650;
  letter-spacing: 0.24em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 0 6px 30px rgba(2, 10, 30, 0.7);
}

.divider {
  width: 72px;
  height: 1px;
  margin: clamp(30px, 5vw, 44px) auto;
  background: linear-gradient(90deg, transparent, var(--accent), var(--violet), transparent);
  box-shadow: 0 0 13px rgba(114, 216, 255, 0.6);
}

.status-message {
  max-width: 690px;
  margin: 18px auto 0;
  color: #d7e6f5;
  font-size: clamp(0.96rem, 1.8vw, 1.12rem);
  font-weight: 410;
  letter-spacing: 0.004em;
  line-height: 1.68;
  text-wrap: balance;
}

.tagline {
  max-width: 670px;
  margin: 0 auto;
  color: #f4f9ff;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 520;
  letter-spacing: -0.015em;
  line-height: 1.45;
  text-wrap: balance;
}

.return-message {
  max-width: 660px;
  margin: 22px auto 0;
  color: #bce6fb;
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  font-weight: 520;
  line-height: 1.6;
  text-wrap: balance;
}

.status-message-en {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(0.78rem, 1.25vw, 0.88rem);
  letter-spacing: 0.035em;
  line-height: 1.6;
}

@media (max-width: 560px) {
  body {
    background-position: 56% center;
  }

  .page-shell {
    padding: 72px 18px 18px;
  }

  .status-card {
    min-height: calc(100dvh - 90px);
    padding: 44px 20px 46px;
    border-radius: 22px;
  }

  .brand-symbol {
    width: 96px;
    margin-block: -13px -15px;
  }

  .language-control {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
  }

  .language-control select {
    min-width: 132px;
    max-width: calc(100vw - 24px);
    padding-block: 9px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .status-card {
    background: rgba(2, 10, 27, 0.86);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
