/* AI Infrastructure page — scoped to .ax-ai.

   NOTE: this theme sets html { font-size: 10px }, so 1rem = 10px.
   All sizes below are written against that scale. */

.ax-ai {
  --ai-accent: #8b6fe8;
  --ai-accent-2: #35b6f6;
  --ai-line: rgba(255, 255, 255, 0.1);
  --ai-ink: rgba(255, 255, 255, 0.72);
  --ai-ink-dim: rgba(255, 255, 255, 0.52);
}

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

.ax-ai-hero {
  position: relative;
  padding: 180px 0 84px;
  overflow: hidden;
}

.ax-ai-hero::before {
  content: "";
  position: absolute;
  inset: -35% 25% auto -12%;
  height: 640px;
  background: radial-gradient(closest-side, rgba(139, 111, 232, 0.18), transparent 70%);
  pointer-events: none;
}

.ax-ai-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b9a6ff;
  border: 1px solid rgba(139, 111, 232, 0.35);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 26px;
}

.ax-ai-hero h1 {
  font-size: clamp(3.4rem, 1.8rem + 3.4vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.ax-ai-hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, #b9a6ff, #6fd3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

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

.ax-ai-kicker {
  font-size: 1.2rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b9a6ff;
  margin-bottom: 14px;
}

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

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

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

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

.ax-ai-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 111, 232, 0.4);
  background: rgba(139, 111, 232, 0.05);
}

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

.ax-ai-card p {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.ax-ai-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.2rem;
  color: #b9a6ff;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 14px;
}

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

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

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

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

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

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

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

.ax-ai-spec {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.85);
}

.ax-ai-tag {
  display: inline-block;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(139, 111, 232, 0.35);
  color: #b9a6ff;
  background: rgba(139, 111, 232, 0.12);
  white-space: nowrap;
}

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

.ax-ai-model {
  border: 1px solid var(--ai-line);
  border-radius: 18px;
  padding: 26px;
  height: 100%;
}

.ax-ai-model.is-featured {
  border-color: rgba(139, 111, 232, 0.42);
  background: rgba(139, 111, 232, 0.06);
}

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

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

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

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

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

/* ---------- steps ---------- */

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

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

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

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

.ax-ai-step p {
  font-size: 1.5rem;
  margin-bottom: 0;
}

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

.ax-ai-callout {
  border: 1px solid rgba(139, 111, 232, 0.3);
  background: linear-gradient(180deg, rgba(139, 111, 232, 0.08), rgba(53, 182, 246, 0.03));
  border-radius: 20px;
  padding: 34px;
}

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

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

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

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

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

.ax-ai-faq summary::after {
  content: "+";
  color: #b9a6ff;
  font-size: 2.2rem;
  line-height: 1;
  flex: 0 0 auto;
}

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

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

.ax-ai-note {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 767px) {
  .ax-ai-hero {
    padding: 140px 0 60px;
  }

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

  .ax-ai-callout {
    padding: 22px;
  }
}

/* ---------- 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` lines all
   three up — do not size them individually, and re-run the build if the art
   changes. Reminder: 1rem = 10px in this theme, so these are set in px. */

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

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

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

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

  .ax-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 to 360px. */
@media (max-width: 479.98px) {
  .ax-partner-row {
    gap: 18px 22px;
  }

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

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