/* ---------------------------------------------------------------------------
   Blaze Bot waitlist.
   Values are taken directly from the supplied reference build rather than
   approximated:
     - ground        rgb(0,0,0)
     - ink           #fff, muted rgba(255,255,255,.7), faint 50%
     - glass         #ffffff1a (pill) / #ffffff0f (form), both blurred 10px
     - radii         13px chip, 15px form, 50px button
     - eyebrow       Fragment Mono 14/400, letter-spacing -.05em, line-height 1em
     - headline      Switzer 64/500, letter-spacing -.04em, 48px at mobile
     - lede          16px at 50% opacity, capped at 375px
     - counter       Switzer 14/500, letter-spacing -.06em
     - accent        #09f
--------------------------------------------------------------------------- */

@font-face {
  font-family: 'Fragment Mono';
  src: url('/fonts/FragmentMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('/fonts/Switzer-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('/fonts/Switzer-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('/fonts/Switzer-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #fff;
  --ink-muted: rgba(255, 255, 255, 0.7);
  --glass-pill: #ffffff1a;
  --glass-form: #ffffff0f;
  --hairline: rgba(255, 255, 255, 0.1);
  --accent: #09f;
  --danger: #ff6b6b;
  --radius-chip: 13px;
  --radius-form: 15px;
  --radius-round: 50px;
  --font-sans: 'Switzer', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Fragment Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}

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

html {
  background: #000;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --------------------------------------------------------------- nav ---- */

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.nav__mark {
  font-size: 15px;
  line-height: 1;
  color: var(--ink);
}

/* The reference's Contact control is a solid white pill with black text. */
.nav__contact {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-round);
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.nav__contact:hover {
  opacity: 0.85;
}

/* -------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: calc(100vh - 68px);
  padding: 24px 24px 72px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  padding: 7px 12px;
  border-radius: var(--radius-chip);
  background: var(--glass-pill);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero__title {
  margin: 0;
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
}

.hero__lede {
  margin: 0;
  max-width: 375px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0.5;
}

/* -------------------------------------------------------------- form ---- */

.form {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 280px;
  max-width: 100%;
  padding: 5px;
  border-radius: var(--radius-form);
  background: var(--glass-form);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.form__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.form__input::placeholder {
  color: var(--ink-muted);
}

.form__input:focus {
  outline: none;
}

/* Focus ring lives on the container so it wraps the whole pill, which is what the
   rounded shape implies — a ring on the bare input would float inside it. */
.form:focus-within {
  box-shadow: 0 0 0 1px var(--accent);
}

.form__button {
  flex: none;
  padding: 8px 16px;
  border: 0;
  border-radius: 11px;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.form__button:hover {
  opacity: 0.85;
}

.form__button:disabled {
  opacity: 0.5;
  cursor: progress;
}

.form__button:focus-visible,
.nav__contact:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------ status ---- */

.status {
  min-height: 1.2em;
  margin: 0;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: var(--ink-muted);
}

.status[data-state='error'] {
  color: var(--danger);
}

.status[data-state='success'] {
  color: var(--accent);
}

.counter {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.06em;
  color: var(--ink);
}

.counter__value {
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------- wordmark ---- */

/*
  The oversized chrome word at the foot of the page.
  Deliberately static: the original is a WebGL scene that redraws every frame, which is
  what made the page slow. Nothing here animates, so it costs one composited layer and
  no main-thread work at all. The container clips the glyphs so only their upper portion
  shows, which is what makes the word read as laid back into the page.
*/
.wordmark {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 0;
  height: 32vh;
  overflow: hidden;
  pointer-events: none;
}

.wordmark__text {
  position: absolute;
  left: 50%;
  top: 0;
  display: block;
  /* Slightly flatter than a full lay-back: the reference reads as a huge word sitting
     almost upright, cropped by the fold, rather than one rotated away from the viewer. */
  transform: translateX(-50%) rotateX(9deg) rotateZ(-1.5deg);
  transform-origin: 50% 0%;
  font-family: var(--font-sans);
  /* Deliberately larger than the viewport so the outer letters run off both edges,
     which is what gives the reference its scale. The container clips the overflow. */
  font-size: clamp(220px, 46vw, 760px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.055em;
  white-space: nowrap;
  /* Chrome: bright crown, darker waist, light bounce along the bottom edge. */
  background-image: linear-gradient(
    180deg,
    #f6f6f6 0%,
    #ffffff 12%,
    #c2c2c2 40%,
    #6a6a6a 68%,
    #b8b8b8 86%,
    #efefef 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ----------------------------------------------------------- footnote ---- */

.footnote {
  position: relative;
  z-index: 1;
  margin: 0 auto 28px;
  max-width: 375px;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--ink-muted);
  opacity: 0.45;
}

/* --------------------------------------------------------- responsive ---- */

@media (max-width: 640px) {
  .hero {
    gap: 16px;
    padding: 24px 20px 56px;
  }

  .hero__title {
    font-size: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
