/* ============================================================
   奔熠·云 T&V — white-themed product page
   ============================================================ */

:root {
  /* color */
  --bg: #ffffff;
  --bg-soft: #f7fafd;
  --bg-tint: #eef4fb;
  --surface: #ffffff;
  --ink: #0b1f3d;
  --ink-2: #203a5e;
  --muted: #5f7590;
  --muted-2: #8598b0;
  --line: #e6ecf4;
  --line-strong: #d6dee9;

  --brand: #2f6fd6;
  --brand-deep: #1d4f9e;
  --brand-soft: #eaf1fc;
  --brand-softer: #f3f7fd;

  --ok: #10a075;
  --ok-soft: #e4f5ee;
  --warn: #e09432;
  --warn-soft: #fdf2e3;
  --info: #2f6fd6;

  /* radius */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* shadow */
  --sh-sm: 0 2px 8px rgba(15, 40, 80, 0.04);
  --sh-md: 0 10px 28px rgba(15, 40, 80, 0.06);
  --sh-lg: 0 24px 60px rgba(15, 40, 80, 0.08);
  --sh-card: 0 1px 0 rgba(15, 40, 80, 0.04), 0 18px 40px rgba(15, 40, 80, 0.06);

  /* layout */
  --max: 1200px;
  --pad: 24px;
}

/* ---- reset / base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; border: 0; background: transparent; cursor: pointer; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; color: var(--muted); }

/* ---- page shell ---- */
.page-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
}

.bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(47,111,214,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,111,214,0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 40%, transparent 75%);
}
.bg-orb {
  position: absolute; pointer-events: none; z-index: 0;
  width: 520px; height: 520px; border-radius: 50%;
  filter: blur(80px); opacity: 0.55;
}
.bg-orb-1 { top: -160px; left: -120px; background: radial-gradient(circle, rgba(47,111,214,0.18), transparent 70%); }
.bg-orb-2 { top: 180px; right: -180px; background: radial-gradient(circle, rgba(224,148,50,0.10), transparent 70%); }

.site-header, main, .site-footer {
  position: relative; z-index: 1;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

/* ---- header ---- */
.site-header-wrap {
  position: sticky; top: 0; z-index: 20;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header-wrap.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 6px 24px rgba(15, 40, 80, 0.06);
  border-bottom: 1px solid var(--line);
}
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 22px 0;
  transition: padding .25s ease;
}
.site-header-wrap.is-scrolled .site-header { padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { width: 168px; height: auto; object-fit: contain; }
.brand-text strong { display: block; font-size: 1rem; font-weight: 600; letter-spacing: 0.01em; }
.brand-text span { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }

.site-nav {
  display: flex; gap: 28px; color: var(--muted); font-size: 0.92rem;
}
.site-nav a { transition: color .2s ease; }
.site-nav a:hover { color: var(--brand-deep); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 42px; padding: 0 18px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 0.95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #3b7de3, #1d4f9e);
  color: #fff;
  box-shadow: 0 10px 22px rgba(47,111,214,0.24);
}
.btn-primary:hover { box-shadow: 0 14px 28px rgba(47,111,214,0.32); }
.btn-ghost {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.88rem; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1rem; }

/* ---- hero ---- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 48px; align-items: center;
  padding: 40px 0 64px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 0.78rem; letter-spacing: 0.08em; font-weight: 600;
  text-transform: uppercase;
}
.eyebrow-dot, .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(47,111,214,0.12);
}
.dot-brand { background: var(--brand); }

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.04; font-weight: 700;
}
.accent-underline {
  background: linear-gradient(180deg, transparent 70%, rgba(47,111,214,0.18) 70%, rgba(47,111,214,0.18) 92%, transparent 92%);
  padding: 0 4px;
}
.hero-lead {
  margin: 22px 0 0; max-width: 560px;
  font-size: 1.1rem; line-height: 1.8;
  color: var(--ink-2);
}
.hero-sub {
  margin: 14px 0 0; max-width: 560px;
  font-size: 0.98rem; color: var(--muted);
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 30px;
}
.hero-stats {
  margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-stats .stat strong {
  display: block; font-size: 1.6rem; color: var(--ink);
  font-weight: 700; letter-spacing: -0.02em;
}
.hero-stats .stat span {
  display: block; margin-top: 4px; color: var(--muted); font-size: 0.86rem;
}

/* ---- hero visual (app window mock) ---- */
.hero-visual {
  position: relative; min-width: 0;
}
.app-window {
  position: relative;
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  isolation: isolate;
}
.app-window::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(47,111,214,0.05), transparent 30%);
  pointer-events: none; z-index: 0;
}
.app-window > * { position: relative; z-index: 1; }
.app-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
.app-dots { display: flex; gap: 6px; }
.app-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #e4eaf2;
}
.app-dots span:first-child { background: #f5b8b1; }
.app-dots span:nth-child(2) { background: #f5dfa8; }
.app-dots span:nth-child(3) { background: #b9dfc7; }
.app-path {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line);
  color: var(--muted); font-size: 0.82rem; font-family: "JetBrains Mono", monospace;
}
.app-path svg { color: var(--muted-2); }
.app-chip {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em;
}
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 0 3px rgba(16,160,117,0.18);
}
.chip-pass { background: var(--ok-soft); color: var(--ok); }

.app-body {
  display: grid; grid-template-columns: 180px 1fr;
  min-height: 380px;
}
.app-sidebar {
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  background: #fbfcfe;
}
.app-section-label {
  font-size: 0.7rem; letter-spacing: 0.12em; color: var(--muted-2);
  text-transform: uppercase; margin-bottom: 10px;
}
.app-section-label.mt { margin-top: 22px; }
.app-nav { display: flex; flex-direction: column; gap: 4px; }
.app-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-xs);
  color: var(--muted); font-size: 0.88rem;
}
.app-nav-item.active {
  background: var(--brand-soft); color: var(--brand-deep); font-weight: 600;
}
.app-nav-item svg { flex: 0 0 auto; color: currentColor; }

