/* ------------------------------------------------------------
   HOME PAGE (index.html)
   Docs-style layout contract applied
------------------------------------------------------------ */

.hero {
  padding: 6rem 0;
}

.hero-inner {
  display: flex;
  gap: 3rem; /* match docs spacing */
  align-items: center;
  justify-content: space-between;
}

.hero-copy {
  max-width: 480px; /* same as docs-copy */
}

.hero-copy h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-copy p {
  margin-bottom: 1.6rem;
}

.hero-actions {
  margin: 1.2rem 0 1.6rem;
}

.feature-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--outline);
  padding: 1.7rem;
  border-radius: var(--radius-lg);
  transition: 0.2s;
  box-shadow: 0 0 15px #ff660015;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px #ff660025;
}

/* ------------------------------------------------------------
   HERO CODE CARD (MATCHES DOCS BEHAVIOR)
------------------------------------------------------------ */

.hero-card {
  flex: 1;          /* behaves like .docs-code */
  min-width: 0;    /* CRITICAL for flex stability */
  max-width: 100%;
}

/* ------------------------------------------------------------
   HERO CODE BLOCK — MATCH DOCS INTERNAL SPACING
------------------------------------------------------------ */
.hero-card .code-block {
  padding: 1.1rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: left;        /* keep code readable */
  margin: 0 auto;         /* center content block */
}



/* ------------------------------------------------------------
   FAQ
------------------------------------------------------------ */

.improved-faq {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.faq-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--outline);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

#faq .section-header {
  margin-bottom: 3rem;
}

.faq-card h3 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.faq-card p {
  line-height: 1.6;
  font-size: 0.97rem;
}

/* ------------------------------------------------------------
   MOBILE FIXES (ALREADY DOCS-COMPATIBLE)
------------------------------------------------------------ */

@media (max-width: 820px) {

  .hero {
    padding: 3.5rem 0;
  }

  .hero-inner {
    flex-direction: column;
    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;
  }

  .improved-faq {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .faq-card {
    padding: 1.35rem;
  }
}
