/* =============================================
   milli — landing page
   Typefaces: Fraunces (editorial serif) + Outfit (functional sans)
   Design language: warm, organic, editorial, alive
   ============================================= */

:root {
  /* Ground */
  --cream: #FAF6F1;
  --cream-deep: #F0EAE0;
  --cream-deeper: #E4DCD0;

  /* Ink */
  --ink: #3D3229;
  --ink-soft: #5C4F42;
  --ink-light: #6B5D4F;
  --ink-faint: #9B8E80;

  /* Dark ground */
  --ground-dark: #2C2419;

  /* Semantic: Movement */
  --sage: #8BA888;
  --sage-light: #D4E4D1;
  --sage-deep: #5C7A58;

  /* Semantic: Nutrition */
  --amber: #C9A86C;
  --amber-light: #F0E4CC;
  --amber-deep: #8B6F3A;

  /* Semantic: Rest & Mind */
  --lilac: #A594C0;
  --lilac-light: #DDD5EA;
  --lilac-deep: #6B5A85;

  /* Semantic: Cycle */
  --rose: #C09B9B;
  --rose-light: #E8D5D5;
  --rose-deep: #8A5E5E;

  /* Type */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Space */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  /* Elevation */
  --shadow-sm: 0 1px 8px rgba(61, 50, 41, 0.05);
  --shadow-md: 0 4px 24px rgba(61, 50, 41, 0.06), 0 1px 4px rgba(61, 50, 41, 0.04);
  --shadow-lg: 0 8px 40px rgba(61, 50, 41, 0.08), 0 2px 8px rgba(61, 50, 41, 0.04);
  --shadow-xl: 0 16px 56px rgba(61, 50, 41, 0.1), 0 4px 12px rgba(61, 50, 41, 0.05);
}


/* ---- Reset ---- */

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}


/* ---- Ambient Background ---- */

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.ambient-orb--gold {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 168, 108, 0.12) 0%, transparent 70%);
  top: -150px;
  right: -250px;
  animation: drift 25s ease-in-out infinite;
}

.ambient-orb--rose {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(192, 155, 155, 0.09) 0%, transparent 70%);
  top: 55vh;
  left: -180px;
  animation: drift 30s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.04); }
}


/* ---- Nav ---- */

nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.nav-badge {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rose-deep);
  background: var(--rose-light);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
}


/* ---- Main ---- */

main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
}


/* ---- Highlight Mechanic ---- */

.highlight {
  background-image: linear-gradient(
    to top,
    var(--hl, rgba(201, 168, 108, 0.3)) 0%,
    var(--hl, rgba(201, 168, 108, 0.3)) 33%,
    transparent 33%
  );
  padding: 0 0.08em;
  border-radius: 2px;
}

.highlight--amber { --hl: rgba(201, 168, 108, 0.35); }
.highlight--sage  { --hl: rgba(139, 168, 136, 0.35); }
.highlight--lilac { --hl: rgba(165, 148, 192, 0.35); }
.highlight--rose  { --hl: rgba(192, 155, 155, 0.35); }


/* ---- Hero ---- */

.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  max-width: 680px;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: var(--space-md);
}

.hero h1 em {
  font-style: italic;
  color: var(--rose-deep);
}

.hero-sub {
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-light);
  max-width: 560px;
  margin-bottom: var(--space-lg);
}

.cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cream);
  background: var(--ink);
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
}


/* ---- Disconnect ---- */

.disconnect {
  padding: var(--space-lg) 0 var(--space-xl);
}

.disconnect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.disconnect-card {
  background: var(--cream-deep);
  border-radius: 16px;
  padding: var(--space-md) calc(var(--space-md) + 0.25rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.disconnect-card:hover {
  transform: translateY(-2px);
}

.disconnect-card p {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--ink);
}

.disconnect-card--emphasis {
  grid-column: 1 / -1;
  background: var(--ground-dark);
  box-shadow: var(--shadow-lg);
}

.disconnect-card--emphasis:hover {
  transform: translateY(-3px);
}

.disconnect-card--emphasis p {
  color: var(--cream);
  font-size: 1.5rem;
  line-height: 1.3;
  text-align: center;
  padding: var(--space-sm) 0;
}


/* ---- Intelligence (Pillars) ---- */

.intelligence {
  padding: var(--space-xl) 0;
}

.intelligence-text {
  margin-bottom: var(--space-lg);
  max-width: 560px;
}

.intelligence-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.intelligence-text p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink-light);
  line-height: 1.65;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.pillar {
  padding: var(--space-md);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.pillar--movement { background: var(--sage-light); }
.pillar--nutrition { background: var(--amber-light); }
.pillar--rest     { background: var(--lilac-light); }
.pillar--cycle    { background: var(--rose-light); }

.pillar-icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: var(--space-sm);
  color: var(--ink-light);
}

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

