:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --navy: #052b49;
  --lime: #a9c928;
  --paper: #f7fbfc;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: var(--navy);
  color: var(--paper);
}

button, input { font: inherit; }

.launch {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 72px);
}

.launch-background,
.launch-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.launch-background {
  z-index: -3;
  object-fit: cover;
  object-position: center center;
}

.launch-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(2, 19, 32, .12), rgba(2, 19, 32, .16) 45%, rgba(2, 19, 32, .5)),
    radial-gradient(circle at 50% 47%, rgba(3, 33, 53, .18), rgba(3, 28, 47, .08) 35%, rgba(3, 24, 40, .26) 100%);
}

.launch-content {
  width: min(100%, 980px);
  margin-top: -4vh;
  text-align: center;
  text-shadow: 0 3px 24px rgba(0, 17, 31, .75);
}

.launch-kicker {
  margin: 0 0 10px;
  font-size: clamp(.75rem, 1.2vw, .95rem);
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.launch h1 {
  margin: 0 0 clamp(18px, 4vw, 34px);
  font-size: clamp(1.45rem, 3.4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -.035em;
}

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(5px, 1.4vw, 18px);
}

.countdown-unit {
  display: grid;
  min-width: clamp(62px, 10vw, 128px);
  padding: clamp(12px, 2vw, 22px) clamp(8px, 1.5vw, 18px);
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 5px;
  background: rgba(2, 35, 57, .42);
  box-shadow: 0 18px 50px rgba(0, 20, 35, .28);
  backdrop-filter: blur(9px);
}

.countdown-unit strong {
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 6vw, 5.5rem);
  line-height: .95;
  letter-spacing: -.07em;
}

.countdown-unit span {
  margin-top: 10px;
  font-size: clamp(.58rem, 1vw, .78rem);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.countdown-separator {
  padding-top: clamp(16px, 3.1vw, 36px);
  font-size: clamp(1.4rem, 3vw, 3rem);
  font-weight: 700;
}

.race-day-message {
  margin: 0;
  font-size: clamp(2.4rem, 9vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.team-access {
  position: absolute;
  right: clamp(18px, 3vw, 44px);
  bottom: clamp(18px, 3vw, 38px);
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 999px;
  color: white;
  background: rgba(3, 35, 56, .44);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition: background .2s ease, transform .2s ease;
}

.team-access:hover,
.team-access:focus-visible {
  background: rgba(3, 35, 56, .8);
  transform: translateY(-2px);
}

.login-layer {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-layer[hidden] { display: none; }

.login-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(0, 16, 28, .7);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.login-card {
  position: relative;
  width: min(100%, 430px);
  padding: 38px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  background: rgba(4, 39, 62, .94);
  box-shadow: 0 30px 90px rgba(0, 10, 20, .5);
}

.login-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  color: white;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
}

.login-kicker {
  margin: 0 0 6px;
  color: var(--lime);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.login-card h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -.04em;
}

.login-card > p:not(.login-kicker) {
  margin: 10px 0 24px;
  color: rgba(255,255,255,.76);
}

.login-card form { display: grid; gap: 9px; }

.login-card label {
  margin-top: 7px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-card input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 6px;
  outline: none;
  color: white;
  background: rgba(255,255,255,.08);
}

.login-card input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(169,201,40,.2); }

.login-card button[type="submit"] {
  margin-top: 14px;
  padding: 14px;
  border: 0;
  border-radius: 6px;
  color: #122600;
  background: var(--lime);
  font-weight: 900;
  cursor: pointer;
}

.login-error {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 5px;
  color: #fff;
  background: rgba(188, 43, 43, .72);
  font-size: .84rem;
}

@media (max-width: 720px) {
  .launch { padding: 22px 12px 86px; }
  .launch-background { object-position: 61% center; }
  .launch-content { margin-top: -9vh; }
  .countdown { gap: 4px; }
  .countdown-unit { min-width: 61px; padding-inline: 5px; }
  .countdown-separator { display: none; }
  .team-access { right: 50%; transform: translateX(50%); }
  .team-access:hover, .team-access:focus-visible { transform: translate(50%, -2px); }
  .login-card { padding: 34px 24px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
