/* ============================================
   milli — Landing Page Styles
   Design language: warm, organic, confident
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Ground */
  --cream: #FAF6F0;
  --cream-deep: #F0EAE0;

  /* Text */
  --text-primary: #2D2420;
  --text-secondary: #6B5E55;
  --text-tertiary: #9B8E85;

  /* Semantic: Movement — botanical, alive */
  --sage: #829E78;
  --sage-light: #ECF1E9;
  --sage-dark: #4E6646;

  /* Semantic: Nutrition — honey, grain, sustenance */
  --amber: #CDA045;
  --amber-light: #F9F1DE;
  --amber-dark: #96712E;

  /* Semantic: Cycle */
  --lilac: #8E7BA8;
  --lilac-light: #EEEAF4;
  --lilac-dark: #5C4D6E;

  /* Semantic: Hormonal */
  --rose: #B07878;
  --rose-light: #F4E6E6;
  --rose-dark: #7A4F4F;

  /* Dark warmth */
  --dark-warm: #2D2420;
  --dark-warm-surface: #3D3430;

  /* Shadows */
  --shadow-soft: 0 2px 24px rgba(45, 36, 32, 0.06);
  --shadow-card: 0 4px 32px rgba(45, 36, 32, 0.08);

  /* Radii */
  --radius-card: 14px;
  --radius-pill: 100px;

  /* Type */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  /* Content width */
  --content-max: 1100px;
  --content-narrow: 720px;
}


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

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

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

input, button {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}


/* --- Typography --- */
.t-serif {
  font-family: var(--font-serif);
}

.t-sans {
  font-family: var(--font-sans);
}

/* The highlight mechanic — lilac underline on key words */
.highlight {
  background-image: linear-gradient(
    transparent 60%,
    rgba(142, 123, 168, 0.25) 60%,
    rgba(142, 123, 168, 0.25) 90%,
    transparent 90%
  );
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 0 2px;
}

.highlight.is-visible {
  background-size: 100% 100%;
}

.highlight--rose {
  background-image: linear-gradient(
    transparent 60%,
    rgba(176, 120, 120, 0.25) 60%,
    rgba(176, 120, 120, 0.25) 90%,
    transparent 90%
  );
}

.highlight--amber {
  background-image: linear-gradient(
    transparent 60%,
    rgba(196, 154, 60, 0.25) 60%,
    rgba(196, 154, 60, 0.25) 90%,
    transparent 90%
  );
}

.highlight--sage {
  background-image: linear-gradient(
    transparent 60%,
    rgba(122, 148, 115, 0.25) 60%,
    rgba(122, 148, 115, 0.25) 90%,
    transparent 90%
  );
}


/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--content-narrow);
}

section {
  position: relative;
}


/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 300ms; }


/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.nav.is-scrolled {
  background-color: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(45, 36, 32, 0.04);
}

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

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.nav__cta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background-color: var(--text-primary);
  color: var(--cream);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45, 36, 32, 0.15);
}

.nav__cta:active {
  transform: translateY(0);
}


/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.hero__bg-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
}

.hero__bg-shape--1 {
  top: 10%;
  right: -10%;
  width: 500px;
  height: 500px;
}

.hero__bg-shape--2 {
  bottom: 5%;
  left: -8%;
  width: 400px;
  height: 400px;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: 680px;
  margin-bottom: var(--space-lg);
}

.hero__answer {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-lg);
}

.hero__answer em {
  font-style: normal;
  color: var(--text-primary);
  font-weight: 500;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  background-color: var(--rose);
  color: var(--cream);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero__cta:hover {
  background-color: var(--rose-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(176, 120, 120, 0.2);
}

.hero__cta:active {
  transform: translateY(0);
  box-shadow: none;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--text-tertiary), transparent);
  animation: scroll-drift 2s ease-in-out infinite;
}

@keyframes scroll-drift {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); transform-origin: top; }
}


/* ============================================
   DISCONNECT
   ============================================ */
.disconnect {
  padding: var(--space-2xl) 0;
}

.disconnect__list {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.disconnect__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.4;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(45, 36, 32, 0.06);
}

.disconnect__item:last-child {
  border-bottom: none;
}

.disconnect__dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.45em;
  /* Slightly irregular via box-shadow trick */
  position: relative;
}

.disconnect__dot--sage { background-color: var(--sage); }
.disconnect__dot--amber { background-color: var(--amber); }
.disconnect__dot--rose { background-color: var(--rose); }
.disconnect__dot--lilac { background-color: var(--lilac); }

.disconnect__conclusion {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.35;
  color: var(--text-primary);
  max-width: 20ch;
}

.disconnect__conclusion span {
  color: var(--text-secondary);
}


/* ============================================
   SYNTHESIS
   ============================================ */
.synthesis {
  padding: var(--space-xl) 0 var(--space-2xl);
  text-align: center;
}

/* The organic SVG wash — sized and spaced */
.synthesis__wash {
  width: 100%;
  max-width: 520px;
  height: 24px;
  margin: var(--space-lg) auto var(--space-md);
  opacity: 0.7;
}

