:root {
  --navy: #081a2f;
  --navy-light: #102942;
  --gold: #d4aa42;
  --gold-light: #ebc665;
  --paper: #f4f2ec;
  --ink: #17263a;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 20, 37, .97) 0%, rgba(7, 25, 45, .83) 42%, rgba(7, 22, 39, .24) 72%, rgba(5, 16, 29, .65) 100%),
    linear-gradient(180deg, rgba(5, 18, 32, .28), rgba(4, 16, 29, .82)),
    url("hero-infrastructure.png") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 34%, rgba(212, 170, 66, .12), transparent 26%),
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: auto, 100% 88px;
  opacity: .5;
  animation: ambient-light 10s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: 43%;
  width: 520px;
  height: 300px;
  border: 1px solid rgba(212, 170, 66, .18);
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(-8deg);
}

.navbar,
.hero-content,
.services {
  width: min(1280px, calc(100% - 64px));
  margin: auto;
}

.navbar {
  height: 68px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  animation: nav-enter .65s ease-out both;
}

.navbar::before {
  content: "";
  position: absolute;
  inset: 0 50% 0;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 19, 34, .35), rgba(10, 31, 52, .08));
  backdrop-filter: blur(4px);
}

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

.logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .15);
  transition: transform .3s ease, box-shadow .3s ease;
}

.logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand:hover .logo {
  transform: translateY(-2px) rotate(-2deg) scale(1.04);
  box-shadow: 0 10px 26px rgba(212, 170, 66, .24);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 14px;
  letter-spacing: .04em;
}

.brand-text small {
  margin-top: 4px;
  font-size: 6px;
  letter-spacing: .1em;
  opacity: .56;
}

.nav-links {
  height: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links a {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -1px;
  left: 50%;
  height: 2px;
  background: var(--gold);
  transition: .2s;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-links a:hover::after {
  right: 14px;
  left: 14px;
}

.nav-button {
  padding: 10px 18px;
  border-radius: 5px;
  background: var(--gold);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(212, 170, 66, .18);
  transition: .2s;
}

.nav-button:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.hero-content {
  min-height: calc(100vh - 68px);
  padding: 56px 0 72px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  align-items: center;
  gap: 10%;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy .eyebrow {
  animation: content-enter .7s .12s ease-out both;
}

.hero-copy h1 {
  animation: title-enter .85s .22s cubic-bezier(.22, .75, .24, 1) both;
}

.hero-copy .hero-description {
  animation: content-enter .7s .38s ease-out both;
}

.hero-copy .hero-buttons {
  animation: content-enter .7s .5s ease-out both;
}

.hero-copy .advantages {
  animation: content-enter .7s .62s ease-out both;
}

.eyebrow,
.section-label,
.card-label {
  margin: 0 0 16px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--gold);
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 4.8vw, 70px);
  line-height: 1.1;
  letter-spacing: -.055em;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .78);
}

.hero-description {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .7);
  font-size: 17px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  transition: .2s;
  position: relative;
  overflow: hidden;
}

.button::after,
.contact-button::after {
  content: "";
  position: absolute;
  top: -80%;
  left: -45%;
  width: 28%;
  height: 260%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: rotate(20deg);
  transition: left .65s ease, opacity .2s ease;
}

.button:hover::after,
.contact-button:hover::after {
  left: 125%;
  opacity: .8;
}

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

.primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 12px 30px rgba(212, 170, 66, .16);
}

.secondary {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
}

.advantages {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
}

.advantages span {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}

.advantages span:hover {
  border-color: rgba(212, 170, 66, .55);
  color: rgba(255, 255, 255, .9);
  transform: translateY(-2px);
}

.advantages span::before {
  content: "◆";
  margin-right: 8px;
  color: var(--gold);
  font-size: 7px;
}

