:root {
  --bg: #09090b;
  --bg-deep: #040406;
  --bg-lift: #101015;
  --fg: #f4f4f5;
  --muted: rgba(235, 235, 245, 0.62);
  --dim: rgba(235, 235, 245, 0.42);
  --hairline: rgba(244, 244, 245, 0.1);

  --spec-blue: #7aa2f0;
  --spec-violet: #b48cf0;
  --spec-rose: #f08ab8;
  --spec-gold: #f0d070;
  --spec-mint: #6ecfb0;

  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;

  --px: 0;
  --py: 0;
}

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

html {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  overflow: hidden;
  overflow-x: clip;
  overscroll-behavior: none;
}

body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.018em;
  font-optical-sizing: auto;
  font-feature-settings: "cv01" 1, "ss01" 1;
  overflow: hidden;
  overflow-x: clip;
  overscroll-behavior: none;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

:focus-visible {
  outline: 1.5px solid rgba(244, 244, 245, 0.72);
  outline-offset: 4px;
}

img,
svg,
canvas {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
}

.skip {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 50;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 500;
}

.skip:focus {
  top: 12px;
}

.shell {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  overflow: hidden;
  isolation: isolate;
}

/* Subtle four-pole cosmic glass aura echoing scripts/make-icon.swift */
.aura {
  position: fixed;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 38% at 32% 28%, rgba(122, 162, 240, 0.075), transparent 72%),
    radial-gradient(ellipse 42% 36% at 68% 30%, rgba(110, 207, 176, 0.055), transparent 70%),
    radial-gradient(ellipse 44% 40% at 34% 64%, rgba(180, 140, 240, 0.06), transparent 72%),
    radial-gradient(ellipse 40% 38% at 66% 62%, rgba(240, 138, 184, 0.05), transparent 70%),
    radial-gradient(ellipse 85% 44% at 50% -10%, rgba(244, 244, 245, 0.045), transparent 58%);
  transform: translate3d(calc(var(--px) * -10px), calc(var(--py) * -8px), 0);
  transition: transform 0.9s var(--ease);
}

/* Photographic micro-grain eliminates 8-bit dark gradient banding */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.024;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* Deep obsidian starfield & constellations */
.night {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translate3d(calc(var(--px) * -6px), calc(var(--py) * -5px), 0);
  transition: transform 0.8s var(--ease);
}

.sky-far circle:nth-child(4n),
.sky-near circle:nth-child(4n) {
  fill: #9bdcc5;
}

.sky-far circle:nth-child(5n),
.sky-near circle:nth-child(5n) {
  fill: #98b5f2;
}

.sky-far circle:nth-child(6n),
.sky-near circle:nth-child(6n) {
  fill: #f0d78c;
}

.sky-far circle:nth-child(7n),
.sky-near circle:nth-child(7n) {
  fill: #eca2c4;
}

