:root {
  --paper: #f4f6f2;
  --ink: #111713;
  --muted: #5f6861;
  --line: #cbd1cb;
  --green: #b8f23d;
  --green-dark: #274d25;
  --blue: #246bfe;
  --coral: #ff725e;
  --header-height: 76px;
  --footer-height: 42px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
  padding-bottom: var(--footer-height);
}

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

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

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 68px);
  border-bottom: 1px solid rgba(17, 23, 19, 0.15);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
}

.brand-mark {
  width: 27px;
  height: 27px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
  padding: 5px;
  background: var(--ink);
}

.brand-mark i {
  display: block;
  background: var(--green);
}

.brand-mark i:nth-child(1) { height: 35%; }
.brand-mark i:nth-child(2) { height: 100%; }
.brand-mark i:nth-child(3) { height: 65%; }

nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  font-size: 14px;
  font-weight: 600;
}

nav a:not(.nav-cta) {
  color: var(--muted);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  transition: color 180ms ease, background 180ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: var(--ink);
  background: var(--green);
}

.hero {
  min-height: min(730px, calc(100vh - var(--footer-height) - 92px));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.98fr);
  padding-top: var(--header-height);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 9vh, 110px) clamp(32px, 6vw, 96px);
}

.eyebrow,
.section-heading > p {
  margin: 0 0 28px;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  background: var(--green);
  border: 1px solid var(--ink);
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(46px, 4.5vw, 68px);
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: 0;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.intro {
  max-width: 590px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 42px;
}

.primary-action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 13px 18px;
  color: var(--ink);
  background: var(--green);
  border: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.text-action {
  padding: 10px 0 7px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.data-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background-color: #111713;
  background-image:
    linear-gradient(rgba(244, 246, 242, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 246, 242, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  border-left: 1px solid var(--ink);
}

#data-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stage-label {
  position: absolute;
  z-index: 2;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0;
}

.stage-label-top {
  top: 26px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d8ded8;
}

.pulse {
  width: 7px;
  height: 7px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(184, 242, 61, 0.12);
  animation: pulse 2s ease-out infinite;
}

.stage-label-bottom {
  left: 28px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #aeb8b0;
}

.stage-label-bottom b {
  color: var(--green);
  font-size: 15px;
}

.capabilities {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(500px, 1.28fr);
  gap: clamp(50px, 8vw, 130px);
  padding: clamp(56px, 6vw, 90px) clamp(22px, 6vw, 96px) clamp(100px, 12vw, 160px);
  background: #fbfcfa;
}

.section-heading h2 {
  max-width: 440px;
  margin: 0;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.2;
  letter-spacing: 0;
}

.capability-list {
  border-top: 1px solid var(--ink);
}

.capability-list article {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 20px;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}

.capability-number {
  padding-top: 4px;
  color: var(--blue);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.capability-list h3 {
  margin: 0 0 9px;
  font-size: 21px;
  letter-spacing: 0;
}

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

.site-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 20;
  width: 100%;
  min-height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px clamp(18px, 4vw, 68px);
  color: #d4dad5;
  background: var(--ink);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0;
}

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

.footer-records {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.public-security-record {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.public-security-record img {
  display: block;
  flex: none;
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--green);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 242, 61, 0.32); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(184, 242, 61, 0); }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: min(680px, calc(100svh - var(--footer-height)));
    justify-content: flex-end;
    padding-top: 130px;
  }

  .data-stage {
    min-height: 430px;
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

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

@media (max-width: 560px) {
  :root {
    --header-height: 66px;
    --footer-height: 82px;
  }

  .site-header {
    padding: 0 18px;
  }

  .brand {
    gap: 9px;
    font-size: 15px;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  nav > a:first-child {
    display: none;
  }

  .nav-cta {
    padding: 9px 11px;
  }

  .hero-copy {
    min-height: min(650px, calc(100svh - var(--footer-height)));
    padding: 110px 20px 66px;
  }

  h1 {
    font-size: clamp(34px, 10.5vw, 42px);
  }

  .intro {
    margin-top: 26px;
    line-height: 1.7;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-top: 34px;
  }

  .data-stage {
    min-height: 360px;
  }

  .capabilities {
    gap: 54px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .capability-list article {
    grid-template-columns: 44px 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .footer-records {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .primary-action { transition: none; }
}
