*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0d1117;
  --bg-2: #131929;
  --fg: #faf8f5;
  --fg-muted: #a8b4c4;
  --amber: #e8a030;
  --amber-dim: #b87a1f;
  --amber-glow: rgba(232, 160, 48, 0.15);
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, .display { font-family: 'Fraunces', serif; font-weight: 600; }
a { color: var(--amber); text-decoration: none; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232,160,48,0.1);
}
.nav-logo { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 700; color: var(--fg); letter-spacing: -0.02em; }
.nav-logo span { color: var(--amber); }
.nav-signin { font-size: 0.85rem; color: var(--fg-muted); transition: color 0.2s; }
.nav-signin:hover { color: var(--fg); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 4rem;
  max-width: 760px;
  margin: 0 auto;
  gap: 2rem;
}
.hero-badge {
  display: inline-block;
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--amber); font-weight: 500;
  border: 1px solid var(--amber-dim);
  padding: 0.35rem 0.9rem; border-radius: 2rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.hero h1 em { font-style: italic; color: var(--amber); font-weight: 300; }
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.7;
  font-weight: 300;
}

/* EMAIL FORM */
.waitlist-form {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 480px;
  margin-top: 0.5rem;
}
.waitlist-form input[type="email"] {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-form input[type="email"]::placeholder { color: var(--fg-muted); opacity: 0.6; }
.waitlist-form input[type="email"]:focus { border-color: rgba(232,160,48,0.5); }
.waitlist-form button {
  background: var(--amber);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
}
.waitlist-form button:hover { background: #f0b045; transform: translateY(-1px); }
.waitlist-form button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* SUCCESS STATE */
.success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
}
.success-state.visible { display: flex; }
.success-state h3 { font-size: 1.5rem; color: var(--fg); }
.success-state p { color: var(--fg-muted); font-size: 0.95rem; }

/* REFERRAL SHARE BLOCK (appears inside .success-state after submit) */
.referral-share {
  width: 100%;
  max-width: 480px;
  margin-top: 1rem;
  border-top: 1px solid rgba(232,160,48,0.15);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.referral-share h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--fg);
  text-align: center;
  margin: 0;
  letter-spacing: -0.01em;
}
.referral-blurb { color: var(--fg-muted); font-size: 0.88rem; text-align: center; }
.referral-link-row {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
  width: 100%;
}
.referral-link-row .referral-url {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  min-width: 0;
}
.referral-link-row .referral-copy,
.referral-actions button,
.referral-actions a {
  background: var(--amber);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  transition: all 0.2s;
  line-height: 1.2;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.referral-link-row .referral-copy:hover,
.referral-actions button:hover,
.referral-actions a:hover { background: #f0b045; transform: translateY(-1px); }
.referral-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.25rem;
}
.referral-status {
  color: var(--amber);
  font-size: 0.85rem;
  min-height: 1.2em;
  text-align: center;
}

/* TRUST SIGNALS */
.trust-row {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1.5rem 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
}
.trust-item svg { color: var(--amber); flex-shrink: 0; }

/* COMPETITIVE HOOK */
.hook-section {
  padding: 4rem 2rem;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.hook-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.hook-section p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.compare-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--amber);
  font-weight: 500;
}
.compare-link:hover { text-decoration: underline; }

/* FOOTER */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem;
  text-align: center;
}
.footer-logo { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 700; }
.footer-logo span { color: var(--amber); }
.footer-copy { font-size: 0.78rem; color: var(--fg-muted); margin-top: 0.5rem; }

/* GRID BG */
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(232,160,48,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,160,48,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-content { position: relative; z-index: 1; }

/* ERROR */
.form-error {
  font-size: 0.82rem;
  color: #f87171;
  margin-top: 0.5rem;
  display: none;
}
.form-error.visible { display: block; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .waitlist-form { flex-direction: column; }
  .waitlist-form button { width: 100%; }
  .trust-row { gap: 1.25rem; }
  nav { padding: 1rem 1.5rem; }
  .social-proof { padding: 0 0.5rem; }
  .social-proof-footer { padding: 3rem 1rem; }
  .exit-popup-card { padding: 1.5rem; }
  .referral-link-row { flex-direction: column; }
  .referral-link-row .referral-copy { width: 100%; }
}

/* URGENCY LINE */
.waitlist-count {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0.5rem 0;
}

/* SOCIAL PROOF */
.social-proof {
  width: 100%;
  max-width: 560px;
  text-align: left;
  margin: 0 auto;
}
.social-proof-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.social-proof-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.social-proof-list li {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.55;
  font-weight: 300;
  padding-left: 1rem;
  border-left: 2px solid rgba(232,160,48,0.25);
}
.social-proof-list li strong { color: var(--fg); font-weight: 500; }
.social-proof-list li em { color: var(--fg-muted); font-style: italic; }

/* SOCIAL PROOF FOOTER (testimonials block below email form) */
.social-proof-footer {
  padding: 4rem 2rem;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.spf-headline {
  font-size: 1.25rem;
  color: var(--fg);
  font-weight: 500;
}
.spf-headline span { color: var(--amber); font-weight: 600; }
.spf-sub {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0.75rem 0 2rem;
}
.spf-quotes {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.spf-quote {
  border-left: 2px solid var(--amber-dim);
  padding: 0.5rem 0 0.5rem 1rem;
  text-align: left;
}
.spf-quote-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.55;
}
.spf-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-style: normal;
}

/* EXIT-INTENT POPUP */
.exit-popup[hidden] { display: none !important; }
.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.exit-popup-card {
  background: var(--bg-2);
  border: 1px solid rgba(232, 160, 48, 0.3);
  border-radius: 12px;
  padding: 2rem;
  max-width: 440px;
  width: calc(100% - 2rem);
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.exit-popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--fg-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  transition: color 0.2s;
}
.exit-popup-close:hover { color: var(--amber); }
.exit-popup-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  padding-right: 1.5rem;
}
.exit-popup-card > p:nth-of-type(1) {
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
  font-weight: 300;
}