:root {
  --bg: #070914;
  --bg-soft: #0d1124;
  --text: #f4f7ff;
  --muted: #9aa5c7;
  --line: #263058;
  --primary: #7a8dff;
  --secondary: #31e4c5;
  --accent: #ff7fbc;
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1000px 700px at 15% -5%, #1b2451 0%, transparent 55%),
    radial-gradient(950px 650px at 85% -10%, #113353 0%, transparent 60%), var(--bg);
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
}

.fx-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.fx-orb {
  position: absolute;
  filter: blur(22px);
  opacity: 0.4;
  border-radius: 50%;
  animation: drift 18s ease-in-out infinite;
}

.fx-orb.one {
  width: 360px;
  height: 360px;
  background: #5f7bff;
  top: -120px;
  left: -60px;
}

.fx-orb.two {
  width: 300px;
  height: 300px;
  background: #2ee2c3;
  top: 35%;
  right: -100px;
  animation-delay: -4s;
}

.fx-orb.three {
  width: 220px;
  height: 220px;
  background: #ff7fbc;
  bottom: -70px;
  left: 38%;
  animation-delay: -8s;
}

.fx-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(140, 154, 217, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 154, 217, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 40%, black 35%, transparent 80%);
}

.container {
  width: min(var(--maxw), calc(100% - 2.2rem));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 9, 20, 0.68);
  border-bottom: 1px solid rgba(122, 141, 255, 0.28);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  text-decoration: none;
}

.brand-mark {
  width: 33px;
  aspect-ratio: 1;
  border-radius: 10px;
  background: conic-gradient(from 20deg, #6b83ff, #2ee2c3, #ff7fbc, #6b83ff);
  box-shadow: 0 0 36px rgba(122, 141, 255, 0.42);
  animation: spin 7s linear infinite;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.22rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  padding: 6rem 0 3.8rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: start;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 141, 255, 0.42);
  color: #ced7ff;
  background: rgba(122, 141, 255, 0.12);
  padding: 0.36rem 0.78rem;
  font-size: 0.84rem;
}

