/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  background: #e8f0fc;
  color: #1a1a2e;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background Orbs ── */
.bg-orbs {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .55;
  animation: orbFloat 14s ease-in-out infinite;
}
.orb1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(142,216,255,.5), rgba(183,166,255,.3));
  top: -120px; left: -100px;
}
.orb2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(183,166,255,.45), rgba(108,143,248,.25));
  bottom: 10%; right: -80px;
  animation-delay: -5s; animation-duration: 18s;
}
.orb3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(142,216,255,.35), transparent);
  top: 50%; left: 40%;
  animation-delay: -9s; animation-duration: 22s;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-40px) scale(1.04); }
  66%      { transform: translate(-20px,25px) scale(.97); }
}

#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ── Glass ── */
.glass {
  background: rgba(255,255,255,.28);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 4px 24px rgba(145,180,220,.15), inset 0 1px 0 rgba(255,255,255,.6);
}

/* ── Navbar ── */
.navbar {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 40px); max-width: 1100px;
  border-radius: 20px; z-index: 100;
  padding: 0 20px;
}
.nav-inner {
  display: flex; align-items: center; gap: 16px;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-icon {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(142,216,255,.8), rgba(183,166,255,.8));
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  color: #fff;
}
.brand-name { font-size: 17px; font-weight: 700; color: #1a1a2e; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 7px 14px; border-radius: 12px;
  font-size: 13px; font-weight: 500; color: #3a3a5e;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .18s, border-color .18s;
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,.5);
  border-color: rgba(255,255,255,.6);
}
.nav-cta { margin-left: 10px; flex-shrink: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 14px;
  font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .18s, box-shadow .18s, background .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: 16px; }
.btn-primary {
  background: linear-gradient(135deg, rgba(108,143,248,.9), rgba(142,216,255,.8));
  color: #fff;
  box-shadow: 0 4px 16px rgba(108,143,248,.3), inset 0 1px 0 rgba(255,255,255,.3);
  border: 1px solid rgba(255,255,255,.4);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(108,143,248,.4); }
