@font-face {
  font-family: "AirLabInter";
  src: url("./fonts/inter-latin-900-normal.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0a0b;
  color: #ffffff;
  color-scheme: dark;
}

.cd-root {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cd-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.cd-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cd-plain {
  display: none;
}

.cd-root.is-plain .cd-canvas {
  display: none;
}

.cd-root.is-plain .cd-plain {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 3vmin, 28px);
  text-align: center;
  padding: 24px;
}

.cd-plain-mark {
  width: clamp(56px, 14vmin, 96px);
  height: auto;
  fill: #ffffff;
}

.cd-plain-text {
  margin: 0;
  white-space: pre-line;
  font: 900 clamp(24px, min(8vw, 12vh), 96px) / 1.04 "AirLabInter", Inter, system-ui, sans-serif;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

.cd-plain-tagline {
  margin: 0;
  font: 900 clamp(12px, 2.4vmin, 20px) / 1.2 "AirLabInter", Inter, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a1a1a6;
}

/* AirLab lockup at the top of the opener. */
.cd-brand {
  position: absolute;
  z-index: 2;
  top: clamp(18px, 4vh, 40px); /* mirrors the scroll hint at the bottom */
  left: 50%;
  transform: translateX(-50%);
  height: clamp(18px, 2.5vh, 24px);
  color: var(--cd-ink, #ffffff);
  opacity: 0;
  pointer-events: none;
}
.cd-brand svg {
  display: block;
  height: 100%;
  width: auto;
  fill: currentColor;
}

/* Call to action at the bottom of the countdown. */
.cd-cta {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 5vh, 48px);
  transform: translateX(-50%) translateY(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(400px, calc(100vw - 32px));
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.cd-cta.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.cd-cta-button,
.cd-signup button {
  position: relative;
  height: 44px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  background: var(--cd-ink, #fff);
  color: var(--cd-paper, #0a0a0b);
  font: 500 16px/1 Inter, system-ui, sans-serif;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
}
.cd-cta-button:focus-visible,
.cd-signup button:focus-visible {
  outline: 2px solid var(--cd-ink, #fff);
  outline-offset: 3px;
}
.cd-signup {
  display: flex;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 4px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--cd-paper, #0a0a0b) 82%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cd-ink, #fff) 28%, transparent);
}
.cd-signup[hidden] { display: none; }
.cd-signup input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--cd-ink, #fff);
  font: 500 15px/1 Inter, system-ui, sans-serif;
  outline: none;
}
.cd-signup input::placeholder {
  color: color-mix(in srgb, var(--cd-ink, #fff) 60%, transparent);
}
.cd-signup button {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 15px;
}
.cd-cta-sub,
.cd-signup-status {
  margin: 0;
  padding: 3px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--cd-paper, #0a0a0b) 70%, transparent);
  color: var(--cd-ink, #fff);
  font: 400 13px/1.35 Inter, system-ui, sans-serif;
  text-align: center;
}
.cd-signup-status:empty { display: none; }
.cd-dots {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.cd-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: cd-dot 0.9s ease-in-out infinite;
}
.cd-dots i:nth-child(2) { animation-delay: 0.15s; }
.cd-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes cd-dot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
.cd-signup[data-state="pending"] .cd-signup-label { visibility: hidden; }
.cd-signup[data-state="pending"] .cd-dots { display: flex; }
.cd-signup[data-state="done"] { opacity: 0.7; }

/* Scroll cue for the opening story. */
.cd-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vh, 40px);
  transform: translateX(-50%);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font: 800 12px/1 "AirLabInter", Inter, system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: currentColor;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.cd-scroll-hint.is-on {
  opacity: 0.75;
}
.cd-scroll-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: cd-nudge 1.4s ease-in-out infinite;
}
@keyframes cd-nudge {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(5px) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cd-scroll-arrow { animation: none; }
}

/* Play: runs through the story at a steady pace (centred just above the scroll
   cue; it leaves when the countdown and its footer arrive). */
.cd-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(clamp(18px, 4vh, 40px) + 44px);
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: #fff;
  mix-blend-mode: difference;
  font: 800 10px/1 "AirLabInter", Inter, system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.cd-play.is-on {
  opacity: 0.5;
  pointer-events: auto;
}
.cd-play.is-on:hover,
.cd-play:focus-visible {
  opacity: 0.9;
}
.cd-play:focus-visible {
  outline: 1.5px solid currentColor;
  outline-offset: 2px;
}
.cd-play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent currentColor;
}
.cd-play.is-playing .cd-play-icon {
  width: 2px;
  height: 8px;
  border-width: 0 2px;
  border-color: currentColor;
}

/* Local-preview helper text; not part of the experience. */
.cd-hud {
  position: fixed;
  left: 12px;
  bottom: 10px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(17, 17, 19, 0.72);
  color: #a1a1a6;
  font: 500 12px/1.3 Inter, system-ui, sans-serif;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

/* Marketing site: the CTA is a link to /early-access. */
a.cd-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
/* Small footer (copyright, beta login) that arrives with the CTA. */
.cd-foot {
  position: absolute;
  inset: auto 20px 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  font: 400 11px/1 Inter, system-ui, sans-serif;
  color: color-mix(in srgb, var(--cd-ink, #fff) 55%, transparent);
  opacity: 0;
  transition: opacity 0.8s ease 0.2s;
  pointer-events: none;
}
.cd-root.is-done .cd-foot {
  opacity: 1;
  pointer-events: auto;
}
.cd-foot a {
  color: inherit;
  text-decoration: none;
}
.cd-foot a:hover,
.cd-foot a:focus-visible {
  color: var(--cd-ink, #fff);
}
@media (max-width: 640px) {
  .cd-foot { justify-content: center; }
  .cd-foot span { display: none; }
}
@media (max-width: 640px) {
  .cd-cta { bottom: 46px; }
}

/* ?intro=1: the experience as the marketing site's entrance, without its page chrome. */
.cd-intro .cd-cta,
.cd-intro .cd-foot,
.cd-intro .cd-brand,
.cd-intro .cd-scroll-hint,
.cd-intro .cd-play {
  display: none !important;
}
