:root {
  --bg: #08090c;
  --bg-soft: #101219;
  --panel: rgba(18, 21, 29, 0.74);
  --panel-strong: rgba(23, 27, 37, 0.9);
  --line: rgba(226, 232, 240, 0.12);
  --line-strong: rgba(226, 232, 240, 0.24);
  --text: #f4f7fb;
  --muted: #aab3c2;
  --dim: #747f90;
  --lemon: #d8d46c;
  --lime: #a8d46b;
  --red: #d96b67;
  --silver: #d9dee8;
  --green: #8bd8a2;
  --blue: #8ab6de;
  --cyan: #82d6d0;
  --amber: #d8b36c;
  --gold: #dac57a;
  --radius: 10px;
  --radius-soft: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(166, 194, 114, 0.16), transparent 32rem),
    radial-gradient(circle at 88% 10%, rgba(160, 122, 114, 0.14), transparent 34rem),
    radial-gradient(circle at 50% 70%, rgba(94, 122, 154, 0.13), transparent 38rem),
    var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 78%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 9, 12, 0.2), rgba(8, 9, 12, 0.86)),
    radial-gradient(circle at center, transparent, rgba(0, 0, 0, 0.42));
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--bg);
  background: var(--text);
  border-radius: var(--radius);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px clamp(16px, 3vw, 34px);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 12px;
  background: rgba(11, 13, 19, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-width: max-content;
  font-weight: 650;
}

.brand small {
  padding: 3px 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.nav-links a,
.nav-action,
.button {
  border-radius: var(--radius);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.nav-links a {
  padding: 7px 10px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}

.nav-action {
  min-width: max-content;
  padding: 8px 12px;
  color: var(--text);
  font-size: 14px;
  border: 1px solid rgba(216, 222, 232, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.nav-action:hover,
.nav-action:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(216, 222, 232, 0.42);
  outline: none;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 106px);
  line-height: 0.94;
  font-weight: 760;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 720;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 16px;
  color: #e8edf6;
  font-size: clamp(20px, 2.4vw, 29px);
  line-height: 1.48;
}

.hero-text,
.section-heading p,
.agent-card p,
.module-card p,
.project-card p,
.boundary p,
.site-footer span {
  color: var(--muted);
}

.hero-text {
  max-width: 690px;
  margin-bottom: 30px;
  font-size: 17px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  font-weight: 650;
  border: 1px solid var(--line-strong);
}

.button.primary {
  color: #111318;
  background: linear-gradient(135deg, #f2f0db, #bcc8d8);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.command-panel,
.agent-card,
.module-card,
.project-card,
.status-panel,
.boundary {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 130px),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow);
}

.command-panel {
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(13, 16, 23, 0.78);
}

.command-panel::before {
  position: absolute;
  inset: -1px;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 18%, rgba(216, 212, 108, 0.16), transparent 34%),
    radial-gradient(circle at 86% 68%, rgba(217, 107, 103, 0.12), transparent 32%);
}

.command-panel::after {
  position: absolute;
  inset: 16px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(216, 222, 232, 0.06);
  border-radius: 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 78%);
}

.panel-topline,
.signal-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.panel-topline {
  margin-bottom: 18px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.signal-stack {
  position: relative;
  display: grid;
  gap: 10px;
}

.signal-row {
  padding: 14px 15px;
  background: rgba(7, 9, 13, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.signal-name {
  color: #eef2f9;
  font-weight: 650;
}

.signal-state {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.signal-state.ready {
  color: var(--silver);
}

.mini-console {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-top: 18px;
}

.mini-console span {
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 6px;
  background:
    linear-gradient(to top, rgba(216, 222, 232, 0.085) var(--level), transparent var(--level)),
    rgba(255, 255, 255, 0.035);
}

.mini-console span:nth-child(1) {
  --level: 38%;
}

.mini-console span:nth-child(2) {
  --level: 72%;
}

.mini-console span:nth-child(3) {
  --level: 54%;
}

.mini-console span:nth-child(4) {
  --level: 82%;
}

.mini-console span:nth-child(5) {
  --level: 46%;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.status-strip span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(139, 216, 162, 0.12);
  animation: pulse 2.8s ease-in-out infinite;
}

.status-dot.lemon {
  background: var(--lemon);
  box-shadow: 0 0 0 4px rgba(216, 212, 108, 0.14);
}

.status-dot.xiao {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(217, 107, 103, 0.13);
}

.status-dot.ready {
  background: var(--silver);
  box-shadow: 0 0 0 4px rgba(216, 222, 232, 0.1);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.agent-grid,
.module-grid,
.project-grid {
  display: grid;
  gap: 16px;
}

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

.agent-card,
.module-card,
.project-card {
  padding: 18px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.agent-card:hover,
.module-card:hover,
.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 222, 232, 0.22);
}

.agent-card::before {
  position: absolute;
  inset: -30% -10% auto;
  height: 180px;
  content: "";
  pointer-events: none;
  opacity: 0.7;
}

.lemon-card::before {
  background: radial-gradient(circle, rgba(216, 212, 108, 0.2), transparent 66%);
}

.xiao-card::before {
  background: radial-gradient(circle, rgba(217, 107, 103, 0.18), transparent 66%);
}

.roundtable-card::before {
  background: radial-gradient(circle, rgba(130, 214, 208, 0.16), transparent 66%);
}

.agent-image-wrap,
.roundtable-visual {
  position: relative;
  z-index: 1;
  height: 210px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(216, 222, 232, 0.1), transparent 58%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(5, 7, 11, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -32px 70px rgba(0, 0, 0, 0.28);
}

.agent-image-wrap::before {
  position: absolute;
  inset: 20px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.12);
}

.agent-image-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, transparent 38%, rgba(5, 7, 11, 0.34) 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.18));
}

.agent-image-wrap img {
  position: relative;
  z-index: 1;
  width: min(72%, 180px);
  height: 180px;
  object-fit: contain;
  padding: 8px;
  background: rgba(245, 247, 249, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 28px;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.lemon-card .agent-image-wrap {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -32px 70px rgba(0, 0, 0, 0.28),
    0 0 42px rgba(216, 212, 108, 0.08);
}

.xiao-card .agent-image-wrap {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -32px 70px rgba(0, 0, 0, 0.28),
    0 0 42px rgba(217, 107, 103, 0.08);
}

.agent-meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.agent-meta h3,
.agent-meta p {
  margin-bottom: 2px;
}

.agent-meta p {
  color: var(--dim);
  font-size: 13px;
}

.badge {
  min-width: max-content;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 750;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.badge.online {
  color: var(--green);
  background: rgba(139, 216, 162, 0.08);
}

.badge.planning {
  color: var(--amber);
  background: rgba(216, 179, 108, 0.08);
}

.badge.connected {
  color: var(--blue);
  background: rgba(138, 182, 222, 0.08);
}

.roundtable-visual {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.055), transparent),
    rgba(5, 7, 11, 0.58);
}

.node,
.connector,
.dialog-line {
  position: absolute;
  display: block;
}

.node {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(216, 222, 232, 0.34);
  border-radius: 50%;
  background: rgba(216, 222, 232, 0.08);
  box-shadow: 0 0 36px rgba(130, 214, 208, 0.16);
}

.node-a {
  top: 44px;
  left: 23%;
}

.node-b {
  right: 24%;
  bottom: 46px;
}

.node-c {
  top: 74px;
  right: 28%;
  width: 28px;
  height: 28px;
}

.connector {
  width: 118px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 222, 232, 0.34), transparent);
}

