/* Index Page Specific Styles - Phase 2 V2 Structure */

/* Social Proof Strip */
.social-proof-strip {
  padding: 1.5rem 0;
  background: rgba(4, 6, 22, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.social-proof-strip p {
  font-size: 0.875rem;
  color: var(--c-text-med);
  margin: 0;
  text-align: center;
}

/* Split Paths Section */
.split-paths {
  padding: 4rem 0;
}

/* Desktop: Adjust spacing to prevent tablet overlap */
@media (min-width: 1024px) {
  .split-paths {
    margin-top: 0; /* Reset top margin */
    margin-bottom: 6rem; /* Increase gap to QubiTab */
  }

  .split-paths + .qubitab-app {
    margin-top: 10rem; /* Extra push down for QubiTab - increased gap */
  }
}

.split-paths-header {
  text-align: center; /* Center the heading */
  margin-bottom: 2rem;
  width: 100%;
}

.split-paths-header .section-title {
  margin-bottom: 0;
  text-align: center; /* Center the heading */
}

.split-paths-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.path-card {
  padding: 2rem;
  background: var(--c-bg-elev);
  border-radius: var(--radius-card);
  border: 1px solid var(--c-border-glass);
}

.path-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.path-subtitle {
  color: var(--c-text-hi);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  font-weight: 400;
}

.path-card > p:not(.path-subtitle) {
  color: var(--c-text-med);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.path-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.path-card li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.path-card li i {
  color: var(--c-accent);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.path-card .btn {
  width: 100%;
  text-align: center;
}

.path-divider {
  display: none;
}

/* Desktop: Wrap content in single card, use divider line */
@media (min-width: 1024px) {
  .split-paths-content {
    flex-direction: row;
    gap: 0;
    align-items: flex-start;
    justify-content: center;
    max-width: 1400px; /* Match container width */
    background: #0B0F25; /* Slightly lighter than page background */
    border: 1px solid var(--c-border-glass);
    border-radius: var(--radius-card);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden; /* Ensure gradient border respects rounded corners */
  }

  /* Gradient top border using pseudo-element */
  .split-paths-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--c-grad-a), var(--c-grad-b));
    border-radius: var(--radius-card) var(--radius-card) 0 0; /* Round top corners */
  }

  .path-card {
    padding: 0;
    background: transparent;
    border: none;
    flex: 1 1 45%; /* Flexible columns that extend horizontally */
  }

  .path-divider {
    display: block;
    width: 1px;
    background: var(--c-border-glass);
    margin: 0 2rem; /* Proportional spacing */
    align-self: stretch;
    min-height: 400px;
  }

  .path-card .btn {
    width: auto;
    min-width: 180px;
    text-align: center;
  }
}

/* Button size override for split paths */
.split-paths .btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  min-width: auto;
}

/* How It Works Section */
.how-it-works {
  padding: 4rem 0;
  background: linear-gradient(135deg, #005AED, #8D29FF, #E300FF);
  margin: 4rem 0;
  width: 100%;
  color: #fff;
}

.how-it-works .section-title {
  color: #fff;
  text-align: center;
  margin-bottom: 3rem;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.how-step .step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: #E300FF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 0.5rem;
}

.how-step .step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.how-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.how-step p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Desktop: Horizontal layout */
@media (min-width: 768px) {
  .how-steps {
    flex-direction: row;
    gap: 3rem;
    justify-content: space-between;
  }

  .how-step {
    flex: 1;
    max-width: none;
  }
}

/* Desktop: Move section down */
@media (min-width: 1024px) {
  .how-it-works {
    margin-top: 8rem;
  }
}

/* Stats Section */
.stats-section {
  padding: 4rem 0;
}

.stats-header {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.stats-header .section-title {
  margin-bottom: 0;
  text-align: center;
}

.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  padding: 2rem;
  background: var(--c-bg-elev);
  border-radius: var(--radius-card);
  border: 1px solid var(--c-border-glass);
  text-align: center;
}

.stat-divider {
  display: none;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--c-accent);
  margin-bottom: 0.5rem;
}

