/* ============ Nexus Landing — Design System ============ */
:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --ink: #0a0a0a;
  --ink-2: #404040;
  --ink-3: #737373;
  --line: #e9e9e9;
  --line-2: #f0f0f0;
  --accent: #6366f1;
  --accent-2: #a855f7;
  --accent-soft: #eef0ff;
  --green: #16a34a;
  --blue: #2563eb;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(10,10,10,.05), 0 4px 12px rgba(10,10,10,.04);
  --shadow-md: 0 2px 6px rgba(10,10,10,.05), 0 16px 40px rgba(10,10,10,.08);
  --shadow-lg: 0 4px 12px rgba(10,10,10,.06), 0 32px 80px rgba(10,10,10,.12);
  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --grad: linear-gradient(120deg, #6366f1, #a855f7 55%, #ec4899);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.showcase-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

::selection { background: var(--accent-soft); color: var(--accent); }

/* Background grid */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    /* 交叉点点阵（淡紫） */
    radial-gradient(circle, rgba(99,102,241,.35) 1.2px, transparent 1.6px),
    /* 主线网格 */
    linear-gradient(to right, rgba(10,10,10,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,.07) 1px, transparent 1px),
    /* 细线网格 */
    linear-gradient(to right, rgba(10,10,10,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,.03) 1px, transparent 1px);
  background-size:
    112px 112px,
    112px 112px,
    112px 112px,
    28px 28px,
    28px 28px;
  mask-image: radial-gradient(ellipse 100% 78% at 50% 0%, #000 30%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 100% 78% at 50% 0%, #000 30%, transparent 82%);
}
/* 网格上的柔光 */
.bg-grid::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(closest-side, rgba(99,102,241,.07), transparent 72%) 15% 8% / 620px 460px no-repeat,
    radial-gradient(closest-side, rgba(168,85,247,.06), transparent 72%) 88% 4% / 560px 420px no-repeat;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  padding: 9px 18px; border-radius: 10px; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: #4E9EC0; color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #327286; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: #d4d4d4; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: #f5f5f5; }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { box-shadow: 0 8px 24px rgba(0,0,0,.25); transform: translateY(-1px); }
.btn-dark-outline { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.btn-dark-outline:hover { border-color: rgba(255,255,255,.7); }

/* ============ Navigation ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line-2);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 32px;
}
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-mark { width: 32px; height: 32px; display: block; }
.logo-mark svg,
.logo-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.logo-text { font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 7px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.logo:hover .logo-text { color: var(--ink); background: #f5f5f5; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 7px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: #f5f5f5; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-lang { display: flex; align-items: center; gap: 2px; padding: 3px; background: #f5f5f5; border-radius: 999px; }
.lang-btn {
  font-size: 13px; font-weight: 600; color: var(--ink-3);
  background: none; border: 0; border-radius: 999px;
  padding: 5px 12px; cursor: pointer;
  transition: all .2s; line-height: 1;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.nav-github {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  transition: background .15s, transform .15s;
}
.nav-github img { width: 20px; height: 20px; display: block; object-fit: contain; }
.nav-github:hover { background: #f5f5f5; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; padding: 168px 0 40px; text-align: center; }
.hero-glow {
  position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 560px; pointer-events: none;
  display: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px 6px 10px; box-shadow: var(--shadow-sm);
  transition: border-color .2s, transform .2s;
}
.hero-badge:hover { border-color: #d4d4d4; transform: translateY(-1px); }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px var(--accent-soft); }
.hero-title {
  margin: 28px 0 20px;
  font-size: clamp(44px, 7.2vw, 84px);
  font-weight: 900; letter-spacing: -.045em; line-height: 1.06;
}
.title-gradient {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Brand title特效 */
.brand-title {
  white-space: nowrap;
  font-size: clamp(48px, 10.5vw, 120px);
  letter-spacing: -.05em;
  margin-bottom: 14px;
}
.brand-letter {
  display: inline-block;
  color: #4E9EC0;
  opacity: 0;
  transform: translateY(.45em) rotate(5deg) scale(.92);
  filter: blur(6px);
  animation: letterIn .9s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: calc(var(--i) * 55ms + .15s);
}
.brand-logo { color: transparent; }
.brand-logo img {
  display: block;
  width: 1em;
  height: 1em;
  object-fit: contain;
  vertical-align: middle;
}
.brand-n { color: #BCDDE5; }
@keyframes letterIn {
  to { opacity: 1; transform: none; filter: blur(0); }
}
.brand-ai {
  position: relative;
  background: linear-gradient(110deg, #327286 0%, #4E9EC0 30%, #BCDDE5 50%, #4E9EC0 70%, #327286 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: letterIn .9s cubic-bezier(.22,.61,.36,1) forwards, gradientFlow 12s ease-in-out infinite;
  animation-delay: calc(var(--i) * 55ms + .15s), calc(var(--i) * 55ms + 1.05s);
  text-shadow: none;
}
@keyframes gradientFlow {
  from { background-position: 0% 0; }
  to { background-position: 300% 0; }
}
.hero-tagline {
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 600;
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
}
@media (prefers-reduced-motion: reduce) {
  .brand-letter, .brand-ai { animation: none; opacity: 1; transform: none; filter: none; }
}
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--ink-3); max-width: 620px; margin: 0 auto; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

/* ============ Design Showcase (独立 class) ============ */
.design-showcase {
  padding: 80px 0;
}
.design-showcase-container {
  width: 100%;
  padding: 0 24px;
}
.design-showcase-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}
.design-showcase-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.design-showcase-title {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.14;
}
.design-showcase-sub {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--ink-3);
}
.design-showcase-figure {
  margin: 0;
  padding: 0;
}
.design-showcase-img {
  display: block;
  width: 100%;
  max-width: 1500px;
  height: auto;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .design-showcase { padding: 48px 0; }
}

/* ============ Showcase Scenarios (纯文字 · 独立 class) ============ */
.scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.scenario-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -16px rgba(15, 23, 42, 0.12);
  border-color: rgba(99, 102, 241, 0.28);
}
.scenario-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 24px;
  align-self: flex-start;
}
.scenario-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--ink);
}
.scenario-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
}
.scenario-desc {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.7;
}
@media (max-width: 900px) {
  .scenarios { grid-template-columns: 1fr; gap: 16px; }
  .scenario-card { padding: 32px 24px; }
}

