:root {
  --background: #080d12;
  --foreground: #eef6f8;
  --muted: #91a5ad;
  --line: rgba(163, 229, 232, 0.18);
  --line-strong: rgba(139, 229, 225, 0.48);
  --aqua: #67e8dc;
  --mint: #a8ffce;
  --steel: #c9d7dd;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --font-sans: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  scrollbar-color: rgba(103, 232, 220, 0.45) rgba(8, 13, 18, 0.9);
  scrollbar-width: thin;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(103, 232, 220, 0.14), transparent 32rem),
    radial-gradient(circle at 78% 14%, rgba(243, 209, 124, 0.09), transparent 28rem),
    linear-gradient(140deg, #071015 0%, #0b1218 45%, #091018 100%);
  color: var(--foreground);
  font-family: var(--font-sans);
}

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

::selection {
  background: rgba(103, 232, 220, 0.28);
}

::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track,
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: rgba(8, 13, 18, 0.92);
}

::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background:
    linear-gradient(180deg, rgba(103, 232, 220, 0.72), rgba(168, 255, 206, 0.38));
  border: 2px solid rgba(8, 13, 18, 0.92);
  border-radius: 999px;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(168, 255, 206, 0.82), rgba(103, 232, 220, 0.5));
  background-clip: padding-box;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(154, 220, 224, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 220, 224, 0.075) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

.ambient-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(103, 232, 220, 0.08) 48%, transparent 54% 100%),
    repeating-linear-gradient(90deg, transparent 0 11rem, rgba(168, 255, 206, 0.035) 11.1rem 11.2rem);
  opacity: 0.48;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(103, 232, 220, 0.1), transparent);
  height: 32vh;
  opacity: 0.2;
}

.site-header,
.section-band,
.site-footer {
  position: relative;
  z-index: 2;
}

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

.wordmark {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--foreground);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-nav a {
  position: relative;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  background: var(--aqua);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav a:hover {
  color: var(--foreground);
}

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

.section-band {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  scroll-margin-top: 1.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: calc(100vh - 76px);
  padding: 3.5rem 0 5rem;
}

.eyebrow,
.section-kicker,
.card-label,
.panel-topline,
.metric-row span,
.principle-item p {
  font-family: var(--font-mono);
  color: var(--aqua);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0.4rem 0 0;
  color: #f7fbfc;
  font-family: var(--font-mono);
  font-size: clamp(4.5rem, 16vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(103, 232, 220, 0.18);
}

.company-name {
  margin: 1.2rem 0 0;
  color: var(--steel);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 600;
}

.hero-statement {
  max-width: 710px;
  margin: 1.1rem 0 0;
  color: #dce8ea;
  font-size: clamp(1.45rem, 3.4vw, 3.2rem);
  font-weight: 650;
  line-height: 1.18;
}

.hero-actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  color: var(--foreground);
  font-size: 0.92rem;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, rgba(103, 232, 220, 0.24), rgba(168, 255, 206, 0.12));
  border-color: rgba(103, 232, 220, 0.55);
  box-shadow: 0 0 28px rgba(103, 232, 220, 0.14);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.035);
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.orbital {
  position: absolute;
  inset: 5%;
  border: 1px solid rgba(103, 232, 220, 0.22);
  transform: rotate(17deg);
}

.orbital::before,
.orbital::after {
  content: "";
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--aqua);
  box-shadow: 0 0 20px rgba(103, 232, 220, 0.75);
}

.orbital::before {
  top: -0.28rem;
  left: 18%;
}

.orbital::after {
  right: 24%;
  bottom: -0.28rem;
}

.orbital-one::before,
.orbital-one::after {
  content: none;
}

.orbit-node {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: block;
  width: 0.72rem;
  height: 0.72rem;
  border: 0;
  offset-anchor: 50% 50%;
  offset-distance: 0%;
  offset-path: inset(0);
  offset-rotate: 0deg;
  animation: node-orbit 24s linear infinite;
  will-change: transform;
}

.orbit-node::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0.72rem;
  height: 0.72rem;
  border: 1px solid rgba(168, 255, 206, 0.72);
  background: #67e8dc;
  box-shadow:
    0 0 10px rgba(103, 232, 220, 0.95),
    0 0 28px rgba(103, 232, 220, 0.42);
}

.orbit-node-b {
  animation-delay: -12s;
}

.orbit-node-b::before {
  background: var(--mint);
}

.orbital-two {
  inset: 20% 2% 8% 16%;
  border-color: rgba(243, 209, 124, 0.22);
}

.signal-panel {
  position: absolute;
  right: 0;
  bottom: 9%;
  width: min(100%, 390px);
  padding: 1.1rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.065), transparent 34%),
    rgba(8, 15, 21, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
  contain: paint;
}

.signal-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 220, 0.65), transparent) border-box;
  mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.42;
  pointer-events: none;
}

.signal-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 38%, rgba(103, 232, 220, 0.1) 46%, transparent 55% 100%);
  opacity: 0.18;
  pointer-events: none;
}