.stat-card > p:first-of-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-med);
  margin-bottom: 0.5rem;
}

.stat-card > p:last-of-type {
  font-size: 0.875rem;
  color: var(--c-text-med);
  margin: 0;
}

/* Desktop: Wrap stats in single card, use divider lines */
@media (min-width: 1024px) {
  .stats-grid {
    flex-direction: row;
    gap: 0;
    align-items: center;
    justify-content: center;
    max-width: 1400px; /* Match container width */
    background: #0B0F25; /* Slightly lighter than page background */
    border: 1px solid var(--c-border-glass);
    border-radius: var(--radius-card);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden; /* Ensure gradient border respects rounded corners */
  }

  /* Gradient top border using pseudo-element */
  .stats-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--c-grad-a), var(--c-grad-b));
    border-radius: var(--radius-card) var(--radius-card) 0 0; /* Round top corners */
  }

  .stat-card {
    padding: 0;
    background: transparent;
    border: none;
    flex: 1 1 30%; /* Flexible columns */
    text-align: center;
  }

  .stat-divider {
    display: block;
    width: 1px;
    background: var(--c-border-glass);
    margin: 0 2rem; /* Proportional spacing */
    align-self: stretch;
    min-height: 200px;
  }
}

/* CTA Section */
.final-cta__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 1rem 2rem;
}

.final-cta__inner h2 {
  font-size: 2.25rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.final-cta__inner > p {
  color: var(--c-text-med);
  margin-bottom: 2rem;
}

.final-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.final-cta__actions .btn {
  width: 100%;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0 0.5rem; /* Further reduced bottom padding */
  margin-bottom: 0.5rem; /* Further reduced bottom margin */
  background: var(--c-bg);
  position: relative;
  overflow: visible;
}

.faq-image-mobile {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: -260px;
  position: relative;
  z-index: 1;
  padding-top: 0;
  margin-top: -8rem;
  width: 100%;
}

.faq-image-mobile img {
  max-width: 200px;
  height: auto;
  display: block;
}

.faq-image-desktop {
  display: none;
}

.faq-section .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.faq-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.faq-questions {
  flex: 1;
}

.faq-section .section-title {
  text-align: center;
  margin-bottom: 3rem;
  margin-top: 260px;
}

.faq-section .accordion {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-section .accordion li {
  margin-bottom: 1rem;
}

.faq-section .accordion button {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--c-bg-elev);
  border: 1px solid var(--c-border-glass);
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-text-hi);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-section .accordion button span {
  flex: 1;
  min-width: 0; /* Allow text to wrap on mobile */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* The "+" is added via ::after pseudo-element from components.css */

.faq-section .accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-section .accordion button[aria-expanded="true"] + .accordion__panel {
  max-height: 200px;
}

.faq-section .accordion__panel > div {
  padding: 1rem 1.25rem;
  color: var(--c-text-med);
}

.faq-section .accordion__panel > div p {
  margin: 0;
}

/* Desktop: Image on left, questions on right */
@media (min-width: 1024px) {
  .faq-image-mobile {
    display: none;
  }

  .faq-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .faq-image-desktop {
    display: block;
    flex-shrink: 0;
    margin-top: 4rem;
  }

  .faq-image-desktop img {
    max-width: 400px;
    height: auto;
  }

  .faq-questions {
    flex: 1;
  }

  .faq-section .section-title {
    text-align: left;
    margin-top: 0;
  }
}

/* Responsive Styles */
@media (min-width: 768px) {
  .path-card {
    margin-bottom: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .final-cta__actions {
    flex-direction: row;
    justify-content: center;
  }

  .final-cta__actions .btn {
    width: auto;
    min-width: 200px;
  }
}




