/* AI Infrastructure page — scoped to .cc-ai so nothing here reaches the
   homepage. Reuses the site's dark palette and its periwinkle accent
   (#8f9bff) rather than introducing a second visual language. */

.cc-ai {
  --ai-accent: #8f9bff;
  --ai-accent-soft: rgba(143, 155, 255, 0.12);
  --ai-line: rgba(255, 255, 255, 0.09);
  --ai-ink: rgba(255, 255, 255, 0.72);
  --ai-ink-dim: rgba(255, 255, 255, 0.55);
}

/* ---------- hero ---------- */

.cc-ai-hero {
  position: relative;
  padding: 190px 0 90px;
  overflow: hidden;
}

.cc-ai-hero::before {
  content: "";
  position: absolute;
  inset: -30% 20% auto -10%;
  height: 620px;
  background: radial-gradient(closest-side, rgba(143, 155, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.cc-ai-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ai-accent);
  border: 1px solid rgba(143, 155, 255, 0.28);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 26px;
}

.cc-ai-hero h1 {
  font-size: clamp(2.4rem, 1.4rem + 3.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.cc-ai-hero h1 em {
  font-style: normal;
  color: var(--ai-accent);
}

.cc-ai-lede {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ai-ink);
  max-width: 62ch;
}

/* ---------- shared section furniture ---------- */

.cc-ai-section {
  padding: 84px 0;
  border-top: 1px solid var(--ai-line);
}

.cc-ai-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ai-accent);
  margin-bottom: 14px;
}

.cc-ai-section h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.cc-ai-section p {
  color: var(--ai-ink);
  line-height: 1.75;
}

/* ---------- cards ---------- */

.cc-ai-card {
  border: 1px solid var(--ai-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.015);
  padding: 1.9rem;
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.cc-ai-card:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 155, 255, 0.35);
  background: rgba(143, 155, 255, 0.04);
}

.cc-ai-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.cc-ai-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--ai-ink);
}

.cc-ai-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: var(--ai-accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 14px;
}

/* ---------- fleet table ---------- */

.cc-ai-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ai-line);
  border-radius: 18px;
}

.cc-ai-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.cc-ai-table th,
.cc-ai-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--ai-line);
  vertical-align: top;
}

.cc-ai-table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ai-ink-dim);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
}

.cc-ai-table tbody tr:last-child td {
  border-bottom: none;
}

.cc-ai-table td:first-child {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.cc-ai-table td {
  color: var(--ai-ink);
}

.cc-ai-spec {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
}

.cc-ai-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(143, 155, 255, 0.3);
  color: var(--ai-accent);
  background: var(--ai-accent-soft);
  white-space: nowrap;
}

/* ---------- commercial models ---------- */

.cc-ai-model {
  border: 1px solid var(--ai-line);
  border-radius: 18px;
  padding: 1.9rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cc-ai-model.is-featured {
  border-color: rgba(143, 155, 255, 0.38);
  background: rgba(143, 155, 255, 0.05);
}

.cc-ai-model h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.cc-ai-model .cc-ai-model-sub {
  font-size: 0.82rem;
  color: var(--ai-ink-dim);
  margin-bottom: 18px;
}

.cc-ai-model ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cc-ai-model li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.93rem;
  color: var(--ai-ink);
  line-height: 1.6;
}

.cc-ai-model li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ai-accent);
}

/* ---------- process ---------- */

.cc-ai-step {
  border-left: 2px solid var(--ai-line);
  padding: 0 0 30px 26px;
  position: relative;
}

.cc-ai-step:last-child {
  padding-bottom: 0;
}

.cc-ai-step::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ai-accent);
}

.cc-ai-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.cc-ai-step p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- callout ---------- */

.cc-ai-callout {
  border: 1px solid rgba(143, 155, 255, 0.28);
  background: linear-gradient(180deg, rgba(143, 155, 255, 0.07), rgba(143, 155, 255, 0.02));
  border-radius: 20px;
  padding: 2.4rem;
}

.cc-ai-callout h2 {
  margin-bottom: 12px;
}

/* ---------- faq ---------- */

.cc-ai-faq details {
  border-bottom: 1px solid var(--ai-line);
  padding: 20px 0;
}

.cc-ai-faq summary {
  cursor: pointer;
  font-size: 1.02rem;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.cc-ai-faq summary::-webkit-details-marker {
  display: none;
}

.cc-ai-faq summary::after {
  content: "+";
  color: var(--ai-accent);
  font-size: 1.3rem;
  line-height: 1;
  flex: 0 0 auto;
}

.cc-ai-faq details[open] summary::after {
  content: "\2212";
}

.cc-ai-faq details p {
  margin: 14px 0 0;
  font-size: 0.95rem;
  max-width: 78ch;
}

@media (max-width: 767px) {
  .cc-ai-hero {
    padding: 150px 0 64px;
  }

  .cc-ai-section {
    padding: 60px 0;
  }

  .cc-ai-callout {
    padding: 1.6rem;
  }
}

/* ---------- partner accreditation row ----------
   Reversed-white badge artwork sitting directly on the dark hero with no
   container. Held at 72% opacity so it reads as provenance rather than
   advertising, and comes to full strength on hover.

   The three PNGs are pre-normalised (see tools/build-partner-badges.py): each is scaled so
   its type has the same cap height, then padded to one canvas height with the
   text blocks aligned. That is why a single `height` here lines all three up —
   do not size them individually, and re-run the build if the art changes. */

.cc-partner-row {
  list-style: none;
  padding: 0;
  margin: 46px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 62px;
}

.cc-partner-row-center {
  justify-content: center;
}

.cc-partner-row img {
  display: block;
  width: auto;
  height: 36px;
  opacity: 0.72;
  transition: opacity 0.25s ease;
}

.cc-partner-row img:hover {
  opacity: 1;
}

@media (max-width: 767.98px) {
  .cc-partner-row {
    justify-content: center;
    gap: 22px 40px;
    margin-top: 36px;
  }

  .cc-partner-row img {
    height: 32px;
  }
}

/* The three lockups total 9.1x their rendered height in width. Below ~480px
   that no longer fits beside two gaps, and the row breaks 2 + 1 — which reads
   as a mistake rather than a layout. Shrink so all three hold one line down to
   a 360px viewport. */
@media (max-width: 479.98px) {
  .cc-partner-row {
    gap: 18px 22px;
  }

  .cc-partner-row img {
    height: 26px;
  }
}

/* 320px (old iPhone SE): close the gaps rather than shrink the marks further. */
@media (max-width: 359.98px) {
  .cc-partner-row {
    gap: 16px 14px;
  }
}
