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

:root {
  --purple: #7a8ed6;
  --purple-dark: #6b7fc9;
  --purple-light: #9aa8e0;
  --purple-pale: #eef1fa;
  --navy: #1a2340;
  --navy-light: #2d3a5c;
  --white: #ffffff;
  --gray-100: #f7f8fc;
  --gray-200: #e8ebf4;
  --gray-400: #8b95a8;
  --gray-600: #5a6478;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(26, 35, 64, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 35, 64, 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

em.text-navy {
  color: #222037;
  display: inline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn-primary {
  background: var(--white);
  color: var(--purple);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  background: var(--white);
  color: var(--purple);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(122, 142, 214, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(26, 35, 64, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
}

.logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

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

.nav-links a:not(.btn) {
  color: var(--white);
  font-weight: 500;
  font-size: 0.925rem;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.nav-links a:not(.btn):hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Dot grid decoration */
.hero-dots,
.feature-dots,
.cta-dots {
  position: absolute;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 2px, transparent 2px);
  background-size: 16px 16px;
  pointer-events: none;
}

.hero-dots--tl { top: 120px; left: 5%; }
.feature-dots--br { bottom: 40px; right: 5%; }
.feature-dots--bl { bottom: 40px; left: 5%; }
.feature-dots--tl { top: 40px; left: 5%; }
.cta-dots { bottom: 30px; right: 8%; opacity: 0.5; }

/* Hero */
.hero {
  position: relative;
  background: var(--purple);
  color: var(--white);
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  font-weight: 900;
}

.hero-sub {
  font-size: 1.05rem;
  opacity: 0.92;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: 70%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 20px 40px rgba(26, 35, 64, 0.2));
}

/* Intro */
.intro {
  padding: 5rem 0;
  background: var(--white);
  text-align: center;
}

.intro-lead {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--navy);
  max-width: 780px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.intro-body {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Feature sections */
.feature-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.feature-section--purple {
  background: var(--purple);
  color: var(--white);
}

.feature-section--white {
  background: var(--gray-100);
  color: var(--navy);
}

.feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-inner--reverse .feature-text {
  order: 2;
}

.feature-inner--reverse .feature-visual {
  order: 1;
}

.feature-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.feature-tagline {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.feature-section--purple .feature-tagline {
  color: rgba(255, 255, 255, 0.9);
}

.text-navy {
  color: var(--navy);
  display: block;
}

.feature-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.92;
}

.feature-section--white .feature-text p {
  color: var(--gray-600);
  opacity: 1;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.feature-visual img {
  width: 50%;
  max-width: 300px;
  border-radius: var(--radius-lg);
  filter: drop-shadow(var(--shadow-lg));
}

.module-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin-top: 1.5rem;
  font-size: 0.925rem;
  font-weight: 500;
}

.module-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.module-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.module-dot--purple { background: #c4b5fd; }
.module-dot--peach { background: #fcd9b8; }
.module-dot--green { background: #a7f3d0; }
.module-dot--lavender { background: #ddd6fe; }
.module-dot--blue { background: #93c5fd; }
.module-dot--pink { background: #f9a8d4; }
.module-dot--sky { background: #7dd3fc; }
.module-dot--orange { background: #fdba74; }
.module-dot--amber { background: #fde68a; }
.module-dot--mint { background: #6ee7b7; }

/* Why section */
.why {
  padding: 5rem 0;
  background: var(--white);
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--navy);
}

.section-title--light {
  color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--navy);
}

.why-card p {
  font-size: 0.925rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* Pillars */
.pillars {
  padding: 5rem 0;
  background: var(--navy);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.pillar-card {
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  color: var(--white);
  transition: transform var(--transition);
}

.pillar-card:hover {
  transform: translateY(-4px);
}

.pillar-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pillar-card p {
  font-size: 0.875rem;
  opacity: 0.88;
  line-height: 1.65;
}

.pillar-card--move { background: linear-gradient(135deg, #6366f1, #818cf8); }
.pillar-card--fuel { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.pillar-card--mind { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.pillar-card--habit { background: linear-gradient(135deg, #10b981, #34d399); }

/* CTA */
.cta {
  position: relative;
  padding: 5rem 0;
  background: var(--purple);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.cta-inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-inner > p {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  align-items: center;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-badge img {
  display: block;
  height: 52px;
  width: auto;
}

/* Footer */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.footer-copy {
  font-size: 0.825rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner,
  .feature-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .feature-inner--reverse .feature-text,
  .feature-inner--reverse .feature-visual {
    order: unset;
  }

  .feature-visual {
    max-width: 240px;
    margin-inline: auto;
  }

  .hero-visual img,
  .feature-visual img {
    width: 100%;
  }

  .module-list {
    text-align: left;
    max-width: 360px;
    margin-inline: auto;
  }

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

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

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--purple-dark);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 120px 0 60px;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
