:root {
  --ai-navy: #071628;
  --ai-blue: #0c5d91;
  --ai-cyan: #1aa7c8;
  --ai-gold: #f4b400;
  --ai-ink: #142033;
  --ai-muted: #5e6d82;
  --ai-line: #dce5ee;
  --ai-soft: #f2f7fb;
}

.ai-page {
  color: var(--ai-ink);
  font-size: 1.03rem;
  line-height: 1.72;
}

.ai-page h2,
.ai-page h3 {
  color: var(--ai-navy);
  line-height: 1.2;
}

.ai-page h2 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
}

.ai-page h3 {
  margin: 0 0 9px;
  font-size: 1.16rem;
}

.ai-page p {
  margin: 0 0 16px;
}

.ai-project-card,
.ai-section,
.ai-quote-section,
.ai-faq {
  margin: 0 0 26px;
  padding: clamp(21px, 3vw, 31px);
  border: 1px solid var(--ai-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 13px 32px rgba(7, 22, 40, .07);
}

.ai-project-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 8%, rgba(26, 167, 200, .17), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f2f8fc 100%);
}

.ai-project-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(var(--ai-cyan), var(--ai-blue));
  content: "";
}

.ai-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e4f4fa;
  color: #064e70;
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.ai-lead {
  color: #1d2b40;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.65;
}

.ai-feature {
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid rgba(7, 22, 40, .11);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 15px 34px rgba(7, 22, 40, .12);
}

.ai-feature img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  object-fit: cover;
}

.ai-feature figcaption {
  padding: 12px 15px;
  color: var(--ai-muted);
  font-size: .9rem;
  font-weight: 700;
}

.ai-fact-grid,
.ai-load-grid,
.ai-route-grid,
.ai-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.ai-fact,
.ai-load,
.ai-route,
.ai-page-link {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--ai-line);
  border-radius: 16px;
  background: var(--ai-soft);
}

.ai-fact strong,
.ai-load strong,
.ai-route strong,
.ai-page-link strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ai-navy);
  font-size: 1.02rem;
}

.ai-fact p,
.ai-load p,
.ai-route p,
.ai-page-link p {
  margin: 0;
  color: #405066;
  font-size: .95rem;
}

.ai-source-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--ai-line);
  color: var(--ai-muted);
  font-size: .88rem;
}

.ai-source-note a {
  font-weight: 800;
}

.ai-section--dark {
  color: #eef6fb;
  border-color: #183653;
  background: linear-gradient(135deg, #071628, #0a3555);
  box-shadow: 0 18px 38px rgba(7, 22, 40, .2);
}

.ai-section--dark h2,
.ai-section--dark h3,
.ai-section--dark strong,
.ai-section--dark p {
  color: #fff;
}

.ai-section--dark .ai-load {
  border-color: rgba(255, 255, 255, .17);
  background: rgba(255, 255, 255, .075);
}

.ai-section--dark .ai-load p {
  color: #d9e8f2;
}

.ai-checklist {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ai-checklist li {
  position: relative;
  margin: 10px 0;
  padding-left: 29px;
}

.ai-checklist li::before {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ai-blue);
  content: "✓";
  font-weight: 900;
}

.ai-phase-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 19px;
}

.ai-phase-bar div {
  padding: 13px 10px;
  border: 1px solid var(--ai-line);
  border-radius: 13px;
  background: #f8fafc;
  color: #26384f;
  font-size: .86rem;
  font-weight: 800;
  text-align: center;
}

.ai-quote-section {
  border: 0;
  color: #fff;
  background: linear-gradient(120deg, #0b2d4b, #0c5d91);
  box-shadow: 0 17px 38px rgba(7, 22, 40, .22);
}

.ai-quote-section h2,
.ai-quote-section p {
  color: #fff;
}

.ai-quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 19px;
}

.ai-quote-actions .btn.secondary {
  border-color: #fff;
  color: #fff !important;
}

.ai-faq details {
  padding: 15px 0;
  border-top: 1px solid var(--ai-line);
}

.ai-faq details:first-of-type {
  border-top: 0;
}

.ai-faq summary {
  color: var(--ai-navy);
  cursor: pointer;
  font-weight: 900;
}

.ai-disclaimer {
  padding: 13px 15px;
  border-left: 4px solid var(--ai-gold);
  border-radius: 8px;
  background: #fff8dc;
  color: #5d4a09;
  font-size: .86rem;
}

.ai-page-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.ai-page-link:hover,
.ai-page-link:focus {
  border-color: #8ec8dc;
  box-shadow: 0 10px 24px rgba(7, 22, 40, .11);
  text-decoration: none;
  transform: translateY(-2px);
}

.ai-hub-image {
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: 16px;
  object-fit: cover;
}

@media (max-width: 760px) {
  .ai-fact-grid,
  .ai-load-grid,
  .ai-route-grid,
  .ai-page-grid {
    grid-template-columns: 1fr;
  }

  .ai-phase-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .ai-project-card,
  .ai-section,
  .ai-quote-section,
  .ai-faq {
    padding: 19px;
    border-radius: 17px;
  }

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

  .ai-quote-actions .btn {
    width: 100%;
    text-align: center;
  }
}
