/* ============================================
   HARVEY — WAITLIST LANDING PAGE
   Clean. Premium. Convert.
   ============================================ */

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(0, 0, 0, 0.08);
  color: #1a1a1a;
}

.cta-section ::selection,
.cta-section *::selection,
.footer ::selection,
.footer *::selection {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* ---------- VARIABLES ---------- */
:root {
  --black: #000000;
  --white: #ffffff;
  --off-white: #faf9f7;
  --cream: #f5f3f0;
  --warm-gray: #edebe7;

  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-muted: #999999;

  --border-light: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.12);

  --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1140px;
  --narrow-width: 680px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- BASE ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
}

/* ---------- CONTAINERS ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: var(--narrow-width);
  margin: 0 auto;
  padding: 0 2rem;
}


/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  background: rgba(255, 255, 255, 0.0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-light);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link--cta {
  color: var(--white);
}

.nav-link--cta:hover {
  color: var(--white);
}



/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  line-height: 1;
}

.btn--sm {
  font-size: 0.8125rem;
  padding: 0.5rem 1.25rem;
}

.btn--lg {
  font-size: 0.9375rem;
  padding: 0.875rem 2rem;
}

.btn--full {
  width: 100%;
  max-width: 280px;
}

.btn--primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn--primary:hover {
  background: #222;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn--white {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn--submit {
  border-radius: 0 9999px 9999px 0;
  padding: 0.875rem 1.75rem;
  flex-shrink: 0;
}

.btn--submit .btn-loading {
  display: none;
}

.btn--submit.loading .btn-text {
  display: none;
}

.btn--submit.loading .btn-loading {
  display: flex;
}


/* ============================================
   FORM
   ============================================ */
.form-input-wrap {
  display: flex;
  align-items: stretch;
  border-radius: 9999px;
  border: 1px solid var(--border-medium);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  max-width: 480px;
  margin: 0 auto;
}

.form-input-wrap:focus-within {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.form-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-primary);
  background: transparent;
  min-width: 0;
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* Dark variant */
.form-input-wrap--dark {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.form-input-wrap--dark:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.form-input--dark {
  color: var(--white);
}

.form-input--dark::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Success state */
.form-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2d8a4e;
  margin-top: 1rem;
}

.form-success--dark {
  color: #6ee7a0;
}

.form-success.visible {
  display: flex;
}


/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 10rem 2rem 8rem;
  text-align: center;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.015) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}



/* Title */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
}

/* Subtitle */
.hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

/* Proof */
.hero-proof {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* Hero Video */
.hero-video-wrap {
  max-width: var(--max-width);
  margin: 4rem auto 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
  line-height: 0;
}

.hero-video {
  width: 100%;
  height: auto;
  display: block;
}


/* ============================================
   PROBLEM STATEMENT
   ============================================ */
.problem {
  padding: 8rem 2rem;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--white);
}

.problem-content {
  text-align: center;
}

.problem-text {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

.problem-text em {
  color: var(--text-primary);
  font-style: italic;
}


/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  padding: 9rem 2rem;
  background: var(--white);
}

.section-intro {
  margin-bottom: 5rem;
  max-width: 460px;
}

.section-intro--centered {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.section-label--light {
  color: rgba(255, 255, 255, 0.4);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Product Showcase — stacked layout */
.showcase {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.showcase-step {
  display: flex;
  flex-direction: column;
}

.showcase-step-header {
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.step-number {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
}

.step-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.step-desc {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.showcase-image {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  line-height: 0;
}

.showcase-image:hover {
  transform: scale(1.008);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
}




/* ============================================
   USE CASES
   ============================================ */
.use-cases {
  padding: 7rem 2rem;
  background: var(--white);
  border-top: 1px solid var(--border-light);
}

.use-cases-header {
  margin-bottom: 4rem;
  max-width: 400px;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.use-case {
  padding: 2rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  transition: all 0.3s var(--ease);
}

.use-case:hover {
  border-color: var(--border-medium);
}

.use-case-title {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.use-case-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-secondary);
}


/* ============================================
   BOTTOM CTA
   ============================================ */
.cta-section {
  padding: 8rem 2rem;
  background: #0a0a0a;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.cta-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 1.5rem;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 3.5rem 2rem 2.5rem;
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--white);
  display: block;
  margin-bottom: 0.625rem;
}

.footer-tagline {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.35);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

.footer-legal-link {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: rgba(255, 255, 255, 0.6);
}


/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* Stagger for siblings */
.showcase .showcase-step:nth-child(1) {
  transition-delay: 0s;
}

.showcase .showcase-step:nth-child(2) {
  transition-delay: 0.1s;
}

.showcase .showcase-step:nth-child(3) {
  transition-delay: 0.15s;
}



.use-cases-grid .use-case:nth-child(1) {
  transition-delay: 0s;
}

.use-cases-grid .use-case:nth-child(2) {
  transition-delay: 0.08s;
}

.use-cases-grid .use-case:nth-child(3) {
  transition-delay: 0.16s;
}

.use-cases-grid .use-case:nth-child(4) {
  transition-delay: 0.24s;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .nav-link--cta {
    display: none;
  }
}

@media (max-width: 768px) {

  .nav {
    padding: 0 1rem;
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding: 8rem 1.5rem 5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
  }

  .problem {
    padding: 5rem 1.5rem;
  }

  .how-it-works {
    padding: 6rem 1.5rem;
  }

  .hero-video-wrap {
    margin-top: 2.5rem;
    border-radius: 10px;
  }

  .showcase {
    gap: 5rem;
  }

  .showcase-image {
    border-radius: 10px;
  }


  .use-cases {
    padding: 5rem 1.5rem;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 5rem 1.5rem;
  }

  .footer {
    padding: 2.5rem 1.5rem 2rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  /* Form responsive */
  .form-input-wrap {
    flex-direction: column;
    border-radius: 12px;
    max-width: 100%;
  }

  .form-input-wrap--dark {
    border-radius: 12px;
  }

  .form-input {
    padding: 1rem 1.25rem;
    text-align: center;
  }

  .btn--submit {
    border-radius: 0 0 12px 12px;
    padding: 0.875rem 1.5rem;
    width: 100%;
  }

  .container,
  .container-narrow {
    padding: 0 1.5rem;
  }
}

/* ---------- SMALL SCREENS ---------- */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}