:root {
  color-scheme: dark;
  --bg: #020208;
  --panel: rgba(10, 12, 24, 0.72);
  --panel-strong: rgba(13, 14, 28, 0.9);
  --line: rgba(226, 232, 240, 0.14);
  --line-blue: rgba(56, 189, 248, 0.45);
  --text: #f8fafc;
  --muted: #b9c3d4;
  --dim: #7c879b;
  --blue: #38bdf8;
  --blue-hot: #7dd3fc;
  --purple: #8b5cf6;
  --violet: #c026d3;
  --amber: #f0b429;
  --max: 1200px;
  --header-h: 54px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 22%, rgba(56, 189, 248, 0.16), transparent 28rem),
    radial-gradient(circle at 18% 78%, rgba(124, 58, 237, 0.22), transparent 34rem),
    radial-gradient(circle at 88% 74%, rgba(192, 38, 211, 0.16), transparent 30rem),
    var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 2, 8, 0.08), rgba(2, 2, 8, 0.82) 78%, #020208);
  mask-image: linear-gradient(to bottom, black, black 72%, transparent);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  width: 100%;
  padding: 0 max(22px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(22px);
  background: rgba(2, 2, 8, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-weight: 700;
  font-size: 0.96rem;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.68);
  background: radial-gradient(circle at 50% 38%, rgba(56, 189, 248, 0.2), rgba(2, 6, 23, 0.6));
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.18);
}

.brand-mark svg {
  width: 70%;
  height: 70%;
  fill: none;
  stroke: var(--blue-hot);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.88rem;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  min-height: calc(100svh - var(--header-h));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: clip;
  padding: 10vh max(22px, calc((100vw - var(--max)) / 2)) 8vh;
  background-image: url("./assets/hero-masworld-circuit.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(2, 2, 8, 0.82), rgba(2, 2, 8, 0.38) 42%, rgba(2, 2, 8, 0.1) 70%),
    linear-gradient(180deg, rgba(2, 2, 8, 0.18), rgba(2, 2, 8, 0.08) 48%, rgba(2, 2, 8, 0.72));
}

.hero::after {
  inset: auto 0 0;
  height: 26vh;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-copy {
  width: min(690px, 100%);
  margin: 0;
  text-align: left;
  transform: none;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--blue-hot);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(4.8rem, 12vw, 10.5rem);
  line-height: 0.98;
  font-weight: 900;
  text-shadow:
    0 2px 28px rgba(2, 2, 8, 0.88),
    0 0 42px rgba(56, 189, 248, 0.16);
}

.hero-lede {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 3.5vw, 3.5rem);
  line-height: 1.18;
  font-weight: 850;
}

.hero-text,
.section-lede,
.section-copy p,
.direction-list p,
.world-grid p,
.site-footer p {
  color: var(--muted);
  line-height: 1.78;
}

.hero-text {
  max-width: 640px;
  margin: 0;
  font-size: 1.03rem;
  text-shadow: 0 1px 18px rgba(2, 2, 8, 0.9);
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 750;
}

.text-link.primary {
  border-color: rgba(125, 211, 252, 0.7);
  background: rgba(14, 165, 233, 0.18);
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.18);
}

.text-link:hover {
  border-color: rgba(125, 211, 252, 0.95);
  background: rgba(14, 165, 233, 0.22);
}

.section {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 122px 0;
}

.identity-section,
.status-section {
  text-align: center;
}

.section h2 {
  max-width: 980px;
  margin: 0 auto 22px;
  font-size: clamp(2.6rem, 7vw, 6.8rem);
  line-height: 1;
  font-weight: 900;
}

.identity-title {
  max-width: 1180px;
  font-size: clamp(2.6rem, 6.2vw, 6.15rem);
}

.identity-title-tail {
  white-space: nowrap;
}

.section-lede {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.identity-display {
  position: relative;
  min-height: 520px;
  margin-top: 64px;
  display: grid;
  place-items: center;
  overflow: clip;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.14);
  background: rgba(6, 8, 18, 0.72);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.identity-display::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 2, 8, 0.58), rgba(2, 2, 8, 0.08) 42%, rgba(2, 2, 8, 0.18)),
    linear-gradient(180deg, rgba(2, 2, 8, 0.12), transparent 52%, rgba(2, 2, 8, 0.38));
  pointer-events: none;
}

.mark-spec {
  position: absolute;
  left: 28px;
  top: 26px;
  z-index: 3;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mark-spec span,
.status-strip span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  background: rgba(56, 189, 248, 0.08);
  color: #dff7ff;
  font-size: 0.78rem;
  font-weight: 760;
}

.poster-image {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.world-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 58px;
  align-items: end;
}

.section-copy h2 {
  margin-left: 0;
  margin-right: 0;
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.world-grid article,
.direction-list article {
  border-top: 1px solid rgba(226, 232, 240, 0.18);
  padding-top: 18px;
}

.world-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--blue-hot);
  font-weight: 800;
  font-size: 0.82rem;
}

.world-grid h3,
.direction-list h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.direction-section h2 {
  max-width: 980px;
  margin-left: 0;
}

.direction-list {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.status-section {
  padding-bottom: 86px;
}

.status-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.status-strip span {
  border-color: rgba(240, 180, 41, 0.28);
  background: rgba(240, 180, 41, 0.08);
  color: #ffe5ad;
}

.site-footer {
  width: min(var(--max), calc(100% - 44px));
  min-height: 124px;
  margin: 0 auto;
  padding: 28px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid rgba(226, 232, 240, 0.12);
  color: var(--muted);
}

.site-footer strong {
  color: var(--text);
}

.site-footer p {
  max-width: 560px;
  margin: 8px 0 0;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0.52;
}

.footer-meta a {
  color: rgba(203, 213, 225, 0.72);
  text-decoration-color: rgba(203, 213, 225, 0.18);
  text-underline-offset: 3px;
}

.footer-meta a:hover {
  color: rgba(226, 232, 240, 0.88);
  text-decoration-color: rgba(125, 211, 252, 0.34);
}

@media (max-width: 980px) {
  .hero {
    padding-top: 8vh;
    background-position: 56% center;
  }

  .world-section,
  .direction-list {
    grid-template-columns: 1fr;
  }

  .world-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 52px;
  }

  .site-header {
    padding: 0 14px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
    align-items: flex-start;
    padding: 8vh 14px 40px;
    background-position: 61% center;
  }

  .hero-copy {
    width: 100%;
    padding-top: 0;
  }

  h1 {
    margin-bottom: 10px;
    font-size: clamp(3.4rem, 18vw, 5.2rem);
    line-height: 1.02;
  }

  .hero-lede {
    font-size: clamp(1.28rem, 7vw, 2.1rem);
    line-height: 1.22;
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
  }

  .text-link {
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.92rem;
  }

  .section,
  .site-footer {
    width: calc(100% - 28px);
  }

  .section {
    padding: 78px 0;
  }

  .section h2 {
    font-size: clamp(2.35rem, 12vw, 4.4rem);
  }

  .identity-title {
    font-size: clamp(2.55rem, 10.4vw, 4.1rem);
  }

  .identity-title-tail {
    display: block;
  }

  .identity-display {
    min-height: 360px;
    margin-top: 38px;
    border-radius: 20px;
  }

  .poster-image {
    min-height: 360px;
    object-position: 62% center;
  }

  .mark-spec {
    left: 14px;
    top: 14px;
  }

  .world-section,
  .world-grid,
  .direction-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .direction-list {
    margin-top: 34px;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-meta {
    align-items: flex-start;
  }
}

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