.consult-card {
  position: relative;
  padding: 30px 30px 25px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 12px;
  background: rgba(247, 247, 245, .93);
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px);
  animation:
    card-enter .8s .35s cubic-bezier(.22, .75, .24, 1) both,
    card-float 5s 1.2s ease-in-out infinite;
}

.consult-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  width: 56px;
  height: 3px;
  background: var(--gold);
}

.card-label {
  margin-bottom: 12px;
  color: #a88127;
  font-size: 10px;
}

.consult-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 25px;
}

.card-description {
  margin: 14px 0 22px;
  color: #6b7583;
  font-size: 13px;
  line-height: 1.75;
}

.card-highlight {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  background: #fff;
}

.card-highlight span {
  color: #8b6a20;
  font-size: 11px;
  font-weight: 800;
}

.card-highlight strong,
.contact-phone {
  color: var(--navy);
  font-size: 15px;
}

.contact-phone {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .025em;
  transition: color .2s ease, letter-spacing .2s ease;
}

.contact-phone:hover {
  color: #a27b22;
  letter-spacing: .05em;
}

.consult-card ul {
  padding: 0;
  margin: 18px 0 12px;
  list-style: none;
}

.consult-card li {
  padding: 10px 0;
  border-bottom: 1px solid #dde1e5;
  color: #697381;
  font-size: 12px;
}

.consult-card li b {
  display: inline-block;
  width: 74px;
  color: var(--navy);
}

.card-link {
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.card-link span {
  color: var(--gold);
  font-size: 18px;
}

.services {
  padding: 96px 0 108px;
}

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

.section-label {
  margin-bottom: 18px;
  color: #a27b22;
}

.section-title h2,
.process h2,
.contact h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(38px, 4.3vw, 62px);
  line-height: 1.14;
  letter-spacing: -.055em;
}

.section-title > p {
  max-width: 470px;
  margin: 0;
  color: #647081;
  font-size: 15px;
  line-height: 1.85;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #ccd1d4;
  border-left: 1px solid #ccd1d4;
}

.service-card {
  min-height: 280px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #ccd1d4;
  border-bottom: 1px solid #ccd1d4;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .48);
  transition: transform .28s ease, color .28s ease, background .28s ease, box-shadow .28s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: width .25s;
}

.service-card:hover {
  color: var(--white);
  background: var(--navy);
  transform: translateY(-8px);
  box-shadow: 0 22px 42px rgba(8, 26, 47, .17);
}

.service-card:hover::before {
  width: 54px;
}

.service-card > span {
  color: #aa842d;
  font: 13px Georgia, serif;
}

.service-card h3 {
  margin: 36px 0 14px;
  font-size: 26px;
}

.service-card p {
  margin: 0;
  color: #697381;
  font-size: 13px;
  line-height: 1.8;
}

.service-card:hover p {
  color: rgba(255, 255, 255, .64);
}

.service-card a {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  color: #97701b;
  font-size: 12px;
  font-weight: 800;
}

.service-card a b {
  transition: transform .25s ease;
}

.service-card:hover a b {
  transform: translate(3px, -3px);
}

.process {
  padding: 110px max(32px, calc((100vw - 1280px) / 2));
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 10%;
  color: var(--white);
  background: var(--navy);
}

.process h2 {
  color: var(--white);
}

.process-intro > p:last-child {
  max-width: 430px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .56);
  font-size: 14px;
  line-height: 1.9;
}

.process ol {
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  list-style: none;
}

.process li {
  min-height: 100px;
  display: grid;
  grid-template-columns: 48px 130px 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  transition: padding-left .3s ease, background .3s ease;
}

.process li:hover {
  padding-left: 14px;
  background: linear-gradient(90deg, rgba(212, 170, 66, .09), transparent);
}

.process li span {
  color: var(--gold);
  font: 13px Georgia, serif;
}

.process li strong {
  font-size: 17px;
}

.process li p {
  margin: 0;
  color: rgba(255, 255, 255, .52);
  font-size: 13px;
}

