/* ============================================================
   Sage（明略）Landing Page — style.css
   Brand color: #D97757 (warm orange)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-base:        #f6efe6;
  --bg-surface:     #fcf7f1;
  --bg-card:        #fffdf9;
  --bg-card-hover:  #fff5ec;
  --border:         rgba(122,89,67,0.14);
  --border-strong:  rgba(122,89,67,0.22);

  --text-primary:   #2d221c;
  --text-secondary: #6f5f53;
  --text-muted:     #9b8a7d;

  --accent:         #D97757;
  --accent-light:   #e8896a;
  --accent-glow:    rgba(217,119,87,0.18);
  --accent-glow-strong: rgba(217,119,87,0.32);

  --green:          #22c55e;
  --yellow:         #eab308;
  --red:            #ef4444;
  --blue:           #3b82f6;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;

  --shadow-card: 0 18px 40px rgba(76,55,40,0.08);
  --shadow-glow: 0 0 40px var(--accent-glow);

  --font: -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }

img { max-width: 100%; display: block; }
code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(217,119,87,0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-title span { color: var(--accent); }

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow-strong);
}
.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px var(--accent-glow-strong);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--accent);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(250,245,239,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo .logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.nav-logo .logo-cn {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 6px 14px;
  color: var(--text-secondary);
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--text-primary); background: var(--bg-card); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* ---------- Documentation ---------- */
.docs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  margin-top: 40px;
  align-items: start;
}

