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

:root {
  color-scheme: light;
  --bg: #f5f2ee;
  --bg-elevated: #ffffff;
  --text: #1a1f2e;
  --text-muted: #4a5568;
  --text-dim: #718096;
  --accent: #c2410c;
  --accent-rgb: 194 65 12;
  --border: rgba(26, 31, 46, 0.12);
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 8px;
  --max-width: 42rem;
}

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

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2.5rem 1.25rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.logo-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.logo-moth,
.logo-wordmark {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.logo-wordmark {
  width: min(280px, 72vw);
  margin-top: -0.15rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.35rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.headline {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.lede {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36ch;
}

.waitlist {
  width: 100%;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-elevated);
}

.waitlist__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}


.waitlist__hint {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.waitlist__form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .waitlist__form {
    flex-direction: row;
  }
}

.waitlist__form input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s ease;
}

.waitlist__form input::placeholder {
  color: var(--text-dim);
}

.waitlist__form input:focus {
  border-color: rgba(26, 31, 46, 0.35);
}

.waitlist__form button {
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.waitlist__form button:hover:not(:disabled) {
  opacity: 0.92;
}

.waitlist__form button:active:not(:disabled) {
  transform: scale(0.98);
}

.waitlist__form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.waitlist__status {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
}

.waitlist__status[data-tone="success"] {
  color: #15803d;
}

.waitlist__status[data-tone="error"] {
  color: var(--accent);
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.footer__tag {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}


.footer__link {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__link:hover {
  color: var(--text);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.marketing-page {
  max-width: 64rem;
  justify-content: flex-start;
  padding-top: 5rem;
}

.marketing-page .headline {
  max-width: 18ch;
}

.marketing-page .lede {
  max-width: 52ch;
  text-align: center;
}

.marketing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  width: 100%;
}

.marketing-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background: var(--bg-elevated);
}

.marketing-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.marketing-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