.contact {
  padding: 105px max(32px, calc((100vw - 1280px) / 2));
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 12%;
  background: var(--gold);
}

.contact .section-label {
  color: rgba(8, 26, 47, .58);
}

.contact-copy p {
  margin: 0 0 24px;
  color: rgba(8, 26, 47, .7);
  line-height: 1.8;
}

.contact-button {
  min-height: 52px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.contact-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(8, 26, 47, .25);
}

footer {
  padding: 44px max(32px, calc((100vw - 1280px) / 2));
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: 36px;
  background: #061424;
  color: rgba(255, 255, 255, .5);
  font-size: 11px;
}

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

footer p {
  margin: 0;
  line-height: 1.7;
}

.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 20;
  display: grid;
  gap: 8px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .18));
  animation: floating-enter .7s .9s ease-out both;
}

.floating-contact a {
  min-width: 126px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(8, 26, 47, .1);
  border-radius: 6px;
  background: rgba(255, 255, 255, .96);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  transition: transform .22s ease, background .22s ease;
}

.floating-contact a:hover {
  transform: translateX(-5px);
}

.floating-contact a span {
  color: #a37b20;
  font-size: 9px;
}

.floating-contact .quote {
  border-color: var(--gold);
  background: var(--gold);
}

.floating-contact .quote span {
  color: rgba(8, 26, 47, .6);
}

@keyframes nav-enter {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes content-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes title-enter {
  from {
    opacity: 0;
    transform: translateY(30px);
    letter-spacing: -.08em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: -.055em;
  }
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translate(28px, 18px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes card-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

@keyframes ambient-light {
  from {
    opacity: .35;
    background-position: 0 0, 0 0;
  }
  to {
    opacity: .6;
    background-position: 40px -20px, 0 88px;
  }
}

@keyframes floating-enter {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes section-reveal {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports (animation-timeline: view()) {
  .section-title,
  .service-card,
  .process-intro,
  .process li,
  .contact > div {
    animation: section-reveal linear both;
    animation-timeline: view();
    animation-range: entry 8% cover 28%;
  }

  .service-card:nth-child(2),
  .service-card:nth-child(5),
  .process li:nth-child(2) {
    animation-range: entry 12% cover 32%;
  }

  .service-card:nth-child(3),
  .service-card:nth-child(6),
  .process li:nth-child(3) {
    animation-range: entry 16% cover 36%;
  }
}

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

  .navbar {
    justify-content: space-between;
  }

  .hero-content {
    grid-template-columns: 1fr 340px;
    gap: 38px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .navbar,
  .hero-content,
  .services {
    width: min(100% - 36px, 680px);
  }

  .navbar {
    height: 62px;
  }

  .nav-button,
  .brand-text small {
    display: none;
  }

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

  .hero-content {
    min-height: auto;
    padding: 52px 0 66px;
    grid-template-columns: 1fr;
  }

  .hero-description {
    font-size: 15px;
  }

  .services {
    padding: 80px 0;
  }

  .section-title {
    align-items: start;
    flex-direction: column;
    gap: 22px;
  }

  .process,
  .contact {
    padding: 80px 24px;
    grid-template-columns: 1fr;
    gap: 50px;
  }

  footer {
    padding: 42px 24px;
    grid-template-columns: 1fr;
  }

  .floating-contact {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 520px) {
  .hero {
    background:
      linear-gradient(rgba(5, 19, 35, .87), rgba(5, 19, 35, .96)),
      url("hero-infrastructure.png") 64% center / cover no-repeat;
  }

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

  .eyebrow {
    font-size: 10px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .floating-contact a:first-child {
    display: none;
  }

  .floating-contact {
    display: none;
  }

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

  .process li {
    min-height: 118px;
    grid-template-columns: 38px 88px 1fr;
    gap: 8px;
  }
}

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

  * {
    animation: none !important;
    transition: none !important;
  }
}
