/* Landing page only. The legal pages use styles.css, and the two are kept
   separate so changes here cannot disturb them. Palette mirrors lib/theme.ts. */
:root {
  --dark: #14100c;
  --card: #1f1813;
  --cream: #f3e9d8;
  --amber: #e0a455;
  --amber-light: #f4c074;
  --muted: #a18a72;
  --border: #3a2d22;
  --on-amber: #2a1c0c;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--dark);
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* A slow amber glow behind the headline, so the page is not a flat black box */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60rem 40rem at 50% -10%, rgba(224, 164, 85, 0.13), transparent 70%),
    radial-gradient(40rem 30rem at 85% 15%, rgba(200, 119, 46, 0.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links { display: flex; gap: 24px; }

.nav-links a {
  color: rgba(243, 233, 216, 0.65);
  text-decoration: none;
  font-size: 15px;
}

.nav-links a:hover { color: var(--cream); }

/* Hero */
main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 40px 0 80px;
}

.eyebrow {
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin: 0 0 22px;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(44px, 9vw, 86px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--cream);
}

.lede {
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.55;
  color: rgba(243, 233, 216, 0.72);
  max-width: 34rem;
  margin: 0 0 40px;
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--amber); color: var(--on-amber); }
.btn-primary:hover { background: var(--amber-light); }

.btn-ghost { border-color: var(--border); color: var(--cream); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-light); }

/* Waitlist form */
.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;
}

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

.waitlist { max-width: 34rem; }

.field-row { display: flex; flex-wrap: wrap; gap: 12px; }

.waitlist input[type="email"] {
  flex: 1 1 16rem;
  min-width: 0;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 15px 22px;
  color: var(--cream);
  font-size: 16px;
  font-family: inherit;
}

.waitlist input[type="email"]::placeholder { color: rgba(161, 138, 114, 0.8); }

.waitlist input[type="email"]:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(0, 0, 0, 0.35);
}

.waitlist button { border: 0; cursor: pointer; font-family: inherit; }
.waitlist button:disabled { opacity: 0.6; cursor: default; }

.platforms {
  border: 0;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.platforms label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(243, 233, 216, 0.72);
  font-size: 15px;
  cursor: pointer;
}

.platforms input { accent-color: var(--amber); width: 17px; height: 17px; }

.form-msg { margin: 14px 0 0; font-size: 15px; min-height: 1.4em; }
.form-msg.ok { color: var(--amber-light); }
.form-msg.err { color: #e08a5a; }

/* Once submitted the inputs are out of the way and only the message remains */
.waitlist.done .field-row,
.waitlist.done .platforms { display: none; }

.note {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 34rem;
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 24px 0 34px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

.footer-links a {
  color: rgba(243, 233, 216, 0.45);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover { color: var(--cream); }

.copyright { color: rgba(243, 233, 216, 0.35); font-size: 13px; }

@media (max-width: 560px) {
  nav { padding: 20px 0; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 14px; }
  main { padding: 20px 0 56px; }
  .btn { flex: 1 1 100%; }
}
