@import url("base.css");

.home {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 0;
  line-height: 1.45;
}

/* Hero */

.hero {
  width: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 164px 24px;
}

.hero-logo {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-body {
  max-width: 680px;
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.store-badges {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.store-badges a {
  display: inline-block;
}

.store-badges img {
  height: 44px;
  width: auto;
  display: block;
}

/* Features */

.features {
  display: flex;
  flex-direction: column;
  gap: 96px;
  padding: 64px 0 96px;
  border-top: 1px solid var(--line);
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 64px;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-img {
  flex: 1 1 44%;
  max-width: 400px;
  width: 100%;
  height: auto;
}

.feature-row:nth-child(2) .feature-img {
  max-width: 320px;
}

.feature-row:nth-child(3) .feature-img {
  max-width: 460px;
}

.feature-text {
  flex: 1 1 56%;
  text-align: left;
}

.feature-heading {
  display: block;
}

.feature-desc {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-desc-text {
  flex: 1;
  min-width: 0;
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #684cc4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-heading h2 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.feature-heading .accent {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--red);
  margin-bottom: 16px;
}

.feature-tagline {
  color: var(--ink);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.feature-body {
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Stats */

.stats {
  padding-bottom: 64px;
}

.stats-card {
  background: var(--red);
  border-radius: 24px;
  padding: 40px 32px;
  display: flex;
  gap: 24px;
}

.stat {
  flex: 1;
  text-align: left;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.stat-number span {
  color: var(--eye);
  font-size: 1.4rem;
  font-weight: 700;
}

.stat-label {
  margin-top: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* Stories showcase */

.stories-showcase {
  width: 100%;
  background: var(--eye);
  padding: 64px 24px 96px;
}

.stories-showcase-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.stories-showcase h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.stories-showcase .subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 48px;
}

.stories-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.story-card {
  width: 220px;
  padding: 24px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: left;
}

.story-card.white {
  background: #ffffff;
  color: var(--ink);
}

.story-card.red {
  background: var(--red);
  color: #ffffff;
  margin-top: 48px;
}

.home footer {
  margin-bottom: 64px;
}

@media (max-width: 780px) {
  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    gap: 32px;
  }
  .feature-img {
    max-width: 320px;
  }
  .feature-text {
    text-align: center;
  }
  .stats-card {
    flex-wrap: wrap;
  }
  .stat {
    flex: 1 1 40%;
  }
  .story-card {
    width: 100%;
    max-width: 320px;
  }
  .story-card.red {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .home {
    padding: 0 20px 0;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .hero {
    padding: 40px 20px 82px;
  }
  .features {
    gap: 64px;
    padding: 48px 0 64px;
  }
}
