/* =============================================================================
   HOME-SECTIONS.CSS — ENIBUSINESS Homepage: Page Sections
   Scope   : home page only (/index.html)
   Covers  : hero, pain points, AI matchmaking, follow-up rooms, ROI showcase,
             scale features, FAQ, footer, debug borders
   Version : 5
   ============================================================================= */


/* =============================================================================
   5. SECTION — HERO
   Full-viewport headline + phone visual + CTA
   ============================================================================= */

#section-hero {
  position: relative;
  min-height: calc(100vh - 84px);
  min-height: calc((var(--vh, 1vh) * 100) - 84px);
  overflow: hidden;
  isolation: isolate;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Vanta / Three.js canvas injected by JS */
#section-hero .vanta-canvas {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
}

/* Two-column inner grid */
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(1180px, 100%);
  padding: 2rem 5rem 5rem 5rem;
}

/* Left column — text + CTA */
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Right column — phone image */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual__image {
  display: block;
  width: min(100%, 260px);
  height: auto;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25));
}

/* Main headline layout override for homepage hero */
.hero-title {
  text-align: left;
  max-width: 720px;
}

/* Subtitle line inside the headline */
.hero-title__accent {
  display: block;
  margin-top: 24px;
  font-size: 0.55em;
  font-weight: 400;
  font-style: normal;
  color: #fff;
  letter-spacing: 0;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .hero-title__accent { font-size: 0.40em; }
}

/* Sub-headline below h1 */
.hero-subtitle {
  text-align: left;
  max-width: 32rem;
  margin-bottom: 2rem;
}

/* CTA button area */
.hero-cta {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  margin-top: 20px;
}

.hero-cta--mobile {
  display: none;
}

.hero-cta .signup-wrapper {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 110px 1.5rem 4rem 1.5rem;
  }

  .hero-visual {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    justify-content: center;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-title,
  .hero-subtitle {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    padding-top: 90px;
  }

  .hero-copy {
    padding-left: 1.5rem;
    align-items: flex-start;
  }

  .hero-title {
    text-align: left;
  }

  .hero-subtitle {
    text-align: left;
  }

  .hero-cta:not(.hero-cta--mobile) {
    display: none;
  }

  .hero-cta--mobile {
    display: flex;
    justify-content: center;
    margin-top: 0;
  }

  .hero-cta--mobile .signup-wrapper {
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
  }

  .hero-visual {
    max-width: 340px;
  }
}

@media (max-width: 480px) {
  .hero-visual {
    max-width: 290px;
  }
}


/* =============================================================================
   6. SECTION — PAIN POINTS
   Problem statement / empathy copy block
   ============================================================================= */

#section-pain-points {
  padding: var(--section-padding);
}

#section-pain-points .section-h2 {
  margin-bottom: 2rem;
}

#section-pain-points .section-body-text {
  text-align: left;
  max-width: 760px;
}

@media (max-width: 768px) {
  #section-pain-points .section-body-text {
    width: 100%;
  }
}

.pain-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.5rem;
}

.pain-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.65rem;
  line-height: 1.55;
}

.pain-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #245AF6;
  box-shadow: 0 0 5px rgba(36, 90, 246, 0.9), 0 0 12px rgba(36, 90, 246, 0.45);
}


/* =============================================================================
   7. SECTION — AI MATCHMAKING
   Feature highlight: algorithmic introductions
   ============================================================================= */

#section-ai-matchmaking {
  padding: var(--section-padding);
  text-align: center;
}

#section-follow-up-rooms {
  padding: var(--section-padding);
  text-align: center;
}

@media (min-width: 769px) {
  #section-ai-matchmaking .section-inner,
  #section-smart-meetings .section-inner,
  #section-follow-up-rooms .section-inner {
    width: min(80%, 1160px);
  }
}

.ai-match__image {
  display: block;
  width: min(100%, 1080px);
  height: auto;
  margin: 2rem auto 1.5rem;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.55));
}

@media (min-width: 769px) {
  .ai-match__image {
    width: min(100%, 1320px);
  }
}

.ai-match__caption {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 768px) {
  #section-ai-matchmaking .section-inner {
    width: min(94%, 1100px);
  }

  #section-follow-up-rooms .ai-match__caption {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  #section-ai-matchmaking .section-body-text,
  #section-smart-meetings .section-body-text {
    margin: 0 auto;
    width: 50%;
  }
}


/* =============================================================================
   8. SECTION — ROI SHOWCASE
   Feature highlight: ROI tracking dashboard
   ============================================================================= */

#section-roi-showcase {
  padding: var(--section-padding);
}

/* Two-column layout: phone image left, copy right */
.roi-showcase {
  width: var(--section-narrow-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
}

.roi-showcase__visual {
  display: flex;
  justify-content: center;
}

.roi-showcase__image {
  display: block;
  width: min(100%, 320px);
  height: auto;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.55));
}

.roi-showcase__copy {
  text-align: left;
}

