.api-hub-v3 {
  --api3-ink: #10214a;
  --api3-copy: #526789;
  --api3-line: #dce9f5;
  --api3-blue: #1f66e5;
  --api3-blue-dark: #164bb9;
  --api3-green: #10b981;
  --api3-green-dark: #06956a;
  --api3-orange: #e78a52;
  --api3-violet: #7658e7;
  --api3-soft: #f6faff;
  color: var(--api3-ink);
  background: #fff;
}

.api-hub-v3 main {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 7%, rgb(31 102 229 / 5%), transparent 20%),
    #fff;
}

.api3-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.api3-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e4eff8;
  background:
    radial-gradient(circle at 88% 24%, rgb(95 223 255 / 26%), transparent 28%),
    linear-gradient(112deg, #fff 0%, #f5fbff 54%, #edfbff 100%);
}

.api3-hero::before,
.api3-hero::after {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  content: "";
}

.api3-hero::before {
  top: -190px;
  right: -120px;
  width: 460px;
  height: 460px;
  border: 1px solid rgb(71 176 255 / 22%);
  box-shadow: 0 0 0 38px rgb(71 176 255 / 5%), 0 0 0 78px rgb(16 185 129 / 4%);
}

.api3-hero::after {
  right: 26%;
  bottom: -95px;
  width: 220px;
  height: 220px;
  background: rgb(112 231 214 / 10%);
  filter: blur(4px);
}

.api3-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, 0.75fr);
  gap: 42px;
  align-items: center;
  min-height: 440px;
  padding-block: 30px 38px;
}

.api3-breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 30px;
  color: #7285a3;
  font-size: 13px;
  font-weight: 700;
}

.api3-breadcrumbs a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #607694;
}

.api3-breadcrumbs svg {
  width: 15px;
  height: 15px;
}

.api3-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid #cde2f6;
  border-radius: 999px;
  color: #1665c5;
  background: rgb(255 255 255 / 76%);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.api3-hero h1 {
  max-width: 790px;
  margin: 18px 0 14px;
  color: var(--api3-ink);
  font-size: clamp(2.5rem, 4.4vw, 4.15rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.api3-hero h1 em {
  display: block;
  margin-top: 8px;
  color: var(--api3-blue-dark);
  font-size: 0.66em;
  font-style: normal;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

.api3-hero-copy > p {
  max-width: 760px;
  margin: 0;
  color: #587092;
  font-size: 17px;
  line-height: 1.8;
}

.api3-hero-art {
  position: relative;
  min-height: 380px;
  isolation: isolate;
}

.api3-orbit {
  position: absolute;
  border: 1px solid rgb(37 154 232 / 28%);
  border-radius: 50%;
  transform: rotate(-20deg);
}

.api3-orbit.one {
  inset: 52px -30px 54px 20px;
  background: linear-gradient(145deg, rgb(255 255 255 / 20%), rgb(68 201 245 / 8%));
}

.api3-orbit.two {
  inset: 82px -4px 80px 48px;
  border-color: rgb(29 211 172 / 28%);
  box-shadow: inset 0 0 80px rgb(85 206 246 / 12%);
}

.api3-provider-badge {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 154px;
  min-height: 194px;
  padding: 20px 16px;
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 16px;
  background: rgb(255 255 255 / 73%);
  box-shadow: 0 24px 52px rgb(26 102 164 / 17%);
  backdrop-filter: blur(10px);
  transform: rotate(-4deg);
}

.api3-provider-badge.openai {
  top: 91px;
  left: 34px;
}

.api3-provider-badge.anthropic {
  top: 68px;
  right: 5px;
  transform: rotate(4deg);
}

.api3-provider-badge > span {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 20px;
  color: #087d69;
  background: #e8fbf7;
  font-size: 31px;
  font-weight: 900;
}

.api3-provider-badge.anthropic > span {
  color: #bd714f;
  background: #fff2eb;
}

.api3-provider-badge svg {
  width: 37px;
  height: 37px;
}

.api3-provider-badge b {
  margin-top: 13px;
  color: #10214a;
  font-size: 19px;
}

.api3-provider-badge small {
  color: #2d62bc;
  font-size: 13px;
  font-weight: 800;
}

.api3-hand-note {
  position: absolute;
  top: 18px;
  right: 36px;
  z-index: 3;
  color: #2453a8;
  font-family: "KaiTi", "STKaiti", cursive;
  font-size: 23px;
  line-height: 1.4;
  transform: rotate(-8deg);
}

.api3-hand-note::after {
  display: block;
  width: 124px;
  height: 9px;
  margin-top: 4px;
  border-top: 2px solid #2469d4;
  border-radius: 50%;
  transform: rotate(-5deg);
  content: "";
}

.api3-hero-art > p {
  position: absolute;
  right: 33px;
  bottom: 24px;
  z-index: 3;
  margin: 0;
  color: #2259b1;
  font-family: "KaiTi", "STKaiti", cursive;
  font-size: 17px;
  font-weight: 700;
  transform: rotate(-4deg);
}

.api3-section {
  padding: 34px 0;
}

.api3-section + .api3-section {
  border-top: 1px solid #edf3f8;
}

.api3-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.66fr);
  gap: 38px;
  align-items: end;
  margin-bottom: 20px;
}

.api3-section-head.compact {
  margin-bottom: 18px;
}
.api3-section-head span {
  display: block;
  margin-bottom: 4px;
  color: #13846d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.api3-section-head h2 {
  margin: 0;
  color: var(--api3-ink);
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}
.api3-section-head > p {
  margin: 0;
  color: var(--api3-copy);
  font-size: 13px;
  line-height: 1.75;
}

.api3-concepts {
  padding-top: 16px;
  background: linear-gradient(180deg, #fbfdff, #fff);
}

.api3-concept-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;
}

.api3-concept-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 184px;
  flex-direction: column;
  align-items: center;
  padding: 18px 13px 14px;
  overflow: hidden;
  border: 1px solid var(--api3-line);
  border-radius: 9px;
  color: var(--api3-ink);
  background: #fff;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.api3-concept-card::before {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  pointer-events: none;
  content: "";
}

