:root {
  --bg: #08060f;
  --bg-surface: #110d1e;
  --bg-elevated: #1a1528;
  --ink: #f0ecff;
  --ink-muted: rgba(240,236,255,0.78);
  --accent: #7b5ef8;
  --accent-2: #22d4a0;
  --accent-glow: rgba(123, 94, 248, 0.25);
  --accent-soft: rgba(123, 94, 248, 0.12);
  --line: rgba(240,236,255,0.08);
  --line-strong: rgba(240,236,255,0.15);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Geist Mono', monospace;

  --section-pad: 120px;
  --container-px: 5vw;
  --radius-sm: 6px;
  --radius-md: 12px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

.texture-grid {
  background-image:
    linear-gradient(rgba(240,236,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,236,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── NAV A: 全屏爆开式 ──────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem var(--container-px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.site-nav.scrolled {
  background: rgba(8,6,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  z-index: 210;
}

.nav-logo svg { width: 32px; height: 32px; color: var(--accent); }

.nav-logo-text .accent { color: var(--accent); }

.nav-desktop-links {
  display: none;
  gap: 2rem;
  align-items: center;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .nav-desktop-links { display: flex; }
}

.nav-desktop-links a {
  position: relative;
  transition: color 0.3s;
}

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

.nav-desktop-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-desktop-links a:hover::after { width: 100%; }

.nav-cta-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 100px;
  transition: all 0.3s;
}

.nav-cta-btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 24px var(--accent-glow);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  z-index: 210;
}

.menu-toggle svg { width: 24px; height: 24px; }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  clip-path: inset(0% 0% 100% 0%);
}

.nav-overlay .nav-item {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-overlay .nav-item:hover { color: var(--accent); }

.nav-overlay .nav-item .item-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-right: 0.5rem;
  vertical-align: super;
}

/* ── HERO B: 分屏张力 ──────────────────────────────────── */
.hero-b {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg);
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero-b { grid-template-columns: 1.1fr 0.9fr; }
}

.hero-b__left {
  padding: calc(var(--section-pad) + 4rem) var(--container-px) var(--section-pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.hero-b__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  width: fit-content;
  box-shadow: 0 0 20px var(--accent-glow);
}

.hero-b__badge .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--accent); }
  50% { opacity: 0.4; box-shadow: 0 0 12px var(--accent); }
}

.hero-b__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 7rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.hero-b__title .accent { color: var(--accent); }
.hero-b__title .accent-2 { color: var(--accent-2); }

.hero-b__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--ink-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-b__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-b__btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-b__btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.hero-b__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-glow);
}

.hero-b__btn--primary svg { width: 16px; height: 16px; }

.hero-b__btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.hero-b__btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-b__right {
  position: relative;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8vw 100%);
  overflow: hidden;
}

@media (max-width: 899px) {
  .hero-b__right {
    clip-path: polygon(0 6vh, 100% 0, 100% 100%, 0% 100%);
    min-height: 380px;
  }
}

.hero-b__svg {
  width: 75%;
  height: 75%;
  max-width: 560px;
}

.hero-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.6;
}

.hero-glow--violet {
  top: 20%;
  right: 15%;
  background: var(--accent);
}

.hero-glow--mint {
  bottom: 15%;
  left: 10%;
  background: var(--accent-2);
  opacity: 0.3;
}

/* ── HERO → FEATURES 过渡: 对角线 ─────────────────── */
.clip-diagonal-br {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  padding-bottom: calc(var(--section-pad) + 8vw);
}

/* ── FEATURES: 本托格子 ────────────────────────────── */
.section-features {
  background: var(--bg);
  padding: var(--section-pad) var(--container-px);
  position: relative;
}

.section-features .bento-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-features .bento-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-features .bento-header h2 .accent { color: var(--accent); }

.section-features .bento-header p {
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  max-width: 560px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-card {
  background-color: var(--bg-elevated);
  border: 1px solid rgba(240,236,255,0.14);
  border-radius: var(--radius-sm);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(123, 94, 248, 0.06);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.bento-card svg.icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.span-2x2 svg.icon { color: var(--bg); }

.bento-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.bento-card p {
  font-size: clamp(0.875rem, 1.2vw, 0.95rem);
  color: var(--ink-muted);
  line-height: 1.6;
}

.span-2x2 {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--accent) 0%, #6344d8 100%);
  border-color: transparent;
}

.span-2x2:hover {
  border-color: transparent;
  box-shadow: 0 8px 40px rgba(123, 94, 248, 0.35);
}

.span-2x2 h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--bg);
}

.span-2x2 p {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  max-width: 80%;
  color: rgba(8,6,15,0.88);
}

.span-1x2 {
  grid-column: span 1;
  grid-row: span 2;
}

.span-2x1 {
  grid-column: span 2;
  grid-row: span 1;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.span-2x1 svg.icon {
  margin-bottom: 0;
  width: 48px;
  height: 48px;
}

.span-1x1 {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-illustration {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 250px;
  height: 250px;
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .span-2x1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .span-2x1 svg.icon { margin-bottom: 1.5rem; }
}

@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; }
  .span-2x2, .span-1x2, .span-2x1, .span-1x1 {
    grid-column: span 1;
    grid-row: auto;
  }
  .bento-illustration { width: 150px; height: 150px; }
}