.pillar h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.pillar p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink-light);
  line-height: 1.55;
}


/* ---- Preview ---- */

.preview {
  padding: var(--space-xl) 0;
}

.preview-text {
  max-width: 560px;
  margin-bottom: var(--space-lg);
}

.preview-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.preview-text p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink-light);
  line-height: 1.65;
}

.preview-stage {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-md) 0;
}

.preview-card {
  background: var(--cream);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
}

.preview-card--state {
  padding: var(--space-md) calc(var(--space-md) + 1rem);
  text-align: center;
  transform: rotate(-2deg);
  flex-shrink: 0;
}

.preview-phase {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rose-deep);
  margin-bottom: var(--space-xs);
}

.preview-day {
  display: block;
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.04em;
  margin-bottom: var(--space-sm);
}

.preview-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto;
  background: conic-gradient(
    var(--rose) 0deg, var(--rose) 80deg,
    var(--rose-light) 88deg,
    var(--sage) 96deg, var(--sage) 168deg,
    var(--sage-light) 176deg,
    var(--amber) 184deg, var(--amber) 258deg,
    var(--amber-light) 266deg,
    var(--lilac) 274deg, var(--lilac) 348deg,
    var(--lilac-light) 354deg,
    var(--rose) 360deg
  );
  -webkit-mask: radial-gradient(transparent 56%, black 58%);
  mask: radial-gradient(transparent 56%, black 58%);
  opacity: 0.8;
  animation: ring-rotate 80s linear infinite;
}

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

.preview-card--insight {
  padding: var(--space-md) calc(var(--space-md) + 0.25rem);
  max-width: 380px;
  transform: rotate(1deg);
  margin-top: var(--space-md);
  border-left: 3px solid var(--lilac);
}

.preview-from {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lilac-deep);
  margin-bottom: var(--space-sm);
}

.preview-card--insight p {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}


/* ---- Companion ---- */

.companion {
  padding: var(--space-xl) 0;
  max-width: 680px;
}

.companion h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.companion-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.qualities {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.quality-name {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}

.quality p {
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--ink-light);
  line-height: 1.65;
  max-width: 520px;
}


/* ---- Closing ---- */

.closing {
  padding: 0;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.closing-inner {
  background: var(--ground-dark);
  border-radius: 24px;
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-xl);
}

.closing h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.25;
  color: var(--cream);
  margin-bottom: var(--space-sm);
  max-width: 500px;
}

.closing-sub {
  color: var(--cream-deeper);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: var(--space-md);
}

.waitlist-form {
  display: flex;
  gap: var(--space-xs);
  max-width: 420px;
}

.waitlist-form input {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 300;
  padding: 0.85rem 1.2rem;
  border: 1.5px solid rgba(228, 220, 208, 0.15);
  border-radius: 100px;
  background: rgba(250, 246, 241, 0.07);
  color: var(--cream);
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.waitlist-form input::placeholder {
  color: var(--ink-faint);
}

.waitlist-form input:focus {
  border-color: var(--rose);
  background: rgba(250, 246, 241, 0.1);
}

.waitlist-form button {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.85rem 1.8rem;
  border: none;
  border-radius: 100px;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.waitlist-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(250, 246, 241, 0.15);
}

.waitlist-form button:active {
  transform: translateY(0) scale(0.97);
}


/* ---- Footer ---- */

footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .logo {
  font-size: 1.2rem;
}

footer p {
  font-size: 0.72rem;
  color: var(--ink-faint);
}

.footer-note {
  font-style: italic;
}


/* ---- Scroll Reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-stagger .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 0.24s; }


/* ---- Responsive ---- */

@media (max-width: 768px) {
  html { font-size: 17px; }

  .hero { padding: var(--space-xl) 0 var(--space-lg); }

  .disconnect-grid {
    grid-template-columns: 1fr;
  }

  .disconnect-card--emphasis {
    grid-column: auto;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .preview-stage {
    flex-direction: column;
    align-items: center;
  }

  .preview-card--state {
    transform: rotate(0);
  }

  .preview-card--insight {
    transform: rotate(0);
    margin-top: 0;
    max-width: 100%;
  }

  .closing-inner {
    padding: var(--space-lg) var(--space-md);
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-form button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  html { font-size: 16px; }

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

  .disconnect-card--emphasis p {
    font-size: 1.25rem;
  }

  .preview-day {
    font-size: 4rem;
  }

  .closing-inner {
    border-radius: 20px;
    padding: var(--space-lg) var(--space-sm);
  }
}
