:root {
  color-scheme: dark;
  --bg: #05080c;
  --bg-soft: #0a1119;
  --panel: rgba(13, 20, 29, 0.68);
  --panel-strong: rgba(10, 16, 24, 0.86);
  --line: rgba(123, 166, 220, 0.22);
  --line-strong: rgba(83, 156, 255, 0.62);
  --text: #f4f7fb;
  --muted: rgba(231, 238, 248, 0.74);
  --quiet: rgba(231, 238, 248, 0.54);
  --accent: #1f6fff;
  --accent-soft: #62a7ff;
  --cyan: #69d8ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --max-width: 1180px;
  --header-height: 86px;
  --scroll-shift: 0px;
  font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(6, 11, 16, 0) 0%, rgba(6, 11, 16, 0.94) 36rem),
    radial-gradient(circle at 78% 8%, rgba(31, 111, 255, 0.18), transparent 28rem),
    var(--bg);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea {
  outline-color: transparent;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  background:
    linear-gradient(rgba(103, 157, 224, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 157, 224, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
}

.site-shell::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 35%, rgba(69, 157, 255, 0.08) 47%, transparent 58%),
    radial-gradient(circle at 12% 64%, rgba(105, 216, 255, 0.12), transparent 19rem);
  opacity: 0.86;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--header-height);
  padding: 1rem clamp(1.25rem, 4vw, 4.5rem);
  color: rgba(248, 251, 255, 0.92);
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(116, 151, 194, 0.16);
  background: rgba(4, 8, 13, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand__mark {
  display: block;
  filter: drop-shadow(0 0 18px rgba(32, 123, 255, 0.36));
}

.brand__name {
  font-size: clamp(0.98rem, 1vw, 1.12rem);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.8vw, 2.35rem);
}

.site-nav__link {
  position: relative;
  padding: 0.45rem 0;
  color: rgba(244, 247, 251, 0.82);
  font-size: 0.96rem;
  font-weight: 700;
  transition: color 200ms ease;
}

.site-nav__link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link.is-active {
  color: #ffffff;
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after,
.site-nav__link.is-active::after {
  transform: scaleX(1);
}

.language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 0.25rem;
}

.language-picker__select {
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(125, 177, 241, 0.28);
  border-radius: 6px;
  color: rgba(248, 251, 255, 0.94);
  background: rgba(10, 20, 31, 0.78);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.language-picker__select:hover {
  border-color: rgba(125, 188, 255, 0.58);
  background: rgba(19, 45, 76, 0.78);
}

.language-picker__select:focus-visible {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(98, 167, 255, 0.16);
}

html[lang="zh-CN"] {
  font-family: "PingFang SC", "Microsoft YaHei", Inter, Manrope, sans-serif;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(138, 178, 229, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-toggle__line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section {
  position: relative;
  padding-inline: clamp(1.25rem, 4vw, 4.5rem);
}

.hero {
  display: grid;
  min-height: clamp(680px, 90svh, 880px);
  overflow: hidden;
  padding-top: var(--header-height);
  place-items: center start;
}

.hero__video,
.hero__fallback,
.hero__shade,
.hero__mesh,
.hero__scanline {
  position: absolute;
  inset: 0;
}

.hero__video {
  z-index: -5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 800ms ease;
}

.hero__video.is-ready {
  opacity: 0.7;
}

.hero__video.is-failed {
  display: none;
}

.hero__fallback {
  z-index: -6;
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.98) 0%, rgba(5, 8, 12, 0.76) 42%, rgba(5, 8, 12, 0.5) 100%),
    url("../public/hero-dpak-poster.svg") center / cover no-repeat,
    #07101a;
}

.hero__shade {
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(3, 6, 9, 0.96) 0%, rgba(3, 6, 9, 0.72) 48%, rgba(3, 6, 9, 0.64) 100%),
    linear-gradient(180deg, rgba(3, 6, 9, 0.35) 0%, rgba(3, 6, 9, 0.2) 48%, rgba(3, 6, 9, 0.98) 100%);
}

