:root {
  --navy-950: #020914;
  --navy-900: #041222;
  --navy-850: #071a2d;
  --navy-800: #0a2239;
  --blue-500: #1b7dff;
  --blue-300: #6db9ff;
  --gold-500: #d9a62e;
  --gold-400: #efbb42;
  --gold-300: #ffd875;
  --ink-900: #081729;
  --ink-700: #33475c;
  --white: #f7fbff;
  --muted: #aebccd;
  --line: rgba(151, 192, 231, 0.16);
  --shell: min(1320px, calc(100vw - 96px));
  --content-shell: min(1264px, calc(100vw - 96px));
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--navy-950);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--navy-950);
  color: var(--white);
  font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink-900);
  transform: translateY(-160%);
}

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

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  border-color: var(--line);
  background: rgba(2, 9, 20, 0.86);
  backdrop-filter: blur(18px);
}

.header-shell,
.footer-shell {
  width: var(--shell);
  margin: 0 auto;
}

.section-shell,
.hero-shell {
  width: var(--content-shell);
  margin: 0 auto;
}

.header-shell {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 14px;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  color: #ffffff;
  font-family: "STZhongsong", "Songti SC", "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand-copy small {
  margin-top: 9px;
  color: #9aaec4;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 3vw, 54px);
}

.desktop-nav a {
  position: relative;
  padding: 32px 0 28px;
  color: #dbe5ef;
  font-size: 15px;
  transition: color 180ms ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  background: var(--gold-400);
  content: "";
  opacity: 0;
  transform: scaleX(0.2);
  transition: opacity 180ms ease, transform 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a.is-active {
  color: var(--gold-300);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
}

.motion-toggle,
.menu-toggle {
  border: 0;
  background: transparent;
  color: #99aab9;
  cursor: pointer;
  font-size: 12px;
}

.motion-toggle:hover,
.motion-toggle:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible {
  color: var(--white);
}

.admin-link {
  padding: 10px 0;
  color: var(--gold-400);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.admin-link:hover,
.admin-link:focus-visible {
  color: var(--gold-300);
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: clamp(720px, 88svh, 880px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--navy-950);
  isolation: isolate;
}

.hero-poster,
.particle-canvas,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-poster {
  z-index: -4;
  object-fit: cover;
  object-position: center;
  opacity: 0.88;
  transform: scale(1.015);
}

.particle-canvas {
  z-index: -3;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 9, 20, 0.98) 0%, rgba(2, 9, 20, 0.8) 35%, rgba(2, 9, 20, 0.15) 67%, rgba(2, 9, 20, 0.05) 100%),
    radial-gradient(circle at 25% 45%, rgba(10, 40, 68, 0.34), transparent 52%);
  pointer-events: none;
}

.hero-shell {
  display: flex;
  align-items: center;
  min-height: inherit;
  padding-top: 92px;
}

.hero-copy {
  width: min(600px, 47vw);
  padding-bottom: 24px;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  color: var(--gold-400);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  background: var(--gold-400);
  content: "";
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(48px, 5.1vw, 76px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.18;
}

.hero h1 span {
  color: var(--gold-400);
}

.hero-description {
  max-width: 590px;
  margin: 28px 0 0;
  color: #b9c8d7;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}

.hero-actions .button-primary {
  min-width: 190px;
}

.hero-actions .button-secondary {
  min-width: 172px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  min-height: 56px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, #e8b234, #c88b12);
  box-shadow: 0 12px 34px rgba(201, 139, 18, 0.2);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 16px 42px rgba(223, 164, 36, 0.3);
}

.button-secondary {
  border-color: rgba(224, 169, 44, 0.72);
  background: rgba(2, 9, 20, 0.34);
  color: var(--gold-300);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--gold-300);
  background: rgba(217, 166, 46, 0.08);
}

.hero-note {
  margin: 28px 0 0;
  color: rgba(178, 197, 216, 0.52);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 26px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(206, 220, 233, 0.58);
  font-size: 11px;
  letter-spacing: 0.18em;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 1px;
  height: 24px;
  background: linear-gradient(var(--gold-400), transparent);
}

.section-shell {
  padding: 116px 0;
}

.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
}

.section-dark::before {
  position: absolute;
  top: -420px;
  left: 50%;
  width: 900px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 106, 193, 0.11), transparent 68%);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.capabilities .section-shell {
  padding-top: 68px;
}

