/* ─────────────────────────────────────────────
   Design tokens
   ───────────────────────────────────────────── */
:root {
  --bg:          #0d0d12;
  --bg-card:     #14141c;
  --bg-card-border: rgba(255,255,255,0.07);
  --fg:          #e8e4dc;
  --fg-muted:    #7a7570;
  --accent:      #e8a83a;
  --accent-glow: rgba(232,168,58,0.18);
  --radius:      6px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Satoshi', system-ui, sans-serif;
}

/* ─────────────────────────────────────────────
   Reset & base
   ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─────────────────────────────────────────────
   Nav
   ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  background: rgba(13,13,18,0.8);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid rgba(232,168,58,0.4);
  border-radius: var(--radius);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.nav__cta:hover {
  background: rgba(232,168,58,0.08);
  border-color: var(--accent);
}

/* ─────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 100px;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__badge {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid rgba(232,168,58,0.3);
  border-radius: 999px;
  background: rgba(232,168,58,0.07);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero__headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero__subhead {
  font-size: 1.125rem;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 44px;
}

/* ─────────────────────────────────────────────
   Email form
   ───────────────────────────────────────────── */
.hero__form {
  margin-bottom: 16px;
}

.form__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 500px;
}

.form__input {
  flex: 1 1 220px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form__input::placeholder { color: var(--fg-muted); }

.form__input:focus {
  border-color: rgba(232,168,58,0.5);
  background: rgba(255,255,255,0.07);
}

.form__btn {
  position: relative;
  flex: 0 0 auto;
  padding: 14px 24px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #0d0d12;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  white-space: nowrap;
  overflow: hidden;
}

.form__btn:hover { opacity: 0.9; }
.form__btn:active { transform: scale(0.98); }
.form__btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-spinner {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  background: var(--accent);
}

.form__btn.loading .btn-text { opacity: 0; }
.form__btn.loading .btn-spinner {
  display: grid;
}

.btn-spinner::after {
  content: '';
  width: 18px; height: 18px;
  border: 2px solid rgba(13,13,18,0.3);
  border-top-color: #0d0d12;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.form__note {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 12px;
}

/* ─────────────────────────────────────────────
   Live waitlist counter
   ───────────────────────────────────────────── */
.waitlist-counter {
  font-size: 0.825rem;
  color: var(--accent);
  margin-top: 10px;
  opacity: 0.85;
}

/* ─────────────────────────────────────────────
   Success state
   ───────────────────────────────────────────── */
.hero__success {
  max-width: 500px;
}

.success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: rgba(232,168,58,0.12);
  border: 1px solid rgba(232,168,58,0.3);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.success__msg {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.success__sub {
  color: var(--fg-muted);
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

/* Position badge — "#247 in line" */
.success__position {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid rgba(232,168,58,0.3);
  border-radius: 999px;
  background: rgba(232,168,58,0.07);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

/* Share CTA */
.success__share {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.success__share-label {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.success__share-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}

.success__share-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ─────────────────────────────────────────────
   Glow
   ───────────────────────────────────────────── */
.hero__glow {
  position: absolute;
  top: -80px;
  right: -120px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ─────────────────────────────────────────────
   Features
   ───────────────────────────────────────────── */
.features {
  padding: 80px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.features__label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 40px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: calc(var(--radius) * 1.5);
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(232,168,58,0.2);
  transform: translateY(-2px);
}

.feature-card__icon {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--fg);
}

.feature-card__body {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────
   FAQ
   ───────────────────────────────────────────── */
.faq {
  padding: 80px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.faq__label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 40px;
}

.faq__list {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq__item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.faq__item:first-child {
  border-top: 1px solid rgba(255,255,255,0.07);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s;
}

/* Remove default marker in Safari/Firefox */
.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { display: none; }

.faq__question:hover {
  color: var(--accent);
}

.faq__chevron {
  flex-shrink: 0;
  color: var(--fg-muted);
  transition: transform 0.25s ease, color 0.2s;
  display: flex;
  align-items: center;
}

details[open] .faq__chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

details[open] .faq__question {
  color: var(--accent);
}

.faq__answer {
  padding-bottom: 20px;
}

.faq__answer p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 600px;
}

/* ─────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 36px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__link {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--fg);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ─────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding-top: 110px; padding-bottom: 64px; }
  .form__row { flex-direction: column; }
  .form__btn { width: 100%; justify-content: center; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .faq { padding: 60px 24px; }
}