.app-run-card {
  padding: 12px; border-radius: var(--r-sm);
  background: #fff; border: 1px solid var(--line);
}
.run-title { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.run-meta { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.run-progress {
  margin-top: 10px; height: 6px; border-radius: var(--r-pill);
  background: #edf2f8; overflow: hidden;
}
.run-progress span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #5c93ea);
  animation: pulse-bar 2.4s ease-in-out infinite;
}
@keyframes pulse-bar {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.6; }
}

.app-main { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.app-main-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.app-main-title { font-weight: 600; font-size: 0.96rem; color: var(--ink); }
.app-main-sub { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

.app-segmented {
  display: inline-flex; padding: 3px; border-radius: var(--r-pill);
  background: #eef2f8; border: 1px solid var(--line);
}
.seg {
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: 0.78rem; color: var(--muted); font-weight: 500;
}
.seg.active { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }

.app-chart {
  position: relative;
  padding: 6px 0 0;
}
.chart-svg { width: 100%; height: 170px; display: block; }
.chart-path {
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  animation: draw 2.2s ease-out forwards;
}
.chart-path.chart-sim { animation-delay: 0.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.chart-legend {
  display: flex; gap: 16px; margin-top: 6px;
  font-size: 0.8rem; color: var(--muted);
}
.chart-legend i {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 6px; vertical-align: middle;
}
.chart-legend .dashed { border-radius: 0; height: 2px; width: 14px; background: var(--muted-2); }
.dot-muted { background: var(--muted-2); }
.dot-warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(224,148,50,0.18); }

.app-events {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.app-events-title {
  font-size: 0.78rem; letter-spacing: 0.1em; color: var(--muted-2);
  text-transform: uppercase; margin-bottom: 8px;
}
.event-item {
  display: grid; grid-template-columns: 56px 64px 1fr; gap: 10px;
  align-items: center; padding: 6px 0;
  font-size: 0.86rem; color: var(--ink-2);
}
.event-item.highlight {
  background: linear-gradient(90deg, var(--warn-soft), transparent);
  padding: 6px 8px; margin: 0 -8px; border-radius: var(--r-xs);
}
.event-time { font-family: "JetBrains Mono", monospace; font-size: 0.78rem; color: var(--muted); }
.event-tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 2px 8px; border-radius: var(--r-pill);
  text-align: center;
}
.tag-pass { background: var(--ok-soft); color: var(--ok); }
.tag-info { background: var(--brand-soft); color: var(--brand-deep); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }

/* floating cards beside the window */
.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  animation: float 5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 0.92rem; color: var(--ink); font-weight: 600; }
.float-card span { display: block; font-size: 0.76rem; color: var(--muted); }
.float-icon {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-pass { background: var(--ok-soft); color: var(--ok); }
.icon-warn { background: var(--warn-soft); color: var(--warn); }
.float-card-1 { top: 18%; left: -36px; animation-delay: 0s; }
.float-card-2 { bottom: 12%; right: -24px; animation-delay: 1.2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---- trust strip ---- */
.trust-strip {
  margin: 20px 0 60px;
  padding: 22px 24px;
  border-radius: var(--r-lg);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
}
.trust-label {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.trust-items { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line);
  font-size: 0.85rem; color: var(--ink-2);
}
.trust-tag svg { color: var(--brand); }

/* ---- sections ---- */
.section { padding: 72px 0; }
.section-head { max-width: 780px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-index {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem; letter-spacing: 0.08em;
  color: var(--brand); margin-bottom: 14px; text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08; font-weight: 700;
}
.section-sub {
  margin-top: 16px; font-size: 1.04rem; line-height: 1.78;
  color: var(--muted);
}
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---- problems ---- */
.problem-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.problem-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.problem-card:hover {
  transform: translateY(-4px); box-shadow: var(--sh-md); border-color: #cdd9ea;
}
.problem-illus {
  height: 80px; display: flex; align-items: center; justify-content: flex-start;
  margin-bottom: 14px;
}
.problem-badge {
  display: inline-block; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em;
}
.problem-card h3 {
  font-size: 1.08rem; margin: 12px 0 8px; line-height: 1.4;
}
.problem-card p { font-size: 0.92rem; line-height: 1.75; }

/* ---- product showcase ---- */
.product-section {
  padding: 80px 32px;
  background: linear-gradient(180deg, #fafcfe 0%, #f3f7fd 100%);
  border-radius: var(--r-xl);
  margin: 20px 0;
}
.showcase {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 28px; align-items: flex-start;
}
.showcase-tabs {
  display: flex; flex-direction: column; gap: 8px;
}
.tab {
  text-align: left;
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px;
  padding: 16px 18px; border-radius: var(--r-md);
  border: 1px solid transparent;
  background: transparent;
  transition: background .2s ease, border-color .2s ease;
}
.tab:hover { background: #fff; border-color: var(--line); }
.tab.active {
  background: #fff; border-color: #cde0fa;
  box-shadow: 0 10px 28px rgba(29, 79, 158, 0.08);
}
.tab-num {
  grid-row: span 2;
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-deep);
  font-family: "JetBrains Mono", monospace; font-weight: 600; font-size: 0.86rem;
}
.tab.active .tab-num { background: linear-gradient(135deg, var(--brand), #4b8cf2); color: #fff; }
.tab-label { font-weight: 600; color: var(--ink); font-size: 1rem; }
.tab-sub { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }

.showcase-panels {
  position: relative; min-height: 460px;
}
.panel {
  display: none;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px; align-items: center;
  animation: fadeUp .4s ease both;
}
.panel.active { display: grid; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.panel-text h3 {
  font-size: 1.5rem; margin-bottom: 12px; font-weight: 700;
}
.panel-text p { font-size: 1rem; line-height: 1.8; color: var(--ink-2); }
.panel-checklist { list-style: none; padding: 18px 0 0; margin: 0; }
.panel-checklist li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 0.95rem; color: var(--ink-2);
}
.panel-checklist .ck { color: var(--ok); flex: 0 0 auto; }

.panel-visual .mini-app {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px;
  box-shadow: var(--sh-md);
}
.mini-app-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.crumbs { font-size: 0.86rem; color: var(--muted); }
.status-pill {
  font-size: 0.76rem; font-weight: 600; padding: 4px 10px;
  border-radius: var(--r-pill);
}
.status-pill.ok { background: var(--ok-soft); color: var(--ok); }
.status-pill.warn { background: var(--warn-soft); color: var(--warn); }
.status-pill.live {
  background: rgba(47,111,214,0.08); color: var(--brand-deep);
  letter-spacing: 0.06em;
}

/* Checklist (PRE) */
.checklist { display: flex; flex-direction: column; gap: 8px; }
.cl-row {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-sm);
  background: #fafcfe; border: 1px solid var(--line);
  font-size: 0.9rem;
}
.cl-row.ok .cl-ic { background: var(--ok-soft); color: var(--ok); }
.cl-row.warn { background: var(--warn-soft); border-color: #f2d6a8; }
.cl-row.warn .cl-ic { background: #fff; color: var(--warn); }
.cl-ic {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.cl-ver {
  font-family: "JetBrains Mono", monospace; font-size: 0.78rem;
  color: var(--muted); padding: 2px 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
}

/* Timeline (IN) */
.timeline { display: flex; flex-direction: column; gap: 2px; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 14px; bottom: 14px;
  left: 78px; width: 2px; background: var(--line);
}
.tl-row {
  display: grid; grid-template-columns: 72px 14px 1fr;
  align-items: center; gap: 10px; padding: 8px 0;
  position: relative;
}
.tl-t { font-family: "JetBrains Mono", monospace; font-size: 0.8rem; color: var(--muted); }
.tl-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--line-strong); margin-left: 1px;
  box-shadow: 0 0 0 4px #fff;
  position: relative; z-index: 1;
}
.tl-dot.ok { background: var(--ok); box-shadow: 0 0 0 4px #fff, 0 0 0 7px rgba(16,160,117,0.12); }
.tl-dot.info { background: var(--brand); box-shadow: 0 0 0 4px #fff, 0 0 0 7px rgba(47,111,214,0.12); }
.tl-dot.warn { background: var(--warn); box-shadow: 0 0 0 4px #fff, 0 0 0 7px rgba(224,148,50,0.18); }
.tl-row strong { display: block; font-size: 0.94rem; font-weight: 600; color: var(--ink); }
.tl-row span { display: block; font-size: 0.82rem; color: var(--muted); }
.tl-row.current {
  background: var(--warn-soft); border-radius: var(--r-sm);
  padding: 10px 12px; margin: 2px -12px;
  grid-template-columns: 60px 14px 1fr;
}
.tl-row.current .tl-t { color: var(--warn); }

/* Compare chart (POST) */
.compare-chart { position: relative; padding: 4px 0; }
.compare-chart svg { width: 100%; height: 180px; display: block; }
.metric-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 10px;
}
.metric-pill {
  padding: 10px 12px; border-radius: var(--r-sm);
  background: #fafcfe; border: 1px solid var(--line);
  text-align: left;
}
.metric-pill span { display: block; font-size: 0.76rem; color: var(--muted); }
.metric-pill strong {
  display: block; font-size: 1.1rem; color: var(--ink);
  font-family: "JetBrains Mono", monospace; font-weight: 600;
}

/* Trace graph (TRACE) */
.trace-graph { position: relative; padding: 4px 0; }
.trace-graph svg { width: 100%; height: 240px; display: block; }

/* ---- capabilities ---- */
.capability-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.cap-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.cap-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(47,111,214,0.04), transparent 60%);
  opacity: 0; transition: opacity .25s ease;
}
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: #cdd9ea; }
.cap-card:hover::before { opacity: 1; }
.cap-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), #4b8cf2);
  color: #fff; box-shadow: 0 10px 20px rgba(47,111,214,0.22);
  margin-bottom: 16px;
}
.cap-tag {
  display: inline-block; padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.cap-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.cap-card p { font-size: 0.92rem; line-height: 1.75; }
.cap-meta {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px;
  padding-top: 16px; border-top: 1px dashed var(--line);
}
.cap-meta span {
  font-size: 0.76rem; color: var(--muted);
  padding: 3px 10px; border-radius: var(--r-pill);
  background: #f5f8fc;
}

/* ---- workflow ---- */
.workflow-section { padding-bottom: 80px; }
.flow-board {
  margin-top: 32px; padding: 40px 32px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, #fafcfe, #f3f7fd);
  border: 1px solid var(--line);
}
.flow-row {
  display: grid; grid-template-columns: 1fr 36px 1fr 36px 1fr 36px 1fr;
  gap: 0; align-items: center;
}
.flow-node {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  box-shadow: var(--sh-sm);
}
.flow-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-deep);
  margin-bottom: 6px;
}
.flow-node strong { font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.flow-node span { font-size: 0.8rem; color: var(--muted); }
.flow-arrow { color: var(--muted-2); display: flex; align-items: center; justify-content: center; }

.flow-connector {
  position: relative; height: 30px;
  margin-top: -6px;
}
.flow-connector svg { width: 100%; height: 100%; display: block; }

.flow-band {
  display: grid; grid-template-columns: 60px 1fr auto;
  align-items: center; gap: 20px;
  padding: 20px 22px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #1d4f9e, #2f6fd6);
  color: #fff; box-shadow: 0 20px 48px rgba(29, 79, 158, 0.2);
}
.flow-band-ic {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.flow-band-text strong { display: block; font-size: 1.06rem; font-weight: 600; }
.flow-band-text span { display: block; font-size: 0.88rem; color: rgba(231, 240, 253, 0.82); margin-top: 2px; }
.flow-band-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.flow-chip {
  padding: 5px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.14); color: #fff;
  font-size: 0.78rem; font-weight: 500;
}

.flow-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-top: 28px;
}
.flow-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px;
}
.flow-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 0.82rem; font-weight: 700;
  font-family: "JetBrains Mono", monospace;
}
.flow-step h4 { font-size: 1rem; font-weight: 600; margin: 12px 0 8px; }
.flow-step p { font-size: 0.88rem; line-height: 1.7; }

/* ---- metrics ---- */
.metric-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.metric-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 8px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.metric-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.metric-top { display: flex; justify-content: space-between; align-items: center; }
.metric-label { font-size: 0.88rem; color: var(--muted); }
.metric-delta {
  font-size: 0.78rem; font-weight: 600; padding: 3px 10px;
  border-radius: var(--r-pill);
}
.metric-delta.down { background: var(--ok-soft); color: var(--ok); }
.metric-delta.up { background: var(--ok-soft); color: var(--ok); }
.metric-value {
  font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  display: flex; align-items: baseline; gap: 8px;
}
.metric-unit {
  font-family: Inter, "PingFang SC", sans-serif;
  font-size: 0.92rem; font-weight: 500; color: var(--muted);
  letter-spacing: normal;
}
.spark { width: 100%; height: 38px; display: block; margin-top: 4px; }
.metric-foot { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

/* ---- scenarios ---- */
.scenario-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.scenario-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; transition: transform .25s ease, box-shadow .25s ease;
}
.scenario-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.scenario-illus {
  height: 120px; border-radius: var(--r-md); margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f3f7fd, #eaf1fc);
}
.sc-illus-2 { background: linear-gradient(135deg, #f7f4ee, #fbe8d0); }
.sc-illus-3 { background: linear-gradient(135deg, #eef4fb, #e6effc); }
.scenario-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.scenario-card p { font-size: 0.93rem; line-height: 1.75; }
.scenario-list { list-style: none; padding: 0; margin: 16px 0 0; }
.scenario-list li {
  position: relative; padding-left: 18px;
  font-size: 0.88rem; color: var(--ink-2); line-height: 1.8;
}
.scenario-list li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
}

/* ---- integration ---- */
.integration-diagram {
  padding: 20px; border-radius: var(--r-xl);
  background: linear-gradient(180deg, #fafcfe, #f3f7fd);
  border: 1px solid var(--line); margin: 20px 0;
}
.integration-diagram svg { width: 100%; height: auto; max-height: 360px; }
.integration-notes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 20px;
}
.int-note {
  padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff;
}
.int-note strong { display: block; font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.int-note span { display: block; font-size: 0.9rem; color: var(--muted); line-height: 1.75; }

/* ---- FAQ ---- */
.faq-list {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 820px;
}
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item[open] { border-color: #cde0fa; box-shadow: var(--sh-sm); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px;
  font-size: 1rem; font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative; width: 14px; height: 14px; flex: 0 0 auto;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--muted);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.faq-icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faq-icon::after { top: 0; left: 6px; width: 2px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item p {
  padding: 0 22px 20px;
  font-size: 0.95rem; line-height: 1.8; color: var(--ink-2);
}

/* ---- CTA ---- */
.cta-section {
  margin: 60px 0 40px;
  padding: 60px 32px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(135deg, #14386b, #1d4f9e 55%, #2f6fd6);
  color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.12); color: #d9e8ff;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.cta-eyebrow .dot-brand { box-shadow: 0 0 0 4px rgba(138, 180, 255, 0.24); background: #8ab4ff; }
.cta-section h2 {
  margin-top: 18px;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem); color: #fff; line-height: 1.15;
}
.cta-section p {
  margin-top: 16px; color: rgba(231, 240, 253, 0.88);
  font-size: 1.04rem;
}
.cta-actions {
  margin-top: 28px;
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.cta-section .btn-primary {
  background: #fff; color: var(--brand-deep);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}
.cta-section .btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.24);
}
.cta-section .btn-ghost:hover { border-color: #fff; color: #fff; }
.cta-trust {
  margin-top: 22px;
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  color: rgba(231, 240, 253, 0.72); font-size: 0.86rem;
}

/* ---- footer ---- */
.site-footer {
  padding: 48px 0 40px;
  display: block;
  text-align: left;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.footer-main {
  display: grid; grid-template-columns: 1.1fr 2fr; gap: 40px;
}
.footer-brand .footer-logo { width: 168px; }
.footer-tagline {
  margin: 14px 0 0; color: var(--muted);
  font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.footer-columns {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.footer-head {
  font-size: 0.82rem; letter-spacing: 0.1em; color: var(--muted-2);
  text-transform: uppercase; margin-bottom: 14px; font-weight: 600;
}
.footer-columns a, .footer-columns span {
  display: block; font-size: 0.9rem; color: var(--ink-2);
  padding: 4px 0;
}
.footer-columns a:hover { color: var(--brand-deep); }
.footer-note { color: var(--muted); font-size: 0.82rem; }
.footer-icp {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 18px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.footer-icp a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  transition: color .2s ease;
}
.footer-icp a:hover { color: var(--brand-deep); }

/* ---- reveal ---- */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 640px; }
  .float-card-1 { left: -12px; }
  .float-card-2 { right: -12px; }
  .problem-grid, .capability-grid, .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase { grid-template-columns: 1fr; }
  .showcase-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .showcase-tabs .tab { min-width: 200px; }
  .panel { grid-template-columns: 1fr; }
  .flow-row { grid-template-columns: 1fr; gap: 10px; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; padding: 4px 0; }
  .flow-connector { display: none; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .integration-notes { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .site-header { flex-wrap: wrap; gap: 12px; }
  .site-nav { order: 3; width: 100%; gap: 18px; overflow-x: auto; padding-bottom: 4px; }
  .trust-strip { flex-direction: column; align-items: flex-start; }
  .flow-band { grid-template-columns: 1fr; text-align: left; }
  .flow-band-ic { margin-bottom: 4px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-stats .stat strong { font-size: 1.3rem; }
  .app-body { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .footer-columns { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .scenario-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header, main, .site-footer {
    width: min(calc(100% - 24px), var(--max));
  }
  .section { padding: 48px 0; }
  .problem-grid, .capability-grid, .metric-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr; }
  .product-section { padding: 48px 18px; }
  .hero { padding: 24px 0 40px; }
  .hero h1 { font-size: 2.5rem; }
  .cta-section { padding: 42px 22px; }
  .cta-section h2 { font-size: 1.7rem; }
  .footer-columns { grid-template-columns: 1fr; }
  .float-card-1, .float-card-2 { display: none; }
}
