:root {
  --ink: #101317;
  --ink-soft: #2d343c;
  --muted: #66717f;
  --line: rgba(17, 24, 39, 0.12);
  --paper: #f6f8f5;
  --white: #ffffff;
  --cyan: #18a9c2;
  --cyan-dark: #0b6f82;
  --amber: #d7923a;
  --emerald: #2f8c67;
  --graphite: #14191f;
  --graphite-2: #1d252d;
  --shadow: 0 18px 50px rgba(10, 22, 35, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

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

svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(20px, 5vw, 72px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(16, 19, 23, 0.9);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  padding-top: 12px;
  padding-bottom: 12px;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 18px;
}

.brand-text span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-action {
  padding: 0 16px;
  color: var(--ink);
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--graphite);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 16, 20, 0.95) 0%, rgba(13, 16, 20, 0.78) 38%, rgba(13, 16, 20, 0.28) 72%, rgba(13, 16, 20, 0.52) 100%),
    linear-gradient(180deg, rgba(13, 16, 20, 0.72) 0%, rgba(13, 16, 20, 0.08) 48%, rgba(13, 16, 20, 0.78) 100%);
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 110px;
  padding-bottom: 74px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: 78px;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero h1 span {
  display: block;
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  padding: 0 20px;
  border: 1px solid transparent;
}

.button-primary {
  color: var(--ink);
  background: var(--white);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.button:hover,
.nav-action:hover {
  transform: translateY(-1px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(780px, 100%);
  margin: 58px 0 0;
  padding: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

.hero-metrics div {
  padding: 18px;
  background: rgba(13, 16, 20, 0.58);
}

.hero-metrics dt {
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.section {
  padding: 96px clamp(20px, 5vw, 72px);
}

#services {
  padding-top: 62px;
}

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

.section-dark {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(24, 169, 194, 0.18), transparent 42%),
    linear-gradient(45deg, rgba(215, 146, 58, 0.12), transparent 38%),
    var(--graphite);
}

.section-muted {
  background: #e8ece6;
}

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

.section-heading {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.section-dark .section-heading p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.section-heading-narrow {
  display: block;
  max-width: 720px;
}

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

.service-card,
.delivery-grid article {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.service-card h3,
.delivery-grid h3,
.solution-list h3 {
  margin: 18px 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.service-card p,
.delivery-grid p,
.solution-list p {
  margin: 0;
  color: var(--muted);
}

.icon-shell,
.delivery-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--cyan-dark);
  background: rgba(24, 169, 194, 0.1);
}

.service-card:nth-child(2) .icon-shell,
.delivery-grid article:nth-child(2) span {
  color: var(--amber);
  background: rgba(215, 146, 58, 0.13);
}

.service-card:nth-child(3) .icon-shell,
.delivery-grid article:nth-child(3) span {
  color: var(--emerald);
  background: rgba(47, 140, 103, 0.12);
}

.service-card:nth-child(4) .icon-shell,
.delivery-grid article:nth-child(4) span {
  color: #7a5a9e;
  background: rgba(122, 90, 158, 0.12);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: start;
}

.split-layout .section-heading {
  display: block;
  margin: 0;
}

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

.solution-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.solution-list span {
  color: var(--amber);
  font-weight: 900;
}

.solution-list h3 {
  margin-top: 0;
}

.solution-list p {
  color: rgba(255, 255, 255, 0.68);
}

.agent-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.agent-flow article {
  min-height: 150px;
  padding: 24px;
  background: var(--white);
}

.agent-flow span {
  display: inline-block;
  color: var(--cyan-dark);
  font-weight: 800;
  font-size: 14px;
}

.agent-flow strong {
  display: block;
  margin-top: 36px;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.35;
}

.delivery-grid article {
  min-height: 232px;
}

.delivery-grid span {
  color: var(--ink);
  font-weight: 900;
}

.contact-section {
  padding: 86px clamp(20px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(20, 25, 31, 0.94), rgba(20, 25, 31, 0.72)),
    url("./assets/hero-ai-hub.png") center / cover;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  width: min(1120px, 100%);
  margin: 0 auto;
  align-items: center;
  min-width: 0;
}

.contact-inner h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.18;
}

.contact-inner p {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.contact-card {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  font-style: normal;
}

.contact-card div {
  padding: 18px 20px;
  background: rgba(16, 19, 23, 0.64);
}

.contact-card span {
  display: block;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  font-weight: 800;
}

.contact-card strong {
  display: block;
  margin-top: 5px;
  color: var(--white);
  font-size: 17px;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.68);
  background: #0f1318;
  font-size: 14px;
}

.site-footer a {
  color: var(--white);
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero h1 {
    font-size: 52px;
  }

  .section-heading,
  .split-layout,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-grid,
  .delivery-grid,
  .agent-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand-text span,
  .nav-action span {
    display: none;
  }

  .nav-action {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-top: 132px;
    padding-bottom: 54px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 17px;
    max-width: 330px;
  }

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

  .button {
    width: 100%;
  }

  .hero-metrics,
  .service-grid,
  .delivery-grid,
  .agent-flow {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .section-heading h2,
  .contact-inner h2 {
    font-size: 31px;
  }

  .solution-list article {
    grid-template-columns: 42px 1fr;
    padding: 18px;
  }

  .site-footer {
    flex-direction: column;
  }
}
