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

:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #555555;
  --color-accent: #1a1a1a;
  --color-border: #dddddd;
  --color-success: #166534;
  --color-error: #991b1b;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max-width: 560px;
}

html {
  font-size: 16px;
  background: var(--color-bg);
  color: var(--color-text);
}

body {
  font-family: var(--font);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.25rem;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  gap: 2.5rem;
  padding: 3rem 0;
}

/* Header */
header h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

header h1 span {
  color: var(--color-muted);
  font-weight: 400;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.tagline {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.sub {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Waitlist */
.waitlist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.cta-label {
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.form-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

input[type="email"] {
  flex: 1;
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  font-family: var(--font);
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  outline: none;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.15s;
}

input[type="email"]:focus {
  border-color: var(--color-accent);
}

button[type="submit"] {
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-family: var(--font);
  font-weight: 500;
  background: var(--color-accent);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

button[type="submit"]:hover {
  opacity: 0.85;
}

button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-message {
  font-size: 0.875rem;
  min-height: 1.25rem;
}

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

.form-message.error {
  color: var(--color-error);
}

/* Footer */
footer {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

footer p {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* Mobile */
@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
  }

  button[type="submit"] {
    width: 100%;
  }
}
