/* ==========================================================================
   assistants.css — /assistants
   --------------------------------------------------------------------------
   The page reuses the homepage design system (css/pages/home-v3.css): the
   hx- tokens, sections, cards, panels, mockups and scroll-reveal all come from
   there. This file only adds what is specific to this page: the hero, the
   sticky sub-nav, and the "which one do I use" table.
   Indigo #6366f1 remains the single accent.
   ========================================================================== */

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

.asx-hero {
  position: relative;
  padding-block: clamp(96px, 11vw, 150px);
  background:
    radial-gradient(58% 45% at 50% 0%,  rgba(99, 102, 241, 0.09), transparent 72%),
    radial-gradient(42% 38% at 86% 30%, rgba(99, 102, 241, 0.06), transparent 70%),
    #FCFCFD;
  border-bottom: 1px solid var(--hx-hair);
  overflow: hidden;
}
.asx-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.asx-hero__copy { max-width: 620px; }
.asx-hero__title {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  font-weight: 700;
  color: var(--hx-ink);
}
.asx-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--hx-hair);
}
.asx-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  color: var(--hx-ink-50);
}
.asx-hero__meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hx-indigo);
}

/* The four assistants as a stack of chips, in loop order. */
.asx-loop { display: grid; gap: 10px; }
.asx-loop__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--hx-hair);
  border-radius: var(--hx-r-md);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.asx-loop__row:hover {
  border-color: var(--hx-indigo-line);
  transform: translateY(-2px);
  box-shadow: var(--hx-shadow);
}
.asx-loop__ic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--hx-indigo-050);
  color: var(--hx-indigo-700);
}
.asx-loop__ic svg { width: 18px; height: 18px; }
.asx-loop__ic--fill { background: var(--hx-indigo); color: #fff; }
.asx-loop__n { display: block; font-size: 15px; font-weight: 600; color: var(--hx-ink); }
.asx-loop__d { display: block; margin-top: 2px; font-size: 13px; color: var(--hx-ink-50); }
.asx-loop__k {
  margin-left: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--hx-ink-30);
}

/* ---------- sticky sub-nav ---------- */

.asx-subnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hx-hair);
}
.asx-subnav__inner {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;                 /* never pushes the page sideways */
  scrollbar-width: none;
  padding-block: 12px;
}
.asx-subnav__inner::-webkit-scrollbar { display: none; }
.asx-subnav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--hx-ink-70);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.asx-subnav a:hover { background: var(--hx-indigo-050); color: var(--hx-indigo-700); }
.asx-subnav a.is-active { background: var(--hx-indigo); color: #fff; }

/* ---------- numbered section heads ---------- */

.asx-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--hx-indigo);
  color: #fff;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- "which one" table ---------- */

.asx-table-wrap { overflow-x: auto; margin-top: 40px; }
.asx-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.asx-table th,
.asx-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--hx-hair);
  vertical-align: top;
}
.asx-table thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hx-ink-30);
  border-bottom: 1px solid var(--hx-hair-2);
}
.asx-table tbody th {
  font-weight: 600;
  color: var(--hx-ink);
  white-space: nowrap;
}
.asx-table td { color: var(--hx-ink-70); }
.asx-table tbody tr:hover { background: #FBFBFC; }
.asx-table code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  color: var(--hx-indigo-700);
}

/* ---------- closing CTA ---------- */

.asx-cta {
  position: relative;
  padding: clamp(40px, 5vw, 68px);
  border-radius: 24px;
  background: var(--hx-mock);
  overflow: hidden;
}
.asx-cta__inner { position: relative; max-width: 640px; }
.asx-cta h2 { color: #fff; }
.asx-cta p { color: rgba(255, 255, 255, 0.68); }
.asx-cta .hx-eyebrow { color: #c7c9ff; }
.asx-cta .hx-eyebrow::before { background: #c7c9ff; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .asx-hero__grid { grid-template-columns: 1fr; }
  .asx-hero__copy { max-width: 100%; }
}
@media (max-width: 640px) {
  .asx-loop__row { padding: 14px; }
  .asx-loop__k { display: none; }
  .asx-cta { padding: 28px 22px; }
}