.sky-far circle:nth-child(8n),
.sky-near circle:nth-child(8n) {
  fill: #c6aaf2;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Wordmark — tightened geometric precision (no rounded cartoon mark) */
.word {
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.mark {
  font-weight: 600;
  letter-spacing: -0.036em;
  color: var(--fg);
}

.dom {
  font-weight: 430;
  letter-spacing: -0.015em;
  color: rgba(235, 235, 245, 0.46);
}

/* Minimal optical header */
.top {
  position: relative;
  z-index: 20;
  flex: none;
  padding-top: env(safe-area-inset-top);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  transition: opacity 0.25s var(--ease);
}

.brand:hover {
  opacity: 0.92;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.55),
    0 0 0 0.5px rgba(244, 244, 245, 0.12);
}

.brand .word {
  font-size: 1.0625rem;
}

/* Transient camera-viewfinder f-stop readout (invisible at rest, appears while adjusting aperture) */
.viewfinder {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(244, 244, 245, 0.12);
  background: rgba(9, 9, 11, 0.72);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(244, 244, 245, 0.8);
  font-variant-numeric: tabular-nums;
  user-select: none;
  opacity: 0;
  transform: translateY(-2px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.viewfinder.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Main single-viewport hero stage (no z-index so .field, .scene-canvas, and .say interleave cleanly) */
.main {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  container-type: size;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  max-height: 100%;
  gap: clamp(18px, 3cqh, 30px);
  transform: translateY(-1.2vh);
}

.sky {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Sweeping geodesic spacetime rays behind the optical barrel */
.field {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: auto;
  width: 100cqw;
  height: 112%;
  transform: translate3d(calc(var(--px) * 7px), calc(var(--py) * 4px), 0);
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 14% 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 18% 82%, transparent 100%),
    radial-gradient(closest-side, transparent 0% 24%, #000 54%);
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 14% 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 18% 82%, transparent 100%),
    radial-gradient(closest-side, transparent 0% 24%, #000 54%);
  -webkit-mask-composite: source-in, source-in;
  mask-composite: intersect;
  transition: transform 0.7s var(--ease);
}

/* Layout & interaction hit-target for the procedural optical aperture */
.optic {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  width: min(100%, 178cqh - 24rem, 760px);
  max-height: calc(100cqh - 17rem);
  min-width: 0;
  min-height: 140px;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.optic-fallback {
  width: 160px;
  height: 160px;
}

/* Teaser copy — optical typography with clear 2-part hierarchy */
.say {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  text-align: center;
  flex: none;
  gap: 24px;
  width: 100%;
  max-width: min(100%, 46rem);
  margin: 0;
  padding: 0 24px;
}

.copy {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.ask {
  margin: 0;
  font-size: clamp(1.625rem, 0.96rem + 2.45vw, 2.82rem);
  font-weight: 560;
  line-height: 1.13;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.ln {
  display: block;
}

.ln-lead {
  color: rgba(244, 244, 245, 0.78);
}

.ln-hook {
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 18%, #dcdce4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.facts {
  display: grid;
  gap: 4px;
  margin: 0;
}

.fact {
  color: rgba(235, 235, 245, 0.58);
  font-size: clamp(0.95rem, 0.89rem + 0.3vw, 1.09375rem);
  font-weight: 420;
  line-height: 1.46;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.fact-kick {
  color: rgba(244, 244, 245, 0.82);
  font-weight: 480;
}

.waitlist {
  display: grid;
  place-items: center;
  width: min(100%, 348px);
  margin: 0;
}

.wl-body,
.wl-done {
  grid-area: 1 / 1;
}

.wl-body {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
  transition:
    opacity 0.36s var(--ease),
    transform 0.42s var(--ease),
    filter 0.36s var(--ease);
}

.wl-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(235, 235, 245, 0.48);
  font-size: 0.75rem;
  font-weight: 480;
  letter-spacing: 0.005em;
}

.wl-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 4px 4px 4px 16px;
  border-radius: 999px;
  border: 1px solid rgba(244, 244, 245, 0.11);
  background: rgba(11, 11, 15, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(244, 244, 245, 0.07),
    0 8px 28px rgba(0, 0, 0, 0.46);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition:
    border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    background-color 0.28s var(--ease);
}

.wl-field:hover {
  border-color: rgba(244, 244, 245, 0.19);
}

.wl-field:focus-within {
  border-color: rgba(244, 244, 245, 0.32);
  background: rgba(14, 14, 19, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(244, 244, 245, 0.1),
    0 0 0 3px rgba(122, 162, 240, 0.13),
    0 10px 32px rgba(0, 0, 0, 0.52);
}

.waitlist[data-state="submitting"] .wl-field {
  border-color: rgba(122, 162, 240, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(244, 244, 245, 0.08),
    0 0 0 3px rgba(122, 162, 240, 0.12),
    0 8px 28px rgba(0, 0, 0, 0.5);
}

.wl-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
  letter-spacing: -0.008em;
  outline: none;
  transition: opacity 0.2s var(--ease);
}

.waitlist[data-state="submitting"] .wl-input {
  opacity: 0.52;
}

.wl-input::placeholder {
  color: rgba(235, 235, 245, 0.3);
}

/* Anodized dark-glass button at rest; illuminates to crisp starlight on focus/hover */
.wl-btn {
  position: relative;
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 62px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(244, 244, 245, 0.18);
  background: rgba(244, 244, 245, 0.09);
  color: rgba(244, 244, 245, 0.92);
  font-size: 0.8125rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    background-color 0.24s var(--ease),
    border-color 0.24s var(--ease),
    color 0.24s var(--ease),
    transform 0.15s var(--ease);
}

.wl-field:focus-within .wl-btn,
.wl-btn:hover:not(:disabled) {
  border-color: transparent;
  background: var(--fg);
  color: var(--bg);
}

.wl-btn-text,
.wl-spinner {
  grid-area: 1 / 1;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.wl-spinner {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.75px solid rgba(9, 9, 11, 0.22);
  border-top-color: var(--bg);
  opacity: 0;
  transform: scale(0.7);
}

.waitlist[data-state="submitting"] .wl-btn {
  border-color: transparent;
  background: var(--fg);
  color: var(--bg);
}

.waitlist[data-state="submitting"] .wl-btn-text {
  opacity: 0;
  transform: scale(0.82);
}

.waitlist[data-state="submitting"] .wl-spinner {
  opacity: 1;
  transform: scale(1);
  animation: spin 0.72s linear infinite;
}

.wl-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.wl-btn:disabled {
  cursor: default;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

.wl-turnstile:empty {
  display: none;
}

.wl-error {
  min-height: 1.1em;
  margin: 0;
  font-size: 0.78125rem;
  color: var(--spec-rose);
  letter-spacing: 0.005em;
}

/* Confirmed state — input glides away cleanly and confirmation pill takes its place */
.wl-done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(110, 207, 176, 0.28);
  background: rgba(110, 207, 176, 0.065);
  box-shadow:
    inset 0 1px 0 rgba(244, 244, 245, 0.06),
    0 8px 28px rgba(0, 0, 0, 0.42);
  color: var(--fg);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.94);
  filter: blur(4px);
  pointer-events: none;
  transition:
    opacity 0.44s var(--ease) 0.14s,
    transform 0.52s var(--ease) 0.14s,
    filter 0.44s var(--ease) 0.14s,
    visibility 0s linear 0.14s;
}

.wl-check {
  flex: none;
  color: var(--spec-mint);
}

.wl-check-ring {
  opacity: 0.45;
}

.wl-check-mark {
  stroke-dasharray: 12;
  stroke-dashoffset: 12;
  transition: stroke-dashoffset 0.42s var(--ease) 0.28s;
}

.waitlist[data-state="done"] .wl-body {
  opacity: 0;
  transform: translateY(-6px) scale(0.95);
  filter: blur(4px);
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease),
    transform 0.36s var(--ease),
    filter 0.3s var(--ease),
    visibility 0s linear 0.36s;
}

.waitlist[data-state="done"] .wl-done {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}

.waitlist[data-state="done"] .wl-check-mark {
  stroke-dashoffset: 0;
}

.soon-dot {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: var(--spec-mint);
  box-shadow: 0 0 7px rgba(110, 207, 176, 0.6);
}

/* Footer */
.foot {
  position: relative;
  z-index: 10;
  flex: none;
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
}

.foot-inner {
  display: flex;
  justify-content: center;
}

.foot-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(235, 235, 245, 0.44);
  letter-spacing: -0.01em;
}

.foot-line .word {
  opacity: 0.72;
}

.foot-dot {
  opacity: 0.42;
  user-select: none;
}

.foot-by {
  color: rgba(235, 235, 245, 0.48);
}

.foot-link {
  color: rgba(235, 235, 245, 0.56);
  transition: color 0.2s var(--ease);
}

.foot-link:hover {
  color: var(--fg);
}

/* Full-viewport unclipped optical aperture & horizon canvas */
.scene-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Full-viewport overlay canvas for subtle delta-dart craft & lensed photons */
.play-canvas {
  position: fixed;
  inset: 0;
  z-index: 15;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Motion & subtle atmospheric cadence */
@media (prefers-reduced-motion: no-preference) {
  .sky-far {
    animation: sky-drift 150s linear infinite alternate;
  }

  .sky-near {
    animation: sky-drift 92s linear infinite alternate-reverse;
  }

  .sky-figs {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: sky-wheel 220s ease-in-out infinite alternate;
  }

  .night circle {
    animation: twinkle 8s ease-in-out infinite;
  }

  .night circle:nth-child(3n) {
    animation-duration: 12s;
    animation-delay: -4s;
  }

  .night circle:nth-child(4n) {
    animation-duration: 5.5s;
    animation-delay: -1.8s;
  }

  .night circle:nth-child(5n) {
    animation-duration: 15s;
    animation-delay: -8s;
  }

  .soon-dot {
    animation: pulse-dot 3.2s ease-in-out infinite;
  }

  .ask {
    animation: rise 0.42s var(--ease) both;
  }

  .facts {
    animation: rise 0.42s var(--ease) 0.04s both;
  }

  .waitlist {
    animation: rise 0.42s var(--ease) 0.08s both;
  }
}

@keyframes sky-drift {
  0% {
    transform: translate(-1.1%, -0.6%);
  }
  100% {
    transform: translate(1.2%, 0.8%);
  }
}

@keyframes sky-wheel {
  0% {
    transform: rotate(-2deg);
  }
  100% {
    transform: rotate(2deg);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.95;
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prevent iOS Safari focus auto-zoom (requires computed input font-size >= 16px) */
@media (max-width: 760px), (pointer: coarse) {
  .wl-input {
    font-size: 16px;
  }
}

/* Responsive layout refinements */
@media (max-width: 760px) {
  .wrap {
    width: min(var(--max), calc(100% - 32px));
  }

  .brand .word {
    font-size: 1rem;
  }
}

@media (max-width: 560px) {
  .optic {
    width: min(100%, 420px);
    aspect-ratio: 4 / 3;
    max-height: calc(100cqh - 15rem);
  }

  .say {
    gap: 12px;
    padding: 0 20px;
  }

  .ask {
    font-size: clamp(1.38rem, 5.8vw, 1.85rem);
  }

  .fact {
    font-size: 0.9375rem;
  }
}

/* Short landscape viewports (matches original site's horizontal lockup) */
@media (max-height: 640px) {
  .top-inner {
    min-height: 46px;
  }

  .brand-icon {
    width: 24px;
    height: 24px;
  }

  .foot {
    padding: 4px 12px calc(8px + env(safe-area-inset-bottom));
  }

  .say {
    gap: 10px;
  }

  .ask {
    font-size: clamp(1.25rem, 0.72rem + 2.2vh, 2rem);
  }
}

@media (max-height: 640px) and (min-width: 580px) {
  .stage {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(18px, 3vw, 44px);
    width: min(1120px, calc(100% - 32px));
    transform: none;
  }

  .sky {
    flex: 1 1 54%;
    width: auto;
    min-width: 0;
  }

  .field {
    inset: 0;
    margin: auto;
    width: 118%;
    height: 108%;
    transform: none;
    -webkit-mask-image:
      radial-gradient(closest-side, transparent 0% 34%, #000 58%, transparent 100%);
    mask-image:
      radial-gradient(closest-side, transparent 0% 34%, #000 58%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }

  .optic {
    width: 100%;
    max-width: min(100%, 540px);
    max-height: calc(100dvh - 104px);
  }

  .say {
    flex: 0 1 44%;
    justify-items: start;
    text-align: left;
    gap: 18px;
    max-width: 24em;
    padding: 0;
  }

  .copy {
    justify-items: start;
  }

  .waitlist {
    place-items: start;
  }

  .wl-body {
    justify-items: start;
  }
}
