:root {
  --ink: #171714;
  --paper: #f2f0e9;
  --soft: #e7e4da;
  --line: rgba(23, 23, 20, .16);
  --acid: #d4ff52;
  --orange: #f06a3b;
  --blue: #3156ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Manrope, sans-serif; }
button, input { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 16px; font: 500 11px/1 DM Mono, monospace; letter-spacing: .13em; text-transform: uppercase; }

.site-header { height: 88px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: rgba(242,240,233,.9); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark { width: 45px; height: 45px; display: grid; place-items: center; background: var(--ink); color: white; border-radius: 50%; font: 500 11px DM Mono; }
.brand b, .brand small { display: block; }.brand b { font-size: 14px; }.brand small { margin-top: 2px; opacity: .58; font: 400 9px DM Mono; letter-spacing: .08em; text-transform: uppercase; }
.model-state { display: flex; align-items: center; gap: 9px; font: 500 10px DM Mono; text-transform: uppercase; letter-spacing: .06em; }
.model-state i, .target-state i { width: 8px; height: 8px; border-radius: 50%; background: #b3b1aa; }
.model-state.ready i, .target-state i { background: #68b53d; box-shadow: 0 0 0 5px rgba(104,181,61,.12); }
.model-state.error i { background: #d74b38; }
.ghost-button, .file-button { min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 11px 16px; cursor: pointer; font: 500 10px DM Mono; text-transform: uppercase; letter-spacing: .05em; }

main { overflow: hidden; }
.hero { min-height: 680px; padding: 64px 5vw 76px 7vw; display: grid; grid-template-columns: 1.08fr .72fr; gap: 5vw; align-items: center; }
.hero-copy { position: relative; z-index: 2; animation: rise-in .8s cubic-bezier(.2,.75,.25,1) both; }
.hero h1 { margin: 0; max-width: 790px; font: 400 clamp(58px, 6.8vw, 105px)/.86 Newsreader, serif; letter-spacing: -.045em; font-optical-sizing: auto; }
.hero h1 em { display: inline-block; color: var(--blue); font-size: .95em; font-weight: 400; letter-spacing: -.035em; }
.hero-text { max-width: 590px; margin: 38px 0 0 22%; font-size: 16px; line-height: 1.6; }
.hero-visual { position: relative; height: min(64vw, 600px); max-height: 600px; min-height: 510px; overflow: hidden; background: #1c1b18; animation: visual-in 1s .12s cubic-bezier(.2,.75,.25,1) both; }
.hero-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: saturate(.82) contrast(1.05); transform: scale(1.035); transition: transform 1.2s cubic-bezier(.2,.75,.25,1), filter .6s ease; }
.hero-visual:hover > img { transform: scale(1); filter: saturate(1) contrast(1.02); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(12,12,10,.78) 100%); pointer-events: none; }
.hero-scan { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }.hero-scan i { position: absolute; left: 0; right: 0; top: 18%; height: 1px; background: var(--acid); box-shadow: 0 0 18px rgba(212,255,82,.65); animation: optical-scan 5.8s ease-in-out infinite; }.hero-scan span { position: absolute; right: 16px; top: 18%; transform: translateY(-18px); color: var(--acid); font: 500 8px DM Mono; letter-spacing: .09em; text-transform: uppercase; animation: scan-label 5.8s ease-in-out infinite; }
.hero-index { position: absolute; z-index: 3; top: 0; right: 0; width: 125px; height: 125px; display: flex; align-items: flex-end; gap: 8px; padding: 16px; background: #c3cbc4; color: var(--ink); }.hero-index span { font: 400 45px/.8 Newsreader; color: var(--blue); }.hero-index small { font: 500 7px/1.35 DM Mono; text-transform: uppercase; letter-spacing: .06em; }
.hero-meta { position: absolute; z-index: 3; left: 22px; right: 22px; bottom: 20px; color: white; border-top: 1px solid rgba(255,255,255,.55); padding-top: 13px; }
.hero-meta span { font: 500 8px DM Mono; letter-spacing: .08em; }.hero-meta strong { display: block; margin-top: 14px; font: 400 24px Newsreader; }.hero-meta p { margin-bottom: 0; font-size: 9px; line-height: 1.55; opacity: .65; }

.workspace { background: var(--ink); color: var(--paper); padding: 5vw; }
.capture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: rgba(255,255,255,.12); }
.capture-card { background: #22221f; padding: 18px; transition: background .35s ease, transform .35s ease; }.capture-card:hover { background: #282824; transform: translateY(-3px); }
.capture-card header, .capture-card footer { display: flex; justify-content: space-between; align-items: center; min-height: 42px; }
.capture-card header span, .capture-card footer span { font: 400 10px DM Mono; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .06em; }.capture-card header b { color: var(--acid); font: 500 13px DM Mono; }
.image-frame { aspect-ratio: 4/3; position: relative; overflow: hidden; background: #111; }
.image-frame canvas, .heatmap-stage canvas { width: 100%; height: 100%; display: block; object-fit: contain; }
.image-frame .marker-overlay { position: absolute; inset: 0; pointer-events: none; }.image-frame .marker-overlay.detected { animation: markers-breathe 2.8s ease-in-out 2; }
.image-tag { position: absolute; left: 14px; bottom: 14px; background: rgba(20,20,18,.76); padding: 8px 10px; font: 500 9px DM Mono; letter-spacing: .08em; }.image-tag.accent { color: var(--acid); }
.file-button { position: relative; color: white; border-color: rgba(255,255,255,.22); padding: 8px 12px; overflow: hidden; }.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.target-strip { margin-top: 2px; display: grid; grid-template-columns: 1.2fr minmax(180px, 360px) .7fr; align-items: center; gap: 6vw; padding: 42px; background: #c3cbc4; color: var(--ink); }
.target-copy h2 { margin: 0 0 10px; font: 400 38px Newsreader; }.target-copy p { max-width: 420px; margin: 0; font-size: 12px; line-height: 1.6; }
.target-strip img { width: 100%; max-height: 150px; object-fit: contain; mix-blend-mode: multiply; }
.target-state { display: grid; grid-template-columns: 12px 1fr; gap: 6px 10px; align-items: center; }.target-state span { font: 500 9px DM Mono; letter-spacing: .08em; }.target-state b, .target-state small { grid-column: 2; }.target-state b { font-size: 13px; }.target-state small { opacity: .6; }
.target-state i { background: var(--blue); box-shadow: 0 0 0 5px rgba(49,86,255,.12); }
.registration-strip { margin-top: 2px; background: #f2f0e9; color: var(--ink); padding: 38px 42px; display: grid; grid-template-columns: .8fr 1.6fr .75fr; gap: 4vw; align-items: center; }
.registration-title .eyebrow { margin-bottom: 10px; }.registration-title h3 { margin: 0; max-width: 260px; font: 400 26px/1.1 Newsreader; }
.registration-metrics { display: grid; grid-template-columns: repeat(4,1fr); border-left: 1px solid var(--line); }
.registration-metrics > div { padding: 4px 20px; border-right: 1px solid var(--line); }
.registration-metrics span, .registration-metrics small { display: block; font: 400 8px DM Mono; text-transform: uppercase; letter-spacing: .06em; opacity: .78; }
.registration-metrics b { display: block; margin: 8px 0 5px; font: 400 25px Newsreader; color: var(--blue); }
.registration-status { display: flex; align-items: flex-start; gap: 12px; }.registration-status i { width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; background: #aaa; flex: 0 0 auto; }.registration-status.success i { background: #68b53d; box-shadow: 0 0 0 5px rgba(104,181,61,.13); animation: status-pulse 2.5s ease-in-out infinite; }.registration-status.failure i { background: #d74b38; }
.registration-status p { margin: 0; }.registration-status b, .registration-status span { display: block; }.registration-status b { font-size: 11px; }.registration-status span { margin-top: 5px; font-size: 9px; line-height: 1.5; opacity: .78; }

.analysis-section, .report-section { padding: 110px 5vw; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 42px; }
.section-heading h2 { margin: 0; font: 400 clamp(38px,5vw,68px)/1 Newsreader; letter-spacing: -.035em; }
.primary-button { border: 0; display: flex; align-items: center; gap: 34px; background: var(--blue); color: white; border-radius: 999px; padding: 8px 8px 8px 23px; cursor: pointer; font-weight: 600; transition: transform .25s ease, box-shadow .25s ease; }.primary-button:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(49,86,255,.24); }
.primary-button b { width: 43px; height: 43px; display: grid; place-items: center; background: white; color: var(--blue); border-radius: 50%; font-size: 19px; transition: transform .3s ease; }.primary-button:hover b { transform: rotate(45deg); }.primary-button:disabled { opacity: .55; cursor: wait; }
.analysis-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .55fr); gap: 2px; }
.heatmap-panel { background: #d9d6cd; min-width: 0; }.panel-top { min-height: 70px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }.panel-top > span { font: 400 9px DM Mono; opacity: .82; }
.view-switch { display: flex; gap: 3px; }.view-switch button { min-height: 44px; min-width: 44px; border: 0; padding: 9px 13px; background: transparent; border-radius: 999px; cursor: pointer; font: 500 9px DM Mono; text-transform: uppercase; transition: color .2s ease, background .2s ease; }.view-switch .active { color: white; background: var(--ink); }
.heatmap-stage { position: relative; aspect-ratio: 4/3; background: #111; overflow: hidden; }.heatmap-stage canvas { transition: opacity .2s ease; }.scale { position: absolute; bottom: 16px; right: 16px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: rgba(20,20,18,.78); color: white; font: 400 8px DM Mono; text-transform: uppercase; }.scale i { width: 80px; height: 5px; background: linear-gradient(90deg,#17293e,#25bed1,#ffe85b,#f03a30); }
.compare-axis { display: none; position: absolute; top: 0; bottom: 0; left: 50%; z-index: 3; pointer-events: none; }.compare-axis i { position: absolute; top: 0; bottom: 0; width: 1px; background: white; box-shadow: 0 0 16px rgba(0,0,0,.4); }.compare-axis b { position: absolute; top: 50%; left: 0; transform: translate(-50%,-50%); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--blue); font-size: 17px; box-shadow: 0 8px 25px rgba(0,0,0,.25); }
.compare-control { display: none; position: absolute; z-index: 4; left: 20px; right: 20px; bottom: 18px; align-items: center; gap: 12px; padding: 10px 13px; min-height: 44px; color: white; background: rgba(20,20,18,.76); backdrop-filter: blur(10px); font: 500 8px DM Mono; text-transform: uppercase; letter-spacing: .06em; }.compare-control input { width: 100%; min-height: 44px; accent-color: var(--acid); cursor: ew-resize; }
.heatmap-stage.is-compare .compare-axis, .heatmap-stage.is-compare .compare-control { display: flex; }.heatmap-stage.is-compare .scale { display: none; }
.evidence-column { background: var(--ink); color: white; padding: 30px; display: flex; flex-direction: column; }
.metric-feature { padding-bottom: 27px; border-bottom: 1px solid rgba(255,255,255,.16); }.metric-feature span, .metric-feature small, .metric-pair span { display: block; font: 400 9px DM Mono; text-transform: uppercase; letter-spacing: .07em; opacity: .55; }.metric-feature strong { display: block; margin: 13px 0 7px; font: 400 58px Newsreader; color: var(--acid); }
.metric-pair { display: grid; grid-template-columns: 1fr 1fr; padding: 25px 0; border-bottom: 1px solid rgba(255,255,255,.16); }.metric-pair div + div { border-left: 1px solid rgba(255,255,255,.16); padding-left: 20px; }.metric-pair b { display: block; margin-top: 8px; font: 400 22px Newsreader; }
.quality-note { display: flex; gap: 13px; margin-top: 24px; }.quality-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); margin-top: 5px; flex: 0 0 auto; }.quality-note p { margin: 0; }.quality-note b, .quality-note span { display: block; }.quality-note b { font-size: 12px; }.quality-note span { margin-top: 5px; opacity: .55; font-size: 10px; line-height: 1.5; }
.regions { margin: auto 0 0; padding: 25px 0 0; list-style: none; counter-reset: region; }.regions li { counter-increment: region; display: grid; grid-template-columns: 27px 1fr auto; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.13); font-size: 10px; }.regions li::before { content: "0" counter(region); font: 400 9px DM Mono; opacity: .42; }.regions em { font-style: normal; color: var(--acid); }

.report-section { background: #e8e4d9; min-height: 620px; }.provenance { font: 400 9px DM Mono; text-transform: uppercase; opacity: .82; }.empty-report { min-height: 260px; border-top: 1px solid var(--line); display: grid; place-items: center; text-align: center; }.empty-report span { width: 70px; height: 70px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font: 500 11px DM Mono; }.empty-report p { max-width: 440px; margin-top: -70px; font: 400 20px/1.4 Newsreader; }
.report-content { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2px; animation: report-in .7s cubic-bezier(.2,.75,.25,1) both; }.report-summary { background: var(--ink); color: white; padding: 55px; min-height: 400px; }.report-summary > span, .human-review span { font: 500 9px DM Mono; text-transform: uppercase; letter-spacing: .08em; opacity: .6; }.report-summary h3 { margin: 55px 0 30px; font: 400 34px/1.15 Newsreader; }.report-summary p { font-size: 12px; line-height: 1.7; opacity: .65; }
.observations { background: white; }.observation { padding: 25px 30px; border-bottom: 1px solid var(--line); }.observation header { display: flex; justify-content: space-between; gap: 20px; }.observation h4 { margin: 0; font: 500 13px Manrope; }.observation header span { font: 500 9px DM Mono; color: var(--blue); }.observation p { margin: 10px 0 0; font-size: 11px; line-height: 1.6; opacity: .66; }.human-review { grid-column: 1/-1; display: grid; grid-template-columns: .4fr 1fr; padding: 32px 40px; background: var(--acid); }.human-review p { margin: 0; font: 400 20px/1.35 Newsreader; }

dialog { width: min(700px, 90vw); padding: 48px; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.3); }dialog::backdrop { background: rgba(10,10,9,.72); backdrop-filter: blur(5px); }.dialog-close { position: absolute; right: 20px; top: 15px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 28px; cursor: pointer; }.dialog-close + .eyebrow { margin-top: 10px; }dialog h2 { font: 400 42px Newsreader; }dialog img { width: 100%; max-height: 240px; object-fit: contain; mix-blend-mode: multiply; }dialog > p:last-child { font-size: 13px; line-height: 1.7; }
.site-footer { padding: 35px 5vw; background: var(--ink); color: white; display: flex; justify-content: space-between; font: 400 9px DM Mono; text-transform: uppercase; letter-spacing: .06em; }.site-footer p { margin: 0; opacity: .5; }

@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes visual-in { from { opacity: 0; transform: translateX(35px) scale(.98); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes optical-scan { 0%,100% { top: 16%; opacity: .35; } 50% { top: 82%; opacity: 1; } }
@keyframes scan-label { 0%,100% { top: 16%; opacity: .45; } 50% { top: 82%; opacity: 1; } }
@keyframes markers-breathe { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes status-pulse { 0%,100% { box-shadow: 0 0 0 5px rgba(104,181,61,.13); } 50% { box-shadow: 0 0 0 9px rgba(104,181,61,.04); } }
@keyframes report-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

:where(a, button, input, label):focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }.hero-text { margin-left: 0; }.hero-visual { min-height: 520px; height: 68vw; }.hero-meta { max-width: none; }.capture-grid, .analysis-layout, .report-content { grid-template-columns: 1fr; }.target-strip, .registration-strip { grid-template-columns: 1fr; }.target-strip img { max-width: 320px; }.registration-metrics { border-top: 1px solid var(--line); border-left: 0; padding-top: 20px; }.human-review { grid-column: auto; grid-template-columns: 1fr; gap: 16px; }.section-heading { align-items: flex-start; gap: 25px; flex-direction: column; }.site-footer { gap: 15px; flex-direction: column; }
}

@media (max-width: 520px) {
  .site-header { padding: 0 20px; }.ghost-button { display: none; }.hero { padding: 65px 24px 45px; min-height: auto; }.hero h1 { font-size: 55px; line-height: .89; }.hero-visual { min-height: 470px; height: 125vw; }.hero-index { width: 105px; height: 105px; }.workspace, .analysis-section, .report-section { padding: 60px 20px; }.capture-card { padding: 10px; }.target-strip, .registration-strip { padding: 28px 20px; }.registration-metrics { grid-template-columns: 1fr 1fr; gap: 18px 0; }.registration-metrics > div:nth-child(2) { border-right: 0; }.panel-top { align-items: flex-start; gap: 15px; flex-direction: column; }.view-switch { flex-wrap: wrap; }.report-summary { padding: 35px 26px; }.human-review { padding: 28px 24px; }
}

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