:root {
  --ink: #111827;
  --muted: #5d6677;
  --line: #e6e8ee;
  --paper: #f5f7fa;
  --white: #ffffff;
  --accent: #0071e3;
  --accent-strong: #005bbf;
  --copper: #8a6a43;
  --deep: #0a0f19;
  --header-height: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 clamp(20px, 5vw, 72px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
  transition: background 260ms ease, border-color 260ms ease, color 260ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(17, 24, 39, 0.1);
}

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

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  padding: 5px;
  box-shadow: 0 12px 38px rgba(17, 24, 39, 0.08);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  font-size: 14px;
}

.main-nav a {
  position: relative;
  opacity: 0.68;
  transition: opacity 180ms ease;
}

.main-nav a:hover {
  opacity: 1;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header-action {
  border: 1px solid currentColor;
}

.header-action:hover,
.button:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  grid-template-areas:
    "content visual"
    "metrics metrics";
  align-items: center;
  column-gap: clamp(28px, 7vw, 112px);
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 24%, rgba(0, 113, 227, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfd 74%, #f5f7fb 100%);
  padding: calc(var(--header-height) + 58px) clamp(20px, 6vw, 88px) 38px;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(180deg, rgba(251, 251, 253, 0), rgba(251, 251, 253, 0.82) 64%, #fbfbfd),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=2200&q=82") center / cover;
  inset: auto 0 0;
  height: 28%;
  opacity: 0.22;
  transform: scale(1.02);
  animation: imageSettle 1200ms ease forwards;
}

.hero-shade {
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(251, 251, 253, 0.36));
}

.hero-content {
  grid-area: content;
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding-bottom: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent);
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(46px, 5.2vw, 68px);
  line-height: 0.96;
  letter-spacing: 0;
  white-space: nowrap;
}

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

h3 {
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.25;
}

.hero-lede {
  max-width: 640px;
  margin-bottom: 34px;
  color: #1f2937;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 750;
  line-height: 1.12;
}

.hero-brand-visual {
  grid-area: visual;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.hero-brand-visual img {
  width: min(430px, 78vw);
  height: auto;
  filter: drop-shadow(0 34px 68px rgba(17, 24, 39, 0.14));
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tech-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--accent-strong);
  background: rgba(11, 143, 120, 0.08);
  border: 1px solid rgba(11, 143, 120, 0.18);
  border-radius: 6px;
  font-size: 14px;
}

.hero-actions,
.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button.primary {
  color: var(--white);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary {
  border: 1px solid rgba(17, 24, 39, 0.2);
  color: var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
}

.button.dark {
  color: var(--white);
  background: var(--deep);
}

.button.outline {
  border: 1px solid var(--line);
}

.hero-metrics {
  grid-area: metrics;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 5vw, 72px);
  row-gap: 22px;
  width: min(1040px, 100%);
  margin-top: clamp(44px, 8vh, 92px);
}

.hero-metrics span {
  min-width: 150px;
  padding: 0 0 18px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.16);
  color: var(--muted);
}

.hero-metrics strong {
  display: block;
  color: var(--ink);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.1;
}

.section {
  padding: clamp(82px, 11vw, 150px) clamp(20px, 6vw, 88px);
}

.intro,
.services,
.careers,
.contact {
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: start;
}

.intro-copy {
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: clamp(36px, 6vw, 72px);
}

