:root {
  --navy: #061a33;
  --ink: #07111f;
  --paper: #ffffff;
  --mist: #f5f7fa;
  --line: #dbe2ea;
  --muted: #657184;
  --blue-soft: #d8e8f7;
  --cyan: #7bc7d4;
  --green: #1f6f61;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Avenir Next, Helvetica Neue, Arial, Hiragino Sans GB, PingFang SC, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 48px;
  color: var(--paper);
  background: rgba(4, 13, 25, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand-link,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  line-height: 1;
}

.brand-link img,
.footer-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-link span {
  color: var(--paper);
  font-size: 17px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.site-nav a {
  padding: 4px 0;
}

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

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 86vh;
  overflow: hidden;
  color: var(--paper);
  background:
    linear-gradient(110deg, #07111f 0%, #061a33 54%, #0b1a25 100%);
  padding: 128px 48px 86px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/xingchenxi-logo-symbol-white.svg");
  background-repeat: no-repeat;
  background-position: right -2% center;
  background-size: min(46vw, 600px);
  opacity: 0.035;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 3;
}

.galaxy-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 58%;
  min-width: 580px;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--blue-soft);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 2px;
  font-size: 80px;
  line-height: 0.95;
  font-weight: 500;
}

.hero-chinese {
  margin-bottom: 44px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 28px;
  font-weight: 500;
}

.hero-copy {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: 36px;
  line-height: 1.18;
  font-weight: 500;
}

.hero-subcopy {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 19px;
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.button-light {
  color: var(--ink);
  background: var(--paper);
}

.button-ghost {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.34);
}

.section {
  padding: 96px 48px;
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-light {
  background: var(--mist);
}

.section-white {
  background: var(--paper);
}

.section-ink {
  color: var(--paper);
  background: var(--navy);
}

.vector-mark,
.card-vector,
.row-vector,
.phase-vector {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.vector-mark {
  width: 76px;
  height: 18px;
  margin-bottom: 22px;
  color: var(--green);
  opacity: 0.86;
}

.vector-mark path,
.vector-mark circle,
.card-vector path,
.card-vector circle,
.row-vector path,
.row-vector circle,
.phase-vector path,
.phase-vector circle {
  vector-effect: non-scaling-stroke;
}

.vector-mark path,
.vector-mark circle {
  stroke-width: 1.35;
}

.vector-mark-ink {
  color: var(--blue-soft);
}

.card-vector {
  flex: 0 0 auto;
  width: 82px;
  height: 24px;
  color: var(--green);
  opacity: 0.7;
}

.card-vector path,
.card-vector circle {
  stroke-width: 1.25;
}

.row-vector {
  flex: 0 0 36px;
  width: 36px;
  height: 18px;
  color: var(--cyan);
  opacity: 0.78;
}

.row-vector path,
.row-vector circle {
  stroke-width: 1.25;
}

.phase-vector {
  flex: 0 0 46px;
  width: 46px;
  height: 16px;
  color: var(--green);
  opacity: 0.68;
}

.phase-vector path,
.phase-vector circle {
  stroke-width: 1.2;
}

.two-column,
.systems-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 72px;
  align-items: start;
}

h2 {
  max-width: 740px;
  margin-bottom: 0;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 500;
}

.lead-block p,
.systems-copy p,
.contact-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.85;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.signal-grid span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 14px 0 0 16px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.signal-grid span::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 10px;
  height: 8px;
  opacity: 0.68;
}

.signal-agent::before {
  border-top: 1px solid var(--green);
  border-bottom: 1px solid var(--green);
}

.signal-research::before {
  border: 1px solid var(--green);
  border-left: 0;
  border-right: 0;
  border-radius: 50%;
}

.signal-product::before {
  border-top: 1px solid var(--green);
  border-right: 1px solid var(--green);
  transform: skewX(-18deg);
}

.section-ink .systems-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.section-heading {
  margin-bottom: 42px;
}

