:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --soft: #f4f6f8;
  --panel: #ffffff;
  --line: #d7dee8;
  --brand: #0f6b6f;
  --brand-strong: #0a4d52;
  --accent: #b98124;
  --green: #25835f;
  --night: #101820;
  --shadow: 0 18px 50px rgba(16, 24, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 68px;
  padding: 0 clamp(16px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(215, 222, 232, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.brand-copy,
.nav,
.nav-actions,
.hero-actions,
.endpoint-row,
.signal-strip,
.route-board,
.cta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-weight: 850;
}

.brand-copy {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 15px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  color: #475467;
  font-size: 14px;
  font-weight: 650;
}

.nav a:hover {
  color: var(--brand);
}

.nav-actions,
.hero-actions {
  gap: 10px;
}

.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.button.solid {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 24px rgba(15, 107, 111, 0.22);
}

.button.solid:hover {
  background: var(--brand-strong);
}

.button.ghost {
  color: var(--brand);
}

.button.outline {
  color: var(--brand-strong);
  border: 1px solid rgba(15, 107, 111, 0.28);
  background: rgba(255, 255, 255, 0.84);
}

.button.large {
  min-height: 46px;
  padding: 14px 18px;
}

.hero {
  position: relative;
  min-height: min(760px, 78svh);
  display: grid;
  align-items: center;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 76px);
  color: #fff;
  background: #111827 url("/newapi-home/hero-tech-office.png") center / cover no-repeat;
  overflow: hidden;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 13, 20, 0.86) 0%, rgba(8, 13, 20, 0.72) 34%, rgba(8, 13, 20, 0.28) 68%, rgba(8, 13, 20, 0.12) 100%),
    linear-gradient(0deg, rgba(8, 13, 20, 0.28), rgba(8, 13, 20, 0));
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 830px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #8bd5dd;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 720px;
  margin-bottom: 22px;
  color: #d7e5ec;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.78;
}

.endpoint-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.endpoint-row code {
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #e7f5f6;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 clamp(18px, 5vw, 76px);
  transform: translateY(-28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.signal-strip div {
  min-height: 118px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip strong {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
}

.signal-strip span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.section {
  padding: clamp(50px, 8vw, 92px) clamp(18px, 5vw, 76px);
}

.section h2,
.cta h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section p,
.cta p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.routing-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding-top: clamp(26px, 4vw, 52px);
}

.section-copy {
  max-width: 680px;
}

.route-board {
  align-items: stretch;
  gap: 12px;
}

.route-column {
  flex: 1;
  min-width: 0;
  min-height: 220px;
  display: grid;
  align-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.route-column.active {
  color: #fff;
  border-color: transparent;
  background: var(--night);
  box-shadow: var(--shadow);
}

.route-column span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.route-column.active span {
  color: #8bd5dd;
}

.route-column strong {
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.16;
}

.route-column code {
  max-width: 100%;
  color: #405066;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.route-column.active code {
  color: #d7e5ec;
}

.feature-section {
  background: #fff;
}

.section-head {
  max-width: 780px;
  margin-bottom: 30px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.feature-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--brand);
  background: rgba(15, 107, 111, 0.1);
  font-size: 13px;
  font-weight: 850;
}

.feature-grid h3 {
  margin-bottom: 12px;
  font-size: 19px;
}

.ops-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.ops-copy {
  max-width: 700px;
}

.ops-list {
  display: grid;
  gap: 12px;
}

.ops-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.ops-list strong {
  color: var(--brand-strong);
}

.ops-list span {
  color: #475467;
  line-height: 1.62;
}

.cta {
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(18px, 5vw, 76px) clamp(42px, 6vw, 72px);
  padding: clamp(28px, 5vw, 48px);
  border-radius: 8px;
  color: #fff;
  background: var(--night);
  box-shadow: var(--shadow);
}

.cta p {
  color: #c8d6df;
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .nav {
    display: none;
  }

  .nav-actions {
    justify-content: flex-end;
  }

  .signal-strip,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-strip div:nth-child(2) {
    border-right: 0;
  }

  .signal-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .routing-section,
  .ops-section {
    grid-template-columns: 1fr;
  }

  .route-board {
    max-width: 860px;
  }
}

@media (max-width: 700px) {
  .topbar {
    min-height: 64px;
    padding: 0 14px;
  }

  .brand-copy small,
  .button.ghost {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .button {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero {
    min-height: 74svh;
    padding: 42px 16px 50px;
    background-position: 58% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(8, 13, 20, 0.9), rgba(8, 13, 20, 0.62));
  }

  h1 {
    font-size: clamp(36px, 12vw, 48px);
    line-height: 1.08;
  }

  .lead {
    font-size: 16px;
    line-height: 1.68;
  }

  .endpoint-row {
    align-items: stretch;
    flex-direction: column;
  }

  .endpoint-row code {
    white-space: nowrap;
  }

  .hero-actions,
  .cta {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .cta .button {
    width: 100%;
  }

  .signal-strip,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip {
    margin: 0 14px;
    transform: translateY(-18px);
  }

  .signal-strip div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-strip div:last-child {
    border-bottom: 0;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .route-board {
    flex-direction: column;
  }

  .route-column {
    min-height: 170px;
  }

  .ops-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cta {
    margin-left: 16px;
    margin-right: 16px;
  }
}
