:root {
  color-scheme: dark;
  --bg: #070313;
  --bg-soft: #100726;
  --panel: rgba(18, 12, 45, 0.72);
  --line: rgba(174, 123, 255, 0.24);
  --text: #f6f2ff;
  --muted: #b8a9d9;
  --accent: #a65cff;
  --accent-2: #4f6dff;
  --cyan: #40f3ff;
  --radius: 8px;
  --shadow: 0 24px 90px rgba(71, 54, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 10%, rgba(143, 69, 255, 0.34), transparent 30rem),
    radial-gradient(circle at 80% 0%, rgba(54, 93, 255, 0.28), transparent 28rem),
    linear-gradient(180deg, #09031a 0%, #05020d 52%, #080416 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(132, 94, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 94, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 85%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 5px);
  opacity: 0.18;
}

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 16px 0 40px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 4, 22, 0.78);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.nav-actions,
.hero-actions,
.stats-panel,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  justify-content: center;
  gap: 8px;
}

.nav-links a,
.ghost-link {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.ghost-link:hover {
  color: var(--text);
  background: rgba(166, 92, 255, 0.14);
}

.nav-actions {
  gap: 10px;
}

.language-toggle {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.language-toggle span {
  min-width: 32px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

body[data-lang="zh"] [data-lang-option="zh"],
body[data-lang="en"] [data-lang-option="en"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

.section {
  padding: 84px 0;
}

.hero {
  padding-top: 24px;
}

.hero-grid,
.split-section,
.ecosystem-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.06;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  max-width: 680px;
  color: #e4d9ff;
  font-size: clamp(18px, 2vw, 23px);
}

.hero-sub {
  max-width: 620px;
  margin-bottom: 30px;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 44px rgba(120, 76, 255, 0.34);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #e7ddff;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%),
    radial-gradient(circle at 50% 35%, rgba(166, 92, 255, 0.28), transparent 22rem),
    rgba(11, 5, 31, 0.82);
  box-shadow: var(--shadow);
}

.hero-visual::before {
  position: absolute;
  inset: 28px;
  content: "";
  border: 1px solid rgba(64, 243, 255, 0.22);
  border-radius: var(--radius);
}

.logo-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(68%, 330px);
  aspect-ratio: 1;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(166, 92, 255, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 54, 209, 0.2), rgba(13, 5, 35, 0.72));
  box-shadow: inset 0 0 48px rgba(166, 92, 255, 0.28), 0 0 70px rgba(86, 83, 255, 0.25);
}

.logo-core img {
  width: 64%;
  border-radius: 16px;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 24px rgba(166, 92, 255, 0.72));
}

.scan-ring {
  position: absolute;
  inset: 72px;
  border: 1px dashed rgba(64, 243, 255, 0.38);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.orb {
  position: absolute;
  width: 190px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(10px);
}

.orb-one {
  top: 42px;
  right: 32px;
  background: radial-gradient(circle, rgba(64, 243, 255, 0.26), transparent 66%);
}

.orb-two {
  bottom: 24px;
  left: 26px;
  background: radial-gradient(circle, rgba(166, 92, 255, 0.34), transparent 68%);
}

.data-card {
  position: absolute;
  width: 178px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 2, 17, 0.78);
  backdrop-filter: blur(14px);
}

.data-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.data-card strong {
  color: white;
  font-size: 18px;
}

.card-a {
  top: 82px;
  left: 36px;
}

.card-b {
  right: 34px;
  bottom: 82px;
}

.stats-panel {
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.stats-panel div {
  flex: 1;
  padding: 10px 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.stats-panel div:first-child {
  border-left: 0;
}

.stats-panel strong {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan);
}

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

.section-heading {
  max-width: 780px;
  margin: 0 auto 36px;
  text-align: center;
}

.feature-grid,
.product-board,
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article,
.product-board article,
.ecosystem-grid article,
.timeline div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
}

.feature-grid article,
.product-board article,
.ecosystem-grid article {
  min-height: 210px;
  padding: 24px;
}

.feature-grid span,
.timeline span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.split-section {
  align-items: start;
}

.split-section > div:first-child {
  position: sticky;
  top: 120px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline div {
  padding: 24px;
}

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

.product-board article {
  min-height: 230px;
  background:
    linear-gradient(135deg, rgba(166, 92, 255, 0.18), transparent 55%),
    var(--panel);
}

.ecosystem-panel {
  grid-template-columns: 0.75fr 1.25fr;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 20%, rgba(64, 243, 255, 0.14), transparent 24rem),
    rgba(10, 5, 28, 0.82);
}

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

.final-cta {
  text-align: center;
}

.final-cta p {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
}

.centered {
  justify-content: center;
}

.footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
}

.footer div {
  display: grid;
  gap: 4px;
}

.footer strong {
  letter-spacing: 0.12em;
}

.footer span {
  color: var(--muted);
}

.footer a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cyan);
  font-weight: 900;
}

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

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

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero-grid,
  .split-section,
  .ecosystem-panel {
    grid-template-columns: 1fr;
  }

  .split-section > div:first-child {
    position: static;
  }

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

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .nav {
    top: 8px;
    gap: 12px;
  }

  .nav-actions {
    justify-content: flex-end;
  }

  .ghost-link {
    display: none;
  }

  .section {
    padding: 58px 0;
  }

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

  .scan-ring {
    inset: 44px;
  }

  .data-card {
    width: 145px;
  }

  .stats-panel,
  .feature-grid,
  .product-board,
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .stats-panel {
    display: grid;
  }

  .stats-panel div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
  }

  .stats-panel div:first-child {
    border-top: 0;
  }

  .ecosystem-panel {
    padding: 22px;
  }
}
