:root {
  --bg: #050505;
  --bg-soft: #0d0c0a;
  --panel: rgba(18, 17, 14, 0.74);
  --panel-solid: #13110d;
  --line: rgba(231, 194, 110, 0.18);
  --line-strong: rgba(231, 194, 110, 0.42);
  --gold: #e5bf63;
  --gold-deep: #9d7427;
  --text: #f7f3ea;
  --muted: #b8b0a1;
  --dim: #7f776c;
  --max: 1180px;
  --radius: 12px;
  --radius-large: 18px;
  --edge: max(20px, calc((100vw - var(--max)) / 2));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(229, 191, 99, 0.28);
  color: var(--text);
}

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

button {
  font: inherit;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--gold);
  color: #111;
  border-radius: var(--radius);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

main:focus {
  outline: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 var(--edge);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.76);
  border-color: rgba(229, 191, 99, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.brand:hover .brand-mark {
  border-color: rgba(229, 191, 99, 0.68);
  transform: translateY(-1px);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(229, 191, 99, 0.22), rgba(255, 255, 255, 0.03));
  border-radius: var(--radius);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: var(--gold);
}

.brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: -3px;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--muted);
  font-size: 14px;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
}

.desktop-nav a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transition: width 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--text);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: var(--gold);
  transition: transform 0.2s ease;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  z-index: 19;
  top: 76px;
  left: 14px;
  right: 14px;
  visibility: hidden;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.mobile-nav a {
  display: block;
  padding: 14px;
  color: var(--muted);
  border-radius: 8px;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  background: rgba(229, 191, 99, 0.08);
  color: var(--text);
}

