* {
  box-sizing: border-box;
}

:root {
  color: #182235;
  background: #f5f7fb;
  font-family: "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 0 28px;
  color: #ffffff;
  background: #101827;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #052e2b;
  background: #5eead4;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a,
.language-switch a {
  color: #cbd5e1;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 6px;
  font-size: 14px;
}

.nav a:hover,
.nav a[aria-current="page"],
.language-switch a:hover,
.language-switch a[aria-current="true"] {
  color: #ffffff;
  background: #26354f;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-left: 8px;
  margin-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, .18);
}

.hero {
  min-height: 82vh;
  display: grid;
  align-items: end;
  color: #ffffff;
  background-image: linear-gradient(90deg, rgba(5, 12, 24, .91), rgba(5, 12, 24, .58), rgba(5, 12, 24, .18)), url("/assets/crawler-hero.png");
  background-size: cover;
  background-position: center;
}

.hero-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 58px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #0f766e;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #5eead4;
}

h1 {
  max-width: 820px;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

h2 {
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  font-size: 18px;
  line-height: 1.32;
  letter-spacing: 0;
}

.lead {
  max-width: 780px;
  margin-top: 18px;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions,
.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 800;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #172033;
}

.button.primary {
  border-color: #14b8a6;
  background: #14b8a6;
  color: #042f2e;
}

.button.ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, .5);
  background: rgba(15, 23, 42, .42);
}

.section {
  padding: 74px 0;
}

.section.white {
  background: #ffffff;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 28px;
}

.section-head p,
.feature-card p,
.metric span,
.endpoint p,
.callout p,
.capability p {
  color: #55657d;
  line-height: 1.65;
}

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

.feature-card,
.metric,
.endpoint,
.code-block,
.callout,
.capability {
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #ffffff;
}

.feature-card {
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-card div {
  padding: 18px;
}

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

.metric {
  padding: 18px;
  min-height: 116px;
  display: grid;
  align-content: space-between;
}

.metric strong {
  color: #7c3aed;
  font-size: 28px;
}

.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 34px;
  align-items: center;
}

.split img {
  border-radius: 8px;
  border: 1px solid #d8e0ea;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .14);
}

.stack {
  display: grid;
  gap: 16px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  color: #334155;
  line-height: 1.58;
}

.check-list li::before {
  content: "";
  display: inline-grid;
  place-items: center;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 5px #ffedd5;
}

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

.capability {
  min-height: 126px;
  padding: 18px;
}

.capability p {
  margin-top: 8px;
}

.endpoint {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  padding: 16px;
  align-items: start;
}

.method {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 30px;
  border-radius: 6px;
  color: #064e3b;
  background: #a7f3d0;
  font-weight: 900;
  font-size: 12px;
}

.method.post {
  color: #7c2d12;
  background: #fed7aa;
}

.code-block {
  overflow-x: auto;
  padding: 18px;
  color: #dbeafe;
  background: #111827;
  line-height: 1.55;
}

code {
  font-family: Consolas, "Cascadia Mono", monospace;
}

.callout {
  padding: 20px;
  border-left: 5px solid #14b8a6;
}

.footer {
  padding: 26px 0;
  color: #cbd5e1;
  background: #101827;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer a {
  color: #5eead4;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .nav {
    justify-content: flex-start;
  }

  .language-switch {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .hero {
    min-height: 76vh;
  }

  h1 {
    font-size: 40px;
  }

  .section-head,
  .split {
    display: grid;
    grid-template-columns: 1fr;
  }

  .grid-3,
  .metric-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-content,
  .wrap {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  .lead {
    font-size: 16px;
  }

  .endpoint {
    grid-template-columns: 1fr;
  }
}