/* ── FEATURES → TESTIMONIALS 过渡: 渐变溶解 ────────── */
.section-dissolve {
  position: relative;
  z-index: 2;
  margin-top: -120px;
  padding-top: calc(120px + var(--section-pad));
}

.section-dissolve::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: -1;
}

/* ── TESTIMONIALS: 紧凑卡片网格 ─────────────────────── */
.section-testimonials {
  background: var(--bg);
  padding: var(--section-pad) var(--container-px);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 4rem;
}

.testimonials-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.testimonials-header h2 .accent { color: var(--accent); }

.testimonials-header p {
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
}

.a-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.a-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.a-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.a-card--featured {
  grid-column: span 1;
  border-color: var(--accent);
  background: var(--bg-elevated);
  position: relative;
}

.a-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.a-quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.a-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.a-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  font-family: var(--font-display);
}

.a-name { font-weight: 600; font-size: 0.9rem; }
.a-role { font-size: 0.75rem; color: var(--ink-muted); font-family: var(--font-mono); }

/* ── TESTIMONIALS → FAQ 过渡: 强调线 ─────────────────── */
.section-rule {
  position: relative;
  padding-top: calc(var(--section-pad) + 32px);
}

.section-rule::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent) 25%, var(--accent) 75%, transparent);
  opacity: 0.5;
}

/* ── FAQ: 编辑排版型 ──────────────────────────────── */
.section-faq {
  background: var(--bg);
  padding: 6rem var(--container-px);
}

.faq-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 900px) {
  .faq-container { grid-template-columns: 4fr 6fr; gap: 8vw; }
}

.faq-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.9;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.02em;
  position: sticky;
  top: 6rem;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-right { display: flex; flex-direction: column; }

.faq-item {
  border-top: 1px solid var(--line-strong);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 2.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
  text-align: left;
  gap: 2rem;
}

.faq-trigger:hover .faq-question {
  transform: translateX(10px);
  color: var(--accent);
}

.faq-question {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), color 0.3s ease;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--ink);
}

.faq-icon line {
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
  transform-origin: center;
}

.faq-item[data-open="true"] .faq-icon .v { transform: rotate(90deg); opacity: 0; }
.faq-item[data-open="true"] .faq-icon .h { transform: rotate(180deg); }

.faq-content-grid {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.16,1,0.3,1);
}

.faq-item[data-open="true"] .faq-content-grid { grid-template-rows: 1fr; }

.faq-content-inner { overflow: hidden; }

.faq-answer {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--ink-muted);
  line-height: 1.7;
  padding-bottom: 2.5rem;
  margin: 0;
  max-width: 85%;
}

/* ── FAQ → CTA 过渡: 覆盖式 ─────────────────────────── */
.clip-cover-prev {
  position: relative;
  z-index: 2;
  clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%);
  margin-top: -48px;
}

/* ── CTA: 强力转化区 ─────────────────────────────── */
.section-cta {
  padding: 10rem var(--container-px) 8rem;
  background: var(--bg-surface);
  overflow: hidden;
  position: relative;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 20%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(123, 94, 248, 0.15) 0%, rgba(123, 94, 248, 0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 900px) {
  .cta-container { grid-template-columns: 1fr 1fr; gap: 6rem; }
}

.cta-text-wrap { position: relative; }

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.cta-headline .hl-accent {
  color: var(--accent);
  font-style: italic;
}

.cta-subtext {
  font-size: clamp(1.1rem, 1.4vw, 1.2rem);
  color: var(--ink-muted);
  max-width: 480px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  line-height: 1.7;
}

.cta-arrow {
  position: absolute;
  right: -100px;
  bottom: -50px;
  width: 200px;
  height: 200px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.3;
  pointer-events: none;
  display: none;
}

@media (min-width: 900px) {
  .cta-arrow { display: block; }
}

.cta-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 576px) {
  .cta-actions {
    flex-direction: row;
    align-items: center;
    width: auto;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(34, 212, 160, 0.3);
}

.btn-magnetic {
  padding: 1.25rem 3rem;
  font-size: 1.125rem;
}

.btn-ghost {
  color: var(--ink-muted);
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
  background: none;
}

.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ink-muted);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.btn-ghost:hover { color: var(--ink); }
.btn-ghost:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  background: var(--ink);
}

/* ── FOOTER ───────────────────────────────────────── */
.site-footer {
  padding: 3rem var(--container-px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.site-footer a {
  color: var(--accent);
  transition: color 0.3s;
}

.site-footer a:hover { color: var(--accent-2); }

/* ── LINE REVEAL CJK FIX ─────────────────────────── */
.line-wrap {
  display: block;
  overflow: hidden;
}

.line-inner { display: block; }

/* ── UTILITIES ────────────────────────────────────── */
.js-hero-title, .js-hero-subtitle, .js-hero-cta {
  opacity: 0;
  transform: translateY(32px);
}

.js-hero-visual {
  opacity: 0;
}

.js-fade-up {
  opacity: 0;
  transform: translateY(24px);
}

.bento-header > *, .testimonials-header > *, .cta-headline, .cta-subtext, .cta-actions-wrap {
  opacity: 0;
  transform: translateY(24px);
}
