/* ==========================================================================
   Landing Page Shared CSS
   Each page sets CSS variables via inline <style>:
     --hero-gradient, --page-color, --page-color-light,
     --cta-gradient, --faq-border, --faq-accent
   ========================================================================== */

/* ---- Hero ---- */
.landing-hero {
  background: var(--hero-gradient);
  padding: 140px 0 80px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.landing-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
  background-size: 100px;
  opacity: 0.5;
}
.landing-hero .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}
.landing-hero .badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}
.landing-hero h1 {
  font-size: 2.75rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.landing-hero .subtitle {
  font-size: 1.25rem;
  opacity: 1;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ---- Hero CTA Buttons ---- */
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cta .btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-hero-primary {
  background: white;
  color: var(--page-color);
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.btn-hero-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

/* ---- CTA Section (bottom) ---- */
.cta-section {
  background: var(--cta-gradient);
  padding: 5rem 2rem;
  text-align: center;
  color: white;
}
.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.cta-section p {
  font-size: 1.1rem;
  opacity: 1;
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.cta-section .btn {
  background: white;
  color: var(--page-color);
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}
.cta-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ---- FAQ Accordion ---- */
.faq-section {
  background: #f8fafc;
  padding: 5rem 2rem;
}
.faq-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--page-color, #1f2937);
}
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--faq-border, #e5e7eb);
}
.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--page-color, #1f2937);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}
.faq-question:hover {
  background: #f8fafc;
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--faq-accent, var(--page-color-light, #3b82f6));
  flex-shrink: 0;
}
.faq-item.active .faq-question::after {
  content: '\2212'; /* − */
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #666;
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

/* ---- Pain Points ---- */
.pain-points {
  padding: 4rem 2rem;
  background: #f8fafc;
}
.pain-points h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #1f2937;
}
.pain-points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.pain-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border-left: 4px solid #ef4444;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.pain-card h3 {
  font-size: 1.1rem;
  color: #ef4444;
  margin-bottom: 0.75rem;
}
.pain-card p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ---- RWD ---- */
@media (max-width: 768px) {
  .landing-hero { padding: 120px 0 60px; }
  .landing-hero h1 { font-size: 1.75rem; }
  .landing-hero .subtitle { font-size: 1rem; }
  .pain-points-grid { grid-template-columns: 1fr; }
}