/* ============ App Preview Stage (独立 class) ============ */
.preview-head {
  text-align: center;
  max-width: 760px;
  margin: 48px auto 40px;
}
.preview-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.preview-title {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.14;
}
.preview-sub {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--ink-3);
}
.app-stage {
  position: relative;
  margin: 56px auto 0;
  width: min(94vw, 1500px);
  /* 与 editor-wrap 同样策略：超出容器时在视口中居中 */
  margin-left: calc((100% - min(94vw, 1500px)) / 2);
  margin-right: calc((100% - min(94vw, 1500px)) / 2);
}
.app-stage-window {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.app-stage-body {
  display: flex;
  min-height: 620px;
  padding: 0;
}
.app-stage-iframe {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
  background: #fff;
}
@media (max-width: 768px) {
  .app-stage { margin-top: 36px; }
  .app-stage-body { min-height: 420px; }
  .app-stage-iframe { height: 420px; }
}

/* ============ Editor Mockup ============ */
.editor-wrap {
  position: relative;
  margin: 72px auto 0;
  width: min(96vw, 1600px);
  /* 当编辑器比容器宽时，在视口中居中（左右均溢出 2vw） */
  margin-left: calc((100% - min(96vw, 1600px)) / 2);
  margin-right: calc((100% - min(96vw, 1600px)) / 2);
}
.editor {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; text-align: left;
}
.editor-titlebar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-2); background: #fbfbfc;
}
.traffic-lights { display: flex; gap: 7px; }
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl-red { background: #ff5f57; } .tl-yellow { background: #febc2e; } .tl-green { background: #28c840; }
.editor-tab {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line-2); border-radius: 7px; padding: 4px 12px;
}
.editor-tab-inactive { background: transparent; border-color: transparent; color: var(--ink-3); }
.titlebar-right { margin-left: auto; }
.ai-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 4px 10px;
}
.ai-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.editor-body { display: flex; min-height: 340px; }
.editor.homepage .editor-body { min-height: 720px; padding: 0; }
.editor-iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  background: #fff;
}
.editor-gutter {
  padding: 20px 0; width: 46px; flex-shrink: 0; text-align: right;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.75;
  color: #c8c8c8; user-select: none; border-right: 1px solid var(--line-2);
  background: #fdfdfd;
}
.editor-gutter span { display: block; padding-right: 12px; }
.editor-code { flex: 1; padding: 20px 24px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75; overflow-x: auto; }
.code-line { white-space: pre; min-height: 1.75em; }
.c-kw { color: #d73a9a; } .c-str { color: #1a7f37; } .c-fn { color: #6f42c1; } .c-comment { color: #9d9d9d; font-style: italic; }
.c-num { color: #0550ae; }
.caret { display: inline-block; width: 8px; height: 1.1em; background: var(--accent); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; border-radius: 1px; }
@keyframes blink { 50% { opacity: 0; } }

.editor-panel {
  width: 300px; flex-shrink: 0; border-left: 1px solid var(--line-2);
  background: #fdfdfd; padding: 16px; font-size: 12.5px;
  display: flex; flex-direction: column; gap: 12px;
}
.panel-header { font-weight: 700; font-size: 12.5px; color: var(--ink); }
.panel-msg { background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; }
.panel-msg-role { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.panel-msg-role-ai { color: var(--accent); }
.panel-msg-text { color: var(--ink-2); line-height: 1.55; }
.panel-step { display: flex; align-items: center; gap: 7px; margin-top: 6px; color: var(--ink-2); }
.step-check { color: var(--green); font-weight: 700; }
.step-loader { width: 11px; height: 11px; border: 2px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.panel-diff { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; }
.diff-add { color: var(--green); font-weight: 600; }
.diff-del { color: #dc2626; font-weight: 600; }
.diff-files { color: var(--ink-3); }

/* ============ Logo Marquee ============ */
.logos { padding: 72px 0 8px; }
.logos-label { text-align: center; font-size: 14px; color: var(--ink-3); margin-bottom: 30px; }
.logos-label b { color: var(--ink); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 30s linear infinite; }
.logo-item { display: inline-flex; align-items: center; height: 32px; white-space: nowrap; transition: opacity .2s, filter .2s; }
.logo-item img { display: block; height: 28px; width: auto; max-width: 120px; object-fit: contain; opacity: .65; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.logo-item:hover img { opacity: 1; filter: grayscale(0); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--accent); background: var(--accent-soft);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 18px;
}
.section-title { font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; letter-spacing: -.035em; line-height: 1.14; }
.section-sub { margin-top: 16px; font-size: 16.5px; color: var(--ink-3); }

/* ============ Bento ============ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento-card {
  grid-column: span 2; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bento-lg { grid-column: span 6; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; }
.bento-wide { grid-column: span 6; }
.bento-content { padding: 28px; }
.bento-lg .bento-content { padding: 44px 48px 44px 8px; }
.bento-content h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.bento-content p { font-size: 15px; color: var(--ink-3); }
.bento-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.bento-row > div:first-child { max-width: 420px; }
.bento-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: #f6f6f7; border: 1px solid var(--line-2);
  padding: 7px 14px; border-radius: 999px; transition: all .2s;
}
.tag:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.bento-visual { padding: 36px 28px 0; min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end; }
.bento-visual-agent { padding: 44px 0 44px 48px; justify-content: center; gap: 12px; align-items: flex-start; }
.agent-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 18px; box-shadow: var(--shadow-sm);
  animation: float 5s ease-in-out infinite;
}
.agent-chip:nth-child(2) { margin-left: 40px; animation-delay: -1.2s; }
.agent-chip:nth-child(3) { margin-left: 80px; animation-delay: -2.4s; }
.agent-chip:nth-child(4) { margin-left: 120px; animation-delay: -3.6s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: var(--green); } .dot-blue { background: var(--blue); animation: pulse 1.4s infinite; } .dot-gray { background: #d4d4d4; }

.bento-visual-tab { font-family: var(--font-mono); font-size: 13px; padding-bottom: 24px; }
.tab-demo { background: #fbfbfc; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; color: var(--ink-2); }
.tab-ghost { background: #fbfbfc; border: 1px dashed #d9d9e3; border-left: none; border-radius: 0 10px 10px 0; padding: 10px 14px; color: #a3a3b8; margin: 0 0 0 14px; }
.tab-key { font-size: 10.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 5px; padding: 2px 7px; margin-left: 8px; }

.bento-visual-chat { gap: 10px; padding-bottom: 24px; }
.chat-bubble { align-self: flex-end; max-width: 85%; font-size: 13.5px; color: var(--ink-2); background: #f3f3f4; border-radius: 14px 14px 4px 14px; padding: 10px 14px; }
.chat-bubble-ai { align-self: flex-start; background: var(--accent-soft); color: var(--ink); border-radius: 14px 14px 14px 4px; }

/* ============ Bento Engine Frame (独立 class) ============ */
.bento-engine-frame {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1b1b1f;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.bento-engine-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 820px;
  max-width: none;
  border: 0;
  transform: scale(0.46);
  transform-origin: 0 0;
  pointer-events: none;
}
/* 定位：每张卡片聚焦 engine.html 不同区域 */
.bento-engine-frame.view-chat iframe { transform: scale(0.46) translate(-30px, -10px); }
.bento-engine-frame.view-side iframe { transform: scale(0.46) translate(0, -120px); }
.bento-engine-frame.view-models iframe { transform: scale(0.42) translate(-40px, -40px); }
.bento-engine-frame.view-full iframe { transform: scale(0.32) translate(0, 0); }
/* bento-lg 视觉列更窄，需要更小 */
.bento-lg .bento-engine-frame { height: 200px; border-radius: 14px; }
.bento-lg .bento-engine-frame iframe { transform: scale(0.22); }
.bento-lg .bento-engine-frame.view-chat iframe { transform: scale(0.24) translate(-30px, -10px); }
.bento-lg .bento-engine-frame.view-side iframe { transform: scale(0.22) translate(0, -120px); }

/* ============ Tabs / Showcase ============ */
.tabs { max-width: 860px; margin: 0 auto; }
.tab-btns { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.tab-btn {
  font-size: 14px; font-weight: 600; color: var(--ink-3);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 20px; transition: all .2s;
}
.tab-btn:hover { color: var(--ink); border-color: #d4d4d4; }
.tab-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.mini-editor {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 22px 24px;
  font-family: var(--font-mono); font-size: 13px; line-height: 2;
}
.ghost-anim { color: #a3a3b8; animation: ghostIn 2.6s ease-in-out infinite; }
@keyframes ghostIn { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
.diff-line-del { color: #dc2626; background: #fef2f2; border-radius: 5px; padding: 0 8px; margin-left: -8px; }
.diff-line-add { color: var(--green); background: #f0fdf4; border-radius: 5px; padding: 0 8px; margin-left: -8px; }
.tab-desc h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.tab-desc p { font-size: 15.5px; color: var(--ink-3); }
.tab-desc b { color: var(--ink); }

/* ============ Stats ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num {
  font-size: clamp(38px, 5vw, 56px); font-weight: 900; letter-spacing: -.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label { margin-top: 6px; font-size: 14.5px; color: var(--ink-3); }

/* ============ Compare table ============ */
.compare-table {
  max-width: 960px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  border-top: 1px solid var(--line);
}
.compare-row:first-child { border-top: 0; }
.compare-row:not(.compare-head) .compare-cell { padding: 18px 22px; font-size: 14.5px; }
.compare-row:not(.compare-head):hover { background: #fafbff; }
.compare-cell {
  padding: 16px 22px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; min-height: 56px;
}
.compare-cell.compare-feature {
  justify-content: flex-start; text-align: left;
  font-weight: 500; color: var(--ink);
}
.compare-head {
  background: linear-gradient(180deg, #f8f9ff 0%, #f3f4ff 100%);
}
.compare-head .compare-cell {
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  letter-spacing: .02em;
  flex-direction: column; gap: 6px; padding: 18px 16px;
}
.compare-cell.compare-us {
  background: linear-gradient(180deg, rgba(99,102,241,.06), rgba(139,92,246,.04));
  position: relative;
}
.compare-logo {
  height: 32px; width: auto; max-width: 140px; display: block;
  object-fit: contain;
}
.compare-logos {
  display: flex; align-items: center; gap: 8px; justify-content: center;
}
.compare-plus {
  font-size: 18px; font-weight: 700; line-height: 1;
  color: var(--ink-2);
  display: inline-block;
}
.compare-logos .compare-logo {
  height: 32px;
}
.compare-brand {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  letter-spacing: .01em;
}
.check, .cross {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 14px; font-weight: 700; line-height: 1;
}
.check {
  color: #10b981;
  background: rgba(16,185,129,.12);
}
.cross {
  color: #94a3b8;
  background: rgba(148,163,184,.1);
  font-weight: 600;
}
.compare-note {
  text-align: center; margin-top: 18px; font-size: 13px; color: var(--ink-3);
}
@media (max-width: 720px) {
  .compare-table { font-size: 13px; }
  .compare-row {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  }
  .compare-cell { padding: 12px 8px; font-size: 12.5px; }
  .compare-cell.compare-feature { font-size: 12.5px; }
  .compare-logo { height: 26px; }
  .compare-logos .compare-logo { height: 26px; }
  .compare-brand { font-size: 11px; }
  .check, .cross { width: 22px; height: 22px; font-size: 12px; }
}

/* ============ Pricing ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; align-items: stretch; }
.p-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.p-card-featured { border: 1.5px solid var(--ink); box-shadow: var(--shadow-md); }
.p-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; color: #fff;
  background: var(--grad); border-radius: 999px; padding: 5px 14px;
  white-space: nowrap; box-shadow: var(--shadow-sm);
}
.p-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.p-desc { font-size: 13.5px; color: var(--ink-3); margin: 4px 0 20px; }
.p-price { font-size: 44px; font-weight: 900; letter-spacing: -.04em; line-height: 1; margin-bottom: 24px; }
.p-price span { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.p-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.p-list li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-2); }
.p-list li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat;
}
.p-card .btn { margin-top: auto; }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 22px; transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover { border-color: #dcdcdc; }
.faq-item[open] { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 19px 0; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--ink-3); border-radius: 2px; transition: transform .25s;
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }
.faq-item p { padding: 0 0 20px; font-size: 14.5px; color: var(--ink-3); max-width: 620px; }

/* ============ CTA ============ */
.cta { padding: 60px 0 110px; }
.cta-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #0c0b16 0%, #0a0a12 100%);
  color: #fff; border-radius: 28px;
  padding: 88px 32px; text-align: center;
}
/* 顶部受光线：中心亮、两侧渐隐 */
.cta-card::before {
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(139,122,255,.7) 50%, transparent);
}
.cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    /* 单一主光源：内容后方的大柔光，靛蓝→紫罗兰一体过渡 */
    radial-gradient(ellipse 56% 68% at 50% 46%, rgba(99,102,241,.34) 0%, rgba(129,92,246,.18) 45%, transparent 75%),
    /* 细网格纹理，呼应全站 bg-grid */
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 40%, #000 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 90% 100% at 50% 40%, #000 40%, transparent 90%);
}
/* 光晕外围的轻微压暗，让视线聚焦中心 */
.cta-glow::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 130% at 50% 50%, transparent 55%, rgba(5,5,10,.55) 100%);
}
.cta-card h2 { position: relative; font-size: clamp(30px, 4.6vw, 48px); font-weight: 900; letter-spacing: -.035em; }
.cta-card p { position: relative; margin-top: 14px; color: #b6b3c9; font-size: 17px; }
.cta-card .hero-actions { position: relative; }
.cta-note { font-size: 13px !important; color: #7a7690 !important; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line-2); padding: 64px 0 32px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--ink-3); transition: color .15s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--line-2);
  font-size: 13px; color: var(--ink-3);
}

/* ============ Reveal Animations ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .agent-chip, .ghost-anim, .ai-pill-dot { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card, .bento-lg, .bento-wide { grid-column: span 2; }
  .bento-lg { grid-template-columns: 1fr; }
  .bento-lg .bento-content { padding: 8px 28px 28px; }
  .bento-visual-agent { padding: 32px 28px 24px; }
  .testimonial-grid, .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .tab-panel.active { grid-template-columns: 1fr; }
  .editor-panel { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-lang { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-toggle { display: flex; }
  .nav.menu-open { background: rgba(255,255,255,.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .nav.menu-open .nav-links {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line-2);
    padding: 12px 24px 20px;
  }
  .nav.menu-open .nav-links a { padding: 12px; font-size: 15px; }
  .nav.menu-open .nav-lang { display: flex; position: absolute; top: 100%; right: 24px; margin-top: 8px; }
  .hero { padding-top: 128px; }
  .brand-title { font-size: clamp(36px, 12vw, 64px); }
  .hero-tagline { letter-spacing: .28em; text-indent: .28em; }
  .br-desktop { display: none; }
  .section { padding: 76px 0; }
  .bento { grid-template-columns: 1fr; }
  .bento-card, .bento-lg, .bento-wide { grid-column: span 1; }
  .editor-gutter { display: none; }
  .cta-card { padding: 64px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
