/* ===== INDEX PAGE IMPROVEMENTS ===== */
/* Shared styles for /frameworks/ and /industries/ landing pages */

/* Hero Section */
.index-hero {
  background: linear-gradient(135deg, var(--navy, #0A2342) 0%, var(--slate, #2C3E50) 100%);
  color: white;
  padding: var(--s-8, 80px) 0 var(--s-7, 60px);
  position: relative;
  overflow: hidden;
}

.index-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.index-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.index-hero h1 {
  color: white;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--s-4, 24px);
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.index-hero-description {
  font-size: 1.3rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--s-6, 40px);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards Grid */
.cards-section {
  padding: var(--s-8, 80px) 0;
  background: var(--gray-50, #F5F6FA);
}

.cards-grid {
  display: grid;
  gap: var(--s-6, 40px);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: var(--s-6, 40px);
}

@media (min-width: 768px) {
  .frameworks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual Cards */
.framework-card,
.industry-card {
  background: white;
  border-radius: var(--radius-3, 16px);
  padding: var(--s-6, 40px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
}

.framework-card.is-visible,
.industry-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.framework-card:hover,
.industry-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: var(--sky, #4FC3F7);
}

/* Card Icon */
.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--s-4, 24px);
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.1) 0%, rgba(46, 204, 113, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 3px solid rgba(79, 195, 247, 0.3);
  transition: all 0.3s ease;
}

.framework-card:hover .card-icon,
.industry-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--emerald, #2ECC71);
  box-shadow: 0 8px 24px rgba(79, 195, 247, 0.3);
}

/* Card Badge */
.card-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--s-3, 16px);
  background: linear-gradient(135deg, var(--sky, #4FC3F7) 0%, var(--emerald, #2ECC71) 100%);
  color: white;
}

.compliance-badge {
  background: linear-gradient(135deg, var(--emerald, #2ECC71) 0%, #27AE60 100%);
}

/* Card Title */
.framework-card h3,
.industry-card h3 {
  color: var(--navy, #0A2342);
  font-size: 1.8rem;
  margin-bottom: var(--s-3, 16px);
  font-weight: 700;
  text-align: center;
}

/* Card Description */
.card-description {
  color: var(--slate, #2C3E50);
  line-height: 1.6;
  margin-bottom: var(--s-4, 24px);
  text-align: center;
}

/* Card Features List */
.card-features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--s-4, 24px);
}

.card-features li {
  padding: var(--s-2, 10px) 0 var(--s-2, 10px) 28px;
  position: relative;
  color: var(--slate, #2C3E50);
  line-height: 1.5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--emerald, #2ECC71);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Card Metric */
.card-metric {
  text-align: center;
  padding: var(--s-3, 16px);
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, rgba(79, 195, 247, 0.05) 100%);
  border-radius: var(--radius-2, 8px);
  margin-bottom: var(--s-4, 24px);
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.card-metric strong {
  display: block;
  color: var(--emerald, #2ECC71);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--s-1, 4px);
}

/* Card Button */
.card-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--sky, #4FC3F7) 0%, var(--emerald, #2ECC71) 100%);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-2, 8px);
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 195, 247, 0.4);
  background: linear-gradient(135deg, var(--emerald, #2ECC71) 0%, var(--sky, #4FC3F7) 100%);
  color:white;
}

/* Benefits Section */
.benefits-section {
  padding: var(--s-8, 80px) 0;
  background: white;
}

.benefits-section h2 {
  text-align: center;
  margin-bottom: var(--s-7, 48px);
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.benefits-grid {
  display: grid;
  gap: var(--s-6, 40px);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.benefit-card {
  text-align: center;
  padding: var(--s-5, 32px);
  background: var(--gray-50, #F5F6FA);
  border-radius: var(--radius-2, 12px);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: var(--s-3, 16px);
}

.benefit-card h3 {
  color: var(--navy, #0A2342);
  margin-bottom: var(--s-2, 12px);
  font-size: 1.3rem;
}

.benefit-card p {
  color: var(--slate, #2C3E50);
  line-height: 1.6;
  margin: 0;
}

/* Comparison Table Section */
.comparison-section {
  padding: var(--s-8, 80px) 0;
  background: var(--gray-50, #F5F6FA);
}

.comparison-section h2 {
  text-align: center;
  margin-bottom: var(--s-7, 48px);
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.comparison-table {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-2, 12px);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: var(--s-4, 20px);
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-table th {
  background: linear-gradient(135deg, var(--navy, #0A2342) 0%, var(--slate, #2C3E50) 100%);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.comparison-table tbody tr:hover {
  background: var(--gray-50, #F5F6FA);
}

.comparison-table .framework-name {
  font-weight: 600;
  color: var(--navy, #0A2342);
}

.comparison-table .check {
  color: var(--emerald, #2ECC71);
  font-size: 1.2rem;
  font-weight: 700;
}

/* Stats Section (Industries) */
.stats-section-index {
  padding: var(--s-8, 80px) 0;
  background: linear-gradient(135deg, var(--navy, #0A2342) 0%, var(--slate, #2C3E50) 100%);
  color: white;
}

.stats-section-index h2 {
  color: white;
  text-align: center;
  margin-bottom: var(--s-7, 48px);
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.stats-grid-index {
  display: grid;
  gap: var(--s-6, 40px);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: var(--s-5, 32px);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-2, 12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number-index {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--emerald, #2ECC71);
  margin-bottom: var(--s-2, 12px);
  line-height: 1;
}

.stat-label-index {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 600;
}

/* CTA Section */
.index-cta {
  padding: var(--s-8, 80px) 0;
  background: white;
  text-align: center;
}

.index-cta h2 {
  margin-bottom: var(--s-4, 24px);
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.index-cta p {
  font-size: 1.2rem;
  color: var(--slate, #2C3E50);
  margin-bottom: var(--s-5, 32px);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Table */
@media (max-width: 768px) {
  .comparison-table {
    overflow-x: auto;
  }

  .comparison-table table {
    min-width: 600px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .framework-card,
  .industry-card,
  .benefit-card,
  .card-icon,
  .card-btn {
    transition: none;
    animation: none;
  }

  .framework-card,
  .industry-card {
    opacity: 1;
    transform: none;
  }
}

/* Print Styles */
@media print {
  .index-hero {
    background: white;
    color: black;
  }

  .framework-card,
  .industry-card {
    box-shadow: none;
    border: 1px solid #333;
    break-inside: avoid;
  }

  .stats-section-index {
    background: white;
    color: black;
  }
}
