/* 1.0 Beta launch screen. It covers the homepage and leaves the scrolling handheld scene untouched underneath. */
html.launch-gate-open { overflow: hidden; }

.launch-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  background: linear-gradient(105deg, #0f8cf5, #1442ea 55%);
  color: #fff;
  transition: opacity .45s ease, visibility .45s;
}
.launch-gate.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.launch-gate-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
/* Keeps white text readable over the film's bright blue. */
.launch-gate::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(to top, rgba(4, 16, 64, .78), rgba(4, 16, 64, .4) 45%, transparent);
  pointer-events: none;
}
.launch-gate-top, .launch-gate-bottom { position: relative; z-index: 1; }
.launch-gate-top { padding: 28px clamp(24px, 4vw, 56px); }
.launch-gate-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.launch-gate-logo img { width: 28px; height: 28px; border-radius: 6px; }
.launch-gate-bottom {
  grid-row: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 0 clamp(24px, 4vw, 56px) clamp(28px, 5vh, 52px);
}
.launch-gate-eyebrow { color: #bfe6ff; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.launch-gate h1 { font-size: clamp(34px, 4.6vw, 64px); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; }
.launch-gate-tagline { margin-top: 12px; color: rgba(255, 255, 255, .86); font-size: clamp(15px, 1.4vw, 18px); }
.launch-gate-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.launch-gate-actions .button { gap: 12px; white-space: nowrap; }
.launch-gate-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .18s;
}
.launch-gate-secondary:hover { background: rgba(255, 255, 255, .22); }
.launch-gate a:focus-visible, .launch-gate button:focus-visible { outline-color: #fff; outline-offset: 3px; }

.launch-gate-film {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(3, 8, 24, .92);
}
.launch-gate-film iframe {
  width: min(100%, calc((100vh - 112px) * 16 / 9));
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
}
.launch-gate-close {
  position: absolute;
  top: 18px;
  right: clamp(16px, 4vw, 56px);
  min-height: 40px;
  padding: 0 16px;
}

@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .launch-gate-media { inset: 84px 0 auto; height: auto; aspect-ratio: 16 / 9; -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }
  .launch-gate-bottom { flex-direction: column; align-items: stretch; gap: 22px; }
  .launch-gate-actions { flex-wrap: wrap; }
  .launch-gate-actions > * { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .launch-gate { transition: none; }
}
