:root {
  --bg: #000;
  --panel: rgba(18, 20, 22, 0.74);
  --panel-solid: #101214;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(158, 255, 87, 0.35);
  --text: #f4f7f2;
  --muted: #9aa39b;
  --soft: #d7ded8;
  --accent: #9eff57;
  --accent-2: #3df2d0;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  min-height: 64px;
  padding: 10px 14px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(10, 12, 13, 0.54);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 10, 10, 0.82);
  border-color: rgba(158, 255, 87, 0.22);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f7faf5;
  font-weight: 750;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand:hover {
  border-color: rgba(158, 255, 87, 0.34);
  background: rgba(158, 255, 87, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--soft);
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #071007;
  background: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 142px 0 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.36) 54%, rgba(0, 0, 0, 0.86)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), #000 92%),
    url("images/tech-bg.png") center / cover no-repeat;
  opacity: 0.86;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 58px;
}

.hero-copy h1,
.page-hero h1,
.case-overlay h1 {
  margin: 0;
  max-width: 820px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(40px, 5.1vw, 76px);
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 760;
}

.hero-lede,
.page-hero p,
.case-overlay p {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--soft);
  font-size: clamp(18px, 2vw, 23px);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  color: #9eff57 !important;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy > .eyebrow {
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.button.primary {
  color: #071007;
  background: var(--accent);
  border-color: transparent;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.05);
}

.hero-visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual::after,
.media-frame::after,
.product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.52));
}

.hero-visual img {
  height: min(65svh, 680px);
  object-fit: cover;
}

.signal-panel {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(5, 8, 8, 0.62);
  backdrop-filter: blur(18px);
}

.signal-panel span {
  color: var(--accent);
  font-weight: 800;
}

.signal-panel strong {
  text-align: right;
}

.section {
  padding: 112px 0;
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2,
.split-copy h2,
.compare-panel h2,
.feature-item h2,
.story-block h2,
.about-copy h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(34px, 4.5vw, 68px);
  line-height: 1.05;
  letter-spacing: 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.bento-card,
.process-card,
.compare-panel,
.feature-item,
.story-block,
.info-panel,
.contact-card,
.inquiry-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(14px);
}

.bento-card {
  min-height: 250px;
  padding: 28px;
}

.bento-card.large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 518px;
  background:
    linear-gradient(180deg, rgba(158, 255, 87, 0.16), rgba(18, 20, 22, 0.72)),
    url("images/tech-bg.png") center / cover no-repeat;
}

.bento-card.wide {
  grid-column: span 2;
}

.bento-card h3,
.process-card h3 {
  margin: 58px 0 12px;
  font-size: 28px;
  line-height: 1.15;
}

.bento-card p,
.process-card p,
.feature-item p,
.story-block p,
.about-copy p,
.split-copy p,
.compare-panel li,
.contact-card p {
  color: var(--muted);
  font-size: 16px;
}

.card-index,
.process-card span,
.story-block span,
.feature-item span,
.contact-card span,
.label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.image-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 58px;
}

.split.reverse {
  grid-template-columns: 0.92fr 1.08fr;
}

.media-frame,
.product-visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-frame img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.split-copy p {
  margin-top: 24px;
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--accent);
  font-weight: 900;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(158, 255, 87, 0.14), rgba(61, 242, 208, 0.06));
}

.metric-row div {
  min-height: 130px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.metric-row div:last-child {
  border-right: 0;
}

.metric-row strong {
  display: block;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
}

.metric-row span {
  color: var(--muted);
}

.page-hero {
  padding: 180px 0 92px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.26), #000),
    url("images/tech-bg.png") center / cover no-repeat;
}

.page-hero.compact {
  padding-bottom: 70px;
}

.compare-grid,
.product-layout,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.compare-panel {
  padding: 34px;
}

.compare-panel.accent {
  border-color: var(--line-strong);
  background: linear-gradient(135deg, rgba(158, 255, 87, 0.16), rgba(18, 20, 22, 0.84));
}

.label.muted {
  color: var(--muted);
}

