:root {
  color-scheme: dark;
  --gold: #f6b80a;
  --gold-light: #ffd758;
  --blue: #087ee8;
  --blue-deep: #0353a6;
  --ink: #07121b;
  --stone: #17212a;
  --text: #fffaf0;
  --muted: #d8e0e6;
  --line: rgba(255, 215, 88, 0.36);
  --panel: rgba(7, 18, 27, 0.83);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: transparent;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.scene,
.scene-shade {
  position: fixed;
  inset: 0;
}

.scene {
  z-index: 0;
  display: block;
  background: #173850;
}

.scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% center;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.015);
}

.scene-shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 12, 19, 0.16) 0%, rgba(4, 12, 19, 0.34) 35%, rgba(4, 12, 19, 0.86) 100%),
    radial-gradient(circle at 50% 34%, rgba(8, 126, 232, 0.09), transparent 48%);
}

.page-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: calc(100svh - 70px);
  display: grid;
  place-items: center;
  padding: max(22px, env(safe-area-inset-top)) 16px 30px;
}

.hero {
  width: min(100%, 520px);
  padding: 24px 19px 22px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(15, 31, 43, 0.91), rgba(5, 15, 23, 0.93)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand-mark {
  display: block;
  width: 118px;
  height: 118px;
  margin: -2px auto 15px;
  object-fit: cover;
  border: 3px solid var(--gold);
  border-radius: 22px;
  box-shadow:
    0 0 0 5px rgba(3, 83, 166, 0.55),
    0 14px 32px rgba(0, 0, 0, 0.44);
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 13vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-shadow:
    0 3px 0 var(--blue-deep),
    0 8px 22px rgba(0, 0, 0, 0.5);
}

.intro {
  max-width: 38ch;
  margin: 17px auto 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.primary-action,
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.primary-action {
  width: 100%;
  gap: 11px;
  padding: 14px 20px;
  color: #fff;
  background: #e62117;
  border: 1px solid #ff6c64;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(180, 19, 12, 0.3);
  font-size: 1.05rem;
  font-weight: 800;
}

.primary-action svg {
  width: 28px;
  fill: currentColor;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 12px;
}

.social-links a {
  flex-direction: column;
  gap: 5px;
  padding: 11px 5px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 13px;
  font-size: 0.75rem;
  font-weight: 700;
}

.social-links svg {
  width: 23px;
  height: 23px;
  fill: var(--gold-light);
}

.primary-action:hover,
.social-links a:hover {
  transform: translateY(-2px);
}

.primary-action:hover {
  background: #f02a20;
  box-shadow: 0 13px 32px rgba(180, 19, 12, 0.42);
}

.social-links a:hover {
  background: rgba(8, 126, 232, 0.14);
  border-color: rgba(255, 215, 88, 0.54);
}

.primary-action:focus-visible,
.social-links a:focus-visible,
.back-link:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
}

.coming-soon {
  margin: 17px 0 0;
  color: rgba(216, 224, 230, 0.78);
  font-size: 0.83rem;
}

footer {
  position: relative;
  z-index: 2;
  min-height: 70px;
  display: grid;
  place-items: center;
  padding: 14px 20px max(16px, env(safe-area-inset-bottom));
  color: rgba(216, 224, 230, 0.7);
  background: rgba(3, 9, 14, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.72rem;
}

footer p {
  max-width: 720px;
  margin: 0;
}

.error-page .hero {
  padding-top: 30px;
}

.error-page .brand-mark {
  width: 96px;
  height: 96px;
}

.error-page h1 {
  font-size: clamp(2.4rem, 11vw, 4rem);
}

.back-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  padding: 12px 20px;
  color: var(--ink);
  background: var(--gold-light);
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}

@media (min-width: 700px) {
  .scene img {
    object-position: center;
  }

  .scene-shade {
    background:
      linear-gradient(90deg, rgba(4, 12, 19, 0.42), rgba(4, 12, 19, 0.08) 46%, rgba(4, 12, 19, 0.5)),
      linear-gradient(180deg, rgba(4, 12, 19, 0.05), rgba(4, 12, 19, 0.72));
  }

  .page-shell {
    padding: 48px 24px;
  }

  .hero {
    padding: 30px 34px 27px;
    border-radius: 28px;
  }

  .brand-mark {
    width: 132px;
    height: 132px;
  }

  .intro {
    font-size: 1.06rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .primary-action,
  .social-links a {
    transition: none;
  }
}