.hero__mesh {
  z-index: -3;
  background:
    linear-gradient(rgba(93, 151, 224, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 151, 224, 0.09) 1px, transparent 1px),
    radial-gradient(circle at 78% 42%, rgba(73, 153, 255, 0.18), transparent 22rem);
  background-position: calc(var(--scroll-shift) * -1) var(--scroll-shift), 0 0, center;
  background-size: 70px 70px, 70px 70px, auto;
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
}

.hero__scanline {
  z-index: -2;
  background: linear-gradient(110deg, transparent 0 39%, rgba(94, 181, 255, 0.16) 48%, transparent 58%);
  transform: translateX(-28%);
  animation: scan 9s ease-in-out infinite;
  opacity: 0.72;
}

.hero__content {
  width: min(760px, 100%);
  margin-top: clamp(4rem, 12vh, 8rem);
  transform: translateY(18px);
  animation: heroIn 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 180ms both;
}

.hero__title {
  max-width: none;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.4rem, 10vw, 10rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 14px 48px rgba(0, 0, 0, 0.42);
  white-space: nowrap;
}

.hero__subtitle {
  max-width: 620px;
  margin: clamp(1rem, 2vw, 1.65rem) 0 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 2.25vw, 2rem);
  line-height: 1.35;
}

.hero__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hero__link {
  margin-top: 2rem;
  padding: 0 1.35rem;
  border: 1px solid rgba(110, 173, 255, 0.42);
  color: #ffffff;
  background: rgba(24, 93, 208, 0.28);
  box-shadow: 0 12px 34px rgba(23, 89, 195, 0.18);
  backdrop-filter: blur(16px);
}

.hero__link:hover {
  transform: translateY(-2px);
  border-color: rgba(130, 195, 255, 0.76);
  box-shadow: 0 18px 44px rgba(25, 94, 203, 0.28);
}

.about {
  padding-top: clamp(5rem, 9vw, 8rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.about::before,
.services::before,
.shareholder-page::before,
.contacts::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 48%, rgba(46, 121, 224, 0.1) 49%, transparent 62%),
    linear-gradient(rgba(117, 165, 228, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 165, 228, 0.05) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  opacity: 0.82;
}

.about__panel,
.contacts__info {
  border: 1px solid rgba(127, 164, 211, 0.2);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(14, 23, 33, 0.8), rgba(7, 12, 18, 0.64));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.about__panel {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.4rem);
  text-align: center;
}

