:root {
  --bg: #0a0a0a;
  --ink: #f5f7fa;
  --headline: #f5f5f7;
  --subhead: #ababb5;
  --micro: #73737d;
  --nav-meta: #a6a6b0;
  --footer-copy: #6b6b75;
  --gold: #f6b332;
  --gold-ink: #0a0a0a;
  --eyebrow-bg: #211f1c;
  --form-bg: #1c1c1f;
  --form-border: #3b3b40;
  --input-placeholder: #80808a;
  --radius: 14px;
  --max-width: 1440px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.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;
}

/* Ambient glow behind hero — colors match the Figma "Gold glow" / "Purple glow" radial assets exactly */
.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(560px 560px at 34% 46%, rgba(107, 64, 242, 0.32), transparent 70%),
    radial-gradient(720px 720px at 40% 56%, rgba(246, 179, 50, 0.22), transparent 70%);
  background-size: 130% 130%;
  animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { background-position: 0% 0%, 100% 100%; }
  100% { background-position: 12% 8%, 88% 92%; }
}

.nav, main, .site-footer { position: relative; z-index: 1; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 28px clamp(24px, 5vw, 96px) 0;
}

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { height: 26px; width: auto; display: block; }

.nav-social {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nav-meta);
  white-space: nowrap;
}

.nav-social a {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nav-social a:hover { color: var(--gold); }

/* Entrance animation — CSS-only so content can never be stuck invisible if JS fails to load */
.reveal {
  animation: reveal-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nav .logo.reveal { animation-delay: 0s; }
.nav .nav-social.reveal { animation-delay: 0.05s; }
.eyebrow.reveal { animation-delay: 0.1s; }
.headline.reveal { animation-delay: 0.22s; }
.subhead.reveal { animation-delay: 0.34s; }
.waitlist-form.reveal { animation-delay: 0.46s; }
.form-status.reveal { animation-delay: 0.56s; }
.hero-media.reveal { animation-delay: 0.3s; }

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

/* Hero */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 64px clamp(24px, 5vw, 64px) 40px;
}

.hero-copy {
  max-width: 620px;
  flex: 1 1 480px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--eyebrow-bg);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(246, 179, 50, 0.9);
  flex-shrink: 0;
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px rgba(246, 179, 50, 0.7); opacity: 1; }
  50% { box-shadow: 0 0 14px rgba(246, 179, 50, 1); opacity: 0.75; }
}

.headline {
  margin: 0 0 24px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.024em;
  color: var(--headline);
  max-width: 590px;
}

/* The design wraps this as one flowing sentence at 590px — no manual break on desktop */
.headline-break { display: none; }

.subhead {
  margin: 0 0 40px;
  font-size: 17px;
  line-height: 27px;
  color: var(--subhead);
  max-width: 520px;
}

.waitlist-form {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 530px;
  height: 64px;
  padding: 6px;
  background: var(--form-bg);
  border: 1px solid var(--form-border);
  border-radius: 16px;
}

.email-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  padding: 0 0 0 18px;
}

.email-input::placeholder { color: var(--input-placeholder); }

.email-input:focus {
  outline: none;
}

.waitlist-form:focus-within {
  border-color: rgba(246, 179, 50, 0.5);
}

.email-input.invalid {
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.6);
  border-radius: 10px;
}

.cta-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  height: 100%;
  padding: 0 20px;
  border-radius: 12px;
  border: none;
  background: var(--gold);
  color: var(--gold-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.cta-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.cta-button:hover::after { left: 130%; }
.cta-button:hover { filter: brightness(1.06); }
.cta-button:active { transform: scale(0.98); }
.cta-button:disabled { cursor: not-allowed; filter: brightness(0.85); }

.cta-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(10, 10, 10, 0.35);
  border-top-color: var(--gold-ink);
  animation: spin 0.7s linear infinite;
}

.cta-button.loading .cta-spinner { display: inline-block; }
.cta-button.loading .cta-label { display: none; }

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

.form-status {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--micro);
  min-height: 18px;
}

.form-status.success { color: #7cd992; }
.form-status.error { color: #f08a8a; }

/* Hero media */
.hero-media {
  flex: 1 1 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 460px;
}

.phone-mockup {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 60px rgba(246, 179, 50, 0.08));
  animation: float 5s ease-in-out infinite;
}

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

/* Thank-you page */
.thanks {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px clamp(24px, 5vw, 64px);
}

.thanks-copy {
  max-width: 560px;
  text-align: center;
}

.thanks-copy .subhead { margin-left: auto; margin-right: auto; }

.text-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 179, 50, 0.4);
  padding-bottom: 1px;
}

.text-link:hover { border-bottom-color: var(--gold); }

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 24px clamp(24px, 5vw, 96px) 32px;
  font-size: 12px;
  color: var(--footer-copy);
}

.site-footer .tagline {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Responsive */
@media (max-width: 860px) {
  .nav { padding-top: 24px; }
  .hero {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    flex: none;
    text-align: center;
    padding-top: 24px;
    padding-bottom: 40px;
    gap: 28px;
  }
  .hero-copy { max-width: 100%; flex: none; order: 1; }
  .headline { max-width: 100%; }
  .subhead { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-media { max-width: 220px; flex: none; order: 2; margin: 0 auto; opacity: 0.9; }
  .waitlist-form { max-width: 100%; margin: 0 auto; }
  .eyebrow {
    font-size: 11px;
    padding: 6px 12px;
    margin-bottom: 22px;
  }
  .eyebrow-dot { width: 6px; height: 6px; }
}

@media (max-width: 480px) {
  /* ~8vw keeps "Your next edit starts" on one line, and the break is re-enabled
     here since natural wrapping at this width would otherwise strand "starts" alone */
  .headline { font-size: clamp(24px, 8vw, 40px); }
  .headline-break { display: initial; }
  /* On phones the merged pill becomes a clearly-bordered field with a full-width button below */
  .waitlist-form {
    flex-direction: column;
    height: auto;
    padding: 0;
    gap: 10px;
    background: none;
    border: none;
  }
  .email-input {
    flex: none;
    width: 100%;
    height: 56px;
    padding: 0 18px;
    background: var(--form-bg);
    border: 1px solid var(--form-border);
    border-radius: 14px;
  }
  .email-input:focus { border-color: rgba(246, 179, 50, 0.5); }
  .email-input.invalid {
    box-shadow: none;
    border-color: rgba(239, 68, 68, 0.6);
    border-radius: 14px;
  }
  .cta-button {
    width: 100%;
    height: 56px;
    border-radius: 14px;
    font-size: 15px;
  }
  .eyebrow {
    font-size: 10.5px;
    letter-spacing: 0.04em;
  }
  .nav-social { gap: 14px; }
  .nav-social span { display: none; }
  .nav-social a { font-size: 14px; }
  .site-footer { flex-direction: column; gap: 6px; align-items: flex-start; }
}

@media (max-width: 400px) {
  .hero-media { max-width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  .glow,
  .eyebrow-dot,
  .phone-mockup,
  .cta-button::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
