:root {
  --home-ink: #18181b;
  --home-muted: #62666e;
  --home-line: #dfe3e8;
  --home-blue: #2f67e9;
  --home-green: #20bd67;
  --home-dark: #17191c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html,
body { min-width: 1180px; min-height: 100%; margin: 0; }

body {
  color: var(--home-ink);
  background: #f7f8fa;
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.home-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 80px minmax(760px, 1fr) 100px;
  overflow: hidden;
}

.home-shell { width: calc(100% - 80px); max-width: 1520px; margin: 0 auto; }

.home-header { position: relative; z-index: 20; background: #f7f8fa; }

.home-nav { height: 80px; display: flex; align-items: center; justify-content: space-between; }

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

.home-brand-logo { width: 50px; height: 44px; flex: 0 0 auto; object-fit: contain; }

.home-brand-logo.logo-main { filter: brightness(0); }

.home-brand-logo.logo-agent,
.home-brand-logo.logo-neutral { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; }

.home-brand strong { max-width: 320px; overflow: hidden; font-size: 22px; text-overflow: ellipsis; white-space: nowrap; }

.home-links { display: flex; align-items: center; gap: 34px; color: #3f4248; font-size: 15px; }

.home-links > a:not(.home-login):hover { color: var(--home-blue); }

.home-login {
  height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  color: #fff;
  background: var(--home-blue);
  border: 1px solid var(--home-blue);
  border-radius: 6px;
  font-weight: 700;
}

.home-login:hover,
.primary-action:hover { background: #2459d1; border-color: #2459d1; }

.home-hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(540px, .9fr) minmax(660px, 1.1fr);
  align-items: center;
  column-gap: 42px;
}

.hero-copy { position: relative; z-index: 4; padding-bottom: 18px; }

.hero-copy h1 { margin: 0; font-size: 64px; line-height: 1.12; font-weight: 800; letter-spacing: 0; }

.hero-copy h1 span { display: block; overflow-wrap: anywhere; }

.hero-copy .brand-title { max-width: 690px; }

.hero-copy .accent-title { color: var(--home-blue); }

.hero-copy > p { max-width: 660px; margin: 28px 0 0; color: var(--home-muted); font-size: 22px; line-height: 1.85; }

.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 30px; }

.primary-action,
.secondary-action { height: 46px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }

.primary-action { padding: 0 20px; color: #fff; background: var(--home-blue); border: 1px solid var(--home-blue); border-radius: 6px; }

.secondary-action { color: #25272b; }

.secondary-action:hover { color: var(--home-blue); }

.secondary-action span { margin-left: 8px; }

.hero-metrics { max-width: 640px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 50px; border-top: 1px solid #cfd3d8; }

.hero-metrics > div { min-width: 0; padding: 18px 20px 0 0; }

.hero-metrics > div + div { padding-left: 24px; border-left: 1px solid #cfd3d8; }

.hero-metrics strong,
.hero-metrics span { display: block; }

.hero-metrics strong { font-size: 21px; line-height: 1.35; }

.hero-metrics span { margin-top: 8px; color: #74777e; font-size: 12px; line-height: 1.5; }

.ecosystem { position: relative; width: 760px; height: 720px; justify-self: end; }

.ecosystem-caption { position: absolute; top: 24px; left: 46px; z-index: 5; }

.ecosystem-caption strong,
.ecosystem-caption span { display: block; }

.ecosystem-caption strong { font-size: 14px; }

.ecosystem-caption span { margin-top: 9px; color: #8a8d93; font-size: 12px; }

.live-state { position: absolute; top: 29px; right: 38px; display: flex; align-items: center; gap: 8px; color: #73777d; font-size: 12px; }

.live-state i,
.cycle-note i { width: 7px; height: 7px; display: block; background: var(--home-green); border-radius: 50%; }

.axis { position: absolute; z-index: 0; background: #e6e8ec; }

.axis-x { top: 360px; left: 32px; width: 696px; height: 1px; }

.axis-y { top: 62px; left: 380px; width: 1px; height: 596px; }

.orbit { position: absolute; top: 50%; left: 50%; border: 1px solid #cfd7e6; border-radius: 50%; }

.orbit-large { width: 610px; height: 610px; margin: -305px 0 0 -305px; border-right-color: #4f7cf1; animation: orbitClockwise 32s linear infinite; }

.orbit-small { width: 410px; height: 410px; margin: -205px 0 0 -205px; border-top-color: #4f7cf1; animation: orbitCounter 22s linear infinite; }

.orbit-node { position: absolute; width: 74px; height: 74px; }

.orbit-node span { width: 74px; height: 74px; display: grid; place-items: center; background: #fff; border: 1px solid #d9dfe8; border-radius: 50%; box-shadow: 0 12px 28px rgba(24, 24, 27, .12); }

.orbit-node img { width: 40px; height: 40px; object-fit: contain; }

.orbit-large .orbit-node span { animation: orbitCounter 32s linear infinite; }

.orbit-small .orbit-node span { animation: orbitClockwise 22s linear infinite; }

.orbit-node:nth-child(1) { top: -37px; left: calc(50% - 37px); }

.orbit-node:nth-child(2) { top: calc(50% - 37px); right: -37px; }

.orbit-node:nth-child(3) { bottom: -37px; left: calc(50% - 37px); }

.orbit-node:nth-child(4) { top: calc(50% - 37px); left: -37px; }

.engine-wrap { position: absolute; top: 50%; left: 50%; z-index: 3; width: 210px; height: 210px; margin: -105px 0 0 -105px; display: grid; place-items: center; }

.pulse-ring { position: absolute; inset: 0; border: 1px solid #a9c0f7; border-radius: 50%; animation: ringPulse 3.8s ease-out infinite; }

.pulse-ring-delay { animation-delay: 1.9s; }

.engine-core { position: relative; width: 152px; height: 152px; display: grid; place-items: center; background: #17191c; border: 8px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #d9dfe8, 0 14px 34px rgba(24, 24, 27, .15); }

.engine-core b { width: 34px; height: 34px; display: block; background: #2f67e9; border: 5px solid #8db0ff; transform: rotate(45deg); animation: coreBreathe 2.8s ease-in-out infinite; }

.core-orbit { position: absolute; inset: 26px; border: 1px dashed #737984; border-radius: 50%; animation: orbitClockwise 15s linear infinite; }

.core-orbit i { position: absolute; width: 7px; height: 7px; background: #fff; border: 1px solid #b7bdc8; border-radius: 50%; }

.core-orbit i:nth-child(1) { top: -4px; left: calc(50% - 3px); }
.core-orbit i:nth-child(2) { top: 14px; right: 0; }
.core-orbit i:nth-child(3) { right: -4px; bottom: 18px; }
.core-orbit i:nth-child(4) { bottom: -4px; left: calc(50% - 3px); }
.core-orbit i:nth-child(5) { bottom: 18px; left: -4px; }
.core-orbit i:nth-child(6) { top: 14px; left: 0; }

.signal-label { position: absolute; z-index: 4; color: #4d5158; font-size: 12px; font-weight: 700; }

.label-one { top: 226px; left: -5px; }
.label-two { top: 274px; right: -5px; }
.label-three { bottom: 105px; left: 28px; }
.label-four { right: 42px; bottom: 78px; }

.cycle-note { position: absolute; right: 220px; bottom: 26px; display: flex; align-items: center; gap: 9px; color: #85888f; font-size: 12px; }

.cycle-note i { background: var(--home-blue); }

.workflow { color: #fff; background: var(--home-dark); }

.workflow-inner { height: 100px; display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); align-items: center; column-gap: 20px; }

.workflow-inner > strong { font-size: 17px; }

.workflow-inner > span { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; }

.workflow-inner b { width: 28px; height: 28px; display: inline-grid; place-items: center; color: #18181b; background: #fff; border-radius: 50%; font-size: 13px; }

@keyframes orbitClockwise { to { transform: rotate(360deg); } }
@keyframes orbitCounter { to { transform: rotate(-360deg); } }
@keyframes ringPulse { 0% { opacity: 0; transform: scale(.72); } 25% { opacity: .75; } 100% { opacity: 0; transform: scale(1.12); } }
@keyframes coreBreathe { 0%, 100% { transform: rotate(45deg) scale(1); } 50% { transform: rotate(45deg) scale(1.08); } }

@media (max-height: 920px) {
  .home-page { grid-template-rows: 72px minmax(670px, 1fr) 88px; }
  .home-nav { height: 72px; }
  .home-hero { transform: scale(.92); transform-origin: center center; width: min(calc(100% - 40px), 1652px); max-width: 1652px; }
  .workflow-inner { height: 88px; }
}

@media (max-width: 1380px) {
  .home-shell { width: calc(100% - 56px); }
  .home-hero { grid-template-columns: minmax(500px, .9fr) minmax(610px, 1.1fr); column-gap: 10px; }
  .hero-copy h1 { font-size: 56px; }
  .ecosystem { transform: scale(.9); transform-origin: center right; }
}

@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .home-page {
    display: block;
    min-height: 100vh;
    overflow: hidden;
  }

  .home-shell {
    width: calc(100% - 32px);
  }

  .home-nav {
    height: 68px;
  }

  .home-brand {
    gap: 10px;
  }

  .home-brand-logo {
    width: 42px;
    height: 38px;
  }

  .home-brand-logo.logo-agent,
  .home-brand-logo.logo-neutral {
    width: 38px;
    height: 38px;
  }

  .home-brand strong {
    max-width: min(42vw, 220px);
    font-size: 18px;
  }

  .home-login {
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }

  .home-hero {
    width: calc(100% - 32px);
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 44px 0 28px;
    transform: none !important;
  }

  .hero-copy {
    width: 100%;
    padding: 0;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.16;
  }

  .hero-copy > p {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .primary-action {
    min-height: 48px;
  }

  .hero-metrics {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 30px;
  }

  .hero-metrics > div,
  .hero-metrics > div + div {
    min-width: 0;
    padding: 14px 0;
    border-top: 1px solid var(--home-line);
    border-left: 0;
  }

  .ecosystem {
    width: 760px;
    height: 720px;
    flex: 0 0 auto;
    align-self: center;
    justify-self: auto;
    margin-top: 26px;
    margin-bottom: -370px;
    transform: scale(.46);
    transform-origin: top center;
  }

  .signal-label {
    display: none;
  }

  .workflow-inner {
    width: calc(100% - 32px);
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    padding: 24px 0;
  }

  .workflow-inner > strong {
    grid-column: 1 / -1;
  }

  .workflow-inner > span {
    min-width: 0;
    align-items: flex-start;
    line-height: 1.5;
  }

  .workflow-inner b {
    flex: 0 0 28px;
  }
}

@media (min-width: 410px) and (max-width: 599px) {
  .ecosystem {
    margin-bottom: -340px;
    transform: scale(.52);
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  .home-shell,
  .home-hero,
  .workflow-inner {
    width: calc(100% - 56px);
  }

  .ecosystem {
    margin-bottom: -135px;
    transform: scale(.78);
  }

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

  .hero-metrics > div,
  .hero-metrics > div + div {
    padding: 14px 16px 0 0;
    border-top: 0;
    border-left: 0;
  }

  .hero-metrics > div + div {
    padding-left: 16px;
    border-left: 1px solid var(--home-line);
  }
}
