/* =========================
   Root & Reset
========================= */

:root {
  --purple-primary: #6B3FA0;
  --purple-soft: #9D8FC3;
  --purple-bg: #F5F1FA;
  --text-primary: #3E2C78;
  --text-secondary: #82799C;
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: #ffffff;
  line-height: 1.6;
}

/* =========================
   Layout
========================= */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =========================
   Hero
========================= */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  padding: 4.5rem 0 3.5rem;
  gap: 1.5rem;
}

/* =========================
   Logo Animations
========================= */

.logo {
  width: 220px;
  max-width: 70vw;
  height: auto;

  opacity: 0;
  transform: scale(1.05);
  animation: logoFadeIn 1.2s ease-out forwards;
  animation-delay: 0.15s;

  /* Enables scroll-based scaling */
  transform-origin: center top;
}

/* Fade-in animation */
@keyframes logoFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Gentle scale-down on scroll (CSS-only) */
@supports (animation-timeline: scroll()) {
  .logo {
    animation: logoFadeIn 1.2s ease-out forwards,
               logoScaleDown linear forwards;
    animation-timeline: auto, scroll();
    animation-range: auto, 0 300px;
  }

  @keyframes logoScaleDown {
    from {
      transform: scale(1);
    }
    to {
      transform: scale(0.92);
    }
  }
}

/* =========================
   Badge
========================= */

.badge {
  display: inline-block;
  padding: 0.45rem 1rem;

  font-size: 0.85rem;
  font-weight: 500;

  color: var(--purple-primary);
  background: var(--purple-bg);

  border-radius: 999px;
}

/* =========================
   Typography
========================= */

.brand-name {
  font-size: 3rem;
  font-weight: 600;
  margin: 0.5rem 0 0;
}

.subtitle {
  max-width: 720px;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--purple-primary);
  margin: 0.5rem 0;
}

.description {
  max-width: 760px;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* =========================
   Features
========================= */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;

  margin: 3.5rem 0 4rem;
}

.feature-card {
  background: #faf8fd;
  border-radius: 20px;
  padding: 2rem 1.75rem;

  text-align: center;
}

.feature-icon {
  width: 44px;
  height: auto;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin: 0.5rem 0;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

/* =========================
   Footer
========================= */

.footer {
  text-align: center;
  padding: 2.5rem 0 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* =========================
   Responsive
========================= */

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .logo {
    width: 160px;
  }

  .brand-name {
    font-size: 2.4rem;
  }

  .subtitle {
    font-size: 1.15rem;
  }
}
