:root {
  color-scheme: dark;
  --black: #050505;
  --raised: #0b0c09;
  --panel: #10120d;
  --white: #fbfcf6;
  --muted: #a6aa9b;
  --line: #2b3023;
  --lime: #dfff35;
  --lime-soft: #efffb2;
  --lime-dark: #7f9913;
  --shell: min(1220px, calc(100vw - 48px));
  --display: "Clash Display", sans-serif;
  --body: "General Sans", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; overflow-x: hidden; background: var(--black); color: var(--white); font: 16px/1.5 var(--body); text-rendering: optimizeLegibility; }
a, button { color: inherit; font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 9px 13px; background: var(--lime); color: var(--black); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }

.site-nav { position: fixed; z-index: 60; inset: 0 0 auto; background: rgba(5,5,5,.78); border-bottom: 1px solid transparent; backdrop-filter: blur(16px); }
.site-nav.is-scrolled { border-color: var(--line); }
.nav-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.16rem/1 var(--display); text-decoration: none; }
.brand img { display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a { color: #c8ccbc; text-decoration: none; }
.nav-links > a:hover { color: var(--lime); }
.nav-cta { padding: 10px 17px; border: 1px solid var(--lime); border-radius: 999px; }

.analysis-story { min-height: 100svh; }
.analysis-stage { position: relative; height: 100svh; min-height: 700px; overflow: clip; background: radial-gradient(circle at 50% 54%, rgba(174,255,41,.075), transparent 35%), var(--black); }
.analysis-machine { --verdict-color: var(--lime); position: absolute; z-index: 3; top: 13%; left: 50%; width: var(--shell); height: 42%; transform: translateX(-50%); }
.machine-flow { position: relative; z-index: 6; height: 100%; }
.checks-flow { position: absolute; inset: 0; }
.evidence-network { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; overflow: visible; }
.evidence-network path { fill: none; stroke: rgba(223,255,53,.24); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.evidence-network circle { fill: var(--lime); filter: drop-shadow(0 0 5px var(--lime)); }
.machine-wordmark { position: absolute; z-index: 7; left: 50%; top: 32%; margin: 0; color: var(--white); font: 600 clamp(2.8rem,4.8vw,4.8rem)/.85 var(--display); letter-spacing: -.045em; transform: translate(-50%,-50%); }
.scene-fallback { position: absolute; z-index: 2; inset: 0 0 auto; height: 62%; display: flex; align-items: stretch; gap: 8px; perspective: 1100px; transform-style: preserve-3d; }
.scene-fallback::after { content: ""; position: absolute; z-index: 4; left: -12%; right: -2%; top: 64%; height: 2px; background: var(--lime); box-shadow: 0 0 8px var(--lime), 0 0 28px rgba(223,255,53,.45); transform: scaleX(.05); transform-origin: left; transition: transform 600ms cubic-bezier(.2,.8,.2,1); }
.analysis-complete .scene-fallback::after { transform: scaleX(1); }
.scene-fallback span { position: relative; flex: 1; min-width: 0; overflow: hidden; border: 1px solid rgba(198,228,111,.36); border-radius: 6px; background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(167,196,94,.025) 48%, rgba(255,255,255,.07)); box-shadow: inset 0 0 20px rgba(255,255,255,.035); color: rgba(255,255,255,.48); transform: rotateY(-12deg) translateY(10px) scale(.94); transform-origin: center bottom; opacity: .32; backdrop-filter: blur(4px); transition: transform 420ms cubic-bezier(.2,.8,.2,1), opacity 420ms ease, border-color 420ms ease, box-shadow 420ms ease; }
.scene-fallback span::before { content: attr(data-label); position: absolute; left: 10px; top: 13px; max-width: calc(100% - 16px); font-size: clamp(.58rem,.72vw,.72rem); line-height: 1.1; }
.scene-fallback span::after { content: ""; position: absolute; left: 50%; top: 64%; width: 34px; height: 34px; border: 1px solid rgba(223,255,53,.35); border-radius: 50%; transform: translate(-50%,-50%); }
.scene-fallback span b { position: absolute; right: 8px; bottom: 8px; color: rgba(255,255,255,.42); font: 500 .62rem var(--body); }
.scene-fallback span.is-active { opacity: .95; border-color: rgba(223,255,53,.86); box-shadow: inset 0 0 26px rgba(223,255,53,.08), 0 0 22px rgba(223,255,53,.08); transform: rotateY(-12deg) translateY(0) scale(1); }
.scene-fallback span.is-active::after { border-color: var(--lime); box-shadow: 0 0 16px rgba(223,255,53,.4); }

.hero-copy { position: relative; z-index: 4; padding-top: clamp(92px, 10vh, 108px); text-align: center; pointer-events: none; }
.product-line { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--lime-soft); font-size: .86rem; }
.hero-description { margin: 7px 0 0; color: #d2d6ca; font: 500 clamp(1.05rem,1.45vw,1.28rem)/1.2 var(--display); }

.package-module { position: absolute; z-index: 8; left: 50%; top: 57%; width: 270px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #59642e; border-radius: 14px; background: rgba(8,9,6,.94); box-shadow: 0 18px 45px rgba(0,0,0,.42), 0 0 30px rgba(189,255,29,.05); backdrop-filter: blur(10px); transform: translate(-50%,-50%); transition: opacity 500ms ease, transform 500ms cubic-bezier(.2,.8,.2,1); }
.package-module::after { display: none; }
.package-icon, .summary-icon { display: grid; place-items: center; background: var(--verdict-color, var(--lime)); color: var(--black); font-weight: 700; }
.package-icon { width: 38px; height: 38px; border-radius: 8px; }
.package-icon img, .summary-icon img { width: 25px; height: 25px; object-fit: contain; }
.package-module b, .package-module small { display: block; }
.package-module b { font-size: .92rem; }
.package-module small { color: var(--muted); font-size: .73rem; }
.result-module { position: absolute; z-index: 9; left: 50%; top: 57%; width: 210px; padding: 15px 18px; border: 1px solid rgba(223,255,53,.24); border-radius: 14px; background: rgba(14,16,10,.96); opacity: 0; transform: translate(-50%,-50%) scale(.88); transition: opacity 500ms ease, transform 500ms cubic-bezier(.2,.8,.2,1), border-color 500ms ease, box-shadow 500ms ease; }
.result-module::before { display: none; }
.result-module small, .result-module strong { display: block; }
.result-module small { color: var(--muted); font-size: .66rem; }
.result-module strong { margin: 2px 0; font-family: var(--display); }
.result-module strong b { color: var(--lime); font-size: 1.08rem; }
.analysis-complete .package-module { opacity: 0; transform: translate(-50%,-50%) scale(.88); }
.analysis-complete .result-module { opacity: 1; transform: translate(-50%,-50%) scale(1); border-color: var(--verdict-color); box-shadow: 0 0 42px rgba(223,255,53,.18); }

.dimension-readouts { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.dimension-readout { position: absolute; width: 24%; min-width: 0; overflow: hidden; padding: 9px 12px 10px; border: 1px solid #394028; border-radius: 10px; background: linear-gradient(135deg,rgba(223,255,53,.035),transparent 48%), rgba(12,14,9,.78); color: #7e8377; opacity: .28; transform: translateY(6px) scale(.97); transition: opacity 360ms ease, transform 360ms ease, border-color 360ms ease, color 360ms ease, box-shadow 360ms ease; }
.dimension-readout::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg,transparent 49.7%,rgba(223,255,53,.045) 50%,transparent 50.3%), linear-gradient(transparent 49.7%,rgba(223,255,53,.035) 50%,transparent 50.3%); }
.dimension-readout:nth-child(1) { left: 0; top: 0; }
.dimension-readout:nth-child(2) { right: 0; top: 0; }
.dimension-readout:nth-child(3) { left: 0; top: 50%; transform: translateY(-50%) scale(.97); }
.dimension-readout:nth-child(4) { right: 0; top: 50%; transform: translateY(-50%) scale(.97); }
.dimension-readout:nth-child(5) { left: 0; bottom: 0; }
.dimension-readout:nth-child(6) { right: 0; bottom: 0; }
.readout-head, .readout-value { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.readout-head span { min-width: 0; overflow: hidden; font-size: clamp(.66rem,.78vw,.76rem); line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.readout-head small { color: #656b5d; font: 500 clamp(.48rem,.52vw,.56rem) var(--mono); letter-spacing: .06em; white-space: nowrap; }
.readout-value { margin-top: 4px; }
.readout-value b { font: 600 clamp(1.15rem,1.55vw,1.5rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.readout-value em { color: #6f7567; font: 500 clamp(.48rem,.52vw,.56rem) var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.readout-meter { position: relative; z-index: 1; height: 5px; margin-top: 7px; background: repeating-linear-gradient(90deg,#262d19 0,#262d19 calc(10% - 3px),transparent calc(10% - 3px),transparent 10%); }
.readout-meter i { display: block; width: 0; height: 100%; background: repeating-linear-gradient(90deg,var(--lime) 0,var(--lime) calc(10% - 3px),transparent calc(10% - 3px),transparent 10%); filter: drop-shadow(0 0 5px var(--lime)); transition: width 500ms ease; }
.dimension-readout.is-scanning { opacity: .78; color: var(--white); border-color: var(--lime-dark); box-shadow: 0 0 34px rgba(223,255,53,.08); }
.dimension-readout.is-resolved { opacity: 1; color: var(--white); border-color: rgba(223,255,53,.7); box-shadow: 0 0 30px rgba(223,255,53,.06); }
.dimension-readout:nth-child(3).is-scanning, .dimension-readout:nth-child(3).is-resolved,
.dimension-readout:nth-child(4).is-scanning, .dimension-readout:nth-child(4).is-resolved { transform: translateY(-50%) scale(1); }
.dimension-readout.is-scanning .readout-value em { color: var(--lime-soft); }
.dimension-readout.is-resolved .readout-head small { color: var(--lime-dark); }
.dimension-readout.is-resolved .readout-value em { color: #aab09f; }
.dimension-readout.is-resolved .readout-meter i { width: var(--meter,100%); }
.analysis-complete .dimension-readout.is-resolved { animation: evidence-breathe 4.8s ease-in-out infinite; }
.analysis-complete .dimension-readout:nth-child(2) { animation-delay: -.8s; }
.analysis-complete .dimension-readout:nth-child(3) { animation-delay: -1.6s; }
.analysis-complete .dimension-readout:nth-child(4) { animation-delay: -2.4s; }
.analysis-complete .dimension-readout:nth-child(5) { animation-delay: -3.2s; }
.analysis-complete .dimension-readout:nth-child(6) { animation-delay: -4s; }
@keyframes evidence-breathe { 50% { border-color: rgba(223,255,53,.34); box-shadow: 0 0 44px rgba(223,255,53,.11); } }
.analysis-status { position: absolute; z-index: 5; left: 50%; bottom: -28px; margin: 0; color: var(--lime-soft); font: 500 .72rem var(--mono); transform: translateX(-50%); }
.analysis-status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border: 1px solid var(--lime); border-radius: 50%; animation: status-pulse 1.1s ease-in-out infinite; }
.analysis-complete .analysis-status::before { background: var(--lime); animation: none; }
@keyframes status-pulse { 50% { background: var(--lime); box-shadow: 0 0 12px var(--lime); } }

.report-console { --verdict-color: var(--lime); position: absolute; z-index: 10; top: calc(max(700px, 100svh) - 300px); left: 50%; width: var(--shell); min-height: 0; padding: 14px 14px 16px; border: 1px solid #34392c; border-radius: 22px; background: rgba(8,9,7,.98); color: var(--white); transform: translateX(-50%); transition: border-color 600ms ease, box-shadow 600ms ease; }
.report-console.is-ready { border-color: var(--verdict-color); box-shadow: 0 -10px 60px rgba(202,255,38,.08), 0 0 0 1px rgba(223,255,53,.06); }
.report-bar { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 8px 13px; border-bottom: 1px solid var(--line); }
.report-brand { display: flex; align-items: center; gap: 10px; }
.report-brand img { padding: 5px; border-radius: 6px; background: var(--lime); }
.report-brand b, .report-brand small { display: block; }
.report-brand b { font-family: var(--display); font-size: .92rem; }
.report-brand small { color: var(--muted); font-size: .72rem; }
.report-state { display: flex; align-items: center; gap: 8px; color: #777d70; font-size: .76rem; opacity: 0; transition: opacity 400ms ease, color 400ms ease; }
.report-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.report-console.is-ready .report-state { opacity: 1; color: var(--lime-soft); }

.report-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 12px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.report-tabs button { min-width: 0; padding: 9px 12px; border: 0; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; background: var(--black); color: var(--white); text-align: left; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.report-tabs button[data-record="adopt"] { --tab-color: #62e6a7; background: rgba(98,230,167,.1); }
.report-tabs button[data-record="keep"] { --tab-color: #dfff35; background: rgba(223,255,53,.1); }
.report-tabs button[data-record="trial"] { --tab-color: #83a6ff; background: rgba(131,166,255,.11); }
.report-tabs button[data-record="hold"] { --tab-color: #ffbd4a; background: rgba(255,189,74,.1); }
.report-tabs button[data-record="avoid"] { --tab-color: #ff6f68; background: rgba(255,111,104,.1); }
.report-tabs button:hover { filter: brightness(1.2); }
.report-tabs button[aria-selected="true"] { background: var(--tab-color); color: var(--black); }
.report-tabs button > img { width: 27px; height: 27px; padding: 4px; border-radius: 6px; background: var(--tab-color); object-fit: contain; }
.report-tabs b, .report-tabs span, .report-tabs small { display: block; }
.report-tabs b { font-family: var(--display); font-size: .9rem; }
.report-tabs small { color: var(--muted); font-size: .68rem; }
.report-tabs button[aria-selected="true"] small { color: rgba(0,0,0,.65); }

.report-panel { overflow: hidden; border-radius: 14px; background: var(--white); color: var(--black); }
.report-summary { min-height: 86px; display: grid; grid-template-columns: 1.55fr .72fr .5fr .65fr; align-items: stretch; border-bottom: 1px solid #dadcd3; }
.report-summary > div { display: flex; align-items: center; gap: 11px; padding: 16px 20px; border-right: 1px solid #dadcd3; }
.report-summary > div:last-child { border-right: 0; }
.package-summary b, .package-summary small { display: block; }
.package-summary b { font-size: .92rem; }
.package-summary small { color: #62665d; font-size: .75rem; }
.summary-icon { width: 38px; height: 38px; border-radius: 8px; }
.verdict-summary, .score-summary, .confidence-summary { flex-direction: column; align-items: flex-start !important; justify-content: center; gap: 3px !important; }
.report-summary div > span:first-child { color: #676b63; font-size: .7rem; }
.report-summary div > b { font: 600 1.45rem/1 var(--display); }
.verdict-summary b { padding: 6px 15px; border-radius: 999px; background: var(--verdict-color); font-size: 1rem !important; }
.report-body { padding: 24px 24px 27px; }
.engineer-take { display: grid; grid-template-columns: 130px 1fr; gap: 28px; align-items: start; padding-bottom: 24px; }
.engineer-take > span { color: #666a60; font-size: .76rem; }
.engineer-take p { max-width: 900px; margin: 0; font: 600 clamp(1.35rem, 2.3vw, 2rem)/1.15 var(--display); letter-spacing: -.035em; }
.dimension-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #dfe1d9; border-left: 1px solid #dfe1d9; }
.dimension-grid article { min-width: 0; padding: 15px; border-right: 1px solid #dfe1d9; border-bottom: 1px solid #dfe1d9; }
.dimension-grid header { display: flex; justify-content: space-between; gap: 10px; font-size: .77rem; }
.dimension-grid article > div { height: 4px; margin-top: 12px; background: #e1e3dc; }
.dimension-grid article > div i { display: block; width: var(--score); height: 100%; background: var(--lime-dark); transition: width 340ms ease; }
.dimension-grid p { margin: 10px 0 0; color: #6a6e65; font-size: .72rem; }
.report-note { margin: 11px 3px 0; color: #858a7d; font-size: .72rem; }

.calculation-note { border-block: 1px solid rgba(223,255,53,.38); background: linear-gradient(90deg, rgba(223,255,53,.07), transparent 40%), var(--raised); color: var(--white); }
.calculation-inner { min-height: 94px; display: flex; align-items: center; gap: 11px; }
.calculation-inner span { color: var(--muted); }
.calculation-inner a { margin-left: auto; color: var(--lime); text-underline-offset: 5px; }

.method-section { position: relative; overflow: hidden; padding: clamp(56px,6vw,76px) 0; background-color: #f3f2ea; background-image: radial-gradient(#cfd2c6 .7px, transparent .7px); background-size: 18px 18px; color: var(--black); }
.section-heading { display: grid; grid-template-columns: 1.1fr .58fr; align-items: end; gap: 70px; margin-bottom: 4px; }
.section-kicker { display: block; margin-bottom: 15px; color: #657211; font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.section-heading h2 { max-width: 610px; margin: 0; font: 600 clamp(2.55rem,3.7vw,3.6rem)/.92 var(--display); letter-spacing: -.04em; }
.section-heading p { max-width: 440px; margin: 0 0 8px; color: #5e6259; font-size: 1.08rem; }

.method-map { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 40px 0 0; padding: 0; border-top: 1px solid #c9cdbf; list-style: none; }
.method-node { min-width: 0; min-height: 244px; display: grid; grid-template-rows: auto 1fr auto; padding: 24px 30px 0; }
.method-node + .method-node { border-left: 1px solid #c9cdbf; }
.method-node:first-child { padding-left: 0; }
.method-node:last-child { padding-right: 0; }
.method-node header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.method-node header > span { color: #839511; font: 500 2.8rem/.8 var(--display); letter-spacing: -.05em; }
.method-node header small { color: #696e63; font: 500 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.method-copy h3 { max-width: 390px; margin: 0 0 7px; font: 600 clamp(1.35rem,1.8vw,1.78rem)/1 var(--display); letter-spacing: -.03em; }
.method-copy p { max-width: 390px; margin: 0; color: #5e6259; font-size: .97rem; }
.repo-files { width: max-content; max-width: 100%; display: flex; flex-wrap: wrap; gap: 7px 0; margin-top: 18px; padding-right: 10px; color: #34382f; font: 500 .68rem var(--mono); }
.repo-files span:not(:last-child)::after { content: " / "; margin-inline: 8px; color: #91a21e; }
.evidence-mini { position: relative; width: min(330px,100%); height: 46px; margin-top: 18px; display: flex; align-items: center; justify-content: space-between; border-block: 1px solid #c9cdbf; }
.evidence-mini::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #9da68d; }
.evidence-mini i { position: relative; z-index: 1; width: 10px; height: 10px; border: 2px solid #6f7f13; border-radius: 50%; background: #f3f2ea; }
.evidence-mini i:nth-child(2), .evidence-mini i:nth-child(5) { background: var(--lime); box-shadow: 0 0 12px rgba(127,153,19,.28); }
.evidence-mini b { position: absolute; right: 0; bottom: -22px; font: 500 .65rem var(--mono); text-transform: uppercase; }
.decision-mini { width: min(330px,100%); margin-top: 16px; padding: 12px 0 0 16px; border-top: 1px solid #aeb3a5; border-left: 4px solid var(--lime-dark); }
.decision-mini small, .decision-mini strong, .decision-mini span { display: block; }
.decision-mini small { color: #666b61; font: 500 .68rem var(--mono); text-transform: uppercase; }
.decision-mini strong { margin: 4px 0; font: 600 2.35rem/.9 var(--display); letter-spacing: -.045em; }
.decision-mini span { font: 600 1.2rem var(--display); }
.decision-mini span i { color: #777c72; font: 400 .75rem var(--mono); }

.demo-section { padding: clamp(64px, 7vw, 94px) 0; background: var(--black); }
.demo-grid { display: block; }
.demo-heading { display: grid; grid-template-columns: 1fr .72fr; align-items: end; gap: 80px; margin-bottom: 30px; }
.demo-kicker { display: block; margin-bottom: 13px; color: var(--lime); font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.demo-heading h2 { max-width: 650px; margin: 0; font: 600 clamp(2.8rem, 4.4vw, 4.2rem)/.92 var(--display); letter-spacing: -.045em; }
.demo-intro { padding-bottom: 4px; }
.demo-intro > p { max-width: 480px; margin: 0; color: #b0b5a6; font-size: 1.05rem; }
.demo-actions { display: flex; align-items: center; gap: 22px; margin-top: 22px; }
.demo-actions a { text-underline-offset: 5px; }
.primary-button { padding: 12px 18px; border-radius: 6px; background: var(--lime); color: var(--black); font-weight: 600; text-decoration: none; }
.video-frame { position: relative; aspect-ratio: 16/6.4; overflow: hidden; border: 1px solid #293114; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 80px rgba(223,255,53,.03); }
.video-frame button { position: absolute; z-index: 2; inset: 0; width: 100%; border: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 54%, rgba(164,196,24,.18), transparent 22%), linear-gradient(rgba(223,255,53,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(223,255,53,.025) 1px, transparent 1px), #090b07; background-size: auto, 44px 44px, 44px 44px, auto; color: var(--white); cursor: pointer; }
.video-frame button::before { content: "REPOSITORY  /  EVIDENCE  /  VERDICT"; position: absolute; top: 24px; left: 28px; color: #747a68; font: 500 .68rem var(--mono); letter-spacing: .08em; }
.video-frame button span { width: 106px; height: 106px; display: grid; place-items: center; border: 1px solid var(--lime); border-radius: 50%; color: var(--lime); font: 600 1rem var(--display); box-shadow: 0 0 40px rgba(223,255,53,.12); transition: background .25s, color .25s, transform .25s; }
.video-frame button:hover span { background: var(--lime); color: var(--black); transform: scale(1.04); }
.video-frame button small { position: absolute; right: 24px; bottom: 20px; color: var(--muted); font-family: var(--mono); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-frame.is-playing button { display: none; }
.demo-status { min-height: 76px; display: grid; grid-template-columns: .7fr 1.5fr auto; align-items: center; gap: 34px; padding: 18px 4px; border-bottom: 1px solid var(--line); color: #9da38f; font-size: .86rem; }
.demo-status span { color: var(--white); font-weight: 600; white-space: nowrap; }
.demo-status i { width: 8px; height: 8px; display: inline-block; margin-right: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(223,255,53,.55); }
.demo-status p { margin: 0; }
.demo-status a { color: var(--lime); text-underline-offset: 5px; white-space: nowrap; }
.site-footer { border-top: 1px solid var(--line); background: var(--black); }
.footer-inner { min-height: 112px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; }
.footer-inner strong { font-family: var(--display); }
.footer-inner span { color: var(--muted); }
.footer-inner div { display: flex; gap: 22px; }
.footer-inner a { color: #c8ccbc; text-underline-offset: 4px; }
#report, #method, #demo { scroll-margin-top: 82px; }

@media (max-width: 780px) {
  :root { --shell: min(100% - 32px, 760px); }
  .analysis-stage { height: auto; min-height: 0; padding: 70px 0 36px; overflow: hidden; }
  .hero-copy { padding-top: 54px; }
  .hero-copy h1 { font-size: clamp(3.2rem, 11vw, 5.6rem); }
  .analysis-machine { position: relative; top: auto; left: auto; right: auto; width: var(--shell); height: auto; margin: 40px auto 0; transform: none; }
  .machine-flow { height: 390px; }
  .evidence-network { display: none; }
  .machine-wordmark { top: 34px; font-size: 3.2rem; }
  .package-module, .result-module { top: 102px; }
  .checks-flow { inset: 164px 0 0; }
  .dimension-readouts { position: relative; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
  .dimension-readout, .dimension-readout:nth-child(n) { position: relative; inset: auto; width: auto; transform: none; }
  .dimension-readout:nth-child(n).is-scanning, .dimension-readout:nth-child(n).is-resolved { transform: none; }
  .analysis-status { position: relative; inset: auto; width: 100%; margin: 18px auto; text-align: center; transform: none; }
  .report-console { position: relative; top: auto; left: auto; width: var(--shell); min-height: 0; margin: 36px auto 0; transform: none; }
  .report-summary { grid-template-columns: 1.5fr repeat(3,.7fr); }
  .section-heading, .demo-heading { grid-template-columns: 1fr; gap: 32px; }
  .method-map { grid-template-columns: 1fr; margin-top: 34px; border-top: 0; }
  .method-node, .method-node:first-child, .method-node:last-child { min-height: 0; padding: 26px 0; }
  .method-node + .method-node { border-top: 1px solid #c9cdbf; border-left: 0; }
}

@media (max-width: 650px) {
  :root { --shell: calc(100% - 24px); }
  .nav-inner { min-height: 64px; }
  .nav-links > a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 8px 13px; font-size: .83rem; }
  .analysis-stage { padding-top: 64px; }
  .hero-copy h1 { font-size: clamp(3rem, 14vw, 4.8rem); }
  .hero-description { font-size: 1rem; }
  .machine-flow { height: 385px; }
  .package-module { width: min(270px,100%); min-width: 0; padding: 10px; }
  .package-module::after { display: none; }
  .package-module b { max-width: 150px; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; }
  .package-module small { font-size: .61rem; }
  .result-module { width: min(210px,90%); min-width: 116px; padding: 12px 14px; }
  .result-module::before { display: none; }
  .package-module { margin-top: 0; }
  .dimension-readouts { grid-template-columns: repeat(2,1fr); }
  .report-console { width: calc(100% - 10px); padding: 8px; border-radius: 15px; }
  .report-tabs { grid-template-columns: repeat(5,minmax(105px,1fr)); overflow-x: auto; }
  .report-summary { grid-template-columns: 1fr 1fr; }
  .report-summary > div:nth-child(2) { border-right: 0; }
  .report-summary > div:nth-child(-n+2) { border-bottom: 1px solid #dadcd3; }
  .report-body { padding: 20px 16px; }
  .engineer-take { grid-template-columns: 1fr; gap: 9px; }
  .dimension-grid { grid-template-columns: 1fr; }
  .calculation-inner { min-height: 0; padding-block: 24px; flex-direction: column; align-items: flex-start; }
  .calculation-inner a { margin-left: 0; }
  .method-section, .demo-section { padding-block: 58px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { font-size: 2.7rem; }
  .method-map { height: auto; }
  .method-node { width: 100%; }
  .method-node header > span { font-size: 2.8rem; }
  .repo-files { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 14px; padding-right: 0; }
  .repo-files span:not(:last-child)::after { display: none; }
  .demo-actions { align-items: flex-start; flex-direction: column; }
  .video-frame { aspect-ratio: 16/10; }
  .demo-status { grid-template-columns: 1fr; gap: 10px; padding-block: 22px; }
  .footer-inner { min-height: 0; padding-block: 30px; grid-template-columns: 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
