:root {
  color-scheme: dark;
  --ink: #08090d;
  --ink-2: #11131a;
  --paper: #f5f7fb;
  --paper-2: #e8edf3;
  --text: #f8fafc;
  --text-dark: #15171f;
  --muted: #b9c0c7;
  --muted-dark: #596170;
  --line: rgba(248, 250, 252, 0.18);
  --line-dark: rgba(18, 21, 30, 0.14);
  --gold: #d8b76a;
  --cyan: #56d8ff;
  --green: #52dfa5;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

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

code {
  border: 1px solid rgba(86, 216, 255, 0.28);
  border-radius: 6px;
  background: rgba(86, 216, 255, 0.08);
  color: #9eeaff;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.92em;
  padding: 0.08rem 0.34rem;
  overflow-wrap: anywhere;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  border-bottom: 1px solid rgba(248, 250, 252, 0.13);
  background: rgba(8, 9, 13, 0.78);
  padding: 0 2rem;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(216, 183, 106, 0.76);
  border-radius: 8px;
  background: linear-gradient(145deg, #f4d58b, #b9852b);
  color: #151006;
  font-weight: 950;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  color: #f8fafc;
  font-size: 1.02rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 0.22rem;
}

.site-nav a,
.ghost-link,
.solid-link,
.primary-action,
.secondary-action {
  border-radius: 8px;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-nav a {
  color: #d7dde6;
  padding: 0.48rem 0.8rem;
  font-size: 0.95rem;
}

.site-nav a:hover {
  background: rgba(248, 250, 252, 0.08);
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ghost-link,
.solid-link,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  white-space: nowrap;
  font-weight: 800;
  padding: 0.62rem 0.95rem;
}

.ghost-link,
.secondary-action {
  border: 1px solid rgba(248, 250, 252, 0.24);
  background: rgba(248, 250, 252, 0.06);
  color: #f8fafc;
}

.ghost-link:hover,
.secondary-action:hover {
  border-color: rgba(216, 183, 106, 0.78);
  background: rgba(216, 183, 106, 0.12);
}

.solid-link,
.primary-action {
  border: 1px solid rgba(244, 213, 139, 0.86);
  background: #d8b76a;
  color: #151006;
  box-shadow: 0 14px 34px rgba(216, 183, 106, 0.22);
}

.solid-link:hover,
.primary-action:hover {
  background: #f0cc77;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 86svh;
  overflow: hidden;
  padding: 8rem 2rem 4.8rem;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("assets/hero-ai-gateway.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 9, 13, 0.9) 0%, rgba(8, 9, 13, 0.64) 44%, rgba(8, 9, 13, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 9, 13, 0.18) 0%, rgba(8, 9, 13, 0.46) 82%, #08090d 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.eyebrow,
.section-heading p {
  margin: 0 0 0.72rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 1rem;
  color: #f8fafc;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.24rem;
  line-height: 1.25;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 1.4rem;
  color: #e6edf5;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.76rem;
}

.secondary-action.dark {
  border-color: rgba(248, 250, 252, 0.24);
  color: #f8fafc;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 0.7rem;
  margin: 2.5rem 0 0;
}

.hero-metrics div {
  border-top: 1px solid rgba(216, 183, 106, 0.48);
  padding-top: 0.7rem;
}

.hero-metrics dt {
  color: #f8fafc;
  font-size: 1.1rem;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: 5rem 2rem;
}

.section-light {
  background: var(--paper);
  color: var(--text-dark);
}

.section-dark {
  background:
    linear-gradient(135deg, rgba(216, 183, 106, 0.09), transparent 34%),
    var(--ink);
  color: var(--text);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 2rem;
}

.section-light .section-heading p,
.section-light .eyebrow {
  color: #8b681f;
}

.section-copy {
  max-width: 720px;
  margin: 1rem 0 1.4rem;
  color: var(--muted-dark);
  font-size: 1.04rem;
}

.section-dark .section-copy {
  color: #c7cdd4;
}

.section-copy a {
  color: #8fe9ff;
  font-weight: 800;
}

.service-grid,
.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card,
.reason-grid article,
.endpoint-panel,
.faq-list details {
  border-radius: 8px;
}

.service-card {
  min-height: 235px;
  border: 1px solid var(--line-dark);
  background: #f8fafc;
  padding: 1.35rem;
  box-shadow: 0 18px 42px rgba(32, 27, 17, 0.1);
}

.service-card p,
.reason-grid p,
.faq-list p {
  margin-bottom: 0;
  color: var(--muted-dark);
}

.card-kicker {
  display: block;
  margin-bottom: 2rem;
  color: #8b681f;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: 3rem;
  align-items: center;
}

.endpoint-panel {
  display: grid;
  gap: 0.65rem;
  border: 1px solid rgba(248, 250, 252, 0.18);
  background: rgba(248, 250, 252, 0.06);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.endpoint-panel span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.endpoint-panel code {
  display: block;
  width: 100%;
  padding: 0.55rem 0.65rem;
}

.image-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.use-case-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.use-case-list span {
  border: 1px solid rgba(21, 23, 31, 0.14);
  border-radius: 8px;
  background: linear-gradient(145deg, #f8fafc, #e8edf3);
  color: #1f232d;
  font-weight: 900;
  padding: 1rem;
}

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

.reason-grid article {
  border: 1px solid rgba(248, 250, 252, 0.16);
  background: rgba(248, 250, 252, 0.06);
  padding: 1.35rem;
}

.reason-grid p {
  color: #c7cdd4;
}

.faq-section {
  border-bottom: 1px solid rgba(21, 23, 31, 0.12);
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-list details {
  border: 1px solid var(--line-dark);
  background: #f8fafc;
  padding: 1rem 1.1rem;
}

.faq-list summary {
  cursor: pointer;
  color: var(--text-dark);
  font-weight: 900;
}

.faq-list p {
  margin-top: 0.75rem;
}

.faq-list a {
  color: #006f91;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(248, 250, 252, 0.16);
  background: var(--ink);
  color: var(--muted);
  padding: 1.5rem 2rem;
}

.site-footer strong {
  display: block;
  color: #f8fafc;
}

.site-footer p {
  margin: 0.25rem 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.site-footer a {
  color: #f8fafc;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: 0;
    padding: 0.85rem 1rem;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .site-nav {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    min-height: 82svh;
    padding: 8.6rem 1rem 3rem;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 9, 13, 0.92), rgba(8, 9, 13, 0.58)),
      linear-gradient(180deg, rgba(8, 9, 13, 0.08), #08090d 100%);
  }

  .section {
    padding: 3.5rem 1rem;
  }

  .service-grid,
  .reason-grid,
  .split,
  .image-feature {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .header-actions {
    width: 100%;
  }

  .ghost-link,
  .solid-link {
    flex: 1;
  }

  .hero {
    min-height: 80svh;
  }

  h1 {
    font-size: clamp(2.45rem, 17vw, 4.5rem);
  }

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

  .hero-metrics,
  .use-case-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.2rem 1rem;
  }
}
