:root {
  --ink: #082238;
  --navy: #0b2c43;
  --mint: #27d9a6;
  --mint-soft: #dff5eb;
  --paper: #f3f7f8;
  --steel: #607889;
  --line: #cbd9df;
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif; }

.app-shell { max-width: 1360px; min-height: 100vh; margin: auto; padding: 0 34px; }
.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 35px;
  padding: 12px 29px;
  border-bottom: 3px solid #1ca982;
  background: var(--ink);
  color: #e6f4f3;
}
.brand { flex: none; display: inline-flex; align-items: center; }
.brand img { display: block; width: 166px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a { padding: 10px 0; border-bottom: 2px solid transparent; color: #b6cbd0; font-size: 13px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: var(--mint); color: #fff; }
.topbar-download { flex: none; padding: 10px 14px; border: 1px solid #4e807c; color: #e8f8f2; font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.topbar-download:hover { border-color: var(--mint); background: #123b4f; }
.topbar-download span { margin-left: 8px; color: var(--mint); }

main { padding-top: 33px; }
.eyebrow, .step, .field-label { color: #4d6d79; font-size: 12px; font-weight: 750; }
.page-lead { display: flex; justify-content: space-between; align-items: baseline; gap: 30px; padding: 0 0 19px; border-bottom: 1px solid var(--line); }
.page-lead .eyebrow { color: #0b7368; font-size: 14px; }
.page-lead p { margin: 0; color: var(--steel); font-size: 13px; line-height: 1.5; text-align: right; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .85fr); gap: 17px; margin-top: 20px; }
.card { border: 1px solid var(--line); background: #fff; }
.upload-card { position: relative; overflow: hidden; padding: 29px; border-color: #254b5d; background: var(--navy); color: #f3fbf9; }
.upload-card::before { position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: var(--mint); content: ""; }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-heading h1, .card-heading h2 { margin: 0 0 22px; font-size: 28px; font-weight: 680; letter-spacing: -.025em; }
.formats { padding: 8px 10px; border: 1px solid #38647a; color: #bce9dc; font-family: Consolas, monospace; font-size: 11px; white-space: nowrap; }
.drop-zone {
  position: relative;
  min-height: 252px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  padding: 26px;
  border: 1px dashed #6d9aa5;
  background-color: #10354d;
  background-image: linear-gradient(#ffffff0a 1px, transparent 1px), linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
  background-size: 24px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, background-color .18s;
}
.drop-zone::before { position: absolute; inset: 12px; border: 1px solid #ffffff16; pointer-events: none; content: ""; }
.drop-zone::after { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--mint); box-shadow: 0 0 18px var(--mint); opacity: 0; pointer-events: none; content: ""; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--mint); background-color: #12435b; }
.drop-zone.dragging::after { opacity: 1; animation: scan 1.5s linear infinite; }
.drop-zone > * { position: relative; z-index: 1; }
.drop-zone strong { font-size: 17px; font-weight: 700; }
.drop-zone span:not(.upload-icon) { color: #b5d0d5; font-size: 13px; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone:focus-within { outline: 3px solid var(--mint); outline-offset: 3px; }
.upload-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 9px; border: 1px solid #42b99c; color: var(--mint); font-size: 29px; line-height: 1; }
.hint { margin: 14px 0 20px; color: #aec8cd; font-size: 12px; }
.selected-file { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 11px 13px; border: 1px solid #4d7c85; background: #123a50; }
.file-symbol { flex: none; width: 34px; height: 36px; display: grid; place-items: center; background: #1b5962; color: var(--mint); font-size: 21px; }
.file-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.file-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.file-copy span { color: #b0cbd0; font-size: 12px; }
.clear-file { margin-left: auto; border: 0; background: transparent; color: #c6dcdd; font-size: 24px; line-height: 1; }
.clear-file:hover { color: #ffb29f; }
.primary-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 11px; padding: 14px 18px; border: 0; background: var(--mint); color: var(--ink); font-weight: 800; }
.primary-button:hover:not(:disabled) { background: #72edc8; }
.primary-button:disabled { cursor: not-allowed; background: #76989c; color: #e2eeee; }
.button-arrow { font-size: 18px; line-height: 14px; }
.status { min-height: 18px; margin: 13px 0 0; color: #a5f1d5; font-size: 13px; }
.status.error { color: #ffc0af; }

.info-card { padding: 30px; }
.info-card h2 { margin: 1px 0 17px; font-size: 25px; letter-spacing: -.025em; }
.process-list { padding: 0; margin: 0 0 21px; list-style: none; }
.process-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 17px 0; border-top: 1px solid #d7e4e6; }
.process-list li > span { color: #0d937b; font-family: Bahnschrift, "Segoe UI", sans-serif; font-size: 22px; font-weight: 600; line-height: 1; }
.process-list strong { font-size: 13px; }
.process-list p { margin: 5px 0 0; color: var(--steel); font-size: 12px; line-height: 1.55; }
.privacy-note { display: flex; gap: 12px; padding: 14px; border-left: 3px solid #16a681; background: #edf7f3; color: #345f59; }
.privacy-note > span { color: #179f7d; font-size: 20px; line-height: 15px; }
.privacy-note p { margin: 0; font-size: 12px; line-height: 1.55; }

.desktop-card { display: flex; align-items: center; gap: 21px; margin-top: 18px; padding: 21px 27px; }
.desktop-icon-wrap { flex: none; width: 70px; height: 70px; overflow: hidden; background: var(--ink); }
.desktop-icon-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.desktop-copy { min-width: 0; flex: 1; }
.desktop-copy .step { color: #138376; }
.desktop-copy h2 { margin: 5px 0 4px; font-size: 21px; }
.desktop-copy p { margin: 0; color: var(--steel); font-size: 13px; line-height: 1.5; }
.desktop-download { flex: none; padding: 12px 17px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 13px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.desktop-download:hover { background: #20516b; }
.desktop-download span { margin-left: 7px; color: var(--mint); }
.learn-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding: 25px 27px; border: 1px solid #b8d9d0; background: var(--mint-soft); }
.learn-banner .eyebrow { color: #0d7668; }
.learn-banner h2 { margin: 5px 0; font-size: 21px; }
.learn-banner p { margin: 0; color: #496e68; font-size: 13px; line-height: 1.5; }
.learn-banner a { flex: none; padding-bottom: 3px; border-bottom: 1px solid #167666; color: #0d6559; font-size: 13px; font-weight: 750; text-decoration: none; }
.learn-banner a:hover { border-color: transparent; }

.result-card { margin-top: 18px; padding: 29px; }
.result-card .step { display: block; margin-bottom: 5px; color: #117b6e; }
.result-heading h2 { margin-bottom: 21px; }
.engine-tag { padding: 8px 10px; border: 1px solid var(--line); color: #406172; font-size: 11px; font-weight: 800; white-space: nowrap; }
.verdict-row { display: flex; align-items: center; gap: 17px; }
.verdict-icon { flex: none; width: 52px; height: 52px; display: grid; place-items: center; background: #e0f3e9; color: #13815d; font-size: 24px; font-weight: 800; }
.field-label { display: block; color: #5b7381; font-size: 11px; letter-spacing: .04em; }
.verdict-text { display: block; margin-top: 6px; color: #137a57; font-size: 21px; }
.probability { margin-left: auto; text-align: right; }
.probability strong { display: block; margin-top: 6px; font-size: 26px; letter-spacing: -.03em; }
.meter { height: 7px; overflow: hidden; margin: 22px 0 25px; background: #e4eef0; }
.meter span { display: block; height: 100%; background: #23aa82; transition: width .35s; }
.result-card.suspicious .verdict-icon { color: #aa4528; background: #fff0e8; }
.result-card.suspicious .verdict-text { color: #af4628; }
.result-card.suspicious .meter span { background: #d56d49; }
.result-details { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; padding: 21px 0; border-top: 1px solid #dce7e9; border-bottom: 1px solid #dce7e9; }
.result-details strong { display: block; overflow-wrap: anywhere; margin-top: 6px; font-size: 14px; }
.hash-row { grid-column: 1 / -1; }
.hash-row code { display: block; overflow-wrap: anywhere; margin-top: 6px; color: #50697a; font-size: 12px; }
.analysis-detail { padding-top: 20px; }
.analysis-detail p { margin: 8px 0 0; color: #3f5d6b; font-size: 13px; line-height: 1.7; white-space: pre-line; }
.disclaimer { margin: 22px 0 0; padding: 12px 15px; border-left: 3px solid #8da8b2; background: #f0f5f6; color: #5f7782; font-size: 12px; line-height: 1.55; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 34px 0 30px; color: #6f8490; font-size: 12px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: #476a78; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.project-main { padding-top: 24px; }
.project-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .75fr); align-items: center; gap: 65px; padding: 54px; background: var(--ink); color: #fff; }
.project-hero .eyebrow, .project-cta .eyebrow { color: #77e7c3; }
.project-hero h1 { max-width: 650px; margin: 17px 0 21px; font-size: clamp(39px, 4.3vw, 60px); font-weight: 660; line-height: 1.04; letter-spacing: -.035em; }
.project-hero-copy > p { max-width: 625px; margin-bottom: 27px; color: #bcd2d9; font-size: 15px; line-height: 1.72; }
.hero-actions, .cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 11px 17px; font-size: 13px; font-weight: 780; text-decoration: none; }
.button-accent { background: var(--mint); color: var(--ink); }
.button-accent:hover { background: #77ecc6; }
.button-outline { border: 1px solid #4f8290; color: #e3f0f2; }
.button-outline:hover { border-color: var(--mint); }
.project-visual { padding: 21px; border: 1px solid #497486; background: #0e324a; }
.visual-head { padding-bottom: 16px; border-bottom: 1px solid #3d6476; color: #c7e1e2; font-size: 12px; }
.visual-indicator { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.project-visual img { display: block; width: 116px; height: 116px; margin: 18px auto; object-fit: cover; }
.visual-line { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid #3d6476; }
.visual-line span { color: #8fbbc0; font-size: 11px; }
.visual-line strong { color: #e7f5ef; font-size: 11px; font-weight: 680; text-align: right; }

.section-block, .enterprise-section, .workflow-section { padding-top: 78px; }
.section-heading { max-width: 710px; margin-bottom: 28px; }
.section-heading .eyebrow { color: #0b776b; }
.section-heading h2 { margin: 9px 0 12px; font-size: clamp(30px, 3.3vw, 43px); font-weight: 670; line-height: 1.13; letter-spacing: -.025em; }
.section-heading p { margin: 0; color: #5c7482; font-size: 15px; line-height: 1.7; }
.capability-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.1fr; gap: 23px; }
.feature-card { padding: 20px 19px 13px 0; border-top: 3px solid #0f796d; }
.feature-card h3 { margin: 0 0 8px; font-size: 21px; }
.feature-card p { margin: 0; color: #5c7482; font-size: 13px; line-height: 1.65; }
.feature-card code, .scope-section code { padding: 1px 4px; background: #e2edef; color: #254c59; }
.benefit-grid { border-bottom: 1px solid var(--line); }
.benefit-card { display: grid; grid-template-columns: minmax(130px, .42fr) minmax(210px, .74fr) minmax(0, 1.3fr); align-items: baseline; gap: 22px; padding: 24px 0; border-top: 1px solid var(--line); }
.benefit-context { color: #0e8272; font-size: 12px; font-weight: 750; }
.benefit-card h3 { margin: 0; font-size: 20px; }
.benefit-card p { margin: 0; color: #5c7482; font-size: 13px; line-height: 1.65; }

.workflow-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; margin: 0; list-style: none; border: 1px solid var(--line); background: #fff; }
.workflow-list li { display: grid; grid-template-columns: 35px 1fr; gap: 14px; padding: 23px; }
.workflow-list li + li { border-left: 1px solid var(--line); }
.workflow-list li > span { color: #0b836f; font-family: Bahnschrift, "Segoe UI", sans-serif; font-size: 21px; }
.workflow-list h3 { margin: 0 0 6px; font-size: 17px; }
.workflow-list p { margin: 0; color: #5c7482; font-size: 12px; line-height: 1.55; }
.scope-section { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, .8fr); gap: 37px; margin-top: 78px; padding: 32px; border-left: 4px solid #0c9a79; background: #fff; }
.scope-section h2 { max-width: 620px; margin: 9px 0 16px; font-size: clamp(26px, 2.8vw, 35px); line-height: 1.15; }
.scope-section p { color: #5b7280; font-size: 13px; line-height: 1.7; }
.scope-section p:last-child { margin-bottom: 0; }
.scope-aside { align-self: center; padding: 22px; border: 1px solid #cce5dd; background: #eaf7f1; }
.scope-aside strong { font-size: 13px; }
.scope-formats { display: flex; flex-wrap: wrap; gap: 7px; margin: 17px 0; }
.scope-formats span { padding: 8px 10px; border: 1px solid #9dccb9; color: #146554; font-family: Consolas, monospace; font-size: 11px; font-weight: 800; }
.scope-aside p { margin: 0; font-size: 12px; }
.project-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 20px; padding: 32px; background: var(--ink); color: #fff; }
.project-cta h2 { margin: 7px 0 8px; font-size: 25px; }
.project-cta p { margin: 0; color: #b8ced2; font-size: 13px; }
.cta-actions { justify-content: flex-end; }

@keyframes scan { from { top: 0; } to { top: 100%; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drop-zone, .meter span { transition: none; }
  .drop-zone.dragging::after { animation: none; top: 50%; }
}
@media (max-width: 960px) {
  .topbar { gap: 18px; }
  .brand img { width: 142px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 12px; }
  .project-hero { gap: 25px; padding: 38px; }
  .benefit-card { grid-template-columns: 130px minmax(170px, .8fr) minmax(0, 1.2fr); }
}
@media (max-width: 760px) {
  .app-shell { padding: 0 18px; }
  .topbar { flex-wrap: wrap; padding: 13px 17px 7px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 23px; }
  .topbar-download { margin-left: auto; }
  .page-lead { display: block; }
  .page-lead p { margin-top: 6px; text-align: left; }
  .content-grid { grid-template-columns: 1fr; }
  .project-hero { grid-template-columns: 1fr; }
  .project-visual { display: none; }
  .section-block, .enterprise-section, .workflow-section { padding-top: 56px; }
  .capability-grid { grid-template-columns: 1fr; gap: 18px; }
  .benefit-card { grid-template-columns: 1fr; gap: 7px; }
  .workflow-list { grid-template-columns: 1fr; }
  .workflow-list li + li { border-left: 0; border-top: 1px solid var(--line); }
  .scope-section { grid-template-columns: 1fr; margin-top: 56px; }
  .project-cta { flex-direction: column; align-items: stretch; }
  .cta-actions { justify-content: flex-start; }
  .verdict-row { flex-wrap: wrap; }
  .probability { width: 100%; margin: 6px 0 0; text-align: left; }
}
@media (max-width: 540px) {
  .brand img { width: 125px; }
  .topbar-download { padding: 9px; font-size: 11px; }
  .topbar-download span { display: none; }
  .site-nav { justify-content: space-between; gap: 9px; }
  .site-nav a { font-size: 12px; }
  .upload-card, .info-card, .result-card { padding: 22px; }
  .card-heading h1, .card-heading h2 { font-size: 25px; }
  .formats { display: none; }
  .drop-zone { min-height: 220px; }
  .desktop-card { flex-wrap: wrap; padding: 19px; }
  .desktop-icon-wrap { width: 56px; height: 56px; }
  .desktop-copy { flex-basis: calc(100% - 77px); }
  .desktop-copy h2 { font-size: 18px; }
  .desktop-download { width: 100%; text-align: center; }
  .learn-banner { display: block; }
  .learn-banner a { display: inline-block; margin-top: 14px; }
  .result-details { grid-template-columns: 1fr; }
  .project-hero { padding: 28px 23px; }
  .project-hero h1 { font-size: 37px; }
  .project-hero-copy > p { font-size: 14px; }
  .hero-actions, .cta-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .scope-section { padding: 22px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
