:root {
  --bg-black: #000;
  --bg-panel: #07111d;
  --bg-line: rgba(255, 255, 255, 0.1);
  --accent: #5bbdff;
  --accent-soft: rgba(91, 189, 255, 0.16);
  --text-primary: #fff;
  --text-secondary: rgba(255, 255, 255, 0.68);
  --text-muted: rgba(255, 255, 255, 0.45);
  --font-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-en: "Space Grotesk", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-cn);
  color: var(--text-primary);
  background: var(--bg-black);
  line-height: 1.7;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  padding: 0 clamp(20px, 4.85vw, 70px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(0, 0, 0, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  transform: translate3d(0, 0, 0);
  transition: transform .36s cubic-bezier(.22, 1, .36, 1), background .28s ease, border-color .28s ease;
  will-change: transform;
}

.nav.nav-hidden {
  transform: translate3d(0, calc(-100% - 10px), 0);
}

.nav.nav-compact {
  background: rgba(0, 0, 0, .82);
  border-bottom-color: rgba(255, 255, 255, .05);
}

.nav-logo-img {
  width: 133px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 46px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #8b8b8b;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(420px, 58vh, 620px);
  padding: clamp(120px, 13vw, 190px) clamp(24px, 6vw, 80px) clamp(92px, 11vw, 150px);
  display: grid;
  align-content: center;
  background:
    radial-gradient(circle at 64% 20%, rgba(91, 189, 255, 0.22), transparent 32%),
    linear-gradient(180deg, #02060b 0%, #08213a 66%, #000 100%);
}

.page-hero::before,
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-hero::before {
  background:
    radial-gradient(ellipse 54% 46% at 24% 28%, rgba(78, 193, 255, .24), transparent 68%),
    radial-gradient(ellipse 46% 40% at 82% 32%, rgba(43, 140, 230, .22), transparent 70%),
    radial-gradient(ellipse 80% 46% at 48% 88%, rgba(121, 221, 255, .14), transparent 70%);
  filter: blur(8px);
  transform: scale(1.08);
  animation: pageHeroLiquid 18s ease-in-out infinite alternate;
}

.page-hero::after {
  opacity: .34;
  background:
    radial-gradient(circle, rgba(210, 244, 255, .95) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(91, 189, 255, .38) 0 1px, transparent 1.6px),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 58%);
  background-size: 38px 38px, 72px 72px, auto;
  background-position: 0 0, 22px 18px, 0 0;
  animation: pageHeroParticles 24s linear infinite;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

@keyframes pageHeroLiquid {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1.08);
  }
  45% {
    transform: translate3d(2%, 2%, 0) scale(1.12);
  }
  100% {
    transform: translate3d(-1%, 3%, 0) scale(1.1);
  }
}

@keyframes pageHeroParticles {
  to {
    background-position: 38px 76px, -50px 72px, 0 0;
  }
}

.page-kicker,
.section-eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--font-en);
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.page-title {
  max-width: 980px;
  margin: 0;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 1.06;
  letter-spacing: 0;
}

.page-desc {
  max-width: 780px;
  margin: 32px 0 0;
  color: var(--text-secondary);
  font-size: clamp(16px, 1.45vw, 20px);
}

.page-main {
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
  padding: clamp(96px, 10vw, 160px) 0;
}

.page-section {
  margin: 0 0 clamp(110px, 12vw, 180px);
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  transition: opacity .72s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
  will-change: transform, opacity;
}

.page-section:last-child {
  margin-bottom: 0;
}

.page-section.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(42px, 5vw, 72px);
}

.section-heading.compact {
  margin-bottom: 20px;
}

.section-heading h2,
.page-cta h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.15;
  letter-spacing: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(52px, 8vw, 120px);
  align-items: start;
}

.split-section .section-heading {
  margin-bottom: 0;
}

.split-copy {
  padding-top: 44px;
  color: var(--text-secondary);
  font-size: clamp(16px, 1.3vw, 19px);
}

.split-copy p {
  margin: 0 0 18px;
}

.module-grid {
  display: grid;
  gap: clamp(22px, 2.4vw, 34px);
}

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

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

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

.module-card,
.matrix-row,
.step-item,
.case-list-card,
.contact-form {
  --page-card-cut: 22px;
  border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  clip-path: polygon(0 0, calc(100% - var(--page-card-cut)) 0, 100% var(--page-card-cut), 100% calc(100% - var(--page-card-cut)), calc(100% - var(--page-card-cut)) 100%, 0 100%);
  box-shadow:
    inset 0 0 30px rgba(91, 189, 255, .08);
}

.module-card {
  min-height: 280px;
  padding: clamp(28px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform .36s cubic-bezier(.22, 1, .36, 1), border-color .28s ease, background .28s ease;
}

.module-card::after,
.step-item::after,
.matrix-row::after,
.case-list-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(135deg, rgba(91, 189, 255, .18), transparent 54%);
  transition: opacity .32s ease;
}

.module-card:hover,
.step-item:hover,
.matrix-row:hover,
.case-list-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(180deg, rgba(91, 189, 255, .1), rgba(255, 255, 255, .025));
  box-shadow:
    inset 0 0 34px rgba(91, 189, 255, .18),
    0 20px 54px rgba(0, 0, 0, .18);
}

