/* ============================================================
   PREDICTIVE ANALYTICS PAGE — CORRECTED CSS
   Fixes: alignment, padding, grid layouts, section spacing,
   strategy grid, lifecycle grid, industries grid, FAQ, CTA
   ============================================================ */

:root {
  --dark-bg: #020b1a;
  --dark-card: #05122b;
  --dark-card-alt: #0d1f3c;
  --accent-orange: #ff7a3d;
  --accent-blue: #3b82f6;
  --text-gray: #94a3b8;
  --text-muted: #64748b;
  --white: #ffffff;
  --light-bg: #ffffff;
  --border-subtle: rgba(255, 255, 255, 0.07);
}

* {
  box-sizing: border-box;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.enterprise-hero {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 100px 6% 60px;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 80px;
}

.badge {
  display: inline-block;
  background: rgba(255, 122, 61, 0.12);
  color: var(--accent-orange);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-text h1 {
  font-size: 58px;
  line-height: 1.1;
  margin: 20px 0 24px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
}

.hero-text p {
  color: var(--text-gray);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.cta-group {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(255, 122, 61, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 122, 61, 0.4);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  color: var(--text-gray);
  text-decoration: none;
  margin-left: 28px;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.btn-secondary:hover {
  color: var(--white);
  text-decoration: none;
}

.btn-secondary .arrow {
  transition: transform 0.2s ease;
}

.btn-secondary:hover .arrow {
  transform: translateX(4px);
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
  z-index: 2;
  position: relative;
  display: block;
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* Stats */
.stats-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 60px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
}

.stat-card h3 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-card p {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

/* ============================================================
   STRATEGY SECTION
   ============================================================ */
.strategy-section {
  padding: 90px 6%;
  background-color: var(--light-bg);
  font-family: 'Inter', sans-serif;
}

.strategy-section .header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.strategy-section .header h2 {
  font-size: 34px;
  color: #0f172a;
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.strategy-section .header p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0;
}

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

/* Desktop layout */
.feature-card.large {
  grid-column: span 2;
}

.strategy-grid .feature-card:nth-child(2) {
  grid-column: 3;
}

/* Card styles */
.feature-card {
  background-color: #1e2d42;
  border-radius: 16px;
  padding: 36px 32px;
  text-align: left;
  color: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.icon {
  font-size: 26px;
  line-height: 1;
  display: inline-block;
  margin-bottom: 4px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 16px 0 12px;
  color: var(--white);
}

.feature-card p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* ✅ Tablet */
@media (max-width: 992px) {
  .strategy-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Reset layout */
  .strategy-grid .feature-card {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .feature-card.large {
    grid-column: span 2;
  }

  .strategy-section {
    padding: 70px 5%;
  }
}

/* ✅ Mobile */
@media (max-width: 576px) {
  .strategy-grid {
    grid-template-columns: 1fr;
    gap: 12px; /* 🔥 tighter gap */
  }

  .feature-card.large {
    grid-column: span 1;
  }

  .strategy-section {
    padding: 50px 16px; /* 🔥 reduced spacing */
  }

  .strategy-section .header {
    margin-bottom: 30px;
  }

  .strategy-section .header h2 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .strategy-section .header p {
    font-size: 14px;
  }

  .feature-card {
    padding: 20px 18px; /* 🔥 compact cards */
    border-radius: 12px;
  }

  .feature-card h3 {
    font-size: 17px;
    margin: 12px 0 8px;
  }

  .feature-card p {
    font-size: 13px;
    line-height: 1.5;
  }

  .icon {
    font-size: 22px;
    margin-bottom: 2px;
  }
}

/* ============================================================
   MODALITIES SECTION (DARK — CAPABILITIES)
   ============================================================ */
.modalities-section {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 100px 6%;
  font-family: 'Inter', sans-serif;
}

.modalities-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 56px;
  max-width: 1100px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.title-group .eyebrow {
  color: var(--accent-orange);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.title-group h2 {
  font-size: 36px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.5px;
  color: var(--white);
}

.header-description {
  max-width: 300px;
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.6;
  text-align: right;
  margin: 0;
  padding-top: 46px; /* Align with h2 baseline */
}

.modalities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1100px;
  margin-inline: auto;
}

.modality-card {
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.modality-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 61, 0.2);
}

.image-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 4px;
}

.image-wrapper img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 18px 0 10px;
  color: var(--white);
}

.card-body p {
  color: var(--text-gray);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   INTELLIGENCE STACK (LIGHT)
   ============================================================ */
.intelligence-stack {
  padding: 110px 6%;
  background-color: var(--light-bg);
  font-family: 'Inter', sans-serif;
}

.stack-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
  margin-inline: auto;
  align-items: center;
}

.stack-visual img {
  width: 100%;
  border-radius: 28px;
  display: block;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.stack-content h2 {
  font-size: 42px;
  color: #0f172a;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -1px;
}

.stack-intro {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 44px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background-color: #fff1eb;
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #0f172a;
}

.feature-text p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   LIFECYCLE SECTION
   ============================================================ */
.lifecycle-section {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 100px 6%;
  font-family: 'Inter', sans-serif;
}

.lifecycle-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.lifecycle-section .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.lifecycle-section .section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--white);
  letter-spacing: -0.5px;
}

.lifecycle-section .section-header p {
  color: var(--text-gray);
  font-size: 15px;
  margin: 0 auto;
  max-width: 500px;
}

.lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.25);
}

.bg-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 52px;
  font-weight: 900;
  /*color: rgba(255, 255, 255, 0.04);*/
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.card-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.card-content p {
  color: var(--text-gray);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   INDUSTRIES SECTION
   ============================================================ */
.industries-section {
  background-color: var(--light-bg);
  padding: 90px 6%;
  font-family: 'Inter', sans-serif;
}

.industries-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.industries-section .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.industries-section .section-header h2 {
  font-size: 34px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin: 0;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.industry-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.industry-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.industry-top .icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.industry-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

.industry-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.industry-card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 100px 6%;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

.faq-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.faq-section h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 50px;
  letter-spacing: -0.5px;
  color: var(--white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 14px;
  padding: 22px 26px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

details[open] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 122, 61, 0.25);
}

summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  gap: 20px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '⌄';
  font-size: 18px;
  color: var(--text-gray);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

details[open] summary::after {
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: 14px;
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.7;
}

.faq-answer p {
  margin: 0;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  padding: 100px 6%;
  background-color: var(--light-bg);
  font-family: 'Inter', sans-serif;
}

.cta-card {
  max-width: 1000px;
  margin: 0 auto;
  background: linear-gradient(135deg, #1e2d42 0%, #0d1f3c 60%, #162236 100%);
  border-radius: 28px;
  padding: 90px 60px;
  text-align: center;
  color: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-card h2 {
  font-size: 46px;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -1px;
  color: var(--white);
}

.cta-card p {
  color: #94a3b8;
  font-size: 17px;
  margin-bottom: 44px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.btn-gradient {
  display: inline-block;
  background: linear-gradient(90deg, #93c5fd 0%, #3b82f6 100%);
  color: #020b1a;
  padding: 18px 38px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  letter-spacing: 0.2px;
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
  text-decoration: none;
  color: #020b1a;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1100px) {
  .hero-text h1 { font-size: 46px; }
  .modalities-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .lifecycle-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-container { gap: 50px; }
}

@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; gap: 40px; }
  .hero-text h1 { font-size: 40px; }
  .hero-image { display: none; }
  .strategy-grid { grid-template-columns: 1fr; }
  .feature-card.large { grid-column: span 1; }
  .strategy-grid .feature-card:nth-child(2) { grid-column: 1; grid-row: auto; }
  .modalities-header { flex-direction: column; gap: 16px; }
  .header-description { text-align: left; padding-top: 0; max-width: 100%; }
  .stack-container { grid-template-columns: 1fr; gap: 50px; }
  .lifecycle-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .enterprise-hero { padding: 70px 5% 50px; }
  .stats-grid { flex-direction: column; gap: 30px; padding-top: 40px; }
  .modalities-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 60px 30px; }
  .cta-card h2 { font-size: 32px; }
  .strategy-section,
  .modalities-section,
  .intelligence-stack,
  .lifecycle-section,
  .industries-section,
  .faq-section,
  .cta-final { padding-left: 5%; padding-right: 5%; }
}