:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-2: #071018;
  --text: #eef8ff;
  --muted: #8ea6b4;
  --line: rgba(142, 247, 255, 0.18);
  --cyan: #24e9ff;
  --green: #70ff9b;
  --blue: #4b7dff;
  --panel: rgba(8, 20, 31, 0.68);
  --panel-strong: rgba(13, 34, 48, 0.88);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(36, 233, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 18%, rgba(112, 255, 155, 0.13), transparent 24rem),
    linear-gradient(135deg, var(--bg), var(--bg-2) 48%, #030409);
  color: var(--text);
  font-family:
    "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

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

#starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 4px,
    linear-gradient(90deg, rgba(36, 233, 255, 0.05), transparent 22%, rgba(112, 255, 155, 0.04));
  mix-blend-mode: screen;
  opacity: 0.35;
}

.cursor-orb {
  position: fixed;
  z-index: 10;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(36, 233, 255, 0.16), transparent 64%);
  filter: blur(10px);
  opacity: 0.8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 11, 18, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(36, 233, 255, 0.48);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(36, 233, 255, 0.24), rgba(112, 255, 155, 0.1));
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: #cde5ed;
  font-size: 14px;
}

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

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: var(--cyan);
  transition: transform 180ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.header-cta,
.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
}

.header-cta,
.primary-btn {
  border: 1px solid rgba(112, 255, 155, 0.72);
  background: linear-gradient(135deg, rgba(112, 255, 155, 0.95), rgba(36, 233, 255, 0.9));
  color: #031015;
  box-shadow: 0 14px 48px rgba(36, 233, 255, 0.22);
}

.ghost-btn {
  border: 1px solid rgba(36, 233, 255, 0.34);
  background: rgba(6, 20, 30, 0.68);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: 54px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 80px);
  margin: 0 auto;
  padding: 78px 0 48px;
}

.signal-text,
.section-heading span,
.matrix-copy span,
.case-strip span,
.contact-card span,
.panel-label {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-top: 20px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
}

h1 span {
  display: block;
}

.hero-subtitle {
  max-width: 690px;
  margin-top: 28px;
  color: #c1d6de;
  font-size: 18px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.hero-subtitle span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
}

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

.hero-visual {
  position: relative;
  min-height: 570px;
  overflow: hidden;
}

.orbital-system {
  position: absolute;
  inset: 8% 4% 16%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(36, 233, 255, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(36, 233, 255, 0.14), transparent 46%),
    radial-gradient(circle, rgba(112, 255, 155, 0.08), transparent 64%);
  box-shadow: inset 0 0 80px rgba(36, 233, 255, 0.11);
}

.core {
  position: relative;
  z-index: 2;
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
  border: 1px solid rgba(112, 255, 155, 0.48);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(112, 255, 155, 0.36), rgba(5, 14, 22, 0.94) 64%);
  box-shadow: 0 0 70px rgba(36, 233, 255, 0.26);
  text-align: center;
}

.core span,
.core strong {
  grid-area: 1 / 1;
}

.core span {
  transform: translateY(-18px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.core strong {
  transform: translateY(14px);
  font-size: 28px;
  line-height: 1.08;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(36, 233, 255, 0.34);
  border-radius: 50%;
}

.orbit-one {
  width: 72%;
  height: 38%;
  animation: orbitSpin 15s linear infinite;
}

.orbit-two {
  width: 52%;
  height: 86%;
  animation: orbitSpin 19s linear infinite reverse;
}

.orbit-three {
  width: 92%;
  height: 58%;
  border-color: rgba(112, 255, 155, 0.28);
  animation: orbitSpin 24s linear infinite;
}

.node {
  position: absolute;
  display: grid;
  min-width: 76px;
  min-height: 38px;
  place-items: center;
  border: 1px solid rgba(36, 233, 255, 0.36);
  border-radius: var(--radius);
  background: rgba(5, 18, 28, 0.8);
  color: #d9fbff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.node-a {
  top: 12%;
  left: 32%;
}

.node-b {
  top: 42%;
  right: 4%;
}

.node-c {
  bottom: 14%;
  left: 16%;
}

.node-d {
  right: 20%;
  bottom: 3%;
}

.telemetry-panel {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: min(100%, 330px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.pulse-bars {
  display: flex;
  align-items: end;
  height: 86px;
  gap: 8px;
  margin: 16px 0;
}

.pulse-bars i {
  flex: 1;
  height: 28%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(var(--green), var(--cyan));
  animation: equalize 1300ms ease-in-out infinite;
}

.pulse-bars i:nth-child(2n) {
  animation-delay: 140ms;
}

.pulse-bars i:nth-child(3n) {
  animation-delay: 280ms;
}

.telemetry-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(5, 19, 30, 0.86), rgba(8, 35, 43, 0.58));
  overflow: hidden;
  box-shadow: var(--shadow);
}

.metrics-band article {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.metrics-band article:last-child {
  border-right: 0;
}

.metrics-band strong,
.metrics-band span {
  color: var(--cyan);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}

.metrics-band p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.section,
.matrix-section,
.case-strip,
.contact-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0 0;
}

.section-heading {
  display: grid;
  max-width: 790px;
  gap: 16px;
}

h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.12;
}

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

.cap-card,
.product-rail article,
.contact-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10, 27, 38, 0.76), rgba(3, 9, 15, 0.72));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cap-card {
  min-height: 286px;
  padding: 26px;
  transition: transform 220ms ease, border-color 220ms ease;
}