.api3-concept-card.mint::before { background: linear-gradient(145deg, #effcf8, transparent 68%); }
.api3-concept-card.blue::before { background: linear-gradient(145deg, #eef5ff, transparent 68%); }
.api3-concept-card.sky::before { background: linear-gradient(145deg, #eefaff, transparent 68%); }
.api3-concept-card.violet::before { background: linear-gradient(145deg, #f5f1ff, transparent 68%); }

.api3-concept-card > * {
  position: relative;
  z-index: 1;
}

.api3-concept-card > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  color: #0aa67c;
  background: #e8faf4;
}

.api3-concept-card.blue > span { color: #2774df; background: #eaf3ff; }
.api3-concept-card.sky > span { color: #228bd9; background: #eaf8ff; }
.api3-concept-card.violet > span { color: #754fe6; background: #f0eaff; }

.api3-concept-card > span svg {
  width: 25px;
  height: 25px;
}

.api3-concept-card strong {
  margin-top: 11px;
  font-size: 17px;
}

.api3-concept-card p {
  margin: 6px 0 10px;
  color: #657a99;
  font-size: 12px;
  line-height: 1.55;
}

.api3-concept-card > b {
  display: grid;
  width: 24px;
  height: 24px;
  margin-top: auto;
  place-items: center;
  border: 1px solid #c9def3;
  border-radius: 50%;
  color: #2572d8;
  background: #fff;
}

.api3-concept-card > b svg {
  width: 13px;
  height: 13px;
}

.api3-concept-card:hover,
.api3-concept-card:focus-visible {
  border-color: #9cc7ee;
  box-shadow: 0 13px 28px rgb(49 105 157 / 9%);
  transform: translateY(-3px);
}

.api3-client-section {
  background: linear-gradient(145deg, #f8fdff, #eef8ff);
}

.api3-client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.api3-client-grid > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  min-height: 148px;
  padding: 17px;
  border: 1px solid #d8e7f4;
  border-radius: 9px;
  color: var(--api3-ink);
  background: rgb(255 255 255 / 86%);
  box-shadow: 0 10px 25px rgb(45 102 154 / 6%);
}

.api3-client-grid > a > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
}

.api3-client-grid > a > span.codex { color: #1f6fe2; background: #e9f2ff; }
.api3-client-grid > a > span.claude { color: #c77653; background: #fff0e9; }
.api3-client-grid > a > span.switch { color: #0aa279; background: #e8faf4; }

.api3-client-grid > a > span svg {
  width: 24px;
  height: 24px;
}

.api3-client-grid strong {
  color: var(--api3-ink);
  font-size: 16px;
}

.api3-client-grid strong em {
  margin-left: 5px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #0a8968;
  background: #e8f8f3;
  font-size: 9px;
  font-style: normal;
  vertical-align: 2px;
}

.api3-client-grid p {
  min-height: 42px;
  margin: 6px 0 9px;
  color: #667d9a;
  font-size: 11px;
  line-height: 1.55;
}

.api3-client-grid b {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: #2168c6;
  font-size: 10px;
}

.api3-client-grid b svg {
  width: 12px;
  height: 12px;
}

.api3-client-grid > a:hover,
.api3-client-grid > a:focus-visible {
  border-color: #9fc9ed;
  box-shadow: 0 13px 30px rgb(45 102 154 / 10%);
  transform: translateY(-2px);
}

.api3-service-note {
  margin: 16px 0 0;
  color: #516881;
  font-size: 13px;
  line-height: 1.8;
}

.api3-service-note a {
  color: #2168c6;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.api3-check-section {
  background: #fff;
}

.api3-check-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
}

.api3-check-grid a {
  position: relative;
  display: flex;
  min-height: 115px;
  flex-direction: column;
  padding: 13px 11px;
  border: 1px solid #dfeaf4;
  border-radius: 8px;
  color: var(--api3-ink);
  background: #fbfdff;
}

.api3-check-grid a > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 8px;
}

.api3-check-grid span.green { color: #0a9b72; background: #e9faf4; }
.api3-check-grid span.blue { color: #2875dd; background: #eaf3ff; }
.api3-check-grid span.violet { color: #7657e8; background: #f1edff; }
.api3-check-grid span.cyan { color: #128eb4; background: #e7faff; }
.api3-check-grid span.red { color: #db5b67; background: #fff0f2; }

.api3-check-grid span svg {
  width: 17px;
  height: 17px;
}

.api3-check-grid strong {
  margin-top: 8px;
  font-size: 13px;
}

.api3-check-grid small {
  margin-top: 2px;
  color: #70839d;
  font-size: 9.5px;
  line-height: 1.4;
}

.api3-check-grid a > svg {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 13px;
  height: 13px;
  color: #6e9ac9;
}

.api3-check-grid a:hover,
.api3-check-grid a:focus-visible {
  border-color: #9fc7e9;
  background: #fff;
}

.api3-errors-section {
  background: #fbfdff;
}

.api3-faq-list {
  overflow: hidden;
  border: 1px solid var(--api3-line);
  border-radius: 12px;
  background: #fff;
}

.api3-faq-item + .api3-faq-item {
  border-top: 1px solid var(--api3-line);
}

.api3-faq-item[open] {
  background: #f6faff;
}

.api3-faq-item summary {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 21px 24px;
  color: var(--api3-ink);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.api3-faq-item summary::-webkit-details-marker {
  display: none;
}

.api3-faq-item summary:hover {
  color: var(--api3-blue);
}

.api3-faq-item summary:focus-visible {
  outline: 2px solid var(--api3-blue);
  outline-offset: -4px;
  border-radius: 6px;
}

.api3-faq-item summary svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--api3-blue);
}

.api3-faq-item[open] summary svg {
  transform: rotate(180deg);
}

.api3-faq-answer {
  padding: 0 24px 22px;
}

.api3-faq-answer p {
  max-width: 960px;
  margin: 0 0 12px;
  color: var(--api3-copy);
  font-size: 14px;
  line-height: 1.85;
}

.api3-faq-answer a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 28px;
  color: var(--api3-blue);
  font-size: 13px;
  font-weight: 700;
}

.api3-faq-answer a:hover {
  text-decoration: underline;
}

.api3-faq-answer a svg,
.api3-faq-more svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.api3-faq-more {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid #d3e3f3;
  border-radius: 10px;
  color: var(--api3-ink);
  background: #f1f7ff;
  font-size: 14px;
  line-height: 1.6;
}

.api3-faq-more-copy {
  display: flex;
  gap: 8px 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.api3-faq-more-copy strong {
  font-size: 15px;
}

.api3-faq-more-copy > span {
  color: var(--api3-copy);
}

.api3-faq-more-action {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  color: var(--api3-blue);
  font-weight: 750;
}

.api3-faq-more:hover,
.api3-faq-more:focus-visible {
  border-color: #98bee9;
  background: #e9f2ff;
}

.api3-faq-more:hover .api3-faq-more-action {
  text-decoration: underline;
}

.api3-related {
  padding: 18px 0 30px;
  border-top: 1px solid #e8eff6;
  background: #f8fbff;
}

.api3-related .api3-shell {
  display: grid;
  grid-template-columns: 0.72fr 1fr 1fr;
  gap: 11px;
}

.api3-related .api3-shell > div,
.api3-related a {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid #dfe9f2;
  border-radius: 8px;
  color: var(--api3-ink);
  background: #fff;
}

.api3-related .api3-shell > div > span,
.api3-related a > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #1e70d1;
  background: #eaf4ff;
}

.api3-related svg {
  width: 17px;
  height: 17px;
}

.api3-related p {
  min-width: 0;
  margin: 0;
}

.api3-related strong,
.api3-related small {
  display: block;
}

.api3-related strong {
  font-size: 12px;
}

.api3-related small {
  margin-top: 2px;
  color: #72849c;
  font-size: 9.5px;
}

.api3-related a > svg {
  margin-left: auto;
  color: #6e96c1;
}

.api3-related a:hover,
.api3-related a:focus-visible {
  border-color: #9ec5e8;
}

.api-hub-v3 [hidden] {
  display: none !important;
}

.api-hub-v3 a,
.api-hub-v3 button {
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.api-hub-v3 main a:focus-visible,
.api-hub-v3 main button:focus-visible,
.api-hub-v3 main input:focus-visible {
  outline: 3px solid rgb(38 118 222 / 25%);
  outline-offset: 2px;
}

@media (max-width: 1080px) {
  .api3-hero-grid {
    grid-template-columns: minmax(0, 1.5fr) 300px;
    gap: 24px;
  }

  .api3-provider-badge {
    width: 132px;
  }

  .api3-provider-badge.openai { left: 10px; }
  .api3-provider-badge.anthropic { right: -5px; }

  .api3-concept-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .api3-concept-card {
    min-height: 160px;
  }

  .api3-check-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

}

@media (max-width: 780px) {
  .api3-shell {
    width: min(100% - 28px, 680px);
  }

  .api3-hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 20px 30px;
  }

  .api3-breadcrumbs {
    margin-bottom: 22px;
  }

  .api3-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .api3-hero h1 em {
    font-size: 0.58em;
  }

  .api3-hero-copy > p {
    font-size: 15px;
  }

  .api3-hero-art {
    display: none;
  }

  .api3-section {
    padding: 28px 0;
  }

  .api3-section-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .api3-client-grid {
    grid-template-columns: 1fr;
  }

  .api3-related .api3-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .api3-concept-grid,
  .api3-check-grid {
    grid-template-columns: 1fr;
  }

  .api3-concept-card {
    min-height: 148px;
  }

  .api3-faq-item summary {
    gap: 12px;
    padding: 17px 16px;
    font-size: 15px;
  }

  .api3-faq-answer {
    padding: 0 16px 18px;
  }

  .api3-faq-more {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .api3-faq-more-copy {
    flex-direction: column;
    gap: 4px;
  }

  .api3-client-grid > a {
    grid-template-columns: 1fr;
  }

  .api3-check-grid a {
    min-height: 96px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .api-hub-v3 main *,
  .api-hub-v3 main *::before,
  .api-hub-v3 main *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