.section-heading > p {
  width: min(360px, 100%);
  color: var(--muted);
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-list article {
  display: grid;
  grid-template-columns: 72px minmax(220px, 0.4fr) minmax(280px, 1fr);
  gap: clamp(18px, 3vw, 44px);
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 180ms ease, color 180ms ease;
}

.service-list article:hover {
  transform: translateX(8px);
  color: var(--accent-strong);
}

.service-list span {
  color: var(--copper);
  font-weight: 800;
}

.service-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-list em {
  display: block;
  margin-top: 3px;
  color: var(--accent-strong);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.process {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: center;
  background: #f5f7fb;
  overflow: hidden;
}

.process-visual {
  position: relative;
  min-height: 520px;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(17, 24, 39, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  border-left: 1px solid rgba(17, 24, 39, 0.14);
  border-right: 1px solid rgba(17, 24, 39, 0.14);
}

.die {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(240px, 58vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, #102033, #0b8f78);
  border: 12px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.2);
  transform: translate(-50%, -50%) rotate(45deg);
}

.die span {
  transform: rotate(-45deg);
  font-size: 34px;
  font-weight: 900;
}

.trace {
  position: absolute;
  background: var(--copper);
  opacity: 0.6;
}

.trace-a {
  width: 72%;
  height: 2px;
  top: 34%;
  left: 0;
}

.trace-b {
  width: 2px;
  height: 76%;
  top: 12%;
  left: 66%;
}

.process-copy ol {
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(17, 24, 39, 0.16);
}

.process-copy li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.16);
}

.process-copy span {
  color: var(--muted);
}

.text-link {
  color: var(--accent-strong);
  font-weight: 800;
}

.role-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.role-row article {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, color 180ms ease;
}

.role-row article:hover {
  color: var(--white);
  background: var(--deep);
}

.role-row h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.role-row p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.role-row dl {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
}

.role-row dt {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.role-row dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.role-row article > a {
  width: fit-content;
  margin-top: auto;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.role-row article:hover p,
.role-row article:hover dd {
  color: rgba(255, 255, 255, 0.72);
}

.role-row article:hover dt,
.role-row article:hover a {
  color: var(--white);
}

.docs {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  background: #111827;
  color: var(--white);
}

.docs p {
  width: min(420px, 100%);
  color: rgba(255, 255, 255, 0.72);
}

.docs .button.outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
}

.contact {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(520px, 620px);
  gap: clamp(34px, 7vw, 100px);
}

.contact-copy p {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}

.contact-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  padding-left: clamp(24px, 5vw, 58px);
  border-left: 1px solid var(--line);
}

.contact-line {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
}

.contact-line span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.contact-panel a {
  color: var(--accent-strong);
  display: inline-block;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 900;
  white-space: nowrap;
}

.contact-panel span {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 88px);
  color: rgba(255, 255, 255, 0.72);
  background: #111827;
  font-size: 14px;
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 260ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes imageSettle {
  to {
    transform: scale(1);
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding-inline: 18px;
  }

  .main-nav {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 62px;
    height: 62px;
    border-radius: 8px;
  }

  .header-action {
    min-height: 40px;
    padding-inline: 14px;
  }

  .hero {
    min-height: 820px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "visual"
      "content"
      "metrics";
    align-items: start;
    row-gap: 24px;
    padding-top: calc(var(--header-height) + 28px);
  }

  .hero-content {
    padding-bottom: 42px;
  }

  .hero-brand-visual {
    justify-content: start;
  }

  .hero-brand-visual img {
    width: 146px;
  }

  .hero-metrics span {
    min-width: 0;
  }

  .intro-grid,
  .process,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-list article {
    grid-template-columns: 48px 1fr;
  }

  .service-list article p {
    grid-column: 2;
  }

  .role-row {
    grid-template-columns: 1fr;
  }

  .docs {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-panel {
    padding-left: 0;
    padding-top: 28px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .contact-line {
    column-gap: 12px;
  }
}

@media (max-width: 560px) {
  .header-action {
    display: none;
  }

  h1 {
    font-size: 42px;
    white-space: normal;
  }

  .hero {
    min-height: 780px;
  }

  .hero-brand-visual img {
    width: 118px;
  }

  .hero-lede {
    font-size: 24px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 6px;
  }

  .hero-metrics span {
    padding-bottom: 12px;
  }

  .hero-metrics strong {
    font-size: 30px;
  }

  h2 {
    font-size: 30px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-list article {
    grid-template-columns: 1fr;
  }

  .service-list article p {
    grid-column: auto;
  }

  .process-copy li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .process-visual {
    min-height: 360px;
  }

  .role-row {
    grid-template-columns: 1fr;
  }

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