.cap-card::before,
.product-rail article::before,
.contact-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(130deg, transparent, rgba(36, 233, 255, 0.14), transparent);
  transform: translateX(-100%);
  transition: transform 520ms ease;
}

.cap-card:hover,
.product-rail article:hover {
  transform: translateY(-8px);
  border-color: rgba(112, 255, 155, 0.52);
}

.cap-card:hover::before,
.product-rail article:hover::before,
.contact-card:hover::before {
  transform: translateX(100%);
}

.cap-card b {
  color: rgba(112, 255, 155, 0.72);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.cap-card h3,
.product-rail h3 {
  margin-top: 40px;
  font-size: 24px;
}

.cap-card p,
.product-rail p,
.matrix-copy p,
.contact-card p {
  margin-top: 18px;
  color: #abc0ca;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.matrix-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 38px;
  align-items: center;
}

.matrix-copy {
  display: grid;
  gap: 18px;
}

.matrix-console {
  border: 1px solid rgba(36, 233, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(3, 9, 15, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
}

.console-top i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
}

.console-top i:nth-child(2) {
  background: var(--green);
}

.console-top i:nth-child(3) {
  background: var(--blue);
}

#terminalText {
  min-height: 270px;
  margin: 0;
  padding: 24px;
  overflow: hidden;
  color: #bdfcff;
  font: 600 14px/1.9 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.product-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.product-rail article {
  min-height: 220px;
  padding: 24px;
}

.case-strip {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 28px;
  align-items: end;
}

.case-strip ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-strip li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 27, 38, 0.66);
  color: #dbf7ff;
  font-weight: 800;
}

.contact-section {
  padding-bottom: 96px;
}

.contact-card {
  display: grid;
  gap: 18px;
  padding: clamp(30px, 6vw, 64px);
  background:
    linear-gradient(110deg, rgba(36, 233, 255, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(10, 27, 38, 0.88), rgba(4, 10, 16, 0.88));
}

.contact-card p {
  max-width: 760px;
}

.contact-card .primary-btn {
  width: fit-content;
  margin-top: 10px;
}

.site-footer {
  display: grid;
  gap: 12px;
  place-items: center;
  padding: 34px 20px 42px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 10, 0.9);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.icp-link {
  position: relative;
  display: inline-flex;
  padding: 10px 18px;
  border: 1px solid rgba(112, 255, 155, 0.38);
  border-radius: var(--radius);
  color: #dfffee;
  font-weight: 800;
  overflow: hidden;
}

.icp-link::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(112, 255, 155, 0.42), transparent);
  animation: icpScan 2200ms linear infinite;
}

.icp-link span {
  position: relative;
  z-index: 1;
}

[data-reveal] {
  transform: translateY(0);
  opacity: 1;
  transition: transform 720ms ease, opacity 720ms ease;
}

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

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes equalize {
  0%,
  100% {
    height: 26%;
  }
  50% {
    height: 92%;
  }
}

@keyframes icpScan {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .matrix-section,
  .case-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 470px;
  }

  .metrics-band,
  .capability-grid,
  .product-rail {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .metrics-band,
  .section,
  .matrix-section,
  .case-strip,
  .contact-section {
    width: min(100% - 28px, 1180px);
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 54px;
    gap: 24px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 16px;
    word-break: break-all;
  }

  .hero-visual {
    min-height: 390px;
  }

  .telemetry-panel {
    right: auto;
    left: 0;
    width: 100%;
  }

  .orbital-system {
    inset: 0 0 20%;
  }

  .node {
    min-width: 62px;
    min-height: 32px;
    font-size: 11px;
  }

  .core {
    width: 140px;
    height: 140px;
  }

  .core strong {
    font-size: 21px;
  }

  .metrics-band,
  .capability-grid,
  .product-rail,
  .case-strip ul {
    grid-template-columns: 1fr;
  }

  .metrics-band article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics-band article:last-child {
    border-bottom: 0;
  }

  .section,
  .matrix-section,
  .case-strip,
  .contact-section {
    padding-top: 82px;
  }

  .cursor-orb {
    display: none;
  }
}

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