.docs-primary,
.docs-side-card,
.docs-bottom-card {
  background: linear-gradient(180deg, rgba(20,29,46,0.96), rgba(15,22,35,0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.docs-primary {
  padding: 32px;
}

.docs-side-card {
  padding: 28px;
  position: sticky;
  top: 92px;
}

.docs-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.docs-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-badge.published {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.32);
  color: #87e3a9;
}

.docs-audience {
  color: var(--text-secondary);
  font-size: 13px;
}

.docs-primary h3,
.docs-side-card h3 {
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.docs-intro {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.9;
}

.docs-outline {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.docs-outline-item {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.docs-outline-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.docs-outline-item p,
.manual-list li span,
.docs-role-item span {
  color: var(--text-secondary);
}

.docs-note {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(217,119,87,0.08);
  border: 1px solid rgba(217,119,87,0.18);
  color: #f0d6cd;
}

.docs-side-label {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.manual-group + .manual-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.manual-group-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.manual-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.manual-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
}

.manual-list li em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.docs-bottom {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  margin-top: 24px;
}

.docs-bottom-card {
  padding: 24px 26px;
}

.doc-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.doc-file-list span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text-secondary);
}

.docs-role-grid {
  display: grid;
  gap: 12px;
}

.docs-role-item {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.docs-role-item strong {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-bg-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(217,119,87,0.12) 0%, transparent 65%);
}

.hero-bg-glow-2 {
  position: absolute;
  bottom: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.07) 0%, transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(217,119,87,0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.hero-title-sub {
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-stat-value span { color: var(--accent); }

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Pain Points ---------- */
.pain-points { background: var(--bg-surface); }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.pain-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.pain-icon {
  width: 44px;
  height: 44px;
  background: rgba(239,68,68,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.pain-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pain-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.pain-card strong { color: var(--accent); font-weight: 600; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.feature-card:hover {
  border-color: rgba(217,119,87,0.25);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.feature-card:hover::before { opacity: 1; }

.feature-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  opacity: 0.7;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border: 1px solid rgba(217,119,87,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- Screenshots ---------- */
.screenshots { background: var(--bg-surface); }

.screenshot-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.screenshot-tab {
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.15s;
}

.screenshot-tab:hover,
.screenshot-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.screenshot-panels { position: relative; }

.screenshot-panel {
  display: none;
}

.screenshot-panel.active { display: block; }

.screenshot-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.screenshot-titlebar {
  background: #1a2234;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.titlebar-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.titlebar-dot.red    { background: #ff5f57; }
.titlebar-dot.yellow { background: #febc2e; }
.titlebar-dot.green  { background: #28c840; }

.titlebar-url {
  flex: 1;
  background: var(--bg-surface);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin: 0 12px;
}

/* Screenshot placeholder */
.screenshot-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0f1623 0%, #141d2e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.screenshot-placeholder-inner {
  z-index: 1;
  text-align: center;
}

.screenshot-placeholder-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.3;
}

.screenshot-placeholder-text {
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(0,0,0,0.5);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px dashed var(--border-strong);
}

.screenshot-caption {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

/* ---------- Multi-Agent ---------- */
.agents { background: var(--bg-base); }

.agent-diagram {
  margin-top: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

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

.agent-user {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.agent-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid;
}

.agent-box.user {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.3);
  color: #60a5fa;
}

.agent-box.orchestrator {
  background: var(--accent-glow);
  border-color: rgba(217,119,87,0.35);
  color: var(--accent);
  font-size: 15px;
}

.agent-box.specialist {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--text-secondary);
  font-size: 13px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  min-width: 100px;
  text-align: center;
}

.agent-box.specialist .spec-icon { font-size: 22px; }
.agent-box.specialist .spec-label { font-size: 11px; line-height: 1.4; }

.agent-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  color: var(--text-muted);
  font-size: 20px;
}

.agent-arrow-line {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.agent-arrow-line::after {
  content: '';
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.agent-specialists {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.agent-skills-note {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.agent-orchestrator-wrapper {
  display: flex;
  justify-content: center;
  margin: 0;
}

/* ---------- Observability ---------- */
.obs { background: var(--bg-surface); }

.obs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.obs-table th {
  background: var(--bg-card);
  padding: 14px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.obs-table td {
  padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.obs-table tr:last-child td { border-bottom: none; }

.obs-table tr:hover td { background: var(--bg-card-hover); }

.obs-table td:first-child { color: var(--text-primary); font-weight: 600; }
.obs-table td:nth-child(2) { color: var(--text-secondary); }
.obs-table td:nth-child(3) { color: var(--text-muted); font-family: var(--font-mono); font-size: 12px; }

.obs-pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.badge-metrics { background: rgba(34,197,94,0.1);  color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
.badge-traces  { background: rgba(59,130,246,0.1);  color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.badge-logs    { background: rgba(168,85,247,0.1);  color: #c084fc; border: 1px solid rgba(168,85,247,0.2); }
.badge-db      { background: rgba(217,119,87,0.1);  color: var(--accent); border: 1px solid rgba(217,119,87,0.2); }
.badge-infra   { background: rgba(20,184,166,0.1);  color: #2dd4bf; border: 1px solid rgba(20,184,166,0.2); }

.obs-note {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-muted);
}

.obs-note strong { color: var(--accent); }

/* ---------- Scenarios ---------- */
.scenarios { background: var(--bg-base); }

.scenario-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.scenario-tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  margin-bottom: -1px;
  white-space: nowrap;
  font-family: var(--font);
}

.scenario-tab:hover { color: var(--text-secondary); }

.scenario-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.scenario-panel { display: none; }
.scenario-panel.active { display: block; }

.scenario-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.scenario-left h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.scenario-left .scenario-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.scenario-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scenario-tag {
  font-size: 12px;
  padding: 3px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
}

.scenario-terminal {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
}

.terminal-header {
  background: #1a2234;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.terminal-header .dot { width: 10px; height: 10px; border-radius: 50%; }

.terminal-body {
  padding: 20px 20px;
  white-space: pre-wrap;
  word-break: break-all;
}

.t-muted   { color: #4f617a; }
.t-prompt  { color: var(--accent); }
.t-user    { color: #c0cfe8; }
.t-label   { color: var(--accent); font-weight: 600; }
.t-step    { color: #60a5fa; }
.t-ok      { color: #22c55e; }
.t-warn    { color: #eab308; }
.t-error   { color: #ef4444; }
.t-dim     { color: #3d4f66; }
.t-result  { color: #e8edf5; }
.t-time    { color: #8a9ab8; font-size: 11px; }
.t-root    { color: #c084fc; font-weight: 600; }

/* ---------- ROI ---------- */
.roi { background: var(--bg-surface); }

.roi-table-wrap {
  margin-top: 48px;
  overflow-x: auto;
}

.roi-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.roi-table th {
  padding: 14px 24px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.roi-table th:last-child { color: var(--accent); }

.roi-table td {
  padding: 16px 24px;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

.roi-table tr:last-child td { border-bottom: none; }
.roi-table tr:hover td { background: var(--bg-card-hover); }

.roi-table td:first-child { color: var(--text-secondary); font-weight: 500; }
.roi-table td:nth-child(2) { color: var(--text-muted); }
.roi-table td:last-child { color: var(--text-primary); font-weight: 600; }

.roi-highlight { color: var(--accent) !important; }

.value-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s;
}

.value-card:hover {
  border-color: rgba(217,119,87,0.2);
  transform: translateY(-2px);
}

.value-card-icon { font-size: 28px; margin-bottom: 14px; }

.value-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Tech ---------- */
.tech { background: var(--bg-base); }

.tech-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.tech-card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.tech-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.tech-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- Roadmap ---------- */
.roadmap { background: var(--bg-surface); }

.roadmap-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.roadmap-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.roadmap-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  margin-top: 5px;
}

.roadmap-dot.soon     { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow-strong); }
.roadmap-dot.planned  { background: var(--blue); }
.roadmap-dot.future   { background: var(--text-muted); }

.roadmap-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.roadmap-item strong { color: var(--text-primary); font-weight: 600; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-base); position: relative; overflow: hidden; }

.contact::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-left .section-title { max-width: 440px; }

.contact-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 400px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item-body { display: flex; flex-direction: column; gap: 2px; }

.contact-item-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.contact-item-value {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-item-value a {
  color: var(--text-primary);
  transition: color 0.15s;
}

.contact-item-value a:hover { color: var(--accent); }

/* WeChat QR */
.contact-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.qr-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.qr-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.qr-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* QR placeholder */
.qr-img-wrap {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}

.qr-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trial-card {
  background: linear-gradient(135deg, rgba(217,119,87,0.12), rgba(217,119,87,0.04));
  border: 1px solid rgba(217,119,87,0.2);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
}

.trial-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.trial-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ---------- Footer ---------- */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ---------- Scroll Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Light Theme Overrides ---------- */
.docs-primary,
.docs-side-card,
.docs-bottom-card {
  background: linear-gradient(180deg, rgba(255,253,249,0.98), rgba(251,244,236,0.98));
}

.docs-badge.published {
  color: #18794e;
}

.docs-outline-item,
.manual-list li,
.doc-file-list span,
.docs-role-item {
  background: rgba(122,89,67,0.05);
  border: 1px solid rgba(122,89,67,0.1);
}

.manual-group + .manual-group {
  border-top: 1px solid rgba(122,89,67,0.1);
}

.hero-bg-grid {
  background-image:
    linear-gradient(rgba(122,89,67,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,89,67,0.08) 1px, transparent 1px);
}

.screenshot-frame {
  box-shadow: 0 24px 64px rgba(76,55,40,0.12);
}

.screenshot-titlebar,
.terminal-header {
  background: #eadfd2;
}

.titlebar-url {
  background: #fff7ef;
}

.screenshot-placeholder {
  background: linear-gradient(135deg, #f5ede4 0%, #efe3d3 100%);
}

.screenshot-placeholder-text {
  color: #7f6c5e;
  background: rgba(255,250,245,0.92);
}

.agent-box.user {
  color: #2563eb;
}

.badge-traces {
  color: #2563eb;
}

.badge-logs {
  color: #8b5cf6;
}

.badge-infra {
  color: #0f766e;
}

.scenario-terminal {
  background: #fffaf5;
}

.t-muted {
  color: #9b8a7d;
}

.t-user,
.t-result {
  color: #2d221c;
}

.t-step {
  color: #2563eb;
}

.t-dim {
  color: #b8aa9f;
}

.t-time {
  color: #8f7f73;
}

.t-root {
  color: #8b5cf6;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }

  .scenario-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .docs-grid,
  .docs-bottom { grid-template-columns: 1fr; }
  .docs-side-card { position: static; }

  .hero-stats { gap: 32px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }

  /* 英雄区数字统计：2列对齐，避免换行混乱 */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
  }
  .hero-stat-value { font-size: 26px; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-desc { font-size: 16px; }

  /* 截图区图片自适应宽度 */
  .screenshot-frame img {
    width: 100%;
    height: auto;
    display: block;
  }
  .screenshot-tabs {
    gap: 6px;
  }
  .screenshot-tab {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* 可观测性表格横向滚动 */
  .obs-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .obs-table {
    min-width: 560px;
  }

  /* 多代理架构图：specialist 卡片缩小，允许2列布局 */
  .agent-specialists {
    gap: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .agent-box.specialist {
    min-width: unset;
    width: 100%;
    padding: 10px 6px;
  }
  .agent-box.specialist .spec-label { font-size: 10px; }

  .docs-primary,
  .docs-side-card,
  .docs-bottom-card {
    padding: 22px;
  }
  .docs-primary h3,
  .docs-side-card h3 {
    font-size: 24px;
  }
  .manual-list li {
    align-items: flex-start;
    flex-direction: column;
  }
  .doc-file-list span {
    width: 100%;
    border-radius: var(--radius-md);
  }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