.roi-showcase__copy .section-h2 {
  text-align: left;
  margin-bottom: 1rem;
}

.roi-showcase__description {
  max-width: 560px;
}

.roi-showcase__cta {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-start;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .roi-showcase {
    display: flex;
    flex-direction: column;
    width: min(94%, 1100px);
    gap: 1.5rem;
  }

  .roi-showcase__copy {
    display: contents;
  }

  .roi-showcase__copy .section-h2 {
    order: 1;
    text-align: left;
  }

  .roi-showcase__visual {
    order: 3;
    width: min(100%, 240px);
    margin: 0 auto;
  }

  .roi-showcase__image {
    width: min(100%, 240px);
  }

  .roi-showcase__description {
    order: 2;
    text-align: left;
    margin: 0;
  }

  .roi-showcase__cta {
    order: 4;
    justify-content: center;
  }
}


/* =============================================================================
   9. SECTION — SCALE FEATURES
   Framed list of all-in-one platform capabilities
   ============================================================================= */

#section-scale-features {
  padding: var(--section-padding);
  padding-bottom: 7.5rem;
}

#section-scale-features .section-h2 {
  margin-bottom: 1.75rem;
}

.scale-features__frame {
  border: 1px solid #4c4c4c;
  border-radius: 24px;
  background: rgba(18, 18, 18, 0.55);
  padding: 1.5rem;
}

.scale-features__list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.scale-features__list li {
  border: 1px solid #575757;
  border-radius: 14px;
  padding: 1rem 1.05rem;
  background: rgba(10, 10, 10, 0.72);
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.scale-features__list li strong {
  color: var(--color-text);
  font-weight: 700;
}

@media (max-width: 768px) {
  .scale-features__frame {
    padding: 1.1rem;
    border-radius: 18px;
  }

  .scale-features__list {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}


/* =============================================================================
   10. SECTION — FAQ
   Accordion-style frequently asked questions
   ============================================================================= */

#section-faq {
  padding: var(--section-padding);
}

#section-faq .section-inner {
  width: min(920px, 78%);
}

#section-faq .section-h2 {
  margin-bottom: 2rem;
  text-align: center;
}

.faq-list {
  width: 100%;
  max-width: none;
  margin: 2rem auto 0;
}

.faq-item {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 30px;
  cursor: default;
  border: 1px solid #4c4c4c;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.4;
  transition:
    max-height 0.35s ease,
    color 0.3s ease;
}

.faq-toggle-button {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0;
  margin: 0;
  color: var(--color-accent);
  background: transparent;
  transition: transform 0.2s ease-in-out;
}

.faq-toggle-button:focus {
  outline: none;
}

.faq-item.open .faq-toggle-button {
  transform: rotate(45deg);
}

@media (max-width: 640px) {
  .faq-list {
    width: 100%;
  }

  .faq-question {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  #section-faq .section-inner {
    width: 92%;
  }
}


/* =============================================================================
   11. SITE FOOTER
   ============================================================================= */

/* Hidden SEO nav — invisible to users, readable by crawlers */
.footer-seo-links {
  visibility: hidden;
  height: 0;
  overflow: hidden;
}


/* =============================================================================
   12. SECTION — BOTTOM CTA
   Closing call-to-action, hero layout without phone visual
   ============================================================================= */

#section-bottom-cta {
  padding: 6rem 0;
  background: #000;
  border-top: 1px solid rgba(160, 160, 160, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Single-column override: no phone visual, copy centered */
.hero-inner--cta-only {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding: 0 5rem;
}

.hero-inner--cta-only .hero-copy {
  align-items: center;
  text-align: center;
  max-width: 720px;
}

.hero-inner--cta-only .hero-title {
  text-align: center;
}

.hero-inner--cta-only .hero-subtitle {
  text-align: center;
  max-width: 44rem;
}

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

.hero-inner--cta-only .hero-cta .signup-wrapper {
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-inner--cta-only {
    padding: 0 1.5rem;
  }

  .hero-inner--cta-only .hero-copy {
    align-items: center;
    padding-left: 0;
  }

  .hero-inner--cta-only .hero-title,
  .hero-inner--cta-only .hero-subtitle {
    text-align: center;
  }

  #section-bottom-cta .hero-cta {
    display: flex;
    justify-content: center;
  }
}


/* =============================================================================
   DEBUG — Remove this entire block before production
   Adds a subtle grey border on every page section so block boundaries
   are clearly visible during layout review.
   ============================================================================= */

#section-pain-points,
#section-ai-matchmaking,
#section-smart-meetings,
#section-follow-up-rooms,
#section-roi-showcase,
#section-scale-features,
#section-faq {
  border-top:    1px solid rgba(160, 160, 160, 0.22);
  border-bottom: 1px solid rgba(160, 160, 160, 0.22);
}

#section-smart-meetings {
  padding: var(--section-padding);
}

#section-hero {
  border-bottom: 1px solid rgba(160, 160, 160, 0.22);
}
