:root {
  --ink: #0c1722;
  --muted: #5c6976;
  --paper: #f4f1e8;
  --paper-2: #fffdf7;
  --navy: #08131f;
  --navy-2: #102638;
  --cyan: #00a9bd;
  --cyan-light: #62e2e8;
  --gold: #f0b646;
  --line: #ccd3d3;
  --danger: #a63c2f;
  --radius: 18px;
  --shadow: 0 22px 60px rgba(8, 19, 31, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
button, input, select { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; background: #fff; padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header { min-height: 74px; padding: 14px max(20px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--navy); color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.brand strong { color: var(--cyan-light); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--cyan-light); border-radius: 50%; color: var(--gold); font-size: .82rem; }
.site-header nav, .site-footer nav { display: flex; align-items: center; gap: 22px; }
.site-header nav > a, .site-footer nav a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .9rem; font-weight: 650; }
.site-header nav > a:hover, .site-footer nav a:hover { color: #fff; }
.language select { min-height: 38px; padding: 6px 28px 6px 11px; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: var(--navy-2); }

.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: 68px; align-items: center; padding-block: 78px 84px; }
.eyebrow { margin: 0 0 14px; color: #007f90; font-size: .75rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 850px; margin: 0; font-size: clamp(2.75rem, 6.4vw, 6rem); line-height: .95; letter-spacing: -.065em; }
.hero-lead { max-width: 760px; margin: 28px 0 0; color: #3e4c59; font-size: clamp(1rem, 1.6vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 18px; border: 1px solid transparent; border-radius: 999px; font-weight: 780; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--cyan); color: #04141b; border-color: #008b9e; }
.button.secondary { background: transparent; border-color: #9ca8ad; color: var(--ink); }
.button.ghost { background: transparent; border-color: #b8c0c3; color: var(--muted); }
.trust-list { display: flex; flex-wrap: wrap; gap: 14px 24px; padding: 0; margin: 32px 0 0; list-style: none; color: #53616c; font-size: .88rem; }
.trust-list span:first-child { color: var(--cyan); margin-right: 7px; }
.hero-console { min-width: 0; overflow: hidden; border: 1px solid #173a51; border-radius: 18px; background: var(--navy); color: #dbeff0; box-shadow: var(--shadow); transform: rotate(1deg); }
.console-head { height: 48px; display: flex; align-items: center; gap: 7px; padding: 0 15px; background: #102638; border-bottom: 1px solid #244258; }
.console-head span { width: 9px; height: 9px; border-radius: 50%; background: #60778a; }
.console-head strong { margin-left: auto; color: #82a8b8; font-size: .72rem; letter-spacing: .08em; }
.hero-console pre { margin: 0; padding: 24px; overflow: auto; font: .85rem/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; }
.hero-console code span { color: var(--gold); }
.hero-console code b { color: var(--cyan-light); }

.tool-section { padding: 78px 0; background: var(--navy); color: #fff; }
.tool-section .eyebrow, .site-footer .eyebrow { color: var(--cyan-light); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 440px); gap: 48px; align-items: end; margin-bottom: 34px; }
.section-heading.compact { margin-top: 72px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4.5vw, 4.25rem); line-height: 1; letter-spacing: -.05em; }
.section-heading > p { margin: 0; color: inherit; opacity: .72; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 2px; overflow: hidden; border: 1px solid #2c4558; border-radius: var(--radius); background: #2c4558; }
.drop-zone, .workspace-side { background: #102333; }
.drop-zone { min-height: 390px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 36px; border: 2px dashed #426071; }
.drop-zone.dragging { background: #123d4a; border-color: var(--cyan-light); }
.drop-zone > strong { font-size: clamp(1.35rem, 2.5vw, 2rem); }
.drop-zone > span:not(.upload-icon) { margin: 8px 0 22px; color: #9fb3bf; }
.upload-icon { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 22px; border: 1px solid #4f6d7e; border-radius: 50%; color: var(--cyan-light); font-size: 2rem; }
.workspace-side { min-width: 0; padding: 32px; }
.file-rules { margin: 0; }
.file-rules > div { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid #294456; }
.file-rules dt { color: #8fa6b4; font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; }
.file-rules dd { margin: 5px 0 0; color: #eefafa; font-size: .91rem; }
.file-list { display: grid; gap: 8px; margin: 18px 0; }
.file-chip { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid #2c4c5f; border-radius: 9px; background: #0a1a27; }
.file-chip strong { color: var(--cyan-light); font-size: .72rem; }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip small { color: #78909d; }
.app-status { display: flex; align-items: flex-start; gap: 10px; min-height: 54px; padding: 14px; margin: 18px 0; border-radius: 10px; background: #0b1a26; color: #cfdee6; }
.app-status.ready { border-left: 4px solid #52c98e; }
.app-status.error { border-left: 4px solid #f27c69; color: #ffd5cf; }
.app-status.working { border-left: 4px solid var(--gold); }
.tool-section .button.ghost { color: #d6e4e8; border-color: #496374; }

.results { padding-bottom: 84px; }
.summary-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.metric { min-width: 0; min-height: 130px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); }
.metric.primary { background: var(--cyan); border-color: #00889a; }
.metric strong { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; }
.metric span { margin-top: 9px; color: #52606b; font-size: .85rem; }
.metric.primary span { color: #0b2c35; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.panel { min-width: 0; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); box-shadow: 0 12px 35px rgba(8,19,31,.05); }
.panel-head { min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head > span, .panel-head > div > span { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; background: var(--navy); color: var(--cyan-light); font-size: .75rem; }
.panel-head h3 { margin: 0; font-size: 1.15rem; }
.coverage-list, .validation-list, .issue-list { padding: 14px 20px 22px; }
.coverage-row { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(260px, 1.2fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid #e2e4e1; }
.coverage-row:last-child { border-bottom: 0; }
.coverage-row > div { min-width: 0; }
.coverage-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coverage-row small { color: var(--muted); }
.coverage-row dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 0; }
.coverage-row dl div { padding: 8px; border-radius: 8px; background: #eef2f1; }
.coverage-row dt { color: var(--muted); font-size: .7rem; }
.coverage-row dd { margin: 2px 0 0; font-size: .78rem; font-weight: 750; }
.validation-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid #e2e4e1; }
.validation-row:last-child { border-bottom: 0; }
.validation-row div { min-width: 0; }
.validation-row strong, .validation-row small { display: block; }
.validation-row small { max-width: 42ch; color: var(--muted); }
.pill { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.pill.pass { background: #d9f3e3; color: #17603b; }
.pill.fail { background: #fde1dc; color: #8a2d21; }
.inventory-head { justify-content: space-between; }
.inventory-head > div:first-child { display: flex; align-items: center; gap: 12px; }
.filters { display: flex; gap: 8px; }
.filters input, .filters select { min-height: 40px; max-width: 220px; padding: 8px 11px; border: 1px solid #aeb8bb; border-radius: 8px; background: #fff; }
.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .86rem; }
th, td { padding: 13px 14px; border-bottom: 1px solid #e0e3e1; text-align: left; vertical-align: top; }
th { color: #65717a; background: #f1f3ef; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
td code { display: block; max-width: 300px; margin-top: 4px; color: #65717a; font-size: .7rem; overflow-wrap: anywhere; }
.eco, .relation { display: inline-block; padding: 4px 7px; border-radius: 6px; background: #e6edec; font-size: .72rem; }
.relation.direct { background: #cfeff1; color: #075967; }
.relation.transitive { background: #eee6c9; color: #675319; }
.table-note { margin: 0; padding: 11px 18px; color: var(--muted); font-size: .8rem; }
.issue-list article { display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid #e1e5e2; }
.issue-list article:last-child { border-bottom: 0; }
.issue-list article > span { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto; border-radius: 50%; background: #f7e5c5; color: #73510f; font-weight: 850; }
.issue-list p, .empty-note { margin: 3px 0 0; color: var(--muted); }
.dossier { margin-top: 28px; }
.dossier-form { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.dossier-form label { min-width: 0; display: grid; gap: 6px; color: #44515b; font-size: .8rem; font-weight: 700; }
.dossier-form input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #aab5b7; border-radius: 8px; background: #fff; color: var(--ink); }
.download-card { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 8px; padding: 20px; border-radius: 12px; background: var(--navy); color: #fff; }
.download-card p { margin: 4px 0 0; color: #adc1cc; }

.scope-section { padding: 84px 0; background: #e7e4da; }
.scope-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.scope-grid article { padding: 25px; border-top: 5px solid var(--cyan); background: var(--paper-2); }
.scope-grid article:nth-child(2) { border-color: var(--gold); }
.scope-grid article:nth-child(3) { border-color: #8e9aa1; }
.scope-grid h3 { margin: 0 0 14px; font-size: 1.35rem; }
.scope-grid ul { margin: 0; padding-left: 20px; color: #4f5d67; }
.scope-grid li + li { margin-top: 8px; }
.privacy-strip { padding: 48px 0; background: var(--cyan); color: #06171d; }
.privacy-strip .shell { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 22px; align-items: center; }
.privacy-symbol { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid #075c68; border-radius: 50%; font-size: 1.6rem; }
.privacy-strip h2, .privacy-strip p { margin: 0; }
.privacy-strip p { max-width: 800px; margin-top: 4px; }
.text-link { font-weight: 800; text-decoration: none; }
.site-footer { padding: 28px 0; background: var(--navy); color: #fff; }
.site-footer .shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer p { color: #91a8b4; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-console { max-width: 620px; }
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
  .dossier-form { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .site-header nav > a { display: none; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1180px); }
  .site-header { padding-inline: 14px; }
  .hero { padding-block: 54px 60px; }
  h1 { font-size: clamp(2.55rem, 13vw, 4.4rem); }
  .section-heading { grid-template-columns: 1fr; gap: 14px; }
  .workspace, .two-column, .scope-grid { grid-template-columns: 1fr; }
  .drop-zone { min-height: 320px; }
  .summary-grid { grid-template-columns: repeat(2,1fr); }
  .inventory-head { align-items: flex-start; flex-direction: column; }
  .filters { width: 100%; }
  .filters label { flex: 1; }
  .filters input, .filters select { width: 100%; max-width: none; }
  .privacy-strip .shell { grid-template-columns: auto minmax(0,1fr); }
  .privacy-strip .text-link { grid-column: 2; }
  .site-footer .shell { align-items: flex-start; flex-direction: column; }
  .site-footer nav { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .site-header { min-height: 66px; }
  .brand { font-size: .85rem; }
  .brand-mark { width: 30px; height: 30px; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .trust-list { display: grid; gap: 8px; }
  .hero-console pre { padding: 16px; font-size: .74rem; }
  .workspace-side, .drop-zone { padding: 22px 18px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 110px; padding: 14px; }
  .coverage-row { grid-template-columns: 1fr; }
  .coverage-row dl { grid-template-columns: 1fr 1fr 1fr; }
  .validation-row { align-items: flex-start; flex-direction: column; }
  .filters { flex-direction: column; }
  .dossier-form { grid-template-columns: 1fr; padding: 17px; }
  .download-card { align-items: stretch; flex-direction: column; }
  .download-card .button { width: 100%; }
  .privacy-strip .shell { grid-template-columns: 1fr; }
  .privacy-strip .text-link { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
