.api-landing {
  background: #f6f6f2;
}

.api-hero {
  padding: 64px 0 68px;
}

.api-hero .hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.84fr);
}

.api-hero .hero-copy h1 {
  max-width: 790px;
  font-size: clamp(50px, 6vw, 78px);
}

.api-platform-visual {
  position: relative;
  min-height: 510px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid #d5d9d1;
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 10%, rgba(30, 169, 104, 0.16), transparent 31%),
    linear-gradient(145deg, #fff 0%, #f1f6f1 100%);
  box-shadow: 0 28px 80px rgba(10, 35, 30, 0.12);
}

.api-platform-visual::after {
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 370px;
  height: 370px;
  content: "";
  border: 1px solid rgba(30, 169, 104, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(30, 169, 104, 0.04),
    0 0 0 94px rgba(30, 169, 104, 0.025);
}

.api-visual-head,
.api-conversation,
.api-routing,
.api-result {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.api-visual-head {
  justify-content: space-between;
  color: #59605d;
  font-size: 12px;
  font-weight: 730;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.api-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: #11683d;
  background: #e5f7ec;
  border-radius: 999px;
  font-size: 10px;
}

.api-live::before {
  width: 7px;
  height: 7px;
  content: "";
  background: #1ea968;
  border-radius: 50%;
}

.api-conversation {
  margin-top: 34px;
  gap: 12px;
}

.api-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: #1ea968;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
}

.api-conversation strong,
.api-conversation small {
  display: block;
}

.api-conversation strong {
  font-size: 14px;
}

.api-conversation small {
  margin-top: 2px;
  color: #737975;
  font-size: 11px;
}

.api-time {
  margin-left: auto;
  color: #7c827e;
  font-size: 11px;
}

.api-message {
  position: relative;
  z-index: 1;
  margin: 24px 0 0 56px;
  padding: 16px 18px;
  color: #26302b;
  background: #fff;
  border: 1px solid #dce1dc;
  border-radius: 16px 16px 4px 16px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 10px 28px rgba(10, 35, 30, 0.06);
}

.api-routing {
  margin-top: 22px;
  padding: 15px 16px;
  justify-content: space-between;
  gap: 14px;
  color: #58605c;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #dce1dc;
  border-radius: 14px;
  font-size: 11px;
}

.api-routing span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.api-routing i {
  width: 8px;
  height: 8px;
  background: #ef8031;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(239, 128, 49, 0.12);
}

.api-routing strong {
  color: #242a27;
}

.api-connectors {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.api-connectors span {
  min-height: 58px;
  display: grid;
  place-items: center;
  color: #4f5853;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #dce1dc;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 730;
}

.api-result {
  margin-top: 18px;
  padding: 16px;
  justify-content: space-between;
  gap: 16px;
  color: #eaf8f0;
  background: #082b22;
  border-radius: 14px;
  font-size: 12px;
}

.api-result strong {
  color: #78dfa7;
  font-size: 15px;
}

.api-proof {
  border-block: 1px solid #dfe1dc;
  background: #fff;
}

.api-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.api-proof-grid > div {
  min-height: 118px;
  padding: 25px 22px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  border-right: 1px solid #e4e5e1;
}

.api-proof-grid > div:last-child {
  border-right: 0;
}

.api-proof-grid strong,
.api-proof-grid span {
  display: block;
}

.api-proof-grid strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.api-proof-grid span {
  margin-top: 5px;
  color: #707570;
  font-size: 12px;
  line-height: 1.4;
}

.api-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.api-capability-card {
  min-height: 270px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(24, 24, 24, 0.02);
}

.api-card-index {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #bd5a16;
  background: #fff0e4;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 780;
}

.api-capability-card h3 {
  margin: 40px 0 0;
  font-size: 23px;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.api-capability-card p {
  margin: 13px 0 0;
  color: #5a6066;
  font-size: 15px;
  line-height: 1.55;
}

.api-split,
.api-price-grid,
.api-dark-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(430px, 1.18fr);
  align-items: center;
  gap: clamp(50px, 7vw, 92px);
}

.api-section-title {
  margin: 0;
  font-size: clamp(38px, 4.7vw, 60px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.api-section-copy {
  margin: 22px 0 30px;
  color: #555a61;
  font-size: 18px;
}

.api-comparison-wrap {
  margin: 0;
  box-shadow: 0 18px 55px rgba(24, 24, 24, 0.07);
}

.api-dark-section {
  padding: 88px 0;
  color: #fff;
  background:
    radial-gradient(circle at 86% 0%, rgba(28, 109, 181, 0.36), transparent 36%),
    linear-gradient(135deg, #06132f 0%, #082956 64%, #0a4274 100%);
}

.api-dark-grid {
  align-items: start;
}

.api-dark-grid .eyebrow {
  color: #ffb47c;
}

.api-dark-grid h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.api-dark-grid > div > p:last-child {
  margin: 22px 0 0;
  color: #c3d0e0;
  font-size: 18px;
}

.api-migration-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.api-migration-list li {
  padding: 20px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  border: 1px solid rgba(164, 190, 220, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.api-migration-list li > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffb47c;
  border: 1px solid rgba(255, 180, 124, 0.3);
  border-radius: 11px;
  font-size: 11px;
  font-weight: 780;
}

.api-migration-list strong {
  display: block;
  font-size: 16px;
}

.api-migration-list p {
  margin: 5px 0 0;
  color: #bdcbe0;
  font-size: 13px;
  line-height: 1.5;
}

.api-price-grid {
  align-items: start;
}

.api-cost-stack {
  display: grid;
  gap: 12px;
}

.api-cost-stack article {
  padding: 21px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.api-cost-stack article > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #bd5a16;
  background: #fff0e4;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 780;
}

.api-cost-stack strong {
  display: block;
  font-size: 16px;
}

.api-cost-stack p {
  margin: 5px 0 0;
  color: #60666c;
  font-size: 14px;
}

.api-cost-stack .button {
  margin-top: 5px;
  justify-self: start;
}

.api-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.api-problem-grid a {
  min-height: 230px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(30, 100, 166, 0.34), transparent 40%),
    linear-gradient(145deg, #071733 0%, #082b57 100%);
  border-radius: 20px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.api-problem-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(6, 19, 47, 0.16);
}

.api-problem-grid small {
  color: #ffb47c;
  font-weight: 720;
}

.api-problem-grid strong {
  margin-top: 14px;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.api-problem-grid span {
  margin-top: auto;
  padding-top: 30px;
  color: #b9cae0;
  font-size: 13px;
}

.api-faq-shell {
  max-width: 900px;
}

@media (max-width: 1020px) {
  .api-hero .hero-grid {
    grid-template-columns: 1fr;
  }

  .api-platform-visual {
    display: none;
  }

  .api-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-proof-grid > div:nth-child(2) {
    border-right: 0;
  }

  .api-proof-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid #e4e5e1;
  }

  .api-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-split,
  .api-price-grid,
  .api-dark-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .api-hero {
    padding-top: 54px;
  }

  .api-hero .hero-copy h1 {
    font-size: clamp(42px, 11.4vw, 58px);
  }

  .api-proof-grid {
    grid-template-columns: 1fr;
  }

  .api-proof-grid > div {
    min-height: 96px;
    padding: 20px 4px;
    border-right: 0;
    border-bottom: 1px solid #e4e5e1;
  }

  .api-proof-grid > div:last-child {
    border-bottom: 0;
  }

  .api-capability-grid,
  .api-problem-grid {
    grid-template-columns: 1fr;
  }

  .api-capability-card {
    min-height: 0;
  }

  .api-capability-card h3 {
    margin-top: 28px;
  }

  .api-dark-section {
    padding: 62px 0;
  }

  .api-section-title,
  .api-dark-grid h2 {
    font-size: 38px;
  }

  .api-migration-list li,
  .api-cost-stack article {
    grid-template-columns: 38px 1fr;
    padding: 18px;
    gap: 12px;
  }

  .api-problem-grid a {
    min-height: 200px;
  }

  .api-comparison-wrap {
    overflow: hidden;
  }

  .api-comparison-wrap .comparison {
    min-width: 0;
  }

  .api-comparison-wrap thead {
    display: none;
  }

  .api-comparison-wrap tbody,
  .api-comparison-wrap tr,
  .api-comparison-wrap td {
    display: block;
  }

  .api-comparison-wrap tr + tr {
    border-top: 1px solid #dedfd9;
  }

  .api-comparison-wrap td {
    padding: 12px 17px;
    border-bottom: 0;
  }

  .api-comparison-wrap td:first-child {
    padding-top: 16px;
    background: #f3f3ef;
  }

  .api-comparison-wrap td:nth-child(2)::before,
  .api-comparison-wrap td:nth-child(3)::before {
    margin-bottom: 4px;
    display: block;
    color: #777b78;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .api-comparison-wrap td:nth-child(2)::before {
    content: "Business App";
  }

  .api-comparison-wrap td:nth-child(3)::before {
    content: "Business Platform + Ublux";
  }

  .api-comparison-wrap td:nth-child(3) {
    padding-bottom: 16px;
    color: #0b6840;
  }
}