.section-title {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.about__text {
  margin: 1.6rem auto 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  line-height: 1.85;
}

.about__text {
  max-width: 820px;
}

.services {
  padding-top: clamp(4.5rem, 8vw, 7rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
  border-top: 1px solid rgba(126, 162, 207, 0.14);
  background:
    radial-gradient(circle at 18% 18%, rgba(105, 216, 255, 0.1), transparent 22rem),
    linear-gradient(180deg, rgba(5, 8, 12, 0.92), rgba(8, 15, 24, 0.72));
}

.services__inner {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.services__heading {
  max-width: 720px;
  margin-bottom: clamp(2rem, 5vw, 3.8rem);
}

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

.service-card {
  position: relative;
  min-height: 260px;
  padding: clamp(1.35rem, 2.6vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(127, 164, 211, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(16, 27, 40, 0.74), rgba(7, 12, 18, 0.58)),
    linear-gradient(rgba(105, 160, 229, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 160, 229, 0.055) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.9;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(105, 185, 255, 0.46);
  box-shadow: 0 24px 72px rgba(20, 91, 195, 0.18);
}

.service-card--wide {
  grid-column: 1 / -1;
  min-height: 210px;
}

.service-card__title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.1rem, 1.55vw, 1.42rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.service-card__text {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.72;
}

.contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(4.5rem, 8vw, 7rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
  background: linear-gradient(180deg, rgba(5, 8, 12, 0.62), rgba(5, 8, 12, 0.95));
}

.contacts__info {
  width: min(780px, 100%);
  padding: clamp(2rem, 5vw, 4.4rem);
  text-align: center;
}

.contact-card {
  margin-top: 2.2rem;
}

.contact-card__label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--quiet);
  font-size: 1.02rem;
}

.contact-card__email {
  color: #6cadff;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  font-weight: 750;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.contact-card__email:hover {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(67, 151, 255, 0.55);
}

.contact-details {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  color: var(--muted);
  text-align: left;
}

.contact-detail {
  display: grid;
  gap: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(127, 164, 211, 0.16);
}

.contact-detail__label {
  color: var(--text);
  font-weight: 800;
}

.page-hero {
  min-height: 410px;
  padding-top: calc(var(--header-height) + clamp(5rem, 9vw, 8rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(126, 162, 207, 0.14);
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.96), rgba(6, 13, 21, 0.72)),
    url("../public/hero-dpak-poster.svg") center / cover no-repeat;
}

.page-hero__content,
.shareholder-page__inner {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.page-title {
  margin: 0;
  font-size: clamp(3.5rem, 7.5vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.shareholder-page {
  padding-top: clamp(4.5rem, 8vw, 7rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
  background: linear-gradient(180deg, rgba(5, 8, 12, 0.84), rgba(5, 8, 12, 0.96));
}

.shareholder-page__inner {
  display: grid;
  gap: 1rem;
}

.info-panel {
  padding: clamp(1.5rem, 3.2vw, 2.6rem);
  border: 1px solid rgba(127, 164, 211, 0.2);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(14, 23, 33, 0.8), rgba(7, 12, 18, 0.64));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.info-panel__title {
  margin: 0 0 1.4rem;
  font-size: clamp(1.55rem, 2.6vw, 2.4rem);
  line-height: 1.1;
}

.info-panel p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.75;
}

.info-panel p + p {
  margin-top: 1rem;
}

.details-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.details-list div {
  display: grid;
  grid-template-columns: minmax(190px, 0.36fr) minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(127, 164, 211, 0.13);
}

.details-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.details-list dt {
  color: var(--quiet);
  font-weight: 700;
}

.details-list dd {
  margin: 0;
  color: var(--text);
}

.details-list a,
.info-panel a {
  color: #7db4ff;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.details-list a:hover,
.info-panel a:hover {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(67, 151, 255, 0.48);
}

.document-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.document-list li {
  position: relative;
  padding-left: 1.05rem;
  line-height: 1.55;
}

.document-list li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: var(--accent-soft);
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 2rem 1.25rem;
  border-top: 1px solid rgba(126, 162, 207, 0.14);
  color: rgba(231, 238, 248, 0.52);
  background: #04070b;
  text-align: center;
}

.reveal {
  opacity: 0.82;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

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

@keyframes scan {
  0%,
  100% {
    transform: translateX(-30%);
  }
  50% {
    transform: translateX(48%);
  }
}

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

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 0.25rem);
    right: clamp(1.25rem, 4vw, 4.5rem);
    display: grid;
    width: min(280px, calc(100vw - 2.5rem));
    padding: 0.8rem;
    border: 1px solid rgba(138, 178, 229, 0.22);
    border-radius: 8px;
    background: rgba(5, 9, 14, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .site-nav__link {
    padding: 0.8rem;
  }

  .language-picker {
    width: 100%;
    margin: 0.2rem 0 0;
    padding: 0.8rem 0.8rem 0;
    border-top: 1px solid rgba(138, 178, 229, 0.16);
  }

  .language-picker__select {
    width: 100%;
  }

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

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

  .details-list div,
  .document-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    background: #05080c;
  }

  .site-header {
    padding-inline: 1rem;
  }

  .brand__name {
    font-size: 0.95rem;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: 700px;
    align-items: start;
    padding-top: calc(var(--header-height) + 4rem);
  }

  .hero__video {
    display: none;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(3, 6, 9, 0.54), rgba(3, 6, 9, 0.98)),
      linear-gradient(90deg, rgba(3, 6, 9, 0.92), rgba(3, 6, 9, 0.6));
  }

  .hero__content {
    margin-top: 5rem;
  }

  .hero__title {
    font-size: clamp(3.05rem, 15.4vw, 6.4rem);
  }

  .hero__subtitle {
    font-size: 1.18rem;
  }

  .about__panel {
    padding: 1.4rem;
    text-align: left;
  }

  .about__text {
    line-height: 1.68;
  }

  .contact-card__email {
    word-break: break-word;
  }

  .contacts__info {
    text-align: left;
  }

  .page-title {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

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