/* =========================
   HOME PAGE
========================= */

/* HERO */

.hero {
  padding: 6rem 0;
}

.hero-inner {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: space-between;
}

.hero-copy {
  max-width: 550px;
}

.hero-copy h1 {
  font-size: 3rem;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero-copy p {
  margin-bottom: 1.6rem;
}

.hero-actions {
  margin: 1.2rem 0 1.6rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-list li {
  margin-bottom: 0.6rem;
}

.hero-eyebrow,
.section-eyebrow,
.feature-eyebrow {
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-eyebrow {
  margin-bottom: 0.8rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.65rem 0 0;
}

.hero-stats div {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
}

.hero-stats dt {
  color: var(--primary-light);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.hero-stats dd {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

/* HERO CODE CARD */

.hero-card {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.hero-card-header {
  margin-bottom: 0.75rem;
}

.hero-card .code-block {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) rgba(255, 255, 255, 0.055);
  overscroll-behavior-inline: contain;
  padding: 1.1rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: left;
  margin: 0 auto;
}

/* FEATURES */

.hero-card .code-block::-webkit-scrollbar { width: 10px; height: 10px; }
.hero-card .code-block::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}
.hero-card .code-block::-webkit-scrollbar-thumb {
  min-width: 48px;
  border: 2px solid #0d0d0f;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
}
.hero-card .code-block::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

.feature-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-grid-expanded {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--outline);
  padding: 1.7rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 15px #ff660015;
  transition: 0.2s;
  overflow-wrap: anywhere;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px #ff660025;
}

.feature-card h3 {
  margin-bottom: 0.6rem;
}

.feature-card p {
  line-height: 1.6;
}

.feature-card .feature-eyebrow {
  margin: 0 0 0.65rem;
  line-height: 1.4;
}

.feature-card-platform {
  border-color: rgba(255, 123, 0, 0.58);
  background: linear-gradient(150deg, rgba(255, 123, 0, 0.115), var(--card) 55%);
}

.feature-link {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--primary-light);
  font-weight: 700;
  text-decoration: none;
}

.feature-link:hover,
.feature-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

/* FAQ */

#faq .section-header {
  margin-bottom: 3rem;
}

.improved-faq {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.faq-card {
  min-width: 0;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow-wrap: anywhere;
}

.faq-card h3 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.faq-card p {
  font-size: 0.97rem;
  line-height: 1.6;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy,
  .hero-card {
    width: 100%;
    max-width: 100%;
  }

  .feature-grid-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {

  .hero {
    padding: 3.5rem 0;
  }

  .hero-inner {
    gap: 2.5rem;
  }

  .hero-copy,
  .hero-card {
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: 2.1rem;
    line-height: 1.15;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.4rem 0 1.8rem;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 0.85rem 1.2rem;
  }

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

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .improved-faq {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .faq-card {
    padding: 1.35rem;
  }
}
#features .section-header {
  margin-bottom: 2rem;
}

#astrology-systems .section-header {
  margin-bottom: 2rem;
}

.home-guide-links {
  margin-top: 2rem;
  line-height: 1.8;
}