.connector-a {
  top: 82px;
  left: 36%;
  transform: rotate(10deg);
}

.connector-b {
  right: 30%;
  bottom: 76px;
  transform: rotate(-34deg);
}

.dialog-line {
  left: 22%;
  width: 56%;
  height: 1px;
  background: rgba(130, 214, 208, 0.34);
}

.line-a {
  bottom: 70px;
}

.line-b {
  bottom: 90px;
  width: 40%;
}

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

.module-card {
  min-height: 212px;
}

.module-number,
.project-card span {
  display: block;
  margin-bottom: 36px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-card h3 {
  color: #f0f4fb;
}

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

.project-card {
  min-height: 235px;
  padding: 22px;
}

.project-card span {
  margin-bottom: 58px;
}

.project-card:nth-child(1) {
  border-color: rgba(139, 216, 162, 0.18);
}

.project-card:nth-child(2) {
  border-color: rgba(130, 214, 208, 0.18);
}

.project-card:nth-child(3) {
  border-color: rgba(216, 179, 108, 0.18);
}

.project-card:nth-child(4) {
  border-color: rgba(216, 222, 232, 0.2);
}

.status-panel {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.status-item {
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: rgba(13, 16, 23, 0.94);
}

.status-item span {
  color: var(--muted);
  font-size: 14px;
}

.status-item strong {
  font-size: 15px;
}

.state-green {
  color: var(--green);
}

.state-blue {
  color: var(--blue);
}

.state-silver {
  color: var(--silver);
}

.state-amber {
  color: var(--amber);
}

.state-cyan {
  color: var(--cyan);
}

.state-gold {
  color: var(--gold);
}

.boundary {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
  padding: 28px;
}

.boundary h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 38px);
}

.boundary p {
  margin-bottom: 0;
}

.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 46px;
  color: var(--dim);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 650;
}

.site-footer span {
  display: block;
  font-size: 14px;
}

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

.js-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 540ms ease,
    transform 540ms ease;
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 0.62;
  }
  50% {
    opacity: 1;
  }
}

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

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .hero-grid,
  .boundary {
    grid-template-columns: 1fr;
  }

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

  .status-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 10px;
  }

  .nav-shell {
    gap: 10px;
    padding: 10px;
  }

  .brand {
    flex-wrap: wrap;
    gap: 6px;
  }

  .brand span {
    font-size: 15px;
  }

  .nav-action {
    padding: 7px 10px;
    font-size: 13px;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: 13px;
  }

  .section {
    width: min(100% - 24px, 1160px);
    padding: 58px 0;
  }

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

  h1 {
    font-size: clamp(44px, 15vw, 64px);
  }

  .hero-lead {
    font-size: 20px;
  }

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

  .hero-actions,
  .status-strip {
    width: 100%;
  }

  .button {
    flex: 1 1 160px;
  }

  .agent-grid,
  .module-grid,
  .project-grid,
  .status-panel {
    grid-template-columns: 1fr;
  }

  .agent-image-wrap,
  .roundtable-visual {
    height: 190px;
  }

  .agent-image-wrap img {
    height: 165px;
  }

  .module-card,
  .project-card {
    min-height: 0;
  }

  .module-number,
  .project-card span {
    margin-bottom: 24px;
  }

  .status-item {
    min-height: 90px;
  }
}