.synthesis__brand {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

/* Cluster: pillars + connected sit tight together — one thought */
.synthesis__cluster {
  margin-bottom: var(--space-lg);
}

/* Pillars in sans-serif — functional voice, categorical labels */
.synthesis__pillars {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.6;
  margin-bottom: 6px;
}

.synthesis__pillars .pillar-nutrition { color: var(--amber-dark); }
.synthesis__pillars .pillar-movement { color: var(--sage-dark); }
.synthesis__pillars .pillar-rest { color: var(--lilac-dark); }
.synthesis__pillars .pillar-cycle { color: var(--rose-dark); }

/* "Connected." in serif — the editorial payoff */
.synthesis__connected {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.synthesis__description {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}


/* ============================================
   INTELLIGENCE
   ============================================ */
.intelligence {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.intelligence__header {
  margin-bottom: var(--space-lg);
}

.intelligence__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.intelligence__subtitle {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-secondary);
}

.intelligence__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .intelligence__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Journal annotation card */
.insight-card {
  background: var(--cream);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 6px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(45, 36, 32, 0.1);
}

/* Left-edge color bar — the companion speaking indicator */
.insight-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 0 2px 2px 0;
}

.insight-card--amber::before { background-color: var(--amber); }
.insight-card--sage::before { background-color: var(--sage); }
.insight-card--rose::before { background-color: var(--rose); }
.insight-card--lilac::before { background-color: var(--lilac); }

/* Subtle semantic tint on card backgrounds */
.insight-card--amber { background: linear-gradient(135deg, var(--amber-light), var(--cream)); }
.insight-card--sage { background: linear-gradient(135deg, var(--sage-light), var(--cream)); }
.insight-card--rose { background: linear-gradient(135deg, #F8F0F0, var(--cream)); }
.insight-card--lilac { background: linear-gradient(135deg, #F3F0F6, var(--cream)); }

.insight-card__trigger {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.3;
}

.insight-card--amber .insight-card__trigger { color: var(--amber-dark); }
.insight-card--sage .insight-card__trigger { color: var(--sage-dark); }
.insight-card--rose .insight-card__trigger { color: var(--rose-dark); }
.insight-card--lilac .insight-card__trigger { color: var(--lilac-dark); }

.insight-card__body {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
}


/* ============================================
   NOT (dark section)
   ============================================ */
.not-section {
  background-color: var(--dark-warm);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

/* Smooth warm gradient into dark section */
.not-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(45, 36, 32, 0), var(--dark-warm));
  pointer-events: none;
}

.not-section__inner {
  position: relative;
  z-index: 1;
}

.not-section__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.not-section__item {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.35;
  color: var(--cream);
  opacity: 0.85;
  max-width: 22ch;
}

.not-section__item em {
  font-style: normal;
  opacity: 1;
  color: var(--cream);
}

/* Subtle warm glow in the dark section */
.not-section__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  pointer-events: none;
}

.not-section__glow--1 {
  background: var(--rose);
  top: -100px;
  right: -50px;
}

.not-section__glow--2 {
  background: var(--lilac);
  bottom: -100px;
  left: -50px;
}


/* ============================================
   WAITLIST CTA
   ============================================ */
.waitlist {
  padding: var(--space-2xl) 0;
  text-align: center;
}

.waitlist__headline {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: var(--space-lg);
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.waitlist__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 420px;
  margin: 0 auto;
  align-items: stretch;
}

@media (min-width: 520px) {
  .waitlist__form {
    flex-direction: row;
    align-items: center;
  }
}

.waitlist__input {
  flex: 1;
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(45, 36, 32, 0.12);
  background: var(--cream);
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist__input::placeholder {
  color: var(--text-tertiary);
}

.waitlist__input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(176, 120, 120, 0.1);
}

.waitlist__submit {
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  background-color: var(--rose);
  color: var(--cream);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.waitlist__submit:hover {
  background-color: var(--rose-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(176, 120, 120, 0.2);
}

.waitlist__submit:active {
  transform: translateY(0);
}

.waitlist__note {
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* Success state */
.waitlist__success {
  display: none;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--sage-dark);
}

.waitlist__form.is-submitted + .waitlist__note {
  display: none;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--space-lg) 0;
  background-color: var(--cream-deep);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
}

.footer__tagline {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-tertiary);
}


/* ============================================
   Organic background shapes (reusable)
   ============================================ */
.organic-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}


/* ============================================
   Responsive fine-tuning
   ============================================ */
@media (min-width: 768px) {
  :root {
    --space-md: 32px;
    --space-lg: 64px;
    --space-xl: 120px;
    --space-2xl: 160px;
  }

  .hero__headline {
    max-width: 720px;
  }

  .disconnect__item {
    padding: var(--space-md) 0;
    font-size: 1.5rem;
  }

  .insight-card {
    padding: 32px 32px 32px 38px;
  }

  .not-section__item {
    max-width: 28ch;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-left: 5%;
  }

  .disconnect__conclusion {
    max-width: 24ch;
  }
}
