:root {
  color-scheme: dark;
  font-family: system-ui, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #eaf5ff;
  background: #090e1b;
  --inset: max(6vw, calc((100% - 1220px) / 2));
  --muted: #acc1dc;
  --rule: #7084a94d;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 240px; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #9edbff; outline-offset: 6px; }
.masthead {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  padding: clamp(18px, 3.2vw, 36px) var(--inset);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 650; text-decoration: none; }
.brand img { display: block; flex: none; }
.hero {
  display: grid;
  align-items: center;
  min-height: min(760px, 86svh);
  padding: clamp(112px, 16vh, 185px) var(--inset) clamp(58px, 10vh, 115px);
  background:
    linear-gradient(90deg, #090e1bf5 1%, #090e1bbd 31%, #090e1b12 72%),
    linear-gradient(0deg, #090e1b, transparent 26%),
    #090e1b url("./portal.jpg") 64% center / cover no-repeat;
}
.hero-content { max-width: 650px; }
.subtitle {
  margin: 0 0 .85rem;
  color: #a7d8ff;
  font-size: clamp(.85rem, 1.6vw, 1.1rem);
  letter-spacing: .17em;
}
h1 {
  margin: 0;
  font-size: clamp(3rem, 8.7vw, 7.4rem);
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: .04em;
  text-shadow: 0 8px 36px #07111dab;
}
.intro { max-width: 30rem; margin: 1.5rem 0 2.4rem; color: #cedcf0; font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.85; }
.actions { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.entry { display: grid; gap: .55rem; text-align: center; }
.entry span { font-size: .875rem; color: var(--muted); }
.button {
  display: grid;
  place-items: center;
  min-width: 10rem;
  min-height: 3.25rem;
  padding: .8rem 1.4rem;
  border: 1px solid #82bfff;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}
.primary { color: #071321; background: #b6e0ff; }
.primary:hover { background: #e0f3ff; }
.secondary { color: #eaf5ff; background: #132339e6; }
.secondary:hover { background: #243f61; }
.modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 var(--inset);
  padding: 1.85rem 0 2.25rem;
  border-top: 1px solid var(--rule);
}
.modes article + article { border-inline-start: 1px solid var(--rule); padding-inline-start: clamp(16px, 3.2vw, 46px); }
.modes h2 { margin: 0 0 .45rem; font-size: 1.1rem; }
.modes p { margin: 0; padding-inline-end: .75rem; color: var(--muted); line-height: 1.65; }

@media (max-width: 620px) {
  .hero {
    align-items: end;
    background:
      linear-gradient(0deg, #090e1b 3%, #090e1bea 28%, #090e1b99 58%, #090e1b26 91%),
      #090e1b url("./portal.jpg") 70% top / auto 100% no-repeat;
    padding-block: 34svh 3.5rem;
  }
  .intro { margin-block: 1rem 1.65rem; }
  .button { min-width: 8.1rem; }
  .modes { grid-template-columns: 1fr; gap: 1.15rem; }
  .modes article + article { border-inline-start: 0; border-top: 1px solid var(--rule); padding: 1.15rem 0 0; }
}
