@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap");

:root {
  --bg: #07070a;
  --surface: rgba(15, 15, 20, .84);
  --surface-2: #111116;
  --line: rgba(255, 255, 255, .105);
  --line-strong: rgba(255, 255, 255, .19);
  --text: #f4f2ed;
  --muted: #96949e;
  --dim: #5e5d66;
  --acid: #baff65;
  --cyan: #5be7e2;
  --violet: #9b87ff;
  --danger: #ff616d;
  --warning: #ffc866;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--text); background: var(--bg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

#fieldCanvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; z-index: 0; }
.noise { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .032; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E"); }

.topbar { position: relative; z-index: 5; height: 72px; padding: 0 max(28px, calc((100vw - 1320px)/2)); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: rgba(7, 7, 10, .74); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 500 12px/1 var(--mono); letter-spacing: .12em; }
.brand b { color: var(--muted); font-weight: 400; }
.brand-mark { position: relative; width: 27px; height: 27px; border: 1px solid var(--line-strong); transform: rotate(45deg); display: grid; place-items: center; }
.brand-mark::after { content: ""; width: 5px; height: 5px; background: var(--acid); box-shadow: 0 0 13px var(--acid); }
.brand-mark i { position: absolute; background: var(--line-strong); }
.brand-mark i:nth-child(1) { width: 9px; height: 1px; left: -5px; top: 4px; }
.brand-mark i:nth-child(2) { width: 1px; height: 9px; right: 4px; bottom: -5px; }
.system-state { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 400 10px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.state-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 10px var(--warning); }
.state-dot.online { background: var(--acid); box-shadow: 0 0 10px var(--acid); }
.state-dot.offline { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.state-divider { width: 1px; height: 14px; margin: 0 6px; background: var(--line-strong); }

.shell { position: relative; z-index: 2; width: min(1320px, calc(100% - 56px)); margin: 0 auto; }
.hero { position: relative; min-height: 460px; padding: 94px 0 68px; border-left: 1px solid rgba(255,255,255,.045); border-right: 1px solid rgba(255,255,255,.045); }
.hero::before { content: ""; position: absolute; width: 620px; height: 350px; left: -220px; top: -50px; background: radial-gradient(ellipse, rgba(155,135,255,.14), transparent 67%); filter: blur(10px); pointer-events: none; }
.hero::after { content: "SIGNAL / AUTHENTICITY / OBSERVATION"; position: absolute; right: 5px; bottom: 76px; writing-mode: vertical-rl; color: var(--dim); font: 400 8px/1 var(--mono); letter-spacing: .25em; }
.eyebrow { display: flex; align-items: center; width: min(600px, 70%); gap: 13px; color: var(--acid); font: 500 10px/1 var(--mono); letter-spacing: .16em; }
.eyebrow i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(186,255,101,.5), transparent); }
.eyebrow em { color: var(--dim); font-style: normal; }
.hero h1 { margin: 29px 0 22px; font-size: clamp(48px, 6.6vw, 92px); line-height: .96; letter-spacing: -.067em; font-weight: 600; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(244,242,237,.42); }
.hero > p { width: min(550px, 73%); margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.hero-stats { position: absolute; right: 78px; top: 117px; display: grid; gap: 25px; }
.hero-stats div { min-width: 110px; padding: 0 0 14px 16px; border-left: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.hero-stats strong { display: block; color: var(--text); font: 400 20px/1 var(--mono); }
.hero-stats span { display: block; margin-top: 7px; color: var(--dim); font-size: 10px; letter-spacing: .12em; }

.workspace { display: grid; grid-template-columns: minmax(370px, .78fr) minmax(520px, 1.22fr); gap: 14px; }
.panel-corners { position: relative; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(18px); }
.panel-corners::before, .panel-corners::after { content: ""; position: absolute; z-index: 2; width: 10px; height: 10px; pointer-events: none; }
.panel-corners::before { left: -1px; top: -1px; border-left: 1px solid var(--acid); border-top: 1px solid var(--acid); }
.panel-corners::after { right: -1px; bottom: -1px; border-right: 1px solid var(--acid); border-bottom: 1px solid var(--acid); }
.control-panel, .monitor-panel { min-height: 672px; }
.panel-heading { height: 72px; padding: 0 23px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.panel-heading > div { display: flex; align-items: center; gap: 13px; }
.step-index { color: var(--acid); font: 400 10px/1 var(--mono); }
.panel-heading h2 { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: .03em; }
.privacy-badge { display: flex; align-items: center; gap: 7px; color: var(--muted); font: 400 9px/1 var(--mono); letter-spacing: .1em; }
.privacy-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 8px rgba(186,255,101,.7); }

#scanForm { padding: 24px; }
.field { display: block; margin-bottom: 19px; }
.field-label { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; color: #cbc9c4; font-size: 11px; font-weight: 500; letter-spacing: .04em; }
.field-label small { color: var(--dim); font: 400 8px/1 var(--mono); letter-spacing: .13em; }
.input-shell { height: 48px; border: 1px solid var(--line); background: rgba(5,5,8,.65); display: flex; align-items: center; transition: border-color .2s, box-shadow .2s; }
.input-shell:focus-within { border-color: rgba(186,255,101,.55); box-shadow: inset 0 0 0 1px rgba(186,255,101,.07), 0 0 24px rgba(186,255,101,.045); }
.input-shell > svg { width: 18px; margin-left: 14px; stroke: var(--dim); fill: none; stroke-width: 1.2; flex: 0 0 auto; }
.input-shell input { width: 100%; height: 100%; padding: 0 13px; border: 0; outline: 0; color: var(--text); background: transparent; font: 400 12px/1 var(--mono); }
.input-shell input::placeholder { color: #4d4c54; }
.icon-button { width: 43px; height: 100%; border: 0; border-left: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; }
.icon-button svg { width: 17px; stroke: var(--dim); fill: none; stroke-width: 1.2; }
.mode-field { margin: 25px 0 0; padding: 0; border: 0; }
.mode-field legend { width: 100%; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.mode-switch label { min-width: 0; cursor: pointer; }
.mode-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mode-switch span { height: 70px; padding: 13px; border: 1px solid var(--line); background: rgba(5,5,8,.5); display: flex; flex-direction: column; justify-content: center; transition: .2s; }
.mode-switch b { font-size: 11px; font-weight: 500; }
.mode-switch small { margin-top: 7px; color: var(--dim); font-size: 9px; line-height: 1.3; }
.mode-switch input:checked + span { border-color: rgba(186,255,101,.55); background: rgba(186,255,101,.06); box-shadow: inset 2px 0 0 var(--acid); }
.mode-switch input:checked + span b { color: var(--acid); }
.cost-notice { min-height: 42px; margin: 14px 0 18px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; color: var(--dim); background: rgba(255,200,102,.04); font-size: 9px; line-height: 1.45; }
.cost-notice svg { width: 15px; flex: 0 0 auto; stroke: var(--warning); fill: none; stroke-width: 1.2; }
.scan-button { position: relative; overflow: hidden; width: 100%; height: 52px; padding: 0 17px; border: 1px solid var(--acid); color: #0a0b08; background: var(--acid); display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .04em; transition: filter .2s, transform .2s; }
.scan-button:hover { filter: brightness(1.08); }
.scan-button:active { transform: translateY(1px); }
.scan-button:disabled { color: var(--muted); background: #25252a; border-color: var(--line); cursor: wait; }
.scan-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.button-scanline { position: absolute; inset: 0; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); }
.scan-button:disabled .button-scanline { opacity: 1; animation: scanButton 1.4s linear infinite; }
@keyframes scanButton { to { transform: translateX(100%); } }

.monitor-panel { overflow: hidden; }
.cancel-button { padding: 7px 10px; border: 1px solid rgba(255,97,109,.35); color: var(--danger); background: transparent; font: 400 9px/1 var(--mono); cursor: pointer; }
.idle-state { min-height: 598px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.idle-state h3 { margin: 28px 0 8px; font-size: 15px; font-weight: 500; }
.idle-state p { max-width: 300px; margin: 0; color: var(--dim); font-size: 11px; line-height: 1.65; }
.radar { position: relative; width: 214px; height: 214px; border-radius: 50%; border: 1px solid var(--line); background: repeating-radial-gradient(circle, transparent 0 34px, rgba(255,255,255,.055) 35px 36px), radial-gradient(circle, rgba(91,231,226,.04), transparent 66%); overflow: hidden; }
.radar-axis { position: absolute; background: var(--line); }
.radar-axis.x { left: 0; right: 0; top: 50%; height: 1px; }
.radar-axis.y { top: 0; bottom: 0; left: 50%; width: 1px; }
.radar-sweep { position: absolute; inset: 50% 50% 0 0; transform-origin: right top; background: linear-gradient(35deg, transparent 45%, rgba(91,231,226,.22)); animation: radar 4s linear infinite; }
@keyframes radar { to { transform: rotate(360deg); } }
.radar > span { position: absolute; width: 6px; height: 6px; left: 63%; top: 32%; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); animation: ping 2s ease-in-out infinite; }
@keyframes ping { 50% { opacity: .2; transform: scale(.6); } }

.running-state { padding: 28px; }
.scan-overview { display: flex; align-items: center; gap: 29px; }
.progress-orbit { position: relative; width: 130px; height: 130px; flex: 0 0 auto; }
.progress-orbit svg { width: 100%; transform: rotate(-90deg); }
.orbit-track, .orbit-value { fill: none; stroke-width: 2; }
.orbit-track { stroke: rgba(255,255,255,.08); stroke-dasharray: 4 5; }
.orbit-value { stroke: var(--acid); stroke-linecap: round; stroke-dasharray: 320.44; stroke-dashoffset: 320.44; filter: drop-shadow(0 0 5px rgba(186,255,101,.45)); transition: stroke-dashoffset .5s; }
.progress-orbit > div { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.progress-orbit strong { font: 400 33px/1 var(--mono); }
.progress-orbit small { margin: 6px 0 0 2px; color: var(--muted); font: 400 10px/1 var(--mono); }
.progress-orbit span { position: absolute; top: 88px; color: var(--dim); font: 400 7px/1 var(--mono); letter-spacing: .15em; }
.scan-copy { min-width: 0; }
.live-label { color: var(--acid); font: 400 9px/1 var(--mono); letter-spacing: .08em; }
.live-label i { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 9px var(--acid); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: .15; } }
.scan-copy h3 { overflow: hidden; max-width: 450px; margin: 13px 0 6px; font: 500 18px/1.2 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.scan-copy p { overflow: hidden; max-width: 420px; margin: 0; color: var(--dim); font: 400 10px/1.4 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.request-counter { margin-top: 18px; color: var(--muted); font: 400 9px/1 var(--mono); letter-spacing: .08em; }
.request-counter span:first-child { color: var(--cyan); }
.probe-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 26px; background: var(--line); border: 1px solid var(--line); }
.probe-rail div { position: relative; min-height: 58px; padding: 12px 10px 9px 17px; background: #0d0d11; display: flex; flex-direction: column; justify-content: center; }
.probe-rail i { position: absolute; left: 8px; width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
.probe-rail span { color: #aaa8b0; font-size: 9px; }
.probe-rail em { position: absolute; right: 7px; bottom: 5px; color: #34343b; font: 400 7px/1 var(--mono); font-style: normal; }
.probe-rail div.active { background: rgba(91,231,226,.055); }
.probe-rail div.active i { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.probe-rail div.done i { background: var(--acid); box-shadow: 0 0 7px rgba(186,255,101,.7); }
.probe-rail div.failed i { background: var(--danger); box-shadow: 0 0 7px rgba(255,97,109,.7); }
.terminal { margin-top: 24px; border: 1px solid var(--line); background: #08080b; }
.terminal-bar { height: 31px; padding: 0 10px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.terminal-bar > span { display: flex; gap: 4px; }
.terminal-bar > span i { width: 5px; height: 5px; border-radius: 50%; background: #34343a; }
.terminal-bar b { margin-left: 12px; color: var(--dim); font: 400 7px/1 var(--mono); letter-spacing: .15em; }
.terminal-bar em { margin-left: auto; color: #424149; font: 400 7px/1 var(--mono); font-style: normal; }
.terminal-log { height: 147px; overflow-y: auto; padding: 10px 12px; color: #7d7b84; font: 400 9px/1.7 var(--mono); scrollbar-color: #303038 transparent; }
.log-line { display: grid; grid-template-columns: 55px 55px 1fr; gap: 8px; }
.log-line time { color: #3f3e45; }
.log-line b { color: var(--cyan); font-weight: 400; }
.log-line.success b { color: var(--acid); }
.log-line.error b { color: var(--danger); }
.log-line span { overflow-wrap: anywhere; }
.error-state { min-height: 598px; padding: 50px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.error-symbol { width: 70px; height: 70px; border: 1px solid rgba(255,97,109,.4); color: var(--danger); display: grid; place-items: center; font: 300 34px/1 var(--mono); box-shadow: 0 0 45px rgba(255,97,109,.08); }
.error-state > span { margin-top: 22px; color: var(--danger); font: 400 8px/1 var(--mono); letter-spacing: .17em; }
.error-state h3 { margin: 13px 0 9px; font-size: 16px; font-weight: 500; }
.error-state p { max-width: 470px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.error-state button { margin-top: 25px; padding: 10px 14px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: 10px; }

.result-section { padding-top: 96px; scroll-margin-top: 20px; }
.section-rule { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.section-rule span { color: var(--acid); font: 400 9px/1 var(--mono); }
.section-rule h2 { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.section-rule i { flex: 1; height: 1px; background: var(--line); }
.section-rule em { color: var(--dim); font: 400 8px/1 var(--mono); font-style: normal; letter-spacing: .1em; }
.result-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; }
.score-card, .telemetry-card { min-height: 310px; }
.score-card { padding: 25px 30px 27px; text-align: center; }
.score-gauge { position: relative; width: 190px; height: 112px; margin: 0 auto; }
.score-gauge svg { width: 100%; overflow: visible; }
.gauge-track, .gauge-value { fill: none; stroke-width: 4; stroke-linecap: round; }
.gauge-track { stroke: rgba(255,255,255,.08); }
.gauge-value { stroke: var(--acid); stroke-dasharray: 242; stroke-dashoffset: 242; filter: drop-shadow(0 0 5px rgba(186,255,101,.4)); transition: stroke-dashoffset .8s ease; }
.score-gauge div { position: absolute; inset: 56px 0 auto; }
.score-gauge strong { font: 400 42px/1 var(--mono); }
.score-gauge small { color: var(--dim); font: 400 10px/1 var(--mono); }
.verdict-pill { display: inline-block; padding: 5px 8px; color: var(--acid); border: 1px solid rgba(186,255,101,.28); background: rgba(186,255,101,.06); font: 400 8px/1 var(--mono); letter-spacing: .11em; }
.score-card h3 { margin: 13px 0 7px; font-size: 16px; font-weight: 500; }
.score-card p { max-width: 420px; margin: 0 auto; color: var(--muted); font-size: 11px; line-height: 1.65; }
.score-card.risk .gauge-value { stroke: var(--danger); filter: drop-shadow(0 0 5px rgba(255,97,109,.4)); }
.score-card.risk .verdict-pill { color: var(--danger); border-color: rgba(255,97,109,.28); background: rgba(255,97,109,.06); }
.score-card.unknown .gauge-value { stroke: var(--warning); }
.score-card.unknown .verdict-pill { color: var(--warning); border-color: rgba(255,200,102,.28); background: rgba(255,200,102,.06); }
.telemetry-card { padding: 27px 29px; overflow: hidden; }
.card-kicker { color: var(--dim); font: 400 8px/1 var(--mono); letter-spacing: .15em; }
.telemetry-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 23px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.telemetry-grid div { min-height: 88px; padding: 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.telemetry-grid span { display: block; color: var(--dim); font-size: 9px; }
.telemetry-grid strong { display: inline-block; margin-top: 13px; font: 400 21px/1 var(--mono); }
.telemetry-grid small { margin-left: 4px; color: var(--dim); font: 400 8px/1 var(--mono); }
.signal-band { height: 30px; margin-top: 22px; display: flex; align-items: center; gap: 4px; opacity: .6; }
.signal-band i { flex: 1; height: 4px; background: var(--cyan); box-shadow: 0 0 6px rgba(91,231,226,.25); transform-origin: center; animation: wave 1.9s ease-in-out infinite; }
.signal-band i:nth-child(3n) { animation-delay: -.45s; }.signal-band i:nth-child(2n) { animation-delay: -.8s; }
@keyframes wave { 50% { transform: scaleY(5); opacity: .25; } }
.details-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; margin-top: 14px; }
.findings-card, .fingerprint-card { min-height: 386px; padding: 25px 28px 28px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.card-head span { color: var(--dim); font: 400 7px/1 var(--mono); letter-spacing: .14em; }
.card-head h3 { margin: 8px 0 0; font-size: 13px; font-weight: 500; }
.card-head em { color: var(--dim); font: 400 8px/1 var(--mono); font-style: normal; }
.findings-list { max-height: 300px; overflow: auto; scrollbar-color: #303038 transparent; }
.finding { min-height: 49px; padding: 11px 2px; border-bottom: 1px solid rgba(255,255,255,.055); display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; }
.finding > i { width: 15px; height: 15px; border: 1px solid rgba(186,255,101,.32); display: grid; place-items: center; color: var(--acid); font: 400 8px/1 var(--mono); font-style: normal; }
.finding.failed > i { border-color: rgba(255,97,109,.35); color: var(--danger); }
.finding b { display: block; font-size: 10px; font-weight: 500; }
.finding small { color: var(--dim); font: 400 7px/1 var(--mono); text-transform: uppercase; }
.finding em { color: var(--acid); font: 400 8px/1 var(--mono); font-style: normal; text-transform: uppercase; }
.finding.failed em { color: var(--danger); }
.fingerprint-empty { min-height: 275px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fingerprint-empty p { width: 270px; margin: 22px 0 0; color: var(--dim); text-align: center; font-size: 10px; line-height: 1.65; }
.mini-spectrum { height: 65px; display: flex; align-items: center; gap: 5px; }
.mini-spectrum i { width: 5px; height: 15px; background: var(--violet); opacity: .5; animation: wave 2s ease-in-out infinite; }
.mini-spectrum i:nth-child(2n) { height: 26px; animation-delay: -.6s; }.mini-spectrum i:nth-child(3n) { height: 45px; animation-delay: -1s; }
.fingerprint-plot { padding-top: 17px; }
.plot-legend { display: flex; gap: 16px; color: var(--dim); font-size: 8px; }
.plot-legend span { display: flex; align-items: center; gap: 5px; }
.plot-legend i { width: 13px; height: 1px; }.plot-legend .observed { background: var(--acid); }.plot-legend .reference { background: var(--violet); }
#distributionChart { width: 100%; height: 190px; margin-top: 10px; overflow: visible; }
.plot-grid { stroke: rgba(255,255,255,.055); stroke-width: 1; vector-effect: non-scaling-stroke; }
.reference-area { fill: rgba(155,135,255,.08); }
.reference-line, .observed-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.reference-line { stroke: var(--violet); opacity: .72; }.observed-line { stroke: var(--acid); filter: drop-shadow(0 0 4px rgba(186,255,101,.25)); }
.fingerprint-stats { display: grid; grid-template-columns: 1.5fr .8fr .8fr; border-top: 1px solid var(--line); }
.fingerprint-stats div { min-width: 0; padding: 11px 7px 0; }
.fingerprint-stats div + div { border-left: 1px solid var(--line); }
.fingerprint-stats span { display: block; color: var(--dim); font-size: 7px; }
.fingerprint-stats strong { display: block; overflow: hidden; margin-top: 6px; font: 400 10px/1 var(--mono); text-overflow: ellipsis; white-space: nowrap; }

.method-section { padding: 105px 0 120px; }
.method-flow { display: grid; grid-template-columns: 1fr 70px 1fr 70px 1fr; align-items: center; }
.method-flow article { min-height: 240px; padding: 25px; border: 1px solid var(--line); background: rgba(12,12,16,.58); }
.method-flow article > em { color: var(--dim); font: 400 7px/1 var(--mono); font-style: normal; letter-spacing: .13em; }
.method-icon { width: 55px; height: 55px; margin: 35px 0 22px; border: 1px solid var(--line); display: grid; place-items: center; }
.method-flow h3 { margin: 0 0 8px; font-size: 13px; font-weight: 500; }
.method-flow p { margin: 0; color: var(--dim); font-size: 10px; line-height: 1.65; }
.flow-line { height: 1px; background: linear-gradient(90deg, var(--line), var(--cyan), var(--line)); }
.pulse-icon { width: 30px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 12'%3E%3Cpath d='M0 7h7l3-5 4 9 4-6 3 2h9' fill='none' stroke='%235be7e2' stroke-width='1'/%3E%3C/svg%3E") center/contain no-repeat; }
.hex-icon { color: var(--violet); font: 300 25px/1 var(--mono); }
.bars-icon { height: 25px; display: flex; align-items: end; gap: 3px; }.bars-icon i { width: 3px; height: 12px; background: var(--acid); }.bars-icon i:nth-child(2){height:21px}.bars-icon i:nth-child(3){height:16px}.bars-icon i:nth-child(4){height:24px}.bars-icon i:nth-child(5){height:8px}

footer { position: relative; z-index: 2; min-height: 94px; padding: 0 max(28px, calc((100vw - 1320px)/2)); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 25px; color: var(--dim); font: 400 8px/1.5 var(--mono); }
footer > span { color: var(--muted); letter-spacing: .1em; }
footer p { flex: 1; text-align: center; }
footer a { color: var(--muted); text-decoration: none; letter-spacing: .08em; }

@media (max-width: 980px) {
  .hero-stats { right: 20px; }
  .workspace, .result-grid, .details-grid { grid-template-columns: 1fr; }
  .control-panel, .monitor-panel { min-height: auto; }
  .idle-state, .error-state { min-height: 520px; }
  .method-flow { grid-template-columns: 1fr; gap: 10px; }
  .flow-line { width: 1px; height: 30px; margin: 0 auto; }
}

@media (max-width: 680px) {
  .topbar { height: 60px; padding: 0 16px; }
  .brand b, #apiState, .state-divider { display: none; }
  .shell { width: calc(100% - 24px); }
  .hero { min-height: 395px; padding: 70px 7px 50px; }
  .hero h1 { font-size: clamp(42px, 15vw, 68px); }
  .hero > p { width: 94%; font-size: 13px; }
  .hero-stats { display: none; }
  .hero::after { display: none; }
  .eyebrow { width: 100%; }
  .panel-heading { height: 62px; padding: 0 16px; }
  #scanForm, .running-state { padding: 18px 15px; }
  .privacy-badge { font-size: 7px; }
  .mode-switch { grid-template-columns: 1fr; }
  .scan-overview { gap: 16px; }
  .progress-orbit { width: 105px; height: 105px; }
  .progress-orbit span { top: 72px; }
  .scan-copy h3 { max-width: 50vw; font-size: 14px; }
  .scan-copy p { max-width: 50vw; }
  .probe-rail { grid-template-columns: repeat(2, 1fr); }
  .result-section, .method-section { padding-top: 70px; }
  .score-card, .telemetry-card, .findings-card, .fingerprint-card { padding-left: 18px; padding-right: 18px; }
  .section-rule em { display: none; }
  footer { padding: 25px 16px; flex-direction: column; gap: 12px; text-align: center; }
}

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