.section-heading {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.section-heading-centered {
  margin: 0 auto;
  text-align: center;
}

.section-heading-centered .section-kicker {
  justify-content: center;
}

.section-kicker {
  margin-bottom: 18px;
  color: var(--gold-400);
  font-size: 11px;
  letter-spacing: 0.24em;
}

.section-heading h2,
.about-copy h2,
.contact h2 {
  margin: 0;
  font-size: clamp(34px, 3.3vw, 50px);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.section-heading > p:last-child {
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 16px;
}

.capability-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 74px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-list article {
  min-height: 250px;
  padding: 38px 42px 42px;
}

.capability-list article + article {
  border-left: 1px solid var(--line);
}

.capability-list article > span {
  color: var(--gold-400);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.capability-list h3 {
  margin: 36px 0 12px;
  font-size: 24px;
  font-weight: 650;
}

.capability-list p {
  max-width: 320px;
  margin: 0;
  color: #8fa2b5;
  font-size: 14px;
  line-height: 1.9;
}

.section-light {
  background: #f3f6fa;
  color: var(--ink-900);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: end;
  gap: 120px;
}

.about-index {
  color: #b7c2ce;
  font-size: clamp(38px, 5vw, 78px);
  font-weight: 700;
  letter-spacing: -0.06em;
  writing-mode: vertical-rl;
}

.about-copy {
  max-width: 700px;
}

.about-copy > p:not(.section-kicker) {
  max-width: 620px;
  margin: 30px 0;
  color: var(--ink-700);
  font-size: 17px;
  line-height: 2;
}

.text-link {
  display: inline-block;
  border-bottom: 1px solid #b47b08;
  color: #8b5f05;
  font-weight: 650;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 100px;
}

.contact-copy {
  padding-bottom: 4px;
}

.contact-copy p {
  max-width: 480px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 17px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #010711;
}

.footer-shell {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 178px;
  padding: 48px 0;
}

.footer-shell strong {
  font-family: "STZhongsong", "Songti SC", serif;
  font-size: 20px;
  letter-spacing: 0.14em;
}

.footer-shell p,
.footer-meta {
  margin: 8px 0 0;
  color: #73869a;
  font-size: 12px;
}

.footer-meta {
  display: flex;
  gap: 24px;
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--gold-300);
}

.mini-dialog {
  width: min(480px, calc(100vw - 40px));
  overflow: hidden;
  border: 1px solid rgba(216, 166, 46, 0.38);
  border-radius: 12px;
  background: #071729;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
  color: var(--white);
  padding: 46px;
}

.mini-dialog::backdrop {
  background: rgba(0, 5, 12, 0.76);
  backdrop-filter: blur(8px);
}

.mini-dialog h2 {
  margin: 0;
  font-size: 30px;
}

.mini-dialog > p:not(.section-kicker) {
  margin: 18px 0 30px;
  color: var(--muted);
}

.dialog-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 125, 255, 0.26), transparent 70%);
  pointer-events: none;
}

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

@media (max-width: 1080px) {
  :root {
    --shell: min(100% - 48px, 960px);
    --content-shell: min(100% - 48px, 960px);
  }

  .header-shell {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .motion-toggle,
  .header-actions .admin-link {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    min-width: 56px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(217, 166, 46, 0.46);
    border-radius: 4px;
    color: var(--gold-300);
  }

  .mobile-nav {
    position: absolute;
    top: 91px;
    right: 0;
    left: 0;
    display: grid;
    gap: 2px;
    padding: 18px 24px 26px;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 9, 20, 0.97);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(151, 192, 231, 0.1);
    color: #dbe5ef;
  }

  .hero-copy {
    width: min(610px, 58vw);
  }

  .capability-list article {
    padding-right: 28px;
    padding-left: 28px;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: calc(100% - 36px);
    --content-shell: calc(100% - 36px);
  }

  .header-shell {
    min-height: 76px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

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

  .brand-copy small {
    margin-top: 7px;
    font-size: 8px;
  }

  .mobile-nav {
    top: 75px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(2, 9, 20, 0.12) 0%, rgba(2, 9, 20, 0.58) 34%, rgba(2, 9, 20, 0.98) 64%, var(--navy-950) 100%),
      radial-gradient(circle at 50% 30%, transparent, rgba(2, 9, 20, 0.55) 72%);
  }

  .hero-poster {
    object-position: 68% top;
    opacity: 0.62;
  }

  .hero-shell {
    align-items: flex-end;
    padding-top: 76px;
    padding-bottom: 104px;
  }

  .hero-copy {
    width: 100%;
    padding-bottom: 0;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 12px;
  }

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

  .hero-description {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .button {
    min-width: 146px;
    min-height: 52px;
  }

  .hero-actions .button-primary,
  .hero-actions .button-secondary {
    flex: 1 1 146px;
    min-width: 0;
  }

  .hero-note {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .section-shell {
    padding: 84px 0;
  }

  .capabilities .section-shell {
    padding-top: 64px;
  }

  .capability-list {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .capability-list article {
    min-height: auto;
    padding: 32px 4px 36px;
  }

  .capability-list article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .capability-list h3 {
    margin-top: 20px;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-index {
    display: none;
  }

  .contact-copy p {
    font-size: 15px;
  }

  .footer-shell {
    display: block;
    min-height: auto;
  }

  .footer-meta {
    flex-direction: column;
    gap: 6px;
    margin-top: 28px;
  }

  .mini-dialog {
    padding: 36px 26px;
  }
}

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

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