.clean-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.clean-list li {
  padding-left: 18px;
  border-left: 2px solid var(--line-strong);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.process-card {
  min-height: 230px;
  padding: 22px;
}

.product-layout {
  align-items: stretch;
}

.product-visual img {
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.feature-stack {
  display: grid;
  gap: 18px;
}

.feature-item {
  padding: 30px;
}

.feature-item h2 {
  font-size: clamp(30px, 3.2vw, 48px);
}

.product-bento {
  grid-template-columns: repeat(3, 1fr);
}

.case-hero {
  position: relative;
  min-height: 86svh;
  overflow: hidden;
}

.case-hero > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.case-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 160px 0 84px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.9));
}

.case-story {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.story-block {
  padding: 30px;
}

.story-block h2 {
  margin-top: 16px;
  font-size: clamp(28px, 3vw, 42px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.gallery-grid img {
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 24px;
  object-fit: cover;
}

.gallery-grid img:first-child {
  grid-row: span 2;
  height: 738px;
}

.about-grid {
  align-items: start;
}

.about-copy p {
  max-width: 720px;
}

.info-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.info-panel div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.info-panel div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-panel span {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.info-panel strong {
  font-size: 22px;
  line-height: 1.35;
}

.contact-card,
.inquiry-form {
  padding: 32px;
}

.contact-card h2 {
  margin: 10px 0 16px;
  font-size: 52px;
}

.contact-card a {
  color: var(--accent);
  font-weight: 800;
}

.inquiry-form {
  display: grid;
  gap: 16px;
}

.inquiry-form label {
  display: grid;
  gap: 8px;
}

.inquiry-form label span {
  color: var(--soft);
  font-weight: 800;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  padding: 14px 16px;
  outline: none;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  border-color: var(--accent);
}

.site-footer {
  padding: 72px 0 24px;
  border-top: 1px solid var(--line);
  background: #050606;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1.2fr;
  gap: 42px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--soft);
  font-size: 15px;
}

.footer-grid a:not(.brand),
.footer-grid p {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand {
  margin-bottom: 16px;
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #747c76;
  font-size: 12px;
}

.legal a {
  color: #8b938d;
}

.legal > span,
.legal-links {
  min-width: 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  max-width: 100%;
}

.legal-links a {
  overflow-wrap: anywhere;
}

.legal-links .public-security-record {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.public-security-record img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 980px) {
  .site-header {
    border-radius: 26px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 78px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(7, 9, 9, 0.94);
    backdrop-filter: blur(22px);
  }

  body.menu-open .site-nav {
    display: flex;
  }

  .site-nav a {
    justify-content: center;
    min-height: 48px;
  }

  .hero-grid,
  .split,
  .split.reverse,
  .compare-grid,
  .product-layout,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 128px;
  }

  .hero-visual img {
    height: 520px;
  }

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

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

  .metric-row,
  .case-story,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-row div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .gallery-grid img,
  .gallery-grid img:first-child {
    height: 420px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 58px;
  }

  .brand {
    font-size: 15px;
    min-height: 38px;
    padding: 0 15px;
  }

  .hero {
    padding: 112px 0 70px;
  }

  .hero-copy h1,
  .page-hero h1,
  .case-overlay h1 {
    font-size: 38px;
    line-height: 1.14;
  }

  .hero-lede,
  .page-hero p,
  .case-overlay p {
    font-size: 17px;
  }

  .hero-visual img {
    height: 360px;
  }

  .signal-panel {
    position: static;
    flex-direction: column;
    border-radius: 0;
  }

  .signal-panel strong {
    text-align: left;
  }

  .section {
    padding: 78px 0;
  }

  .page-hero {
    padding: 130px 0 66px;
  }

  .bento-grid,
  .product-bento,
  .process-grid,
  .metric-row,
  .case-story,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .bento-card,
  .bento-card.large,
  .bento-card.wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 230px;
  }

  .bento-card h3,
  .process-card h3 {
    margin-top: 40px;
  }

  .product-visual img {
    min-height: 360px;
  }

  .case-hero {
    min-height: 78svh;
  }

  .gallery-grid img,
  .gallery-grid img:first-child {
    height: 300px;
  }

  .legal {
    flex-direction: column;
  }

  .legal-links {
    justify-content: flex-start;
  }
}
