/* layout.css — 官网布局 */

/* ============ nav ============ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(4, 6, 10, .65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(4, 6, 10, .85);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}
.brand-mark {
  width: 30px; height: 30px;
  background: var(--grad-2);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--bg);
  font-weight: 900;
}
.brand-name small {
  margin-left: 6px;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 400;
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: .5px;
}
.nav-links a:hover { color: var(--text); }

/* ============ buttons ============ */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  transition: all .15s ease;
}
.btn-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.btn-cta.primary {
  background: var(--grad-2);
  border-color: transparent;
  color: var(--bg);
  padding: 12px 24px;
  font-size: 14px;
}
.btn-cta.primary:hover {
  box-shadow: 0 0 24px rgba(0, 212, 255, .4);
  color: var(--bg);
}
.btn-cta.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-2);
  padding: 12px 24px;
  font-size: 14px;
}

/* ============ hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 32px 80px;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .6;
}
.hero-bg::before, .hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .3;
}
.hero-bg::before {
  width: 500px; height: 500px;
  background: var(--accent);
  top: -100px; left: -100px;
}
.hero-bg::after {
  width: 400px; height: 400px;
  background: #a78bfa;
  bottom: -100px; right: 20%;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 1px;
  background: rgba(0, 212, 255, .04);
  margin-bottom: 24px;
  animation: fadeUp .6s ease-out backwards;
  animation-delay: .1s;
}
.hero-title {
  font-size: 64px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}
.hero-title .line {
  display: block;
  animation: fadeUp .6s ease-out backwards;
}
.hero-title .line:nth-child(1) { animation-delay: .2s; }
.hero-title .line:nth-child(2) { animation-delay: .4s; }
.hero-title em { font-size: 1em; }
.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 32px;
  animation: fadeUp .6s ease-out backwards;
  animation-delay: .55s;
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
  animation: fadeUp .6s ease-out backwards;
  animation-delay: .7s;
}
.hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  animation: fadeUp .6s ease-out backwards;
  animation-delay: .85s;
}
.meta-item {
  display: flex;
  flex-direction: column;
}
.meta-item b {
  font-size: 32px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.meta-item span {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
  letter-spacing: 1px;
}

/* ============ hero orbit ============ */
.hero-orbit {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  margin: 0 auto;
  z-index: 1;
}
.hero-orbit svg { width: 100%; height: 100%; }
.orbit {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 6;
  opacity: .5;
}
.orbit.o1 { animation: spin 30s linear infinite; transform-origin: 300px 300px; }
.orbit.o2 { animation: spin 50s linear infinite reverse; transform-origin: 300px 300px; }
.orbit.o3 { animation: spin 80s linear infinite; transform-origin: 300px 300px; }
.orbit-role {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-opacity: .6;
  cursor: pointer;
  transition: all .25s;
}
.orbit-role:hover { fill: var(--accent); stroke: var(--accent); filter: drop-shadow(0 0 12px var(--accent)); }
.center-core {
  fill: var(--accent);
  filter: drop-shadow(0 0 24px var(--accent));
}
.center-text {
  text-anchor: middle;
  fill: var(--bg);
  font-weight: 700;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 1px;
}

/* ============ sections ============ */
.sec {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 32px;
  position: relative;
}
.sec-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.sec-tag {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.sec-head h2 em { font-weight: 700; }
.sec-head p { margin-top: 16px; font-size: 16px; }

/* ============ responsive ============ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
    text-align: center;
  }
  .hero-title { font-size: 42px; }
  .hero-cta, .hero-meta { justify-content: center; }
  .hero-orbit { max-width: 360px; }
  .sec { padding: 60px 20px; }
  h2 { font-size: 28px; }
}
@media (max-width: 600px) {
  .nav-inner { padding: 12px 18px; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 14px; }
  .hero-meta { gap: 20px; }
  .meta-item b { font-size: 24px; }
}