.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: calc(100svh - 48px);
  display: grid;
  align-items: center;
  padding: 130px var(--edge) 92px;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #080704;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.75) 38%, rgba(5, 5, 5, 0.28) 72%, rgba(5, 5, 5, 0.58) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 5, 0.2) 34%, rgba(5, 5, 5, 0.15) 100%);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  content: "";
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-content {
  width: min(720px, 100%);
  text-wrap: pretty;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  max-width: 690px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.16;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  font-size: 22px;
  line-height: 1.28;
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.72;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn[href^="mailto:"]::after {
  content: "↗";
  font-size: 1.05em;
  line-height: 1;
}

.btn.ghost[href^="#"]::after {
  content: "↓";
  font-size: 1.05em;
  line-height: 1;
}

.btn.primary {
  background: linear-gradient(135deg, #f1d17a, #9b6d21);
  color: #111;
  border-color: transparent;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn.wide {
  width: 100%;
}

.hero-panel {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(116px, 1fr));
  gap: 1px;
  width: min(520px, calc(100% - 40px));
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: var(--radius-large);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hero-panel div {
  min-height: 112px;
  padding: 22px;
  background: rgba(8, 8, 7, 0.74);
}

.metric {
  display: block;
  color: var(--gold);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

section:not(.hero) {
  padding: 110px 0;
}

.section-band {
  border-top: 1px solid rgba(229, 191, 99, 0.09);
  border-bottom: 1px solid rgba(229, 191, 99, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--bg-soft);
}

.section-heading {
  max-width: 760px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 54px;
  align-items: center;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 14px;
  margin-top: 42px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(229, 191, 99, 0.09), rgba(255, 255, 255, 0.015) 44%),
    var(--panel-solid);
  border-radius: var(--radius-large);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(229, 191, 99, 0.14), rgba(255, 255, 255, 0.02) 48%),
    #17130d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.service-index {
  display: block;
  margin-bottom: 72px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.service-card p,
.advantage-item p,
.process p,
.contact p {
  color: var(--muted);
}

.lead,
.service-card > p,
.service-card li,
.advantage-item h3,
.advantage-item p,
.solution-strip span,
.timeline p,
.contact-layout > div:first-child > p:not(.eyebrow),
.contact-card p {
  text-wrap: balance;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 24px 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.service-card li {
  position: relative;
  padding-left: 16px;
}

.service-card li::before {
  position: absolute;
  left: 0;
  top: 0.76em;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--gold);
  border-radius: 50%;
}

.advantage-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
}

.sticky-heading {
  position: sticky;
  top: 112px;
  align-self: start;
}

.advantage-list {
  display: grid;
  gap: 18px;
}

.advantage-item {
  padding: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: var(--radius-large);
}

.advantage-item span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.advantage-item h3 {
  margin-bottom: 12px;
}

.solution-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: var(--radius-large);
}

.solution-strip a {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 188px;
  padding: 28px;
  background: #0d0c0a;
  transition: background 0.2s ease;
}

.solution-strip a::after {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  content: "↗";
  border: 1px solid var(--line);
  color: var(--gold);
  border-radius: 50%;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.solution-strip a:hover {
  background: #17130d;
}

.solution-strip a:hover::after {
  border-color: var(--line-strong);
  transform: translate(2px, -2px);
}

.solution-strip strong {
  margin-bottom: auto;
  font-size: 20px;
}

.solution-strip span {
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid var(--line-strong);
}

.timeline div {
  position: relative;
  padding: 34px 26px 0 0;
}

.timeline div::before {
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  content: "";
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(229, 191, 99, 0.12);
}

.timeline span {
  color: var(--gold);
  font-weight: 800;
}

.timeline h3 {
  margin: 16px 0 8px;
}

.contact {
  padding-bottom: 70px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  padding: 46px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(229, 191, 99, 0.15), rgba(255, 255, 255, 0.02) 42%),
    #0d0c0a;
  border-radius: var(--radius-large);
}

.contact-layout h2 {
  margin-bottom: 20px;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  border-radius: var(--radius);
}

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

.mail-link {
  color: var(--gold);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px var(--edge);
  border-top: 1px solid rgba(229, 191, 99, 0.12);
  color: var(--muted);
  font-size: 14px;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.site-footer strong {
  color: var(--text);
}

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

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

.reveal {
  opacity: 1;
  transform: none;
}

.reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 1080px) {
  .service-grid,
  .solution-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 32px;
    border-top: 0;
  }

  .timeline div {
    border-top: 1px solid var(--line-strong);
  }

  .service-card {
    min-height: 360px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: calc(100svh - 44px);
    padding-top: 118px;
    padding-bottom: 190px;
    align-items: start;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.66)),
      linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 5, 0.18) 58%, rgba(5, 5, 5, 0.12) 100%);
  }

  .hero-panel {
    left: 20px;
    right: 20px;
    bottom: 42px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: auto;
  }

  .hero-panel div {
    min-height: 104px;
    padding: 18px 14px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(42px, 6vw, 58px);
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 68px;
    padding-inline: 16px;
  }

  .brand small {
    display: none;
  }

  .mobile-nav {
    top: 68px;
  }

  .hero {
    min-height: calc(100svh - 40px);
    padding: 104px 18px 178px;
  }

  .hero-content > .eyebrow {
    font-size: 11px;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .hero-panel div {
    padding: 16px 10px;
  }

  .hero-panel p {
    font-size: clamp(10px, 3vw, 12px);
    white-space: nowrap;
  }

  .metric {
    font-size: 32px;
  }

  h1 {
    font-size: clamp(36px, 11vw, 42px);
    line-height: 1.1;
  }

  section:not(.hero) {
    padding: 78px 0;
  }

  .section-inner {
    width: min(var(--max), calc(100% - 32px));
  }

  .service-grid,
  .solution-strip {
    grid-template-columns: 1fr;
  }

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

  .service-index {
    margin-bottom: 36px;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
    margin-left: 6px;
    padding-left: 22px;
    border-left: 1px solid var(--line-strong);
  }

  .timeline div {
    padding: 0 0 32px 10px;
    border-top: 0;
  }

  .timeline div:last-child {
    padding-bottom: 0;
  }

  .timeline div::before {
    top: 0.55em;
    left: -28px;
  }

  .timeline h3 {
    margin-top: 8px;
  }

  .contact-layout,
  .contact-card {
    padding: 24px;
  }

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

@media (max-width: 380px) {
  .hero-panel {
    left: 16px;
    right: 16px;
    bottom: 24px;
  }

  .hero-panel div {
    min-height: 92px;
    padding: 16px 8px;
  }

  .metric {
    font-size: 28px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    padding-inline: 18px;
  }

  .mail-link {
    font-size: 22px;
    white-space: nowrap;
  }

  .contact-card > span {
    font-size: 14px;
    white-space: nowrap;
  }
}

@media (min-width: 821px) {
  .mobile-nav,
  .mobile-nav.is-open {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-enabled .reveal {
    opacity: 1;
    transform: none;
  }
}
