/* ============ Design tokens ============ */
:root {
  --ink: #170B13;
  --ink-soft: #22121C;
  --ink-card: #2A1621;
  --cream: #F3E5D8;
  --cream-dim: rgba(243, 229, 216, 0.62);
  --cream-faint: rgba(243, 229, 216, 0.14);
  --cream-hair: rgba(243, 229, 216, 0.09);
  --rose: #CE6C81;
  --rose-soft: rgba(206, 108, 129, 0.16);
  --peach: #FFCFA2;
  --glow: #FF79C9;
  --white: #FFFFFF;

  --font-display: 'Fustat', sans-serif;
  --font-body: 'Red Hat Text', sans-serif;

  --container: 1120px;
}

/* ============ Reset ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

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

a { color: inherit; text-decoration: none; }

/* ============ Buttons ============ */
.btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--rose);
  color: var(--ink);
}
.btn-primary:hover { background: #dc7c91; }

.btn-ghost {
  background: transparent;
  border-color: var(--cream-faint);
  color: var(--cream);
  padding: 0.65rem 1.35rem;
  font-size: 0.9rem;
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); }

.btn:disabled { opacity: 0.6; cursor: default; }

/* ============ Typography ============ */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.1rem;
}

.section-heading {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--cream);
  margin-bottom: 3rem;
}

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 11, 19, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-hair);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  border-radius: 8px;
}

.brand-name {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--cream);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 5.5rem 1.5rem 0;
  overflow: hidden;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero-headline {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.12;
  color: var(--cream);
  margin-bottom: 1.6rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--cream-dim);
  max-width: 560px;
  margin: 0 auto 2.6rem;
}

.waitlist-form {
  display: flex;
  gap: 0.6rem;
  max-width: 460px;
  margin: 0 auto;
}

.email-input {
  flex: 1;
  min-width: 0;
  background: var(--ink-soft);
  border: 1px solid var(--cream-faint);
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--cream);
}

.email-input::placeholder { color: rgba(243, 229, 216, 0.35); }

.email-input:focus {
  outline: none;
  border-color: var(--rose);
}

.form-microcopy {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: rgba(243, 229, 216, 0.45);
}

.form-microcopy.is-success { color: var(--rose); }
.form-microcopy.is-error { color: #E38C8C; }

/* Wave signature */
.wave-wrap {
  margin-top: 4.5rem;
  line-height: 0;
}

.wave-svg {
  width: 100%;
  height: auto;
  display: block;
}

.wave-path {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: draw-wave 2.2s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
}

@keyframes draw-wave {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wave-path { animation: none; stroke-dashoffset: 0; }
}

/* ============ Features ============ */
.features {
  padding: 6rem 1.5rem;
}

.features-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--ink-card);
  border: 1px solid var(--cream-hair);
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--rose-soft);
  color: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.65rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--cream-dim);
}

/* ============ How it works ============ */
.how {
  padding: 3rem 1.5rem 6rem;
}

.how-inner {
  max-width: 720px;
  margin: 0 auto;
}

.how .eyebrow, .how .section-heading { text-align: left; }

.steps {
  list-style: none;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--cream-hair);
}

.step {
  display: flex;
  gap: 1.6rem;
  padding-bottom: 2.4rem;
  position: relative;
}

.step:last-child { padding-bottom: 0; }

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink-card);
  border: 1px solid var(--cream-hair);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  color: var(--rose);
  position: relative;
  z-index: 1;
}

.step-body h4 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 0.3rem;
}

.step-body p {
  font-size: 0.92rem;
  color: var(--cream-dim);
}

/* ============ Second CTA band ============ */
.cta-band {
  margin: 0 1.5rem 6rem;
  background: linear-gradient(135deg, var(--ink-card), var(--ink-soft));
  border: 1px solid var(--cream-hair);
  border-radius: 28px;
  padding: 4.5rem 2rem;
  text-align: center;
}

.cta-inner { max-width: 520px; margin: 0 auto; }

.cta-headline {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  color: var(--cream);
  margin-bottom: 0.8rem;
}

.cta-sub {
  color: var(--cream-dim);
  font-size: 1rem;
  margin-bottom: 2.2rem;
}

.waitlist-form-alt { max-width: 440px; }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--cream-hair);
  padding: 2.6rem 1.5rem;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(243, 229, 216, 0.4);
  margin-top: 0.1rem;
}

.footer-links {
  display: flex;
  gap: 1.6rem;
  font-size: 0.88rem;
  color: var(--cream-dim);
}

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

.footer-copy {
  font-size: 0.8rem;
  color: rgba(243, 229, 216, 0.35);
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .features-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero { padding-top: 3.5rem; }
  .waitlist-form, .waitlist-form-alt {
    flex-direction: column;
  }
  .btn-primary { width: 100%; }
  .nav-cta { padding: 0.55rem 1rem; font-size: 0.82rem; }
  .cta-band { padding: 3rem 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}