h1 {
  margin: 1rem 0 1rem;
  max-width: 11ch;
  font-size: clamp(2.3rem, 5.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.036em;
}

.gradient-text {
  background: linear-gradient(120deg, #edf1ff, #9bc5ff 35%, #73ffd9 70%, #f7b3d6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 210% 100%;
  animation: glowShift 7s ease-in-out infinite;
}

.hero-copy {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.06rem;
}

.hero-copy-zh {
  margin-top: 0.6rem;
  font-size: 0.98rem;
  opacity: 0.94;
}

.cta-row {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.84rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-weight: 650;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #071024;
  background: linear-gradient(135deg, #31e4c5, #9ef4dd 45%, #b8c8ff);
  box-shadow: 0 12px 30px rgba(49, 228, 197, 0.24);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(16, 21, 43, 0.72);
}

.hero-card-wrap {
  perspective: 900px;
}

.hero-card {
  border-radius: 20px;
  border: 1px solid rgba(122, 141, 255, 0.33);
  background: linear-gradient(165deg, rgba(18, 25, 52, 0.88), rgba(10, 14, 31, 0.95));
  padding: 1rem;
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
}

.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 16px rgba(49, 228, 197, 0.66);
}

.hero-card h3 {
  margin: 0;
  font-size: 1rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.66rem;
}

.metric {
  border-radius: 12px;
  background: rgba(27, 35, 66, 0.75);
  border: 1px solid rgba(122, 141, 255, 0.25);
  padding: 0.66rem;
}

.metric strong {
  display: block;
  font-size: 1.05rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.84rem;
}

section {
  padding: 2.4rem 0 3rem;
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.5rem);
  margin-bottom: 0.8rem;
}

.section-sub {
  color: var(--muted);
  line-height: 1.72;
  max-width: 68ch;
  margin-bottom: 1.4rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

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

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.proof-card {
  border-radius: 16px;
  border: 1px solid rgba(122, 141, 255, 0.27);
  background: linear-gradient(170deg, rgba(19, 27, 54, 0.86), rgba(9, 13, 28, 0.95));
  padding: 1rem;
}

.proof-card strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 0.35rem;
}

.proof-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.panel {
  border-radius: 16px;
  border: 1px solid rgba(122, 141, 255, 0.27);
  background: linear-gradient(170deg, rgba(19, 27, 54, 0.86), rgba(9, 13, 28, 0.95));
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -20%;
  width: 120%;
  height: 130%;
  background: linear-gradient(120deg, transparent, rgba(122, 141, 255, 0.1), transparent);
  transform: translateX(-35%) rotate(10deg);
  transition: transform 0.5s ease;
}

.panel:hover::before {
  transform: translateX(10%) rotate(10deg);
}

.panel h3 {
  margin: 0 0 0.45rem;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.repos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.status {
  color: var(--muted);
  border-radius: 14px;
  border: 1px dashed var(--line);
  padding: 0.88rem 1rem;
  background: rgba(14, 19, 39, 0.7);
}

.repo-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.flagship-grid {
  margin-top: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-line {
  margin: 0.35rem 0 0;
  color: #d5ddf8;
  line-height: 1.58;
  font-size: 0.94rem;
}

.case-line strong {
  color: #f2f6ff;
  font-weight: 700;
  margin-right: 0.4rem;
}

.collab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.advantage-grid,
.process-grid,
.faq-list {
  display: grid;
  gap: 0.9rem;
}

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

.step-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(122, 141, 255, 0.27);
  background: linear-gradient(170deg, rgba(19, 27, 54, 0.86), rgba(9, 13, 28, 0.95));
  padding: 1.1rem;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 30px;
  padding: 0 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(49, 228, 197, 0.38);
  background: rgba(49, 228, 197, 0.12);
  color: #98f5e3;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.step-card h3 {
  margin: 0 0 0.45rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.collab-cta {
  margin-top: 1.2rem;
}

.repo-card {
  border: 1px solid rgba(122, 141, 255, 0.24);
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(165deg, rgba(17, 23, 46, 0.9), rgba(8, 12, 26, 0.95));
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.repo-card.show {
  transform: translateY(0);
  opacity: 1;
}

.repo-card:hover {
  border-color: rgba(122, 141, 255, 0.58);
  box-shadow: 0 12px 30px rgba(22, 30, 64, 0.45);
}

.repo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.repo-name {
  text-decoration: none;
  font-weight: 650;
  font-size: 1.03rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(49, 228, 197, 0.4);
  background: rgba(49, 228, 197, 0.12);
  color: #8df5df;
  font-size: 0.78rem;
}

.chip-fork {
  border-color: rgba(255, 178, 115, 0.42);
  background: rgba(255, 178, 115, 0.15);
  color: #ffd2a8;
}

.repo-meta {
  margin-top: 0.38rem;
  color: var(--muted);
  font-size: 0.89rem;
}

.repo-desc {
  margin-top: 0.68rem;
  color: #d5ddf8;
  line-height: 1.64;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.sticky-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 650;
  color: #061022;
  background: linear-gradient(135deg, #31e4c5, #9ef4dd 45%, #b8c8ff);
  box-shadow: 0 10px 24px rgba(49, 228, 197, 0.3);
}

footer {
  padding: 2.2rem 0 3.1rem;
  border-top: 1px solid var(--line);
  color: #8d98b9;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

@keyframes glowShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  40% {
    transform: translate(15px, 25px) scale(1.06);
  }
  70% {
    transform: translate(-20px, -10px) scale(0.95);
  }
}

@media (max-width: 980px) {
  .hero-inner,
  .pillars,
  .pillars-2,
  .proof-grid,
  .repo-grid,
  .flagship-grid,
  .collab-grid,
  .advantage-grid,
  .process-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 5rem;
  }
}

.testimonial-grid,
.case-grid,
.social-strip {
  display: grid;
  gap: 0.9rem;
}

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

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

.social-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.signal-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
  border: 1px solid rgba(122, 141, 255, 0.34);
  background: rgba(122, 141, 255, 0.12);
  color: #d4ddff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.48rem 0.7rem;
}

.quote-card p {
  color: #dce4ff;
  font-style: italic;
}

.quote-card span {
  display: inline-block;
  margin-top: 0.72rem;
  color: #aeb8d8;
  font-size: 0.85rem;
}

.case-card h3 {
  margin-bottom: 0.55rem;
}

@media (max-width: 980px) {
  .testimonial-grid,
  .case-grid,
  .social-strip {
    grid-template-columns: 1fr;
  }
}
