/* ================================
   INDEX PAGE STYLES
   Homepage parallax scrolling and sections
   ================================ */

/* ============================================
   NAVIGATION OVERRIDE FOR HOMEPAGE
   Make nav transparent/glass on index page only
   ============================================ */

body.page-home .nav {
  background: var(--nav-overlay-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ============================================
   PARALLAX STRUCTURE
   Critical dimensions - DO NOT CHANGE
   These values were difficult to tune
   ============================================ */

.scroll-container {
  position: relative;
}

/* Sticky Layers */
.sticky-layer {
  position: sticky;
  top: 0;
  height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  pointer-events: none;
}

.sticky-layer > * {
  pointer-events: auto;
}

/* Layer Z-Index */
.layer-1 {
  z-index: 1;
}

.layer-2 {
  z-index: 2;
}

.layer-3 {
  z-index: 3;
}

/* Content Width Constraints */
.layer-2 > *,
.layer-3 > * {
  max-width: 700px;
}

/* Scrolling Content (Foreground) */
.scroll-content {
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.scroll-content > * {
  pointer-events: auto;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: var(--weight-bold);
  margin-top: 120px; /* Critical - DO NOT CHANGE */
  margin-bottom: 24px;
  line-height: var(--line-height-tight);
  max-width: 900px;
  color: var(--color-deep-teal);
  text-shadow: var(--shadow-text);
}

.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-primary);
  opacity: 0.9;
  max-width: 700px;
  margin: 20px;
  line-height: var(--line-height-relaxed);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

/* ============================================
   CTA SECTIONS (Layers 2 & 3)
   ============================================ */

.cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: var(--weight-semibold);
  margin-top: 160px; /* Critical - DO NOT CHANGE */
  margin-bottom: 20px;
  line-height: var(--line-height-snug);
  max-width: 700px;
  color: var(--accent-primary);
}

.cta-subtitle,
.contact-note,
.contact-subtext {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: 48px;
  line-height: var(--line-height-relaxed);
  max-width: 600px;
  opacity: 0.95;
  color: var(--text-light);
}

.cta-bridge-intro,
.cta-bridge-closing {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  margin-bottom: 10px;
  max-width: 600px;
  color: var(--text-light);
  line-height: var(--line-height-normal);
}

.cta-bridge-closing {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin: 20px auto 20px;
}

/* Pain Points List */
.pain-points {
  list-style: none;
  margin: 0 auto 8px;
  max-width: 600px;
  text-align: left;
  padding: 0;
}

.pain-points li {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  padding: 12px 0 8px 30px;
  position: relative;
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.pain-points li::before {
  content: "×";
  position: absolute;
  left: 0;
  font-size: 1.5rem;
  color: var(--color-light);
  font-weight: var(--weight-bold);
}

.contact-note {
  margin-bottom: 50px;
}

.contact-options {
  display: flex;
  gap: 20px;
  margin: 2rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================
   WHY SECTION (Scrolling Card)
   ============================================ */

.why-section {
  padding: 80px 20px;
  text-align: center;
  border-radius: var(--radius-2xl);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.why-section.card::before {
  z-index: 0;
}

.why-section > * {
  position: relative;
  z-index: 2;
}

.why-section h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 40px;
  color: var(--accent-secondary);
  font-weight: var(--weight-semibold);
}

/* Why List */
.why-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.why-list li {
  font-size: clamp(1rem, 2vw, 1.2rem);
  padding: 12px 0;
  position: relative;
  padding-left: 30px;
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
}

.why-list li::before {
  content: '✓';
  color: var(--accent-secondary);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-weight: var(--weight-sembold);
}

.why-list a {
  color: var(--accent-secondary);
  text-decoration: underline;
  transition: opacity var(--transition-base);
}

.why-list a:hover {
  opacity: 0.8;
}

/* Screenshot Gallery */
.screenshot-gallery {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.screenshot-gallery img {
  max-width: 250px;
  height: auto;
  width: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
}

.screenshot-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: opacity var(--transition-base);
  margin-top: 15px;
  display: block;
  margin-bottom: 200px;
}

.screenshot-link:hover {
  opacity: 0.7;
}

/* Glass Etch Overlay */
.glass-etch {
  position: absolute;
  top: -75px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: var(--weight-medium);
  letter-spacing: 0.18em;
  text-transform: lowercase;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--glass-etch-stroke);
  opacity: 0.6;
}

/* ============================================
   PRICING SECTION (Scrolling Card)
   ============================================ */

.price-section {
  padding: 200vh 50px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.price-section.card::before {
  z-index: 0;
}

.price-section > * {
  position: relative;
  z-index: 2;
}

/* Section Headers */
.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 100px;
  font-weight: var(--weight-sembold);
  color: var(--accent-secondary);
  line-height: var(--line-height-snug);
}

.section-subtitle {
  text-align: center;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--text-primary);
  opacity: 0.85;
  margin-bottom: 80px;
  margin-top: -60px;
}

/* Launch Offer Notice */
.launch-offer-text {
  text-align: center;
  margin-top: -10px;
  color: var(--text-primary);
  font-size: clamp(1rem, 2vw, 1.2rem);
  padding: 16px 24px;
  background: var(--launch-offer-bg);
  border-radius: var(--radius-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 80px;
  border: 1px solid var(--border-medium);
}

/* Price Cards Grid */
.price-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.price-card {
  padding: 3.5rem 3rem;
  text-align: left;
}

.price-card.featured {
  padding-top: 4.5rem;
}

/* Fix nested card z-index + Add gradient temporarily for testing */
.price-card.card::before {
  z-index: 0;
  background: linear-gradient(135deg, var(--glass-teal-light), var(--glass-teal-lighter));
  opacity: 0.6;
}

.price-card > * {
  position: relative;
  z-index: 2;
}

/* Badge */
.badge {
  position: absolute;
  top: 0rem;
  left: 3rem;
  background: var(--gradient-teal);
  color: var(--button-primary-text);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 12px var(--badge-shadow);
}

/* Price Card Typography */
.price-card h3 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 24px;
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  line-height: var(--line-height-snug);
}

.price {
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: var(--weight-extrabold);
  margin-bottom: 32px;
  color: var(--accent-secondary);
  line-height: 1;
}

.price span {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  opacity: 0.75;
}

.setup-fee-card {
  margin-bottom: 24px;
  font-size: var(--text-base);
  color: var(--text-primary);
  opacity: 0.8;
}

.strike-price {
  text-decoration: line-through;
  opacity: 0.5;
  margin-right: 8px;
}

/* Features List */
.features {
  list-style: none;
  margin-bottom: 40px;
  text-align: left;
  padding: 0;
}

.features li {
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-primary);
  opacity: 0.9;
  line-height: var(--line-height-relaxed);
  position: relative;
}

