:root {
  color-scheme: dark;
  --bg: #080b16;
  --panel: rgba(17, 22, 40, .82);
  --line: rgba(255, 255, 255, .08);
  --muted: #8e98b3;
  --text: #f5f7ff;
  --purple: #7d5cff;
  --blue: #327df6;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; color: var(--text); background: radial-gradient(circle at 78% 0%, rgba(67, 53, 146, .18), transparent 34%), var(--bg); }
button, input { font: inherit; }
button { color: inherit; }
.ambient { position: fixed; width: 420px; height: 420px; border-radius: 50%; filter: blur(120px); pointer-events: none; opacity: .15; }
.ambient-one { top: 12%; right: 4%; background: #744aff; }
.ambient-two { bottom: -10%; left: 20%; background: #177fe9; }

.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 230px minmax(0, 1fr); width: min(1500px, 100%); min-height: 100vh; margin: auto; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 30px 20px; border-right: 1px solid var(--line); background: rgba(7, 10, 20, .72); backdrop-filter: blur(18px); }
.brand { display: flex; gap: 12px; align-items: center; margin: 0 8px 44px; color: inherit; text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .02em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.brand-mark { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #8669ff, #2b6cf5); box-shadow: 0 8px 28px rgba(83, 83, 244, .34); }
.brand-mark i { position: absolute; width: 16px; height: 2px; border-radius: 2px; background: white; transform: rotate(-35deg); }
.brand-mark i:first-child { transform: translateY(-5px) rotate(-35deg); }
.brand-mark i:last-child { transform: translateY(5px) rotate(-35deg); }
nav { display: grid; gap: 7px; }
.nav-item { display: flex; gap: 12px; align-items: center; width: 100%; padding: 11px 13px; border: 0; border-radius: 10px; color: #838da7; background: transparent; text-align: left; cursor: pointer; transition: .2s ease; }
.nav-item:hover { color: white; background: rgba(255,255,255,.04); }
.nav-item.active { color: white; background: linear-gradient(90deg, rgba(117, 86, 255, .22), rgba(66, 90, 225, .08)); box-shadow: inset 2px 0 #8367ff; }
.nav-icon { display: grid; place-items: center; width: 23px; height: 23px; color: #9584ff; font-size: 17px; }
.sidebar-note { margin-top: auto; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.sidebar-note strong { display: block; margin: 9px 0 5px; font-size: 12px; }
.sidebar-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.live-dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: #43dca5; box-shadow: 0 0 0 5px rgba(67,220,165,.1), 0 0 18px #43dca5; }

main { min-width: 0; padding: 29px clamp(24px, 4vw, 62px) 34px; }
.topbar, .intro-card, .panel-heading, .signal-heading, .top-actions, .range-switch, .filter-row, .chart-caption, footer { display: flex; align-items: center; justify-content: space-between; }
.topbar { margin-bottom: 28px; }
.eyebrow, .section-kicker { margin: 0 0 6px; color: #8271ee; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; }
.top-actions { gap: 10px; }
.sample-badge { padding: 7px 11px; border: 1px solid rgba(62, 213, 163, .23); border-radius: 99px; color: #62dab3; background: rgba(41, 175, 135, .08); font-size: 11px; }
.refresh { padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px; color: #c6cce0; background: rgba(255,255,255,.03); font-size: 12px; cursor: pointer; }
.refresh span { display: inline-block; margin-right: 5px; }
.refresh:hover { border-color: rgba(125,92,255,.5); color: white; }
.refresh.loading span { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.intro-card { gap: 30px; padding: clamp(24px, 4vw, 40px); overflow: hidden; border: 1px solid rgba(125, 92, 255, .18); border-radius: 22px; background: radial-gradient(circle at 84% 18%, rgba(89, 62, 204, .28), transparent 32%), linear-gradient(120deg, rgba(27, 31, 55, .94), rgba(16, 20, 37, .78)); box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.intro-card > div:first-child { max-width: 720px; }
.pill { display: inline-flex; padding: 6px 10px; border: 1px solid rgba(150,126,255,.22); border-radius: 99px; color: #b8aaff; background: rgba(125,92,255,.08); font-size: 11px; }
.intro-card h2 { max-width: 670px; margin: 16px 0 9px; font-size: clamp(24px, 3vw, 40px); line-height: 1.22; letter-spacing: -.045em; }
.intro-card p { max-width: 690px; margin: 0; color: #a4aec5; font-size: 14px; line-height: 1.8; }
.runtime-live { display: grid; grid-template-columns: 8px auto; gap: 4px 9px; min-width: 150px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 13px; background: rgba(4,6,13,.35); }
.runtime-live .live-dot { grid-row: 1 / 3; align-self: center; }
.runtime-live small, .runtime-live strong { display: block; }
.runtime-live small { color: var(--muted); font-size: 9px; }
.runtime-live strong { font-size: 12px; }
.range-switch { flex: 0 0 auto; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: rgba(4,6,13,.35); }
.range-switch button, .filter-row button { border: 0; border-radius: 7px; color: #8993ad; background: transparent; font-size: 11px; cursor: pointer; }
.range-switch button { padding: 8px 11px; }
.range-switch button.active, .filter-row button.active { color: white; background: rgba(125,92,255,.22); }

.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 54px; }
.capability-card { position: relative; min-height: 250px; padding: 23px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, rgba(20,25,45,.94), rgba(13,17,31,.86)); box-shadow: 0 16px 50px rgba(0,0,0,.14); }
.capability-card::after { content: ''; position: absolute; top: -70px; right: -70px; width: 150px; height: 150px; border-radius: 50%; background: rgba(117,92,255,.11); filter: blur(28px); pointer-events: none; }
.capability-number { position: absolute; top: 20px; right: 21px; color: #555e75; font: 700 9px/1 ui-monospace, monospace; }
.capability-card .capability-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px; border-radius: 11px; color: #b4a8ff; background: rgba(125,92,255,.13); font-size: 12px; font-weight: 700; }
.capability-card h3 { margin: 0 0 9px; font-size: 16px; }
.capability-card > p { min-height: 50px; margin: 0 0 15px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.card-action { padding: 7px 10px; border: 1px solid rgba(125,92,255,.28); border-radius: 8px; color: #b9afff; background: rgba(125,92,255,.08); font-size: 10px; cursor: pointer; }
.card-action:hover { border-color: rgba(125,92,255,.55); background: rgba(125,92,255,.15); }
.card-action:disabled { opacity: .55; cursor: wait; }
.capability-result { position: absolute; right: 20px; bottom: 19px; left: 20px; display: flex; gap: 7px; align-items: center; color: #7d879f; font-size: 9px; }
.capability-result i { width: 6px; height: 6px; border-radius: 50%; background: #6c7488; }
.capability-result.ok { color: #58cda7; }
.capability-result.ok i { background: #43dca5; box-shadow: 0 0 10px rgba(67,220,165,.7); }
.capability-result.error { color: #ed8794; }
.capability-result.error i { background: #ed6376; }
.release-track, .boundary { display: flex; gap: 8px; align-items: center; color: #929bb1; font-size: 9px; }
.release-track span { padding: 5px 7px; border-radius: 6px; background: rgba(255,255,255,.04); }
.release-track i { width: 10px; height: 1px; background: #5f6680; }
.boundary span { flex: 1; padding: 9px; border: 1px solid rgba(125,92,255,.17); border-radius: 8px; text-align: center; }
.boundary span + span { border-color: rgba(255,255,255,.06); color: #646d82; }
.open-platform-bridge { position: relative; display: grid; grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr); gap: 34px; align-items: center; margin: -34px 0 54px; padding: 27px 29px 42px; overflow: hidden; border: 1px solid rgba(75,211,190,.18); border-radius: 18px; background: radial-gradient(circle at 88% 0%, rgba(43,178,160,.13), transparent 42%), linear-gradient(145deg, rgba(20,28,45,.94), rgba(12,17,29,.9)); }
.open-platform-bridge::after { position: absolute; right: -80px; bottom: -100px; width: 220px; height: 220px; border-radius: 50%; background: rgba(61,108,226,.09); filter: blur(45px); content: ''; pointer-events: none; }
.bridge-copy { position: relative; z-index: 1; }
.bridge-copy h2 { margin: 8px 0 9px; font-size: clamp(18px, 2.2vw, 26px); line-height: 1.3; letter-spacing: -.03em; }
.bridge-copy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.bridge-copy code { color: #99aaff; font: inherit; }
.bridge-flow { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) 18px minmax(0,1.15fr) 18px minmax(0,1fr); gap: 7px; align-items: center; }
.bridge-flow > div { min-width: 0; padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(3,6,12,.42); }
.bridge-flow > div.same-code { border-color: rgba(125,92,255,.24); background: rgba(125,92,255,.08); }
.bridge-flow small, .bridge-flow strong, .bridge-flow span { display: block; }
.bridge-flow small { color: #66748d; font: 700 8px/1 ui-monospace, monospace; letter-spacing: .11em; }
.bridge-flow strong { margin-top: 8px; font-size: 11px; }
.bridge-flow span { margin-top: 5px; color: #78849a; font-size: 9px; line-height: 1.4; }
.bridge-flow > i { color: #6977ae; font: normal 14px/1 ui-monospace, monospace; text-align: center; }
.bridge-status { right: 28px; bottom: 16px; left: 28px; }
.scenario-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 18px; scroll-margin-top: 24px; }
.scenario-heading h2 { margin: 0 0 7px; font-size: clamp(22px, 3vw, 31px); }
.scenario-heading p { margin: 0; color: var(--muted); font-size: 11px; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.metric-card, .panel { border: 1px solid var(--line); background: var(--panel); box-shadow: 0 16px 50px rgba(0,0,0,.16); backdrop-filter: blur(15px); }
.metric-card { padding: 20px; border-radius: 15px; animation: rise .55s both; animation-delay: var(--delay); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.metric-card > span { color: var(--muted); font-size: 11px; }
.metric-card > strong { display: block; margin: 10px 0 8px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; }
.metric-card small { color: #6a94ff; font-size: 11px; }
.metric-card small.good { color: #46d3a5; }
.metric-card em { margin-left: 3px; color: #68728a; font-style: normal; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr); gap: 18px; }
.panel { min-width: 0; padding: 22px; border-radius: 17px; }
.panel-heading { gap: 16px; margin-bottom: 20px; }
.panel h3 { margin: 0; font-size: 16px; }
.muted { color: var(--muted); font-size: 11px; }
.chart-wrap { display: grid; grid-template-columns: 27px 1fr; gap: 10px; height: 245px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 23px; color: #596279; font-size: 9px; }
.chart { position: relative; display: grid; grid-template-columns: repeat(12, minmax(8px, 1fr)); gap: clamp(5px, 1.1vw, 13px); align-items: end; padding: 0 4px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(25% - 1px), rgba(255,255,255,.045) 25%); }
.bar-slot { display: flex; align-items: center; flex-direction: column; justify-content: flex-end; height: 100%; }
.bar { display: block; width: 100%; max-width: 28px; height: var(--height); min-height: 8px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, #8c6cff, #3d67d8); box-shadow: 0 4px 18px rgba(91,76,229,.18); transform-origin: bottom; animation: grow .65s both; animation-delay: var(--delay); }
@keyframes grow { from { transform: scaleY(.05); opacity: .2; } }
.bar-slot small { height: 20px; padding-top: 8px; color: #596279; font-size: 8px; }
.chart-caption { margin-top: 15px; color: var(--muted); font-size: 10px; }
.chart-caption strong { color: #55cda7; font-weight: 500; }
.legend-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--purple); }
.channel-list { display: grid; gap: 19px; }
.channel-item { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(70px, .8fr) 34px; gap: 12px; align-items: center; }
.channel-copy strong, .channel-copy span { display: block; }
.channel-copy strong { margin-bottom: 4px; font-size: 12px; }
.channel-copy span { color: var(--muted); font-size: 9px; }
.channel-progress { height: 4px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.06); }
.channel-progress i { display: block; height: 100%; border-radius: inherit; }
.channel-item b { font-size: 11px; text-align: right; }

.signals-panel { margin-top: 18px; }
.filter-row { gap: 3px; }
.filter-row button { padding: 6px 10px; }
.signal-list { display: grid; }
.signal-item { display: grid; grid-template-columns: 8px minmax(0,1fr) 54px; gap: 13px; align-items: start; padding: 16px 4px; border-top: 1px solid rgba(255,255,255,.055); }
.signal-mark { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: #8065ff; box-shadow: 0 0 12px currentColor; }
.signal-mark.orange { background: #f0a046; }
.signal-mark.blue { background: #4388ff; }
.signal-mark.red { background: #ed6376; }
.signal-title { display: flex; gap: 9px; align-items: center; }
.signal-title strong { font-size: 12px; }
.signal-title span { padding: 2px 6px; border-radius: 5px; color: #9c8cff; background: rgba(124,92,255,.1); font-size: 8px; }
.signal-item p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.signal-item > small { padding-top: 4px; color: #6f7890; font-size: 9px; text-align: right; }
.empty, .load-error { grid-column: 1/-1; padding: 35px; color: var(--muted); text-align: center; }

.capability-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.capability-strip > div { display: flex; gap: 12px; align-items: center; padding: 18px; background: rgba(15,19,35,.94); }
.capability-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; color: #a796ff; background: rgba(125,92,255,.12); }
.capability-strip p, .capability-strip strong, .capability-strip small { display: block; margin: 0; }
.capability-strip strong { font-size: 11px; }
.capability-strip small { margin-top: 4px; color: var(--muted); font-size: 9px; }
footer { padding: 25px 2px 0; color: #596278; font-size: 9px; }

@media (max-width: 980px) {
  .shell { grid-template-columns: 78px minmax(0,1fr); }
  .sidebar { padding-inline: 13px; }
  .brand { justify-content: center; margin-inline: 0; }
  .brand > span:last-child, .nav-item:not(.active) { font-size: 0; }
  .nav-item { justify-content: center; padding-inline: 0; font-size: 0; }
  .nav-item .nav-icon { font-size: 18px; }
  .sidebar-note { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .open-platform-bridge { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .shell { display: block; }
  .sidebar { position: static; flex-direction: row; width: 100%; height: auto; padding: 14px 17px; }
  .brand { justify-content: flex-start; margin: 0; }
  .brand > span:last-child { display: block; }
  .sidebar nav { display: none; }
  main { padding: 20px 14px 28px; }
  .topbar { align-items: flex-end; }
  .topbar .eyebrow { display: none; }
  .sample-badge { display: none; }
  .intro-card { display: block; padding: 25px 20px; }
  .intro-card h2 { font-size: 27px; }
  .range-switch { width: max-content; margin-top: 20px; }
  .runtime-live { width: max-content; margin-top: 20px; }
  .capability-grid { grid-template-columns: 1fr; margin-bottom: 42px; }
  .open-platform-bridge { margin-top: -22px; padding: 23px 20px 46px; }
  .bridge-flow { grid-template-columns: 1fr; }
  .bridge-flow > i { transform: rotate(90deg); }
  .scenario-heading { align-items: flex-start; flex-direction: column; }
  .metrics { gap: 10px; }
  .metric-card { padding: 16px; }
  .metric-card em { display: none; }
  .panel { padding: 18px 15px; }
  .chart { gap: 5px; }
  .signal-heading { align-items: flex-start; flex-direction: column; }
  .filter-row { width: 100%; justify-content: flex-start; overflow-x: auto; }
  .signal-item { grid-template-columns: 7px minmax(0,1fr); }
  .signal-item > small { display: none; }
  .capability-strip { grid-template-columns: 1fr; }
  footer { gap: 10px; align-items: flex-start; flex-direction: column; }
}
