/* ========================================
   Solution Section
   ======================================== */
.section-solution {
  padding: var(--section-padding);
  background: var(--color-bg-white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.feature-card {
  background: var(--color-bg-white);
  border-radius: 16px;
  padding: 2.25rem 1.75rem;
  border: 1px solid #E5E7EB;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-icon-1 { background: rgba(59, 130, 246, 0.1); }
.feature-icon-2 { background: rgba(139, 92, 246, 0.1); }
.feature-icon-3 { background: rgba(254, 184, 18, 0.1); }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

/* ========================================
   Sound Change Types Section
   ======================================== */
.section-types {
  padding: var(--section-padding);
  background: var(--color-navy);
  color: #E2E8F0;
}

.section-types .section-heading h2 {
  color: #F1F5F9;
}

.section-types .section-heading p {
  color: #94A3B8;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.type-card {
  background: var(--color-navy-light);
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid transparent;
  transition: transform 0.3s ease, background 0.3s ease;
}

.type-card:hover {
  transform: translateY(-2px);
  background: #253349;
}

.type-card-linking { border-left-color: var(--sc-linking); }
.type-card-assimilation { border-left-color: var(--sc-assimilation); }
.type-card-flapping { border-left-color: var(--sc-flapping); }
.type-card-elision { border-left-color: var(--sc-elision); }
.type-card-weak-form { border-left-color: var(--sc-weak-form); }
.type-card-contraction { border-left-color: var(--sc-contraction); }

.type-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.type-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.type-card-linking .type-dot { background: var(--sc-linking); }
.type-card-assimilation .type-dot { background: var(--sc-assimilation); }
.type-card-flapping .type-dot { background: var(--sc-flapping); }
.type-card-elision .type-dot { background: var(--sc-elision); }
.type-card-weak-form .type-dot { background: var(--sc-weak-form); }
.type-card-contraction .type-dot { background: var(--sc-contraction); }

.type-example {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: #CBD5E1;
  margin-bottom: 0.4rem;
}

.type-description {
  font-size: 0.8rem;
  color: #94A3B8;
}

/* ========================================
   CTA Section
   ======================================== */
.section-cta {
  padding: var(--section-padding);
  background: var(--color-bg-white);
  text-align: center;
}

.cta-card {
  background: var(--color-navy);
  border-radius: 16px;
  padding: 3rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.cta-card .section-heading h2 {
  color: #F1F5F9;
}

.cta-card .section-heading p {
  color: #94A3B8;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  padding: 2rem 1.5rem;
  background: var(--color-navy);
  border-top: 1px solid #1E293B;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav a {
  color: #cbd5e1;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-gold);
}

.footer-copy {
  font-size: 0.8rem;
  color: #94A3B8;
}

/* ========================================
   Responsive
   ======================================== */

/* Tablet */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-text {
    max-width: 100%;
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .types-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  :root {
    --section-padding: 3.5rem 1rem;
  }

  .hero {
    padding: 6.5rem 1rem 3rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .hero-badge {
    font-size: 0.7rem;
  }

  .section-heading h2 {
    font-size: 1.5rem;
  }

  .app-mockup {
    padding: 1.5rem 1.25rem;
    max-width: 320px;
  }

  .mockup-phrase {
    font-size: 1.1rem;
  }

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

  .nav-cta {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }

  .problem-example .phrase-original {
    font-size: 1.2rem;
  }

  .problem-example .phrase-spoken {
    font-size: 1rem;
  }

  .section-problem {
    padding-top: 1.5rem;
  }

  .cta-card {
    padding: 2rem 1.25rem;
  }
}
