:root {
  color-scheme: light;
  --paper: #f3f3f0;
  --ink: #111210;
  --muted: rgba(17, 18, 16, 0.55);
  --faint: rgba(17, 18, 16, 0.34);
  --line: rgba(17, 18, 16, 0.1);
  --line-strong: rgba(17, 18, 16, 0.16);
  --panel: rgba(255, 255, 253, 0.58);
  --green: #55745f;
  font-family: "Helvetica Neue", "Inter", "SF Pro Text", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.94), transparent 32rem),
    var(--paper);
}

.video-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  pointer-events: none;
}

.video-background::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 48% 38% at 50% 51%,
    rgba(243, 243, 240, 0.78) 0%,
    rgba(243, 243, 240, 0.48) 58%,
    rgba(243, 243, 240, 0.08) 100%
  );
  content: "";
}

.video-background video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.56;
}

a,
button,
input {
  font: inherit;
}

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

button {
  border: 0;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  padding: 25px 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.brand-name {
  transform: translateY(-0.25px);
}

main {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 44px);
  padding: 104px 0 92px;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 400;
  font-kerning: normal;
  letter-spacing: -0.045em;
  line-height: 1.01;
}

.hero-line {
  display: block;
}

.hero-line-muted {
  color: rgba(17, 18, 16, 0.42);
}

.hero-copy {
  max-width: 460px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.waitlist-form {
  width: min(430px, 100%);
  margin-top: 34px;
}

.input-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 253, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 8px 26px rgba(28, 30, 26, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-shell:focus-within {
  border-color: rgba(17, 18, 16, 0.24);
  box-shadow: 0 0 0 3px rgba(17, 18, 16, 0.04), 0 8px 26px rgba(28, 30, 26, 0.04);
}

input {
  min-width: 0;
  padding: 0 13px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
}

input::placeholder {
  color: rgba(17, 18, 16, 0.35);
}

.input-shell button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17);
  font-size: 11px;
  transition: background 180ms ease, transform 180ms ease;
}

.input-shell button:hover {
  background: #292a27;
}

.input-shell button:active {
  transform: scale(0.98);
}

.input-shell button svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.form-message {
  min-height: 14px;
  margin: 10px 0 0;
  color: var(--faint);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.03em;
}

.form-message.is-error {
  color: #92544b;
}

.form-message.is-success {
  color: var(--green);
}

footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: var(--faint);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.reveal-1 { animation-delay: 100ms; }
.reveal-2 { animation-delay: 170ms; }
.reveal-3 { animation-delay: 240ms; }
.reveal-4 { animation-delay: 310ms; }
.reveal-5 { animation-delay: 460ms; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 21px 20px;
  }

  main,
  footer {
    width: min(100% - 24px, 560px);
  }

  .hero {
    min-height: calc(100svh - 38px);
    padding: 96px 4px 70px;
  }

  h1 {
    font-size: clamp(32px, 10vw, 42px);
    letter-spacing: -0.04em;
    line-height: 1.04;
  }

  .hero-copy {
    max-width: 350px;
    font-size: 13px;
  }

  footer {
    padding-bottom: 20px;
  }
}

@media (max-width: 460px) {
  .hero {
    padding-top: 94px;
  }

  .input-shell {
    grid-template-columns: 1fr;
  }

  input {
    min-height: 42px;
  }

  .input-shell button {
    width: 100%;
  }

  footer span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