.panel-topline,
.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.pulse-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin: 1.2rem 0;
}

.pulse-map i {
  display: block;
  aspect-ratio: 1;
  border: 1px solid rgba(103, 232, 220, 0.2);
  background: rgba(103, 232, 220, 0.055);
  animation: matrix-scan 7s ease-in-out infinite;
  will-change: opacity, transform;
}

.pulse-map i:nth-child(2) {
  animation-delay: 0.18s;
}

.pulse-map i:nth-child(3) {
  animation-delay: 0.36s;
}

.pulse-map i:nth-child(4) {
  animation-delay: 0.54s;
}

.pulse-map i:nth-child(5) {
  animation-delay: 0.72s;
}

.pulse-map i:nth-child(6) {
  animation-delay: 0.9s;
}

.pulse-map i:nth-child(7) {
  animation-delay: 1.08s;
}

.pulse-map i:nth-child(8) {
  animation-delay: 1.26s;
}

.metric-row {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.78rem 0;
}

.metric-row strong {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 1rem;
}

.about,
.focus,
.principles,
.contact {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: clamp(2rem, 8vw, 6rem);
  align-items: start;
  margin-top: 1rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
}

.about h2,
.section-heading h2,
.contact h2 {
  margin: 0;
  color: #f3f8f9;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 720;
  line-height: 1.05;
}

.about p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.9;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.focus-card {
  position: relative;
  min-height: 20rem;
  padding: 1.15rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
  overflow: hidden;
  transition:
    background 220ms ease,
    transform 220ms ease,
    border-color 220ms ease;
}

.focus-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 1px;
  background: var(--aqua);
  transform: translateX(-105%);
  transition: transform 260ms ease;
}

.focus-card:hover {
  background: rgba(103, 232, 220, 0.065);
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.focus-card:hover::before {
  transform: translateX(0);
}

.card-index {
  color: rgba(238, 246, 248, 0.32);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.focus-card h3,
.principle-item h3 {
  margin: 2.8rem 0 0.75rem;
  color: #f2f8f8;
  font-size: 1.28rem;
}

.focus-card p:last-child,
.principle-item span {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

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

.principle-item {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line-strong);
}

.principle-item h3 {
  margin-top: 1.35rem;
  font-size: 1.5rem;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
}

.contact-link {
  color: var(--aqua);
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  transition: color 180ms ease;
}

.contact-link:hover {
  color: var(--mint);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 1.6rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(238, 246, 248, 0.56);
  font-size: 0.86rem;
}

.footer-records,
.public-security-record {
  display: flex;
  align-items: center;
}

.footer-records {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
}

.public-security-record {
  gap: 0.42rem;
}

.public-security-record img {
  width: 16px;
  height: 18px;
  object-fit: contain;
  opacity: 0.72;
  transition: opacity 180ms ease;
}

.public-security-record:hover img {
  opacity: 1;
}

.site-footer a:hover {
  color: var(--foreground);
}

.reveal {
  animation: reveal-up 760ms ease both;
}

.focus-card:nth-child(2),
.principle-item:nth-child(2) {
  animation-delay: 80ms;
}

.focus-card:nth-child(3),
.principle-item:nth-child(3) {
  animation-delay: 160ms;
}

.focus-card:nth-child(4) {
  animation-delay: 240ms;
}

.focus-card:nth-child(5) {
  animation-delay: 320ms;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 4rem;
  }

  .hero-visual {
    min-height: 0;
    padding-top: 1.2rem;
  }

  .signal-panel {
    position: relative;
    left: 0;
    right: auto;
    bottom: auto;
    width: 100%;
  }

  .about-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (min-width: 981px) and (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.54fr);
    align-items: center;
    gap: 1.6rem;
    min-height: calc(100vh - 76px);
  }

  .hero h1 {
    font-size: clamp(5.6rem, 13.4vw, 8.8rem);
  }

  .hero-statement {
    max-width: 650px;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
  }

  .hero-visual {
    min-height: 500px;
    padding-top: 0;
  }

  .signal-panel {
    position: absolute;
    right: 0;
    bottom: 14%;
    left: auto;
    width: min(100%, 340px);
  }

  .pulse-map {
    gap: 0.58rem;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.9rem;
    min-height: 102px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
  }

  .section-band,
  .site-header,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-top: 2.3rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 23vw, 6.7rem);
  }

  .hero-visual {
    min-height: 0;
  }

  .signal-panel {
    width: 100%;
  }

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

  .focus-card {
    min-height: 16rem;
  }

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

  .footer-records {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

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

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes node-orbit {
  to {
    offset-distance: 100%;
  }
}

@keyframes matrix-scan {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(1);
  }
  38% {
    opacity: 0.42;
    transform: scale(1);
  }
  48% {
    opacity: 1;
    border-color: rgba(103, 232, 220, 0.72);
    background: rgba(103, 232, 220, 0.18);
    transform: scale(0.94);
  }
  62% {
    opacity: 0.4;
    transform: scale(1);
  }
}