.features li:last-child {
  border-bottom: none;
}

.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-weight: var(--weight-bold);
  font-size: 1.1rem;
}

/* Price Card Button Full Width */
.price-card .btn {
  width: 100%;
}

/* Pricing Footer Notes */
.pricing-note {
  text-align: center;
  margin-top: 100px;
  margin-bottom: 80px;
  color: var(--text-primary);
}

.pricing-details-link {
  color: var(--accent-secondary);
  text-decoration: none;
  font-weight: var(--weight-semibold);
  transition: opacity var(--transition-base);
}

.pricing-details-link:hover {
  opacity: 0.8;
}

.capacity-notice-text {
  text-align: center;
  margin-top: -10px;
  margin-bottom: 50px;
  color: var(--text-primary);
}

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

@media (max-width: 768px) {
  /* Adjust glass etch position */
  .glass-etch {
    top: 10px;
  }

  /* CTA Section Spacing */
  .cta-title {
    margin-top: 200px; /* Critical - DO NOT CHANGE */
    margin-bottom: 12px;
  }

  .cta-bridge-intro {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .cta-bridge-closing {
    font-size: 1rem;
    margin-bottom: 50px;
    margin: 12px auto 10px;
  }

  /* Pain Points */
  .pain-points {
    margin-bottom: 12px;
    padding: 0 12px;
  }

  .pain-points li {
    font-size: 0.9rem;
    padding: 4px 0 4px 20px;
    line-height: var(--line-height-relaxed);
  }

  .pain-points li::before {
    font-size: 1.2rem;
  }

  /* Pricing Cards - Stack on Mobile */
  .price-cards {
    grid-template-columns: 1fr;
    gap: 80px;
  }

  .price-section {
    padding: 100px 24px;
  }

  .section-title {
    margin-bottom: 60px;
  }

  .section-subtitle {
    margin-bottom: 50px;
  }

  /* Why Section */
  .why-section h2 {
    font-size: 1.8rem;
  }
}