.pillar-grid,
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pillar-card,
.roadmap-grid article {
  position: relative;
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.pillar-card::before,
.roadmap-grid article::before,
.contact-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(31, 111, 97, 0.55), rgba(123, 199, 212, 0));
}

.pillar-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 58px;
}

.pillar-index {
  display: inline-flex;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 600;
}

.pillar-card p,
.roadmap-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.system-list {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.system-row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.system-row span {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--blue-soft);
  font-weight: 700;
}

.system-row strong {
  color: var(--paper);
  font-size: 18px;
  font-weight: 500;
}

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

.roadmap-grid article {
  min-height: 300px;
}

.roadmap-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 54px;
}

.roadmap-year {
  margin-bottom: 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.contact-panel {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.contact-panel dl {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
}

.contact-panel div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-panel dt {
  color: var(--muted);
  font-size: 14px;
}

.contact-panel dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 48px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.site-footer img {
  width: 34px;
  height: 34px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand {
  margin-bottom: 10px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer-meta a {
  color: var(--ink);
  font-weight: 700;
}

.footer-meta a:hover {
  color: var(--green);
}

.legal-main {
  padding: 150px 48px 96px;
  background: var(--mist);
}

.legal-hero,
.legal-content {
  width: min(100%, 900px);
  margin: 0 auto;
}

.legal-hero {
  padding-bottom: 46px;
}

.legal-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 64px;
  line-height: 1;
}

.legal-hero p {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

.legal-hero span {
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.legal-content {
  display: grid;
  gap: 16px;
}

.legal-content article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.legal-content h2 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.2;
}

.legal-content p {
  margin-bottom: 0;
  color: var(--muted);
}

.not-found {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 48px;
  color: var(--paper);
  background:
    radial-gradient(circle at 76% 28%, rgba(123, 199, 212, 0.18), transparent 28%),
    linear-gradient(120deg, #07111f 0%, #061a33 58%, #0b1a25 100%);
}

.not-found img {
  width: 64px;
  height: 64px;
  margin-bottom: 30px;
}

.not-found h1 {
  margin-bottom: 16px;
  font-size: 64px;
}

.not-found p:not(.section-kicker) {
  max-width: 520px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

@media (max-width: 980px) {
  .site-header {
    padding: 16px 24px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 82vh;
    padding: 118px 24px 72px;
  }

  .hero::before {
    background-position: right -120px bottom 8%;
    background-size: 520px;
  }

  .galaxy-canvas {
    width: 100%;
    min-width: 0;
    opacity: 0.46;
  }

  h1 {
    font-size: 60px;
  }

  .hero-copy {
    font-size: 30px;
  }

  .section {
    padding: 72px 24px;
  }

  .legal-main {
    padding: 120px 24px 72px;
  }

  .legal-hero h1 {
    font-size: 50px;
  }

  .two-column,
  .systems-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .signal-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .brand-link img {
    width: 30px;
    height: 30px;
  }

  .brand-link span {
    font-size: 16px;
  }

  .hero {
    min-height: 80vh;
  }

  .hero::before {
    background-position: right -160px bottom 2%;
    background-size: 420px;
  }

  .galaxy-canvas {
    opacity: 0.32;
  }

  h1 {
    font-size: 44px;
  }

  .hero-chinese {
    margin-bottom: 34px;
    font-size: 22px;
  }

  .hero-copy {
    font-size: 25px;
  }

  .hero-subcopy,
  .lead-block p,
  .systems-copy p,
  .contact-panel p {
    font-size: 17px;
  }

  h2 {
    font-size: 31px;
  }

  .pillar-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .pillar-card,
  .roadmap-grid article {
    min-height: auto;
  }

  .pillar-meta,
  .roadmap-top {
    margin-bottom: 34px;
  }

  .system-row,
  .contact-panel div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-panel {
    padding: 24px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px 24px;
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .legal-hero h1 {
    font-size: 40px;
  }

  .legal-hero p {
    font-size: 17px;
  }

  .legal-content article {
    padding: 22px;
  }

  .not-found {
    padding: 56px 24px;
  }

  .not-found h1 {
    font-size: 42px;
  }
}