.module-card:hover::after,
.step-item:hover::after,
.matrix-row:hover::after,
.case-list-card:hover::after {
  opacity: 1;
}

.module-card h3,
.step-item h3,
.case-list-body h3 {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.25;
  letter-spacing: 0;
}

.module-card p,
.step-item p,
.matrix-row p,
.case-list-body small {
  margin: 16px 0 0;
  color: var(--text-secondary);
}

.module-card span {
  display: block;
  margin-top: 22px;
  color: var(--accent);
  font-size: 13px;
}

.service-matrix {
  display: grid;
  gap: 12px;
}

.matrix-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 0.9fr) minmax(320px, 1.4fr);
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  transition: transform .36s cubic-bezier(.22, 1, .36, 1), border-color .28s ease, background .28s ease;
}

.matrix-row strong {
  color: #fff;
  font-size: 17px;
}

.matrix-row b {
  color: var(--accent);
  font-weight: 700;
}

.matrix-row p {
  margin: 0;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.step-item {
  min-height: 220px;
  padding: 34px;
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
}

.step-item > span {
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-group button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.filter-group button.active,
.filter-group button:hover {
  border-color: rgba(91, 189, 255, 0.8);
  color: #fff;
  background: var(--accent-soft);
}

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

.case-list-card {
  min-height: 420px;
  display: grid;
  grid-template-rows: minmax(180px, 1fr) auto;
  overflow: hidden;
  position: relative;
  transition: transform .36s cubic-bezier(.22, 1, .36, 1), border-color .28s ease;
}

.case-list-card[hidden] {
  display: none;
}

.case-list-media {
  min-height: 260px;
  background-size: cover;
  background-position: center;
  transition: transform .65s cubic-bezier(.22, 1, .36, 1), filter .4s ease;
}

.case-list-card:hover .case-list-media {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.case-list-body {
  padding: 24px;
}

.case-list-body p {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
}

.case-list-body span {
  display: block;
  margin-top: 12px;
  color: var(--text-muted);
}

.case-list-body small {
  display: block;
  font-size: 14px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.contact-panel .section-heading {
  margin-bottom: 0;
}

.contact-form {
  padding: clamp(30px, 4vw, 48px);
  display: grid;
  gap: 16px;
  background:
    linear-gradient(90deg, rgba(1, 9, 20, .95) 0%, rgba(9, 32, 61, .76) 68%, rgba(27, 87, 132, .38) 100%);
  box-shadow:
    inset 0 0 42px rgba(72, 176, 235, .16),
    0 28px 80px rgba(0,0,0,.24);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  --field-cut: 12px;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(0, 5, 12, .68);
  color: #fff;
  padding: 12px 14px;
  outline: none;
  clip-path: polygon(0 0, calc(100% - var(--field-cut)) 0, 100% var(--field-cut), 100% calc(100% - var(--field-cut)), calc(100% - var(--field-cut)) 100%, 0 100%);
  box-shadow: inset 0 0 18px rgba(91, 189, 255, .1);
}

.contact-form select option {
  color: #111;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-result {
  min-height: 24px;
  margin: 0;
  color: var(--accent);
}

.page-button {
  --button-cut: 12px;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  padding: 12px 24px;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  clip-path: polygon(0 0, calc(100% - var(--button-cut)) 0, 100% var(--button-cut), 100% calc(100% - var(--button-cut)), calc(100% - var(--button-cut)) 100%, 0 100%);
  box-shadow: inset 0 0 18px rgba(255,255,255,.34), 0 0 18px rgba(60,184,255,.28);
}

.page-cta {
  --page-card-cut: 26px;
  padding: clamp(46px, 6vw, 82px);
  background: linear-gradient(135deg, rgba(91, 189, 255, 0.16), rgba(255, 255, 255, 0.035));
  border: 0;
  clip-path: polygon(0 0, calc(100% - var(--page-card-cut)) 0, 100% var(--page-card-cut), 100% calc(100% - var(--page-card-cut)), calc(100% - var(--page-card-cut)) 100%, 0 100%);
  box-shadow:
    inset 0 0 40px rgba(91, 189, 255, .12);
}

.page-cta p {
  max-width: 680px;
  margin: 18px 0 28px;
  color: var(--text-secondary);
}

.case-detail {
  display: grid;
  gap: 38px;
}

.case-cover {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.case-detail-section {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding-top: 34px;
  border-top: 1px solid var(--bg-line);
}

.case-detail-section h2 {
  margin: 0;
  color: var(--accent);
  font-size: 18px;
}

.case-detail-section p {
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(16px, 1.25vw, 19px);
}

.footer {
  padding: 36px clamp(24px, 6vw, 80px);
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1080px) {
  .module-grid.columns-4,
  .module-grid.columns-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .split-copy {
    padding-top: 0;
  }
}

@media (max-width: 860px) {
  .nav {
    position: sticky;
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .page-main {
    width: min(100% - 32px, 1240px);
  }

  .module-grid.columns-3,
  .module-grid.columns-4,
  .module-grid.columns-5,
  .step-list,
  .case-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .matrix-row,
  .case-detail-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .step-item {
    grid-template-columns: 46px 1fr;
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .page-hero {
    min-height: 380px;
    padding-top: 74px;
  }

  .page-main {
    padding-top: 54px;
  }

  .module-card {
    min-height: 190px;
  }
}
