:root {
  color-scheme: dark;
  --ink: #071b22;
  --ink-2: #0d2932;
  --paper: #f4f0e7;
  --muted: #a9bbc0;
  --line: #31505a;
  --signal: #f5f74d;
  --coral: #ff765f;
  --mint: #77e5c3;
  --white: #fffdf7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--white);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--ink); }
button, textarea { font: inherit; }
a { color: inherit; }

.skip-link { position: fixed; z-index: 20; top: -100px; left: 10px; padding: 12px 16px; background: var(--signal); color: var(--ink); }
.skip-link:focus { top: 10px; }

.site-header { min-height: 72px; padding: 0 clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand, .repo-link { text-decoration: none; font-weight: 750; letter-spacing: -.02em; }
.brand span { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 9px; border-radius: 50%; background: var(--signal); color: var(--ink); font-size: .72rem; letter-spacing: 0; }
.repo-link { justify-self: end; }
.local-badge { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; }
.local-badge span { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px var(--mint); }

main { overflow: hidden; }
.hero { position: relative; min-height: 540px; padding: clamp(72px, 9vw, 132px) clamp(20px, 8vw, 120px) 80px; border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -130px; top: 28px; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 72px rgba(49,80,90,.18), 0 0 0 144px rgba(49,80,90,.1); }
.eyebrow, .step { margin: 0 0 18px; color: var(--signal); text-transform: uppercase; letter-spacing: .17em; font-weight: 800; font-size: .7rem; }
h1 { position: relative; z-index: 1; max-width: 980px; margin: 0; font-size: clamp(3.6rem, 9vw, 8.4rem); line-height: .84; letter-spacing: -.075em; }
h1 em { color: var(--signal); font-family: Georgia, serif; font-weight: 400; }
.lede { position: relative; z-index: 1; max-width: 650px; margin: 40px 0 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.6; }
.signal { position: absolute; z-index: 2; right: clamp(25px, 8vw, 120px); bottom: 56px; display: flex; gap: 8px; align-items: end; }
.signal span { width: 8px; background: var(--coral); border-radius: 8px; animation: pulse 1.6s ease-in-out infinite alternate; }
.signal span:nth-child(1) { height: 18px; }.signal span:nth-child(2) { height: 38px; animation-delay: .2s; }.signal span:nth-child(3) { height: 62px; animation-delay: .4s; }.signal span:nth-child(4) { height: 30px; animation-delay: .6s; }

.workspace, .report, .scope { padding: clamp(64px, 8vw, 112px) clamp(20px, 6vw, 88px); }
.workspace { background: var(--paper); color: var(--ink); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; max-width: 1280px; margin: 0 auto 40px; }
.section-heading h2, .scope h2 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.055em; line-height: .95; }
.workspace .step { color: #647077; }
.section-heading > p { max-width: 420px; margin: 0; color: #526168; line-height: 1.55; }

.editors { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #b8b7b0; background: var(--white); }
.editor-panel { min-width: 0; }
.editor-panel + .editor-panel { border-left: 1px solid #b8b7b0; }
.editor-panel > span { min-height: 72px; padding: 17px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid #d1cfc7; }
.editor-panel b { font-size: .95rem; }.editor-panel small { color: #68777c; }
textarea { display: block; width: 100%; min-height: 280px; resize: vertical; padding: 24px; border: 0; outline: 0; background: transparent; color: var(--ink); line-height: 1.65; }
textarea:focus { box-shadow: inset 0 0 0 3px var(--coral); }
.target textarea:focus { box-shadow: inset 0 0 0 3px #3fb99d; }
.actions { max-width: 1280px; margin: 24px auto 0; display: flex; flex-wrap: wrap; gap: 10px; }
button { min-height: 48px; border: 1px solid currentColor; padding: 0 18px; cursor: pointer; font-weight: 750; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.primary:hover { background: var(--coral); color: var(--ink); border-color: var(--coral); }
.secondary { background: transparent; color: var(--ink); border-color: #7b8586; }
.quiet { margin-left: auto; border-color: transparent; background: transparent; color: #526168; text-decoration: underline; }
.input-error { max-width: 1280px; margin: 16px auto 0; color: #9d2519; font-weight: 700; }

.report { background: var(--ink); }
.report-heading .step { margin-bottom: 18px; }
.download { background: transparent; color: var(--signal); border-color: var(--signal); }
.download:disabled { cursor: not-allowed; opacity: .4; }
.summary { max-width: 1280px; margin: 0 auto 30px; padding: 26px; display: flex; align-items: center; gap: 24px; border: 1px solid var(--line); background: var(--ink-2); }
.summary .score { flex: 0 0 94px; height: 94px; display: grid; place-content: center; text-align: center; border-radius: 50%; border: 2px solid var(--line); }
.score span { font-size: 1.6rem; font-weight: 850; }.score small { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .6rem; }
.summary strong { display: block; font-size: 1.25rem; }.summary p { margin: 7px 0 0; color: var(--muted); }
.summary.parity { border-color: var(--mint); }.summary.parity .score { color: var(--mint); border-color: var(--mint); }
.summary.drift { border-color: var(--coral); }.summary.drift .score { color: var(--coral); border-color: var(--coral); }
.result-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.result-card { padding: 24px; border: 1px solid var(--line); background: #0b242d; overflow-wrap: anywhere; }
.result-card h3 { margin: 0 0 18px; font-size: 1rem; }.result-card ul { margin: 0; padding-left: 20px; color: var(--muted); }.result-card li + li { margin-top: 12px; }
.result-card code { color: var(--white); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.result-card.missing h3, .result-card.unexpected h3 { color: var(--coral); }
.result-card.matched h3 { color: var(--mint); }
.advisories { grid-column: 1 / -1; border-color: #6e7040; }.advisories h3 { color: var(--signal); }

.scope { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; background: var(--signal); color: var(--ink); }
.scope .step { color: #5a5c15; }
.scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #777927; }
.scope-grid article { padding: 24px 20px; border-right: 1px solid #777927; }.scope-grid article:last-child { border: 0; }
.scope-grid span { font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }.scope-grid p { margin: 16px 0 0; line-height: 1.5; }

footer { min-height: 96px; padding: 24px clamp(20px, 6vw, 88px); display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); border-top: 1px solid var(--line); }

@keyframes pulse { to { transform: scaleY(.6); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.signal span { animation: none; } }
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; }.local-badge { display: none; }
  .hero { min-height: 500px; }.hero::after { width: 280px; height: 280px; }.signal { display: none; }
  .section-heading { align-items: start; flex-direction: column; }
  .editors, .result-grid, .scope { grid-template-columns: 1fr; }
  .editor-panel + .editor-panel { border-left: 0; border-top: 1px solid #b8b7b0; }
  textarea { min-height: 220px; }
  .actions button { flex: 1 1 210px; }.actions .quiet { margin-left: 0; }
  .summary { align-items: flex-start; }.summary .score { flex-basis: 78px; height: 78px; }
  .scope-grid { grid-template-columns: 1fr; }.scope-grid article { border-right: 0; border-bottom: 1px solid #777927; }
  footer { align-items: flex-start; flex-direction: column; }
}
