:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #171717;
  --muted: #5f625f;
  --border: #ddd6c8;
  --accent: #176b5b;
  --accent-dark: #0e4037;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 24px 0;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  font-size: 1.1rem;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 96px;
}

.baby-pixel {
  width: 104px;
  height: 104px;
  margin-bottom: 18px;
  image-rendering: pixelated;
  animation: baby-bob 2.4s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
}

h2 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: 2.2rem;
  line-height: 1.1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.hero-copy {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.25rem;
}

.terminal {
  width: min(620px, 100%);
  margin: 8px 0 28px;
  overflow: hidden;
  border: 1px solid #1f2a37;
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 18px 60px rgba(17, 24, 39, 0.16);
}

.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
}

.terminal-bar span:nth-child(2) {
  background: #f59e0b;
}

.terminal-bar span:nth-child(3) {
  background: #22c55e;
}

.terminal pre {
  margin: 0;
  overflow-x: auto;
  padding: 18px;
  color: #e5e7eb;
  font: 0.98rem/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.terminal code span {
  color: #22c55e;
}

.waitlist-form {
  width: min(620px, 100%);
}

.waitlist-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.waitlist-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  outline: none;
}

.waitlist-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(23, 107, 91, 0.12);
}

.waitlist-form button {
  border: 0;
  cursor: pointer;
}

.waitlist-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

#waitlist-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--accent);
}

#waitlist-message.error {
  color: #9d2d20;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.site-footer {
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
}

@keyframes baby-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 64px 0 80px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .hero-copy {
    font-size: 1.1rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}
