:root {
  --ink: #0d0c16;
  --dusk: #211a3d;
  --glow: #e8a45c;
  --glow-soft: #d98a6e;
  --cyan: #8fd8e0;
  --panel: rgba(232, 228, 250, 0.06);
  --panel-line: rgba(232, 228, 250, 0.16);
  --text-hi: #f2eefb;
  --text-mid: #bcb5d8;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/static/space-grotesk-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  margin: 0;
  color: var(--text-hi);
  font-family: var(--sans);
  line-height: 1.55;
  position: relative;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, var(--ink) 0%, var(--dusk) 55%, var(--ink) 100%);
  overflow: hidden;
}

.wrap { position: relative; z-index: 1; }

.scene-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.grid { animation: grid-drift 40s ease-in-out infinite alternate; }
.constellation { animation: stars-drift 50s ease-in-out infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  .grid, .constellation { animation: none; }
}

@keyframes grid-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

@keyframes stars-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-8px, 6px); }
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 3rem;
}

.mark { display: block; height: 40px; width: auto; margin-bottom: 2rem; }

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.6vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
}

h1 span { display: block; }

@media (min-width: 900px) {
  .hero { align-items: center; text-align: center; }
  .hero .sub { margin-inline: auto; }
  h1 { width: max-content; max-width: 92vw; text-align: center; }
  h1 span { white-space: nowrap; }
}

.sub {
  font-size: 1.15rem;
  color: var(--text-mid);
  margin: 0;
  max-width: 36ch;
}

.pillars {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
}

.pillar {
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  background: var(--panel);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.pillar:hover {
  border-color: var(--glow);
  box-shadow: 0 0 32px -8px rgba(232, 164, 92, 0.35);
}

.pillar-num {
  font-family: var(--mono);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--cyan);
  margin: 0;
  opacity: 0.7;
}

.pillar-label {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--glow);
  margin: 0.25rem 0 0.75rem;
}

.pillar-body { margin: 0; color: var(--text-hi); font-size: 0.98rem; }

.quiet {
  margin-top: 2.5rem;
  color: var(--text-mid);
  font-size: 0.95rem;
}

.teaser {
  display: block;
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  border-radius: 14px;
  border: 1px solid var(--panel-line);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease;
}

.teaser:hover { border-color: rgba(232, 164, 92, 0.5); }

.teaser-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--glow);
  margin-bottom: 0.4rem;
}

.teaser-title {
  display: block;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-hi);
}

.teaser-body {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-mid);
  font-size: 0.92rem;
}

.waitlist {
  margin-top: 3rem;
  padding: 1.75rem 1.5rem;
  border-radius: 20px;
  background: rgba(20, 17, 36, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--panel-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 60px -20px rgba(232, 164, 92, 0.2);
}

.waitlist h2 {
  font-family: var(--display);
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--text-mid); }

.field input[type="email"],
.field input[type="text"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--panel-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-hi);
  font-size: 1rem;
}

.field input::placeholder { color: #7d7597; }

.field input:focus {
  outline: 3px solid var(--glow);
  outline-offset: 1px;
}

.checkbox { display: flex; align-items: flex-start; gap: 0.5rem; }
.checkbox label { margin: 0; font-size: 0.9rem; }

.hp { position: absolute; left: -9999px; }

button {
  background: var(--glow);
  color: #241505;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 28px -6px rgba(232, 164, 92, 0.7);
}

button:focus { outline: 3px solid var(--cyan); outline-offset: 2px; }

.privacy { margin-top: 1rem; font-size: 0.8rem; color: #9b93b8; }

footer {
  margin-top: 3rem;
  color: var(--text-mid);
  font-size: 0.85rem;
}

.cryptic {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--glow-soft);
  margin: 0 0 0.75rem;
}

.cursor {
  display: inline-block;
  margin-left: 0.2rem;
  animation: blink 1.1s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.form-message {
  margin: 0 0 1rem;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.form-message--success { background: rgba(149, 231, 44, 0.14); color: #b7f27a; }
.form-message--error { background: rgba(232, 100, 60, 0.16); color: #ffb59a; }

@supports (animation-timeline: view()) {
  .pillar, .teaser, .waitlist {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .pillar, .teaser, .waitlist { animation: none; }
}
