:root {
  --navy: #071932;
  --navy-2: #102d55;
  --blue: #1f65d6;
  --cyan: #5fd0ff;
  --green: #b7ff39;
  --orange: #ff8a1d;
  --ink: #172033;
  --muted: #64708a;
  --line: #dce4f1;
  --paper: #f6f8fc;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(8, 23, 45, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section,
main {
  scroll-margin-top: 84px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  min-height: 76px;
  padding: 14px 20px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(4, 14, 30, 0.88), rgba(4, 14, 30, 0.42));
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 25, 50, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

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

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--white);
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.84);
}

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

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: transform 0.2s ease;
}

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

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

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 12, 27, 0.96) 0%, rgba(4, 12, 27, 0.82) 36%, rgba(4, 12, 27, 0.36) 76%),
    linear-gradient(180deg, rgba(4, 12, 27, 0.26) 0%, rgba(4, 12, 27, 0.92) 100%);
}

.hero-content {
  position: relative;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 152px 0 70px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 4.1vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button.primary {
  color: #06162e;
  background: var(--green);
  box-shadow: 0 16px 40px rgba(183, 255, 57, 0.26);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary.light {
  color: var(--white);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(720px, 100%);
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-stats div {
  padding: 22px 20px;
  background: rgba(7, 25, 50, 0.62);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--green);
  font-size: 32px;
  line-height: 1;
}

.hero-stats span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.75);
}

.hero-product {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 25, 50, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.hero-product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.hero-product-copy {
  padding: 22px;
}

.hero-product-copy span,
.hero-product-copy strong,
.hero-product-copy p {
  display: block;
}

.hero-product-copy span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.hero-product-copy strong {
  margin-top: 6px;
  color: var(--white);
  font-size: 24px;
  line-height: 1.2;
}

.hero-product-copy p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.hero-mobile-product {
  display: none;
}

.section {
  padding: 96px clamp(20px, 5vw, 72px);
}

.section-heading {
  width: min(1160px, 100%);
  margin: 0 auto 38px;
}

.section-heading h2,
.product h2,
.contact h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading > p:not(.eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.intro {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 42px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.intro-copy {
  color: #35425a;
  font-size: 18px;
}

.intro-copy p {
  margin: 0 0 20px;
}

.strength-panel {
  display: grid;
  gap: 14px;
  align-self: start;
}

.strength-panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 90px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(12, 34, 68, 0.08);
}

.strength-panel span {
  color: var(--muted);
  font-size: 14px;
}

.strength-panel strong {
  color: var(--navy);
  font-size: 22px;
  text-align: right;
}

.services {
  background:
    linear-gradient(135deg, rgba(9, 29, 57, 0.96), rgba(16, 45, 85, 0.96)),
    var(--navy);
  color: var(--white);
}

.services .section-heading h2 {
  color: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.service-grid article {
  min-height: 286px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.service-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--green);
  font-weight: 900;
}

.service-grid h3,
.case-grid h3 {
  margin: 22px 0 10px;
  font-size: 24px;
}

.service-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 48px;
  align-items: center;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding-right: 0;
  padding-left: 0;
}

.product-copy p:not(.eyebrow) {
  margin: 22px 0 0;
  color: #3a465d;
  font-size: 18px;
}

.product-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.product-points span {
  padding: 9px 12px;
  border-radius: 8px;
  color: #12325c;
  background: #eaf4ff;
  font-weight: 800;
}

.product-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 22px;
  min-height: 430px;
  padding: 34px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 24% 20%, rgba(95, 208, 255, 0.3), transparent 30%),
    linear-gradient(135deg, #081b36, #153c73);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-shot {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.product-shot img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.qr-card {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 18px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.qr-card img {
  width: 220px;
  aspect-ratio: 1;
  object-fit: contain;
}

.qr-card strong {
  display: block;
  margin-top: 14px;
  color: var(--navy);
  text-align: center;
}

.app-icon {
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 190px;
  opacity: 0.18;
}

.cases {
  background: var(--paper);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.case-grid article {
  grid-column: span 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(11, 31, 62, 0.08);
}

.case-grid article:nth-child(1),
.case-grid article:nth-child(2) {
  grid-column: span 3;
}

.image-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
  text-align: inherit;
}

.image-zoom img {
  transition: transform 0.28s ease, filter 0.28s ease;
}

.image-zoom:hover img {
  filter: brightness(1.04);
  transform: scale(1.025);
}

.case-grid .image-zoom {
  overflow: hidden;
}

.case-grid .image-zoom img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.case-grid h3,
.case-grid p {
  padding-right: 22px;
  padding-left: 22px;
}

.case-grid h3 {
  margin-bottom: 8px;
  color: var(--navy);
}

.case-grid p {
  margin: 0 0 24px;
  color: var(--muted);
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.credential-note,
.credential-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(11, 31, 62, 0.08);
}

.credential-note {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(8, 27, 54, 0.96), rgba(19, 57, 105, 0.94)),
    var(--navy);
}

.credential-note span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.credential-note h3 {
  margin: 14px 0 12px;
  color: var(--white);
  font-size: 28px;
  line-height: 1.24;
}

