/* AI Page Content Sections
 * Styles for content below the matrix hero
 * All classes prefixed with ai- to avoid collisions
 */

/* ==========================================
   SECTION BASE
   ========================================== */
.ai-section {
  padding: 80px 3rem;
  background: var(--bg-primary);
  transition: var(--theme-transition);
  position: relative;
  z-index: 1;
}

.ai-section--alt {
  background: var(--bg-secondary);
}

/* Moss green (dark) / baby blue (light) backgrounds — matches home & datacenter */
html:not([data-theme="light"]) .sticky-tab-section#sovereign .ai-section {
  background: #1B2F2B;
}

[data-theme="light"] .sticky-tab-section#sovereign .ai-section {
  background: #9cc6db;
}

html:not([data-theme="light"]) .ai-teaser--networking {
  background: #1B2F2B;
}

[data-theme="light"] .ai-teaser--networking {
  background: #9cc6db;
}

.ai-section-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Section header pattern */
.ai-section-header {
  margin-bottom: 56px;
}

.ai-section-header .eyebrow {
  margin-bottom: 16px;
}

.ai-section-header .section-headline {
  margin-bottom: 16px;
}

.ai-section-header .section-subhead {
  max-width: 680px;
}

/* ==========================================
   SOVEREIGN AI CARDS
   ========================================== */
.ai-sovereign-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ai-sovereign-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.ai-sovereign-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.ai-sovereign-number {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-orange);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  display: block;
}

.ai-sovereign-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(120, 175, 46, 0.1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-orange);
}

[data-theme="light"] .ai-sovereign-icon {
  background: rgba(2, 94, 196, 0.08);
}

.ai-sovereign-icon i,
.ai-sovereign-icon svg {
  width: 22px;
  height: 22px;
}

/* ==========================================
   SOVEREIGN AI CARD IMAGES
   ========================================== */
.ai-sovereign-img {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.ai-sovereign-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ai-sovereign-card:hover .ai-sovereign-img img {
  transform: scale(1.03);
}

.ai-sovereign-title {
  font-family: 'Geist', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
  line-height: 1.3;
}

.ai-sovereign-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  transition: border-color 0.2s ease;
}

.ai-sovereign-card:hover .ai-tag {
  border-color: var(--border-hover);
}

/* ==========================================
   PLATFORM SERVICES FILTER + CARDS
   ========================================== */
.ai-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.ai-filter-btn {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.ai-filter-btn:hover {
  border-color: var(--accent-orange);
  color: var(--text-primary);
}

.ai-filter-btn.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #FFFFFF;
}

.ai-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.ai-service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease,
    opacity 0.3s ease;
}

.ai-service-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.ai-service-card.ai-card--hidden {
  opacity: 0;
  transform: scale(0.95);
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}

.ai-service-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(120, 175, 46, 0.1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent-orange);
}

[data-theme="light"] .ai-service-icon {
  background: rgba(2, 94, 196, 0.08);
}

.ai-service-icon i,
.ai-service-icon svg {
  width: 20px;
  height: 20px;
}

/* ==========================================
   SERVICE CARD IMAGES
   ========================================== */
.ai-service-img {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.ai-service-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ai-service-card:hover .ai-service-img img {
  transform: scale(1.03);
}

.ai-service-title {
  font-family: 'Geist', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.ai-service-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.ai-service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-service-badge {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(120, 175, 46, 0.1);
  color: var(--accent-orange);
  border: 1px solid var(--border);
}

[data-theme="light"] .ai-service-badge {
  background: rgba(2, 94, 196, 0.06);
}

.ai-service-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.ai-service-link:hover {
  gap: 8px;
}

/* ==========================================
   TEASER BANNERS
   ========================================== */
.ai-teaser {
  padding: 64px 3rem;
  transition: var(--theme-transition);
}

.ai-teaser--networking {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ai-teaser--sustainability {
  background: var(--bg-primary);
}

.ai-teaser-container {
  max-width: 1400px;
  margin: 0 auto;
}

.ai-teaser-badge {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-orange);
  margin-bottom: 16px;
  display: block;
}

.ai-teaser-inner {
  display: block;
  width: 100%;
}

.ai-teaser-content {
  max-width: 640px;
}

.ai-teaser-graphic {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-teaser-graphic .line-art {
  width: 280px;
  height: 280px;
}

.ai-teaser-title {
  font-family: 'Geist', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 12px;
  line-height: 1.2;
}

.ai-teaser-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 24px;
}

.ai-teaser-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.ai-teaser-stat {
  display: flex;
  flex-direction: column;
}

.ai-teaser-stat-value {
  font-family: 'Geist', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-orange);
}

.ai-teaser-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.ai-teaser-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s ease;
}

.ai-teaser-link:hover {
  gap: 12px;
}

/* ==========================================
   RESPONSIVE - TABLET (<=1023px)
   ========================================== */
@media (max-width: 1023px) {
  .ai-section {
    padding: 64px 2rem;
  }

  .ai-sovereign-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 24px;
  }

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

  .ai-teaser {
    padding: 64px 2rem;
  }

  .ai-teaser-inner {
    gap: 32px;
  }
}

/* ==========================================
   RESPONSIVE - MOBILE (<=767px)
   ========================================== */
@media (max-width: 767px) {
  .ai-section {
    padding: 48px 1.25rem;
  }

  .ai-section-header {
    margin-bottom: 36px;
  }

  .ai-sovereign-grid {
    max-width: none;
  }

  .ai-services-grid {
    grid-template-columns: 1fr;
  }

  .ai-filter-bar {
    gap: 6px;
  }

  .ai-filter-btn {
    font-size: 12px;
    padding: 6px 14px;
  }

  .ai-teaser {
    padding: 40px 1.25rem;
  }

  .ai-teaser-inner {
    flex-direction: column-reverse;
    gap: 32px;
    text-align: center;
  }

  .ai-teaser-content {
    max-width: 100%;
  }

  .ai-teaser-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .ai-teaser-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .ai-teaser-graphic .line-art {
    width: 200px;
    height: 200px;
  }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {

  .ai-sovereign-card,
  .ai-service-card {
    transition: none;
  }

  .scroll-animate {
    opacity: 1;
    transform: none;
  }
}