:root {
  --bg: #080b0e;
  --panel: rgba(13, 18, 22, 0.74);
  --panel-solid: #10161b;
  --text: #f4f7f8;
  --muted: #a9b4bc;
  --line: rgba(255, 255, 255, 0.14);
  --red: #d9293f;
  --red-soft: rgba(217, 41, 63, 0.18);
  --cyan: #73e6ff;
  --mint: #74e7c7;
  --gold: #f2b66d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 72% 14%, rgba(217, 41, 63, 0.16), transparent 26rem),
    linear-gradient(180deg, #07090b 0%, #0b1013 46%, #10100e 100%);
  color: var(--text);
  min-width: 320px;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  display: flex;
  width: min(1160px, calc(100% - 32px));
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 9, 12, 0.68);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(214px, 28vw, 286px);
  height: auto;
}

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

.site-nav a {
  min-height: 40px;
  padding: 11px 14px;
  border-radius: 8px;
  color: #dce5e8;
  font-size: 14px;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--text);
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  align-items: end;
  overflow: hidden;
  padding: 148px max(24px, calc((100vw - 1160px) / 2)) 52px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  z-index: -3;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(5, 7, 10, 0.94) 0%, rgba(6, 9, 12, 0.82) 32%, rgba(6, 9, 12, 0.25) 68%, rgba(6, 9, 12, 0.5) 100%), url("./assets/hero-lab.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(180deg, transparent, var(--bg));
  content: "";
}

.hero-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(115, 230, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 230, 255, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 72%, transparent 100%);
}

.hero-content {
  width: min(760px, 100%);
  padding-bottom: 34px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7.6vw, 88px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 32px;
  color: #dce4e7;
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  min-width: 132px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--red), #ff6b6f);
  box-shadow: 0 16px 42px rgba(217, 41, 63, 0.32);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(940px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.hero-panel div {
  min-height: 126px;
  padding: 22px;
  background: rgba(8, 13, 16, 0.72);
  backdrop-filter: blur(16px);
}

.hero-panel span {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
}

.hero-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.ticker {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 54px);
  overflow: hidden;
  padding: 18px 24px;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0e11;
  color: rgba(255, 255, 255, 0.54);
  font-family: Consolas, Monaco, monospace;
  font-size: clamp(11px, 1.7vw, 13px);
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker span:nth-child(2n) {
  color: rgba(116, 231, 199, 0.78);
}

.ticker span:nth-child(3n) {
  color: rgba(242, 182, 109, 0.72);
}

.section,
.metrics,
.site-footer {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 92px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading.compact {
  display: block;
  margin-bottom: 0;
}

.section-heading h2,
.contact-section h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.16;
  letter-spacing: 0;
}

.section-heading p:last-child,
.contact-section p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

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

.capability-card {
  min-height: 274px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    var(--panel-solid);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
}

.capability-card:nth-child(2) {
  border-color: rgba(115, 230, 255, 0.22);
}

.capability-card:nth-child(3) {
  border-color: rgba(116, 231, 199, 0.2);
}

.capability-card:nth-child(4) {
  border-color: rgba(242, 182, 109, 0.22);
}

.card-index {
  display: inline-flex;
  width: 44px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin-bottom: 52px;
  border: 1px solid rgba(217, 41, 63, 0.42);
  border-radius: 8px;
  color: #ff7b87;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
}

.capability-card h3 {
  margin-bottom: 14px;
  font-size: 21px;
}

.capability-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 54px;
  align-items: start;
}

.solution-list {
  display: grid;
  gap: 14px;
}

.solution-list article {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.solution-list article > span {
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 8px var(--red-soft), 0 0 24px rgba(217, 41, 63, 0.48);
}

.solution-list article:nth-child(2) > span {
  background: var(--cyan);
  box-shadow: 0 0 0 8px rgba(115, 230, 255, 0.14), 0 0 24px rgba(115, 230, 255, 0.34);
}

.solution-list article:nth-child(3) > span {
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(242, 182, 109, 0.13), 0 0 24px rgba(242, 182, 109, 0.32);
}

.solution-list h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.solution-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.metric {
  min-height: 156px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(217, 41, 63, 0.1), transparent 62%),
    #11171a;
}

.metric strong {
  display: block;
  margin-bottom: 16px;
  color: #fff;
  font-size: 28px;
}

.metric span {
  color: var(--muted);
  line-height: 1.7;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 40px;
  align-items: center;
}

.contact-card {
  padding: 28px;
  border: 1px solid rgba(217, 41, 63, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(217, 41, 63, 0.18), transparent 16rem),
    rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.contact-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.35;
}

.contact-card p {
  margin-bottom: 20px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-list dt {
  color: #fff;
  font-weight: 700;
}

.contact-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: #fff;
}

@media (max-width: 980px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(320px, 100%);
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 9, 12, 0.94);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    width: 100%;
  }

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

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

  .capability-card {
    min-height: auto;
  }

  .card-index {
    margin-bottom: 34px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 62px;
    padding-left: 12px;
  }

  .brand-logo {
    width: clamp(190px, 56vw, 236px);
  }

  .hero {
    padding-inline: 18px;
    padding-bottom: 34px;
  }

  h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .hero-copy {
    font-size: 15px;
  }

  .button {
    width: 100%;
  }

  .hero-panel div {
    min-height: 114px;
  }

  .ticker {
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow-x: hidden;
    row-gap: 10px;
    white-space: normal;
  }

  .section,
  .metrics,
  .site-footer {
    width: min(100% - 36px, 1160px);
  }

  .section {
    padding: 68px 0;
  }

  .capability-card,
  .solution-list article,
  .metric,
  .contact-card {
    padding: 20px;
  }

  .site-footer {
    flex-direction: column;
  }
}
