:root {
  color-scheme: only light;
  --bg-deep: #f7f4ec;
  --bg-forest: #f0f4ea;
  --bg-moss: #e3f0e4;
  --accent: #2f8f4e;
  --accent-soft: #3f9f5d;
  --ink: #102015;
  --ink-muted: rgba(16, 32, 21, 0.68);
  --card: rgba(255, 255, 255, 0.78);
  --stroke: rgba(16, 32, 21, 0.12);
  --shadow: 0 24px 60px rgba(11, 30, 19, 0.12);
}

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

body {
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: radial-gradient(circle at top left, #dff1de 0%, transparent 50%),
    radial-gradient(circle at 15% 85%, #cfe9d4 0%, transparent 55%),
    linear-gradient(135deg, var(--bg-forest), var(--bg-deep));
  color: var(--ink);
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(rgba(16, 32, 21, 0.18) 1px, transparent 0);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}

.bg-orbit {
  position: fixed;
  width: 640px;
  height: 640px;
  border-radius: 999px;
  border: 1px dashed rgba(16, 32, 21, 0.18);
  top: -220px;
  right: -160px;
  opacity: 0.5;
  animation: spin 18s linear infinite;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 56px;
  min-height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  animation: fadeUp 0.9s ease-out;
}

.logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(16, 32, 21, 0.18));
  animation: float 4.5s ease-in-out infinite;
}

.wordmark {
  height: 48px;
  object-fit: contain;
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero-title {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.4rem, 4.2vw, 4.2rem);
  line-height: 1.05;
  text-align: center;
  width: 100%;
  max-width: 980px;
  color: var(--ink);
}

.copy .em {
  color: var(--accent-soft);
  font-style: italic;
}

.pitch {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  animation: fadeUp 1s ease-out 0.1s both;
}

.pitch-video {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 20px 22px 22px;
  box-shadow: var(--shadow);
  width: min(900px, 100%);
  animation: fadeUp 1s ease-out 0.15s both;
}

.waitlist {
  margin: 6px auto 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

.waitlist .primary {
  text-decoration: none;
  display: inline-block;
}

.video-frame {
  margin-top: 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(245, 246, 239, 0.16);
  background: rgba(12, 24, 16, 0.08);
}

.video-frame video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #dfe8de;
}

.label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent-soft);
  margin-bottom: 10px;
}

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

.cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.primary {
  border: none;
  padding: 16px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #a2f2aa);
  color: #0a1a0f;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 18px 30px rgba(22, 93, 55, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary:disabled {
  cursor: not-allowed;
  opacity: 0.75;
  box-shadow: none;
  transform: none;
}

.primary:visited {
  color: #0a1a0f;
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(22, 93, 55, 0.4);
}

.hint {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.demo {
  animation: fadeUp 1s ease-out 0.2s both;
  width: min(900px, 100%);
}

.video-shell {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  border: 1px solid var(--stroke);
  padding: 22px;
  box-shadow: var(--shadow);
}

.video-placeholder {
  margin-top: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(16, 32, 21, 0.2);
  background: linear-gradient(145deg, rgba(227, 240, 228, 0.9), rgba(214, 232, 219, 0.95));
  padding: 32px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--ink-muted);
}

.video-placeholder .sub {
  font-size: 0.85rem;
  opacity: 0.7;
}

.meta {
  font-size: 0.95rem;
  color: var(--ink-muted);
  max-width: 580px;
  text-align: center;
  margin: auto auto 0;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 18, 12, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(11, 30, 19, 0.25);
  animation: fadeUp 0.35s ease;
}

.modal-title {
  font-family: "Instrument Serif", serif;
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.modal-subtitle {
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.modal-form input {
  border-radius: 12px;
  border: 1px solid var(--stroke);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  background: #ffffff;
  color: var(--ink);
}

.modal-form input:focus {
  outline: 2px solid rgba(63, 159, 93, 0.35);
  outline-offset: 2px;
}

.modal-message {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink-muted);
}

.modal-open {
  overflow: hidden;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(17, 37, 24, 0.92);
  color: #f5fff6;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  box-shadow: 0 18px 40px rgba(8, 20, 12, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .page {
    padding-top: 32px;
  }

  .brand {
    justify-content: center;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .cta {
    justify-content: center;
  }

  .meta {
    text-align: center;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
