* { box-sizing: border-box; }
body { margin: 0; background: #101014; color: #fff; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
main { position: relative; isolation: isolate; height: 100vh; height: 100dvh; overflow: hidden; }
#opening, #backdrop { width: 100%; height: 100%; object-fit: cover; }
#opening { position: fixed; inset: 0; z-index: 5; background: #080809; }
#opening:not([hidden]) + #homepage { visibility: hidden; }
#backdrop { position: absolute; inset: 0; z-index: -2; }
main::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.4); z-index: -1; }
header { position: absolute; inset: 0 0 auto; z-index: 1; background: rgba(12,12,16,.8); }
.nav-inner { max-width: 1440px; height: clamp(60px, 6vw, 80px); margin: auto; padding: 0 clamp(20px,4vw,64px); display: flex; align-items: center; justify-content: space-between; }
.logo { width: clamp(120px,12vw,156px); height: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; color: white; text-decoration: none; font-weight: 700; background: linear-gradient(105deg,#814afa,#6930ef); transition: filter .2s; }
.button:hover { filter: brightness(1.15); }
.button:focus-visible { outline: 3px solid white; outline-offset: 4px; }
.login { min-height: 40px; padding: 0 24px; border-radius: 8px; }
/* Anchor the CTA 300px below its former position and keep it within the viewport. */
.start {
  --button-height: clamp(78px, 9vw, 108px);
  --previous-offset: calc(clamp(35.84px, 5.152vw, 80.64px) + 16px + clamp(43.5px, 4.205vw, 69.6px) + clamp(24px, 4vh, 48px));
  position: absolute;
  top: min(calc(min(40%, 100% - 240px) + var(--previous-offset) + 300px), calc(100% - var(--button-height) - 16px));
  left: 50%;
  transform: translateX(-50%);
  min-width: min(264px, 100%);
  height: var(--button-height);
  padding: 0 60px;
  border-radius: 18px;
  font-size: clamp(27px, 2.4vw, 36px);
}
@media (max-height: 420px) {
  .start {
    --button-height: 66px;
    top: min(calc(28% + 403px), calc(100% - var(--button-height) - 16px));
  }
}
