:root {
  --color-bg: #0a0a0a;
  --color-bg-lift: #2e2e2e;
  --color-card: #0f0f0f;
  --color-card-edge: #6f6f6f;
  --color-silver-hi: #e9e9e9;
  --color-silver-lo: #8a8a8a;
  --color-ink: #f2f2f2;
  --color-muted: #9a9a9a;
  --color-line: #2a2a2a;
  --color-field: #151515;
  --color-error: #ff8a80;
  --color-success: #c9e7cf;

  --font-brand: "Quicksand", "Avenir Next", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;

  /* Card scales with the viewport height too, so the page always fits one screen */
  --fold-reserve: 31rem; /* height of everything below the card */
  --card-width: clamp(12rem, min(34rem, 84vw, (100dvh - var(--fold-reserve)) * 1.3), 34rem);
  --card-radius: calc(var(--card-width) * 0.035);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 36rem;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--color-silver-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Studio light from above, like the product shot */
.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 55% at 50% -5%, var(--color-bg-lift) 0%, transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 100%, #141414 0%, transparent 70%);
}

.stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  min-height: 0;
  padding: clamp(1rem, 4dvh, 3rem) var(--gutter) 0;
}

/* Card */
.card-scene {
  perspective: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card {
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 30%;
  position: relative;
  display: grid;
  place-items: center;
  width: var(--card-width);
  aspect-ratio: 85.6 / 54;
  border-radius: var(--card-radius);
  overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(170deg, #171717 0%, var(--color-card) 45%, #0b0b0b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8),
    0 30px 60px -20px rgba(0, 0, 0, 0.9);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  animation: float 6s ease-in-out infinite;
}

/* Thin brushed-metal edge */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, var(--color-silver-hi), var(--color-card-edge) 30%, #2a2a2a 60%, var(--color-card-edge));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Soft reflection that follows the pointer */
.card-sheen {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.045), transparent 55%);
  pointer-events: none;
}

.card-wordmark {
  position: relative;
  font-family: var(--font-brand);
  font-weight: 300;
  font-size: calc(var(--card-width) * 0.085);
  letter-spacing: 0.005em;
  background: linear-gradient(100deg, var(--color-silver-lo) 0%, var(--color-silver-hi) 35%, #b5b5b5 55%, var(--color-silver-lo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.9));
}

.card-shadow {
  width: calc(var(--card-width) * 0.85);
  height: calc(var(--card-width) * 0.06);
  margin-top: calc(var(--card-width) * 0.08);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 45%, transparent 72%);
  filter: blur(6px);
  animation: shadow 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes shadow {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.9); opacity: 0.7; }
}

/* Copy */
.intro {
  width: 100%;
  max-width: 34rem;
  margin-top: clamp(0.75rem, 3dvh, 2rem);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 var(--space-2);
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.headline {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.lede {
  margin: var(--space-2) auto 0;
  max-width: 28rem;
  color: var(--color-muted);
}

/* Waitlist */
.waitlist { margin-top: clamp(1rem, 3.5dvh, 2.5rem); }

.waitlist-row {
  display: flex;
  gap: var(--space-1);
  padding: 0.35rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-field);
}

.waitlist-row:focus-within { border-color: var(--color-card-edge); }

.waitlist-input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1rem;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  font: inherit;
  font-size: 1rem;
}

.waitlist-input::placeholder { color: #5f5f5f; }
.waitlist-input:focus { outline: none; }

.waitlist-button {
  flex-shrink: 0;
  padding: 0.7rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4f4f4, #c9c9c9);
  color: #0a0a0a;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.waitlist-button:hover { filter: brightness(1.08); }
.waitlist-button:disabled { opacity: 0.6; cursor: progress; }

.waitlist-message {
  min-height: 1.5em;
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.waitlist-message.is-error { color: var(--color-error); }
.waitlist-message.is-success { color: var(--color-success); }

@media (max-width: 30rem) {
  :root { --fold-reserve: 34rem; }
  .waitlist-row {
    flex-direction: column;
    border-radius: 1.25rem;
  }
  .waitlist-input { text-align: center; }
}

/* Footer */
.site-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--gutter) var(--space-3);
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.site-footer a { text-underline-offset: 3px; }

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