:root {
  --ink: #12151c;
  --muted: #5c6578;
  --paper: #eef2f7;
  --accent: #0f6e56;
  --accent-ink: #f4fffa;
  --glow: rgba(15, 110, 86, 0.18);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 15% -10%, var(--glow), transparent 55%),
    radial-gradient(900px 600px at 90% 10%, rgba(40, 70, 120, 0.12), transparent 50%),
    linear-gradient(165deg, #f7f9fc 0%, var(--paper) 45%, #e4ebf4 100%);
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 21, 28, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 21, 28, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  animation: drift 28s linear infinite;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-48px, -48px, 0);
  }
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
  max-width: 42rem;
}

.brand {
  margin: 0 0 1.25rem;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  animation: rise 0.9s ease-out both;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  animation: rise 0.9s ease-out 0.08s both;
}

.lede {
  margin: 1rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  animation: rise 0.9s ease-out 0.16s both;
}

.waitlist {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  animation: rise 0.9s ease-out 0.24s both;
}

.waitlist input {
  flex: 1 1 14rem;
  min-height: 3rem;
  border: 1px solid rgba(18, 21, 28, 0.14);
  border-radius: 0.65rem;
  padding: 0.75rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.waitlist input:focus {
  outline: 2px solid rgba(15, 110, 86, 0.45);
  outline-offset: 1px;
}

.waitlist button {
  min-height: 3rem;
  border: 0;
  border-radius: 0.65rem;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.waitlist button:hover {
  background: #0c5c48;
  transform: translateY(-1px);
}

.waitlist button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.status {
  min-height: 1.25rem;
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.status.ok {
  color: var(--accent);
}

.status.err {
  color: #9b2c2c;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 540px) {
  .waitlist {
    flex-direction: column;
  }

  .waitlist button {
    width: 100%;
  }
}
