:root {
  color-scheme: dark;
  --bg: #10131b;
  --panel: rgba(22, 27, 38, .82);
  --panel-strong: #171d29;
  --panel-soft: #1d2532;
  --line: rgba(160, 174, 197, .13);
  --line-strong: rgba(160, 174, 197, .24);
  --text: #f0f3f8;
  --muted: #99a5b8;
  --muted-2: #68758a;
  --mint: #85f3bd;
  --mint-deep: #2ec88b;
  --blue: #8eb6ff;
  --amber: #f7c77b;
  --red: #ff8c9a;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --display: "Manrope", var(--sans);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(ellipse at 18% 0%, rgba(80, 120, 171, .12), transparent 38rem),
    radial-gradient(ellipse at 88% 26%, rgba(40, 186, 128, .06), transparent 36rem),
    var(--bg);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { color: inherit; }
.ambient { position: absolute; z-index: -1; pointer-events: none; filter: blur(80px); opacity: .14; }
.ambient-one { width: 290px; height: 290px; background: #347b88; top: 370px; left: -180px; }
.ambient-two { width: 350px; height: 350px; background: #3a5b9e; top: 850px; right: -230px; }

.topbar {
  height: 76px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(160, 174, 197, .09);
}
.brand, .topbar-right, .hero-facts, .connection-pill, .footer-brand, .footer-links {
  display: flex;
  align-items: center;
}
.brand { gap: 12px; }
.brand-mark {
  width: 27px; height: 27px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid rgba(133, 243, 189, .28);
  background: linear-gradient(145deg, rgba(133,243,189,.16), rgba(91,132,195,.12));
}
.brand-mark span { display: block; width: 3px; border-radius: 4px; background: var(--mint); }
.brand-mark span:nth-child(1) { height: 8px; opacity: .62; }
.brand-mark span:nth-child(2) { height: 14px; }
.brand-mark span:nth-child(3) { height: 10px; opacity: .78; }
.brand-name { font-family: var(--display); font-size: 15px; font-weight: 800; letter-spacing: -.5px; }
.brand-tag { color: var(--muted-2); font: 9px var(--mono); letter-spacing: 1.25px; padding-left: 11px; border-left: 1px solid var(--line-strong); }
.topbar-right { gap: 28px; }
.connection-pill {
  gap: 8px; color: var(--muted); font: 10px var(--mono); letter-spacing: .1px;
  background: rgba(160,174,197,.06); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 11px;
}
.connection-dot, .live-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(247,199,123,.1); }
.connection-pill.is-connected .connection-dot { background: var(--mint); box-shadow: 0 0 0 3px rgba(133,243,189,.11); }
.connection-pill.is-error .connection-dot { background: var(--red); box-shadow: 0 0 0 3px rgba(255,140,154,.12); }
.top-link { color: #c3ccda; font-size: 12px; transition: color .2s; }
.top-link:hover, .footer-links a:hover { color: var(--mint); }

.page-shell { max-width: 1328px; margin: 0 auto; padding: 78px 56px 56px; }
.hero { min-height: 355px; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 40px; }
.hero-copy { padding: 0 0 25px; }
.eyebrow { color: var(--mint); font: 10px var(--mono); letter-spacing: 1.6px; display: flex; align-items: center; gap: 10px; }
.eyebrow-line { display: inline-block; height: 1px; width: 25px; background: var(--mint); opacity: .8; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 22px 0 18px; font: 800 clamp(39px, 5vw, 65px)/1.08 var(--display); letter-spacing: -3.2px; }
h1 span { color: #8c9aad; }
.hero-lede { max-width: 560px; color: #a7b2c2; font-size: 15px; line-height: 1.75; }
.hero-facts { flex-wrap: wrap; gap: 22px; margin-top: 26px; color: #8996a9; font-size: 11px; }
.hero-facts span { display: flex; align-items: center; gap: 7px; }
.fact-icon { color: var(--mint); font-style: normal; font-size: 15px; }
.hero-art { height: 310px; position: relative; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.orbit { position: absolute; border: 1px solid rgba(125, 157, 188, .15); border-radius: 50%; transform: rotate(-17deg); }
.orbit-outer { width: 310px; height: 190px; }
.orbit-inner { width: 214px; height: 214px; border-style: dashed; opacity: .7; }
.orbit-core {
  width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(133,243,189,.38); background: radial-gradient(circle, rgba(133,243,189,.2), rgba(40,68,76,.18) 68%);
  box-shadow: 0 0 65px rgba(63, 193, 148, .14), inset 0 0 28px rgba(133,243,189,.08);
  font: 700 20px var(--display); color: var(--mint); letter-spacing: 1px;
}
.orbit-node { position: absolute; padding: 8px 12px; border: 1px solid rgba(147,171,199,.23); border-radius: 7px; background: rgba(24,31,43,.9); color: #aab9ca; font: 8px var(--mono); letter-spacing: 1px; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.node-status { top: 34px; left: 50%; transform: translateX(-50%); }
.node-github { left: 22px; top: 57%; }
.node-ci { right: 22px; top: 57%; }
.orbit-caption { position: absolute; bottom: 20px; color: #617185; font: 8px var(--mono); letter-spacing: 2px; }

.demo-section { margin-top: 31px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.section-heading h2 { margin: 9px 0 0; font: 700 25px var(--display); letter-spacing: -.7px; }
.demo-caption { color: #8895a8; font: 9px var(--mono); letter-spacing: 1.15px; display: flex; align-items: center; gap: 9px; padding-bottom: 5px; }
.live-pulse { background: var(--mint); box-shadow: 0 0 0 4px rgba(133,243,189,.1); }

.workspace {
  display: grid; grid-template-columns: 320px minmax(0, 1fr);
  border: 1px solid rgba(154,174,203,.17); border-radius: 15px; overflow: hidden;
  background: rgba(17,22,32,.87); box-shadow: 0 24px 70px rgba(0,0,0,.2);
}
.control-panel { padding: 25px 22px 21px; background: linear-gradient(155deg, rgba(32,42,58,.68), rgba(19,25,36,.78)); border-right: 1px solid var(--line); }
.panel-topline { display: flex; justify-content: space-between; align-items: center; }
.panel-index { color: #66758a; font: 9px var(--mono); letter-spacing: 1.3px; }
.readonly-badge { border: 1px solid rgba(133,243,189,.23); border-radius: 4px; color: var(--mint); font: 8px var(--mono); letter-spacing: .8px; padding: 5px 7px; }
.service-block { margin-top: 29px; }
.field-label { color: #7e8ba0; font: 9px var(--mono); letter-spacing: 1.1px; display: block; margin-bottom: 11px; }
.service-select { display: flex; align-items: center; padding: 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(255,255,255,.025); gap: 10px; }
.service-icon { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(142,182,255,.23); border-radius: 7px; background: rgba(78,123,193,.12); color: var(--blue); font: 10px var(--mono); }
.service-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.service-copy strong { font-size: 11px; font-weight: 600; }
.service-copy span { color: #76869a; font: 9px var(--mono); }
.service-chevron { color: #758398; margin-left: auto; }
.field-hint { margin: 9px 0 0; color: #6d7a8e; font-size: 10px; line-height: 1.5; }
.control-divider { height: 1px; margin: 21px 0; background: var(--line); }
.select-wrap { position: relative; }
.select-wrap select { width: 100%; appearance: none; outline: none; padding: 11px 34px 11px 12px; color: #d7dfeb; background: rgba(255,255,255,.035); border: 1px solid var(--line-strong); border-radius: 7px; font-size: 11px; cursor: pointer; }
.select-wrap select:focus { border-color: rgba(133,243,189,.5); }
.select-wrap span { position: absolute; right: 13px; top: 7px; pointer-events: none; color: #8795a7; }
.tool-label { margin-bottom: 10px; }
.tool-list { display: flex; flex-direction: column; gap: 5px; }
.tool-button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.tool-button:hover { background: rgba(255,255,255,.035); }
.tool-button.is-active { background: rgba(133,243,189,.07); border-color: rgba(133,243,189,.19); }
.tool-symbol { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.05); font-size: 15px; }
.symbol-brief { color: var(--mint); background: rgba(133,243,189,.09); }
.symbol-health { color: #9dc8ff; }
.symbol-changes { color: #c0adff; }
.symbol-workflows { color: #f0c47e; }
.tool-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tool-copy strong { font-size: 10px; font-weight: 600; color: #d7dfeb; }
.tool-copy small { color: #718096; font-size: 9px; }
.tool-arrow { margin-left: auto; color: #56657a; font-size: 12px; opacity: 0; transition: opacity .2s; }
.tool-button:hover .tool-arrow, .tool-button.is-active .tool-arrow { opacity: 1; }
.tool-button.is-active .tool-arrow { color: var(--mint); }
.run-button { width: 100%; margin-top: 19px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px; border: 1px solid rgba(133,243,189,.5); border-radius: 7px; background: linear-gradient(110deg, #8cf0bd, #70dcae); color: #10251e; font-size: 11px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 22px rgba(72,194,139,.12); transition: transform .18s, filter .18s; }
.run-button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.run-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.run-icon { font-size: 10px; }
.run-shortcut { margin-left: auto; padding: 3px 5px; border: 1px solid rgba(16,37,30,.19); border-radius: 4px; font: 10px var(--mono); }
.run-button.is-loading .run-icon { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.panel-footnote { color: #6f7c90; font-size: 9px; line-height: 1.55; margin: 11px 0 0; }

.results-panel { min-width: 0; padding: 25px 27px 22px; }
.results-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.results-header h3 { margin: 8px 0 5px; font: 700 17px var(--display); letter-spacing: -.3px; }
.results-header p { color: #7f8da1; font-size: 10px; margin: 0; }
.result-meta { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; padding-top: 1px; }
.result-format, .result-protocol { color: #8795a7; font: 8px var(--mono); letter-spacing: .5px; border: 1px solid var(--line); border-radius: 4px; padding: 6px 7px; white-space: nowrap; }
.result-protocol { color: #8ab6ff; border-color: rgba(142,182,255,.19); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; margin-top: 23px; }
.metric-card { min-width: 0; display: flex; flex-direction: column; padding: 12px 12px 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.022); }
.metric-label { color: #718095; font: 8px var(--mono); letter-spacing: .75px; white-space: nowrap; }
.metric-card strong { display: block; min-height: 25px; margin-top: 9px; color: #e8edf5; font: 700 16px var(--display); text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-note { color: #69778b; font-size: 9px; margin-top: 3px; }
.sources-block { margin-top: 22px; }
.subsection-title { display: flex; align-items: center; gap: 10px; color: #748297; font: 8px var(--mono); letter-spacing: 1.15px; white-space: nowrap; }
.subsection-line { height: 1px; background: var(--line); width: 100%; }
.source-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 11px; }
.source-item { display: grid; grid-template-columns: 24px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.018); }
.source-icon { width: 22px; height: 22px; grid-row: span 2; border-radius: 5px; display: grid; place-items: center; font: 9px var(--mono); }
.source-status-icon { color: var(--mint); background: rgba(133,243,189,.09); }
.source-github-icon { color: var(--blue); background: rgba(142,182,255,.09); }
.source-actions-icon { color: var(--amber); background: rgba(247,199,123,.09); }
.source-name { color: #b6c1d0; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-state { color: #6c7a8e; font: 8px var(--mono); text-transform: capitalize; margin-top: 3px; }
.state-available { color: var(--mint); }
.state-partial { color: var(--amber); }
.state-unavailable { color: var(--red); }
.state-unknown { color: #8290a4; }
.output-block { margin-top: 23px; }
.output-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.output-count { flex: 0 0 auto; color: #617086; font: 8px var(--mono); }
.evidence-list { margin-top: 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.015); max-height: 310px; overflow: auto; }
.empty-state { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 22px; }
.empty-mark { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgba(133,243,189,.23); color: var(--mint); background: rgba(133,243,189,.07); font-size: 17px; margin-bottom: 12px; }
.empty-state strong { color: #cad3df; font-size: 11px; font-weight: 600; }
.empty-state p { max-width: 260px; margin: 6px 0 0; color: #748297; font-size: 9px; line-height: 1.6; }
.evidence-row { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 11px; padding: 12px 13px; border-bottom: 1px solid var(--line); }
.evidence-row:last-child { border-bottom: 0; }
.evidence-marker { padding-top: 2px; color: #56677d; font: 9px var(--mono); }
.evidence-body { min-width: 0; }
.evidence-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; }
.evidence-heading strong { color: #d4dde9; font-size: 10px; font-weight: 600; overflow-wrap: anywhere; }
.evidence-heading span { color: var(--mint); font: 8px var(--mono); text-transform: uppercase; }
.evidence-body p { color: #8492a5; font-size: 9px; line-height: 1.5; margin: 5px 0 6px; overflow-wrap: anywhere; }
.evidence-meta { display: flex; flex-wrap: wrap; gap: 12px; color: #596a80; font: 8px var(--mono); }
.raw-output { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.14); }
.raw-output summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 12px; color: #7d8ca0; font: 8px var(--mono); letter-spacing: 1px; }
.raw-output summary::-webkit-details-marker { display: none; }
.raw-chevron { color: var(--mint); font-size: 12px; }
.raw-output[open] .raw-chevron { transform: rotate(45deg); }
.raw-output pre { max-height: 320px; overflow: auto; margin: 0; padding: 0 12px 13px; color: #a8c9bd; font: 9px/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }

.principle-strip { display: flex; gap: 15px; align-items: flex-start; margin-top: 18px; padding: 17px 19px; border: 1px solid rgba(247,199,123,.18); border-radius: 9px; background: rgba(247,199,123,.035); }
.principle-mark { flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: var(--amber); background: rgba(247,199,123,.1); font: 700 12px var(--mono); }
.principle-strip strong { color: #e7d2ab; font-size: 10px; font-weight: 600; }
.principle-strip p { color: #8f8878; font-size: 9px; line-height: 1.55; margin: 5px 0 0; }
.footer { max-width: 1328px; margin: 0 auto; padding: 22px 56px 32px; border-top: 1px solid rgba(160,174,197,.08); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { color: #8593a6; font: 9px var(--mono); letter-spacing: 1.1px; gap: 9px; }
.brand-mark.small { width: 20px; height: 20px; border-radius: 6px; gap: 1px; }
.brand-mark.small span { width: 2px; }
.brand-mark.small span:nth-child(1) { height: 6px; }
.brand-mark.small span:nth-child(2) { height: 10px; }
.brand-mark.small span:nth-child(3) { height: 7px; }
.footer-version { padding-left: 9px; border-left: 1px solid var(--line-strong); color: #56667b; font-size: 8px; }
.footer-links { gap: 19px; }
.footer-links a { color: #738197; font-size: 9px; transition: color .2s; }

@media (max-width: 980px) {
  .topbar { padding: 0 30px; }
  .page-shell { padding: 60px 30px 44px; }
  .workspace { grid-template-columns: 285px minmax(0,1fr); }
  .control-panel { padding: 22px 17px; }
  .results-panel { padding: 22px 19px; }
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero { grid-template-columns: 1.2fr .8fr; }
  .orbit-outer { width: 260px; }
  .node-github { left: 0; }
  .node-ci { right: 0; }
  .footer { padding-left: 30px; padding-right: 30px; }
}
@media (max-width: 720px) {
  .topbar { height: 66px; padding: 0 19px; }
  .brand-tag { display: none; }
  .topbar-right { gap: 12px; }
  .connection-pill { padding: 7px 8px; font-size: 8px; }
  .top-link { font-size: 10px; }
  .page-shell { padding: 44px 18px 34px; }
  .hero { display: block; min-height: 0; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(38px, 10vw, 54px); letter-spacing: -2.2px; }
  .hero-lede { font-size: 13px; }
  .hero-facts { gap: 13px; font-size: 9px; }
  .hero-art { height: 225px; margin: 12px auto -3px; max-width: 370px; }
  .orbit-outer { width: 265px; height: 150px; }
  .orbit-inner { width: 170px; height: 170px; }
  .orbit-core { width: 70px; height: 70px; font-size: 16px; }
  .node-status { top: 17px; }
  .node-github { left: 13px; top: 57%; }
  .node-ci { right: 13px; top: 57%; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-heading h2 { font-size: 22px; }
  .demo-caption { padding: 0; }
  .workspace { display: flex; flex-direction: column; }
  .control-panel { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 17px; }
  .service-block { margin-top: 20px; }
  .control-divider { margin: 16px 0; }
  .tool-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tool-button { padding: 9px 7px; gap: 7px; }
  .tool-copy strong { font-size: 9px; }
  .tool-copy small { font-size: 8px; }
  .tool-symbol { width: 25px; height: 25px; flex-basis: 25px; }
  .run-button { margin-top: 15px; }
  .results-panel { padding: 20px 15px 17px; }
  .results-header { flex-direction: column; gap: 12px; }
  .result-meta { justify-content: start; }
  .metrics-grid { gap: 7px; margin-top: 17px; }
  .metric-card { padding: 10px 9px; }
  .metric-label { font-size: 7px; }
  .metric-card strong { font-size: 14px; }
  .source-grid { grid-template-columns: 1fr; }
  .source-item { grid-template-columns: 24px minmax(0,1fr) auto; grid-template-rows: auto; }
  .source-icon { grid-row: auto; }
  .source-state { margin: 0; }
  .output-count { font-size: 7px; }
  .principle-strip { padding: 13px; gap: 10px; }
  .footer { padding: 20px 18px 28px; flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 13px; }
}
@media (max-width: 390px) {
  .top-link { display: none; }
  .tool-list { grid-template-columns: 1fr; }
  .hero-facts { flex-direction: column; align-items: flex-start; }
}