.credential-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.credential-card-license {
  grid-column: span 6;
}

.credential-card:not(.credential-card-license) {
  grid-column: span 6;
}

.credential-card.credential-card-portrait {
  grid-column: span 4;
}

.credential-grid .image-zoom {
  display: grid;
  align-items: center;
  height: calc(100% - 54px);
  min-height: 190px;
  overflow: hidden;
  padding: 14px;
  background: #f8fafc;
}

.credential-grid .image-zoom img {
  width: 100%;
  height: auto;
  max-height: 310px;
  object-fit: contain;
  border: 1px solid rgba(7, 25, 50, 0.1);
  border-radius: 6px;
  background: var(--white);
}

.credential-card-license .image-zoom img {
  max-height: 300px;
}

.credential-grid figcaption {
  padding: 14px 18px;
  color: var(--navy);
  font-weight: 900;
  background: var(--white);
}

.credential-actions {
  display: flex;
  justify-content: center;
  width: min(1160px, 100%);
  margin: 30px auto 0;
}

.credential-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 180px;
  padding: 0 20px;
  border: 1px solid rgba(7, 25, 50, 0.18);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(11, 31, 62, 0.1);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.credential-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.credential-toggle[aria-expanded="true"]::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.credential-toggle:hover {
  border-color: rgba(7, 25, 50, 0.34);
  box-shadow: 0 16px 38px rgba(11, 31, 62, 0.14);
  transform: translateY(-2px);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 42px;
  align-items: center;
  padding: 96px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: linear-gradient(90deg, rgba(7, 25, 50, 0.95), rgba(7, 25, 50, 0.7) 56%, rgba(7, 25, 50, 0.5));
}

.contact.is-background-loaded {
  background:
    linear-gradient(90deg, rgba(7, 25, 50, 0.95), rgba(7, 25, 50, 0.7) 56%, rgba(7, 25, 50, 0.5)),
    url("assets/contact-bg.jpg") center / cover;
}

.contact-content {
  width: min(720px, 100%);
  justify-self: end;
}

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

.contact-content > p:not(.eyebrow) {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.contact-card {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  font-style: normal;
}

.contact-card img {
  width: 190px;
  border: 10px solid var(--white);
  border-radius: 8px;
  background: var(--white);
}

.contact-card span,
.contact-card strong {
  display: block;
}

.contact-card span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.contact-card strong {
  margin-top: 3px;
  color: var(--white);
  font-size: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.66);
  background: #04101f;
  font-size: 14px;
}

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

.site-footer a {
  color: var(--green);
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(3, 10, 22, 0.9);
}

.lightbox.is-open {
  display: flex;
}

.lightbox figure {
  width: min(1120px, 100%);
  max-height: 92vh;
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: calc(92vh - 54px);
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.4);
}

.lightbox figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 980px) {
  .site-header {
    min-height: 68px;
  }

  .site-header-inner {
    position: relative;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 58px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(7, 25, 50, 0.98);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(4, 12, 27, 0.88) 0%, rgba(4, 12, 27, 0.7) 48%, rgba(4, 12, 27, 0.94) 100%);
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-product {
    max-width: 430px;
  }

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

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

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

  .case-grid article,
  .case-grid article:nth-child(1),
  .case-grid article:nth-child(2) {
    grid-column: span 1;
  }

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

  .credential-note,
  .credential-card-license,
  .credential-card:not(.credential-card-license),
  .credential-card-portrait {
    grid-column: auto;
  }

  .credential-card-license {
    grid-row: auto;
  }

  .contact-content {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .brand strong {
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 700px;
  }

  .hero-content {
    width: min(100% - 32px, 1160px);
    padding-bottom: 42px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .hero-product {
    display: none;
  }

  .hero-mobile-product {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 14px;
    align-items: center;
    margin-top: 24px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(7, 25, 50, 0.74);
    backdrop-filter: blur(12px);
  }

  .hero-mobile-product img {
    width: 74px;
    height: 74px;
    border-radius: 8px;
    object-fit: cover;
  }

  .hero-mobile-product span,
  .hero-mobile-product strong {
    display: block;
  }

  .hero-mobile-product span {
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
  }

  .hero-mobile-product strong {
    margin-top: 4px;
    color: var(--white);
    font-size: 18px;
    line-height: 1.25;
  }

  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .section-heading h2,
  .product h2,
  .contact h2 {
    font-size: 30px;
  }

  .strength-panel div {
    display: block;
  }

  .strength-panel strong {
    display: block;
    margin-top: 8px;
    text-align: left;
  }

  .product-visual {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 26px;
  }

  .product-shot {
    justify-self: center;
    width: min(100%, 330px);
  }

  .qr-card {
    justify-self: center;
  }

  .qr-card img {
    width: 210px;
  }

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

  .case-grid img {
    height: 210px;
  }

  .credential-grid .image-zoom {
    height: auto;
    min-height: 0;
  }

  .credential-grid .image-zoom img {
    height: auto;
    min-height: 0;
    object-fit: contain;
  }

  .contact {
    padding-top: 72px;
    padding-bottom: 72px;
  }

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