.btn-ghost {
  background: rgba(255,255,255,.28);
  color: #3a3a5e;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.btn-ghost:hover { background: rgba(255,255,255,.48); }

/* ── Container ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ── Hero ── */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #4a5a8a;
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6c8ff8;
  box-shadow: 0 0 6px rgba(108,143,248,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(1.25); }
}
.hero-title {
  font-size: clamp(44px, 8vw, 84px);
  font-weight: 800; line-height: 1.08; letter-spacing: -.03em;
  color: #1a1a2e; margin-bottom: 22px;
}
.gradient-text {
  background: linear-gradient(135deg, #6c8ff8, #8ed8ff, #b7a6ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px; color: #5a6a8a; line-height: 1.75;
  max-width: 540px; margin-bottom: 36px;
}
.hero-actions {
  display: flex; gap: 14px; margin-bottom: 28px;
  flex-wrap: wrap; justify-content: center;
}
.demo-url {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 12px;
  font-size: 13px; color: #4a5a8a;
}
.demo-url a { color: #6c8ff8; font-weight: 600; text-decoration: none; }
.demo-url a:hover { text-decoration: underline; }
.demo-hint { color: #8a9aba; font-size: 12px; }

/* ── Features ── */
.features { position: relative; z-index: 1; padding: 80px 0 60px; }
.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #6c8ff8; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 4vw, 38px); font-weight: 800;
  color: #1a1a2e; margin-bottom: 44px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  border-radius: 22px; padding: 28px 24px;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(145,180,220,.25), inset 0 1px 0 rgba(255,255,255,.7);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 16px;
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.7);
  display: grid; place-items: center;
  color: #6c8ff8; margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: #1a1a2e; }
.feature-card p  { font-size: 13px; color: #5a6a8a; line-height: 1.75; }

/* ── Quote ── */
.quote-section { position: relative; z-index: 1; padding: 40px 0 60px; }
.quote-card {
  border-radius: 24px; padding: 40px 36px;
  text-align: center;
}
.quote-icon { font-size: 32px; margin-bottom: 18px; }
blockquote {
  font-size: 16px; line-height: 1.85; color: #3a4a6e;
  font-weight: 500; max-width: 720px; margin: 0 auto 24px;
}
.quote-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tag {
  padding: 4px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: rgba(108,143,248,.1);
  border: 1px solid rgba(108,143,248,.25);
  color: #6c8ff8;
}

/* ── CTA ── */
.cta-section { position: relative; z-index: 1; padding: 20px 0 80px; }
.cta-card {
  border-radius: 28px; padding: 52px 40px;
  text-align: center;
}
.cta-card h2 { font-size: 30px; font-weight: 800; color: #1a1a2e; margin-bottom: 10px; }
.cta-card p  { font-size: 15px; color: #5a6a8a; margin-bottom: 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.4);
  padding: 24px 0;
  background: rgba(255,255,255,.1);
}
.footer-inner {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; justify-content: center;
}
.footer-brand { font-weight: 700; color: #3a4a6e; }
.footer-copy  { font-size: 12px; color: #7a8aaa; }
.footer-link  { font-size: 12px; color: #6c8ff8; text-decoration: none; }
.footer-link:hover { text-decoration: underline; }

/* ── Docs Layout ── */
.docs-layout {
  display: flex; gap: 28px;
  max-width: 1100px; margin: 100px auto 0;
  padding: 24px 24px 60px;
  position: relative; z-index: 1;
  align-items: flex-start;
}
.docs-sidebar {
  width: 220px; flex-shrink: 0;
  border-radius: 20px; padding: 20px 16px;
  position: sticky; top: 90px;
}
.sidebar-title {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #8a9aba; margin-bottom: 12px; padding: 0 4px;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-link {
  display: block; padding: 8px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 500; color: #4a5a8a;
  text-decoration: none; transition: background .15s, color .15s;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255,255,255,.55);
  color: #6c8ff8;
}

.docs-main { flex: 1; min-width: 0; }
.docs-hero { margin-bottom: 36px; }
.docs-hero h1 { font-size: 36px; font-weight: 800; color: #1a1a2e; margin-bottom: 8px; }
.docs-lead { font-size: 16px; color: #5a6a8a; }

/* ── Doc Section ── */
.doc-section { margin-bottom: 32px; }
.doc-section h2 {
  font-size: 20px; font-weight: 700; color: #1a1a2e;
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.section-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 10px;
  background: rgba(108,143,248,.12); border: 1px solid rgba(108,143,248,.2);
  font-size: 12px; font-weight: 700; color: #6c8ff8;
  flex-shrink: 0;
}
.doc-card { border-radius: 18px; padding: 24px; }
.doc-card p  { font-size: 14px; line-height: 1.8; color: #3a4a6e; }

/* Info block */
.info-block { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.info-row {
  display: flex; gap: 12px; align-items: center;
  padding: 8px 12px; border-radius: 10px;
  background: rgba(255,255,255,.4);
  font-size: 13px;
}
.info-label { font-weight: 600; color: #4a5a8a; min-width: 72px; }
.info-val    { color: #3a4a6e; }
.info-val a  { color: #6c8ff8; text-decoration: none; }
.info-val a:hover { text-decoration: underline; }

/* Placeholder tip */
.placeholder-tip {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(108,143,248,.06);
  border: 1px dashed rgba(108,143,248,.25);
  font-size: 13px; color: #8a9aba;
}

/* Step list */
.step-list { display: flex; flex-direction: column; gap: 20px; }
.step-item  { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(108,143,248,.8), rgba(142,216,255,.8));
  color: #fff; font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(108,143,248,.3);
}
.step-body { flex: 1; }
.step-title { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 10px; }
.step-desc  { font-size: 13px; color: #5a6a8a; }

/* Code block */
.code-block { border-radius: 14px; overflow: hidden; background: rgba(20,30,60,.06); border: 1px solid rgba(255,255,255,.4); }
.code-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px;
  background: rgba(255,255,255,.2);
  border-bottom: 1px solid rgba(255,255,255,.3);
  font-size: 12px; color: #7a8aaa; font-weight: 600;
}
.copy-btn {
  font-size: 11px; padding: 3px 10px; border-radius: 7px;
  background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.6);
  cursor: pointer; color: #4a5a8a; font-weight: 600;
  transition: background .15s;
}
.copy-btn:hover { background: rgba(255,255,255,.7); }
pre {
  padding: 16px; overflow-x: auto;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px; line-height: 1.7; color: #3a4a6e;
}
code .c { color: #8a9aba; }

/* Contact card */
.contact-card {
  border-radius: 18px; padding: 22px 24px;
  display: flex; align-items: center; gap: 18px;
}
.contact-icon { font-size: 28px; flex-shrink: 0; }
.contact-title { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.contact-sub   { font-size: 13px; color: #5a6a8a; }
.contact-sub a { color: #6c8ff8; text-decoration: none; }
.contact-sub a:hover { text-decoration: underline; }

/* ── Carousel ── */
.carousel-section {
  position: relative; z-index: 1;
  padding: 20px 0 70px;
}
.carousel-wrap {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 60px;
}
.carousel-track-outer {
  overflow: hidden;
  border-radius: 22px;
  width: 100%;
  box-shadow: 0 16px 56px rgba(145,180,220,.28), inset 0 1px 0 rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.55);
}
.carousel-track {
  display: flex;
  width: 100%;
}
.carousel-slide {
  min-width: 100%; flex-shrink: 0;
  width: 100%;
}
.carousel-slide img {
  width: 100%; height: auto;
  display: block;
  object-fit: cover;
  max-height: 580px;
}
/* arrows — 放在 track-outer 两侧，不叠压图片 */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 4px 16px rgba(145,180,220,.2), inset 0 1px 0 rgba(255,255,255,.7);
  cursor: pointer; display: grid; place-items: center;
  color: #4a5a8a;
  transition: background .18s, transform .18s;
  z-index: 10;
}
.carousel-btn:hover {
  background: rgba(255,255,255,.72);
  transform: translateY(-50%) scale(1.08);
}
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
/* dots */
.carousel-dots {
  display: flex; justify-content: center; gap: 7px;
  margin-top: 18px;
}
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(108,143,248,.25);
  border: 1px solid rgba(108,143,248,.2);
  cursor: pointer;
  transition: background .2s, transform .2s, width .2s;
}
.carousel-dot.active {
  background: #6c8ff8;
  width: 22px; border-radius: 999px;
}

/* ── Beta download notice ── */
.beta-download-notice {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(220,38,38,.07);
  border: 1px solid rgba(220,38,38,.2);
  font-size: 13px; color: #7a3030; line-height: 1.65;
  margin-bottom: 4px;
}
.beta-download-notice svg { flex-shrink: 0; margin-top: 2px; color: #c04040; }
.beta-download-notice strong { color: #c04040; }

/* ── Nav link button ── */
.nav-link-btn {
  background: none; border: none; cursor: pointer;
  font-size: inherit; font-family: inherit;
}

/* ── Contact Modal ── */
.contact-modal-bg {
  position: fixed; inset: 0; z-index: 2000;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
}
.contact-modal-bg.open {
  opacity: 1; pointer-events: auto;
}
.contact-modal {
  position: relative;
  border-radius: 28px;
  padding: 40px 36px 32px;
  width: 340px; max-width: calc(100vw - 40px);
  text-align: center;
  transform: translateY(16px) scale(.96);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.contact-modal-bg.open .contact-modal {
  transform: translateY(0) scale(1);
}
.contact-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.6);
  cursor: pointer; display: grid; place-items: center;
  color: #4a5a8a;
  transition: background .15s;
}
.contact-modal-close:hover { background: rgba(255,255,255,.72); }
.contact-modal-icon { font-size: 36px; margin-bottom: 12px; }
.contact-modal-title {
  font-size: 20px; font-weight: 800; color: #1a1a2e; margin-bottom: 8px;
}
.contact-modal-sub {
  font-size: 13px; color: #5a6a8a; margin-bottom: 20px; line-height: 1.6;
}
.contact-modal-qq {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: 14px;
  font-size: 15px; color: #3a4a6e; margin-bottom: 12px;
}
.contact-modal-qq strong { color: #6c8ff8; font-size: 18px; }
.contact-modal-tip {
  font-size: 12px; color: #8a9aba;
}

/* ── Deploy section ── */
.deploy-method-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700; color: #1a1a2e;
  margin-bottom: 20px;
}
.method-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 2px 10px; border-radius: 999px;
  background: rgba(108,143,248,.12);
  border: 1px solid rgba(108,143,248,.28);
  color: #6c8ff8;
}
.inline-code {
  display: inline;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 12px; padding: 1px 6px; border-radius: 6px;
  background: rgba(108,143,248,.1);
  border: 1px solid rgba(108,143,248,.18);
  color: #4a5a9a;
}

/* ── Mobile Tab Bar ── */
.mobile-tabbar {
  display: none;
}
@media (max-width: 768px) {
  .mobile-tabbar {
    display: flex;
    position: fixed;
    bottom: 12px; left: 12px; right: 12px;
    z-index: 500;
    background: rgba(255,255,255,.38);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 22px;
    padding: 8px 6px;
    box-shadow: 0 8px 32px rgba(145,180,220,.22), inset 0 1px 0 rgba(255,255,255,.7);
    justify-content: space-around;
    align-items: center;
  }
  .mobile-tab {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    flex: 1; padding: 6px 4px; border-radius: 14px;
    font-size: 10px; font-weight: 600; color: #6a7a9a;
    text-decoration: none; background: none; border: none;
    cursor: pointer; font-family: inherit;
    transition: background .16s, color .16s, transform .16s;
  }
  .mobile-tab svg { flex-shrink: 0; }
  .mobile-tab:hover, .mobile-tab.active {
    background: rgba(255,255,255,.55);
    color: #6c8ff8;
    transform: translateY(-2px);
  }
  .mobile-tab span { line-height: 1; white-space: nowrap; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  /* Navbar */
  .navbar { top: 8px; width: calc(100% - 16px); border-radius: 16px; }
  .nav-links { display: none; }
  .nav-cta  { display: none; }

  /* Hero */
  .hero { padding-bottom: 100px; }
  .hero-title { font-size: clamp(36px, 10vw, 56px); }
  .hero-actions { flex-direction: column; align-items: center; }
  .demo-url { flex-wrap: wrap; justify-content: center; text-align: center; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 32px 20px; }
  .quote-card { padding: 28px 20px; }

  /* Carousel */
  .carousel-wrap { padding: 0 44px; }
  .carousel-prev { left: 0; }
  .carousel-next { right: 0; }

  /* Docs layout */
  .docs-layout {
    flex-direction: column;
    margin-top: 80px;
    padding: 12px 12px 100px;
    gap: 12px;
  }

  /* Sidebar → horizontal scrollable chips */
  .docs-sidebar {
    width: 100%; position: static;
    padding: 12px 12px;
    border-radius: 16px;
  }
  .sidebar-title { display: none; }
  .sidebar-nav {
    flex-direction: row; flex-wrap: nowrap;
    gap: 6px; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .sidebar-nav::-webkit-scrollbar { display: none; }
  .sidebar-link {
    white-space: nowrap; flex-shrink: 0;
    padding: 6px 14px; font-size: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.3);
  }
  .sidebar-link.active {
    background: rgba(108,143,248,.15);
  }

  /* Docs hero */
  .docs-hero h1 { font-size: 26px; }
  .docs-lead    { font-size: 14px; }

  /* Doc sections */
  .doc-section { margin-bottom: 20px; }
  .doc-section h2 { font-size: 17px; }
  .section-num { width: 26px; height: 26px; font-size: 11px; border-radius: 8px; }
  .doc-card { padding: 18px 14px; border-radius: 16px; }

  /* Info block */
  .info-row { flex-direction: column; gap: 3px; align-items: flex-start; }
  .info-label { min-width: unset; }

  /* Step list */
  .step-item { gap: 10px; }
  .step-num { width: 28px; height: 28px; font-size: 12px; flex-shrink: 0; }
  .step-title { font-size: 14px; }

  /* Code block */
  .code-block { border-radius: 12px; }
  pre { font-size: 11px; padding: 12px; }

  /* Deploy */
  .deploy-method-title { font-size: 14px; }

  /* Contact card */
  .contact-card { flex-direction: column; text-align: center; gap: 10px; }
}
