:root {
    color-scheme: light;
    --bg: #f5f5f7;
    --panel: #ffffff;
    --panel-2: #fafafa;
    --line: #e3e3e8;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --green: #1d9e57;
    --amber: #b07a1a;
    --red: #c4283c;
    --blue: #0071e3;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", sans-serif;
    min-height: 100vh;
}

a { color: inherit; }

.topbar {
    align-items: center;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, .85);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 18px max(24px, calc((100vw - 1240px) / 2));
    row-gap: 10px;
    position: sticky;
    top: 0;
    z-index: 5;
}

.brand { align-items: center; display: flex; gap: 12px; text-decoration: none; }
.brand-mark { align-items: center; background: var(--green); border-radius: 10px; color: #fff; display: flex; font-size: 12px; font-weight: 900; height: 38px; justify-content: center; letter-spacing: -.5px; width: 38px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.scope { border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 12px; padding: 8px 11px; text-transform: uppercase; }
.visits { color: var(--muted); font-family: ui-monospace, monospace; font-size: 11px; }
.scope span { background: var(--green); border-radius: 50%; box-shadow: 0 0 8px rgba(29,158,87,.6); display: inline-block; height: 7px; margin-right: 8px; width: 7px; }

main { margin: 0 auto; max-width: 1288px; padding: 0 24px 64px; }
.hero { align-items: center; display: grid; gap: 60px; grid-template-columns: minmax(0, 1fr) 260px; min-height: 390px; padding: 70px 0 48px; }
.eyebrow { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .22em; margin: 0 0 12px; }
h1 { font-size: clamp(40px, 5vw, 72px); letter-spacing: -.055em; line-height: .98; margin: 0; max-width: 900px; }
.hero-copy { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 26px 0 0; max-width: 700px; }

.radar { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; position: relative; }
.radar::before, .radar::after { background: var(--line); content: ""; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); }
.radar::before { height: 1px; width: 100%; }
.radar::after { height: 100%; width: 1px; }
.radar i { border: 1px solid var(--line); border-radius: 50%; inset: 16%; position: absolute; }
.radar i:nth-child(2) { inset: 32%; }
.radar i:nth-child(3) { inset: 45%; }
.radar b { animation: sweep 4s linear infinite; background: conic-gradient(from 0deg, transparent 0 280deg, rgba(29,158,87,.35)); border-radius: 50%; inset: 0; position: absolute; }
@keyframes sweep { to { transform: rotate(360deg); } }

.metrics { border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 24px; overflow: hidden; }
.metrics article { background: var(--panel); border-right: 1px solid var(--line); padding: 23px; }
.metrics article:last-child { border-right: 0; }
.metrics span, .metrics small { color: var(--muted); display: block; }
.metrics span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.metrics strong { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 35px; margin: 13px 0 5px; }
.metrics small { font-size: 11px; }

.workspace { display: grid; gap: 24px; grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr); margin-bottom: 24px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 3px 8px rgba(0,0,0,.03); }
.panel-heading { align-items: flex-start; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 22px 24px; }
.panel-heading h2, .methodology h2 { font-size: 20px; letter-spacing: -.02em; margin: 0; }
.panel-heading > span { color: var(--muted); font-size: 11px; }
.chart { align-items: end; display: flex; gap: 18px; height: 235px; overflow-x: auto; padding: 25px 25px 17px; }
.bar-column { align-items: center; display: flex; flex: 1; flex-direction: column; justify-content: end; min-width: 72px; }
.bar { background: linear-gradient(180deg, var(--green), rgba(29,158,87,.18)); border-radius: 4px 4px 0 0; min-height: 28px; width: 72%; }
.bar-value { color: var(--green); font-family: ui-monospace, monospace; font-size: 12px; margin-bottom: 7px; }
.bar-label { color: var(--muted); font-size: 10px; margin-top: 9px; }
.methodology { padding: 24px; }
.methodology ul { list-style: none; margin: 28px 0; padding: 0; }
.methodology li { border-bottom: 1px solid var(--line); padding: 13px 0; }
.methodology li b, .methodology li span { display: block; }
.methodology li b { font-size: 13px; text-transform: uppercase; }
.methodology li span, .note { color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 5px; }

.map { padding: 14px 18px 4px; position: relative; }
.map img { display: block; height: auto; width: 100%; }
.marker { animation: ping 2.6s ease-out infinite; border-radius: 50%; height: 11px; position: absolute; transform: translate(-50%, -50%); width: 11px; }
.marker::after { border-radius: 50%; content: ""; inset: 3px; position: absolute; }
.marker.confirmed { background: rgba(29,158,87,.25); }
.marker.confirmed::after { background: var(--green); box-shadow: 0 0 8px rgba(29,158,87,.8); }
.marker.probable { background: rgba(176,122,26,.25); }
.marker.probable::after { background: var(--amber); box-shadow: 0 0 8px rgba(176,122,26,.8); }
.marker.unverified { background: rgba(196,40,60,.25); }
.marker.unverified::after { background: var(--red); box-shadow: 0 0 8px rgba(196,40,60,.8); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(29,158,87,.3); } 100% { box-shadow: 0 0 0 12px transparent; } }
.map-legend { border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 10px; letter-spacing: .1em; padding: 13px 24px; text-transform: uppercase; }
.map-legend i { border-radius: 50%; display: inline-block; height: 7px; margin-right: 7px; width: 7px; }
.map-legend .confirmed { background: var(--green); }
.map-legend .probable { background: var(--amber); }
.map-legend .unverified { background: var(--red); }

.regions { display: grid; gap: 14px; }
.region-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 3px 8px rgba(0,0,0,.03); padding: 20px 22px; }
.region-top { align-items: center; display: flex; justify-content: space-between; }
.region-card h3 { font-size: 16px; letter-spacing: -.01em; margin: 0; }
.region-risk { border: 1px solid rgba(196,40,60,.45); border-radius: 7px; color: var(--red); font-family: ui-monospace, monospace; font-size: 14px; padding: 5px 9px; }
.region-card p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 11px 0 0; }
.region-card .empty { padding: 0; }

.threat-workspace { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); }
.technique-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); padding: 20px 24px; }
.technique-chip { border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 8px; padding: 13px 14px; }
.technique-chip b { color: var(--red); font-family: ui-monospace, monospace; font-size: 18px; margin-right: 10px; }
.technique-chip span { color: var(--text); font-size: 11px; }
.indicator-block { border-top: 1px solid var(--line); padding: 16px 24px 20px; }
.indicator-row { display: grid; gap: 12px; grid-template-columns: 90px 1fr; padding: 6px 0; }
.indicator-row b { color: var(--amber); font-size: 10px; letter-spacing: .12em; }
.indicator-row span { color: var(--muted); font-family: ui-monospace, monospace; font-size: 11px; word-break: break-all; }
.campaign { border-bottom: 1px solid var(--line); padding: 16px 24px; }
.campaign:last-child { border-bottom: 0; }
.campaign-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 7px; }
.campaign-head b { color: var(--red); font-size: 12px; }
.campaign-head span { color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; }
.campaign p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 0; }

.ask-panel { margin-bottom: 24px; }
.ask-form { border-bottom: 1px solid var(--line); display: flex; gap: 8px; padding: 18px 24px; }
.ask-form input { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); flex: 1; font: inherit; font-size: 13px; padding: 11px 13px; }
.ask-form button { background: var(--green); border: 0; border-radius: 8px; color: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; padding: 11px 22px; }
.ask-answers { display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); }
.agent-card { border-right: 1px solid var(--line); padding: 22px 24px; }
.agent-card:last-child { border-right: 0; }
.agent-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 12px; }
.agent-head b { color: var(--green); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.agent-head span { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.agent-card p { color: var(--text); font-size: 12px; line-height: 1.65; margin: 0; min-height: 60px; }
.agent-sources { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.agent-sources a { color: var(--muted); font-size: 10px; text-decoration: none; }
.agent-sources a:hover { color: var(--green); }

.incident-heading { align-items: center; }
.filters { display: flex; gap: 8px; }
.filters input, .filters select, .filters button { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; font-size: 12px; padding: 10px 12px; }
.filters input { width: 200px; }
.filters button { background: var(--green); border-color: var(--green); color: #fff; cursor: pointer; font-weight: 800; }
.incident-list { padding: 0 24px; }
.incident { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 22px; grid-template-columns: 72px minmax(0, 1fr) 174px; padding: 26px 0; }
.incident:last-child { border-bottom: 0; }
.date-block { border-right: 1px solid var(--line); }
.date-block strong, .date-block span { display: block; }
.date-block strong { font-family: ui-monospace, monospace; font-size: 25px; }
.date-block span { color: var(--muted); font-size: 10px; margin-top: 3px; }
.incident-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.incident-tags span { border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 9px; letter-spacing: .09em; padding: 4px 7px; text-transform: uppercase; }
.incident-tags .status.confirmed { border-color: rgba(29,158,87,.5); color: var(--green); }
.incident-tags .status.probable { border-color: rgba(176,122,26,.5); color: var(--amber); }
.incident-tags .status.unverified { border-color: rgba(196,40,60,.5); color: var(--red); }
.incident h3 { font-size: 17px; margin: 13px 0 8px; }
.incident-body > p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }
.evidence { display: flex; font-size: 10px; justify-content: space-between; margin-top: 13px; }
.evidence span { color: #9a9aa0; }
.evidence a { color: var(--green); font-weight: 700; text-decoration: none; }
.scores { display: flex; gap: 12px; justify-content: end; }
.score { align-items: center; background: conic-gradient(var(--ring) calc(var(--score) * 1%), var(--line) 0); border-radius: 50%; display: flex; flex-direction: column; height: 76px; justify-content: center; position: relative; width: 76px; }
.score::before { background: var(--panel); border-radius: 50%; content: ""; inset: 4px; position: absolute; }
.score strong, .score span { position: relative; }
.score strong { font-family: ui-monospace, monospace; font-size: 18px; }
.score span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.score.risk { --ring: var(--red); }
.score.confidence { --ring: var(--blue); }
.empty { color: var(--muted); padding: 30px; }

.contact-panel { margin-bottom: 24px; }
.contact-form { display: grid; gap: 10px; padding: 20px 24px 24px; }
.contact-form input[type="email"], .contact-form textarea { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; font-size: 12px; padding: 11px 13px; resize: vertical; width: 100%; }
.contact-form .hp { display: none; }
.contact-actions { align-items: center; display: flex; gap: 12px; }
.contact-actions button { background: var(--green); border: 0; border-radius: 8px; color: #fff; cursor: pointer; font-size: 11px; font-weight: 800; padding: 10px 20px; text-transform: uppercase; }

footer { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; font-size: 10px; gap: 14px; justify-content: space-between; margin: 0 auto; max-width: 1240px; padding: 24px 0 34px; text-transform: uppercase; }
.subscribe { align-items: center; display: flex; gap: 8px; }
.subscribe-topbar { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.subscribe-topbar label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.subscribe input { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; color: var(--text); font-size: 11px; padding: 6px 10px; text-transform: none; width: 180px; }
.subscribe button { background: var(--green); border: 0; border-radius: 6px; color: #fff; cursor: pointer; font-size: 10px; font-weight: 800; padding: 7px 12px; text-transform: uppercase; }
.subscribe-status { color: var(--green); margin-left: 6px; }
.legal { line-height: 1.6; max-width: 420px; text-transform: none; }

@media (max-width: 900px) {
    .subscribe-topbar input { width: 150px; }
    .hero { grid-template-columns: 1fr; }
    .radar { display: none; }
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .metrics article:nth-child(2) { border-right: 0; }
    .workspace { grid-template-columns: 1fr; }
    .ask-answers { grid-template-columns: 1fr; }
    .agent-card { border-bottom: 1px solid var(--line); border-right: 0; }
    .incident-heading { align-items: stretch; flex-direction: column; gap: 18px; }
    .filters { flex-wrap: wrap; }
    .filters input { flex: 1; width: auto; }
    .incident { grid-template-columns: 54px 1fr; }
    .scores { grid-column: 2; justify-content: start; }
}

@media (pointer: coarse) {
    .marker { height: 16px; width: 16px; }
    .marker::after { inset: 5px; }
}

@media (max-width: 560px) {
    .topbar { padding: 14px 14px; }
    .visits { display: none; }
    .scope { display: none; }
    .subscribe-topbar { flex: 1 0 100%; order: 4; }
    .subscribe-topbar label { display: none; }
    .subscribe input { flex: 1; width: auto; }
    .filters input, .filters select, .filters button,
    .ask-form input, .ask-form button,
    .subscribe input, .subscribe button,
    .contact-form input, .contact-form textarea { font-size: 16px; }
    .filters { width: 100%; }
    .filters > * { flex: 1 1 45%; }
    .panel-heading { padding: 18px 16px; }
    .chart { padding: 18px 16px 14px; }
    .technique-grid { grid-template-columns: 1fr 1fr; padding: 16px; }
    .contact-form { padding: 16px; }
    .map { padding: 10px 8px 4px; }
    main { padding: 0 14px 40px; }
    .hero { min-height: 330px; padding-top: 45px; }
    h1 { font-size: 40px; }
    .metrics { grid-template-columns: 1fr; }
    .metrics article { border-bottom: 1px solid var(--line); border-right: 0; }
    .incident-list { padding: 0 16px; }
    .incident { gap: 14px; grid-template-columns: 1fr; }
    .date-block { border-right: 0; }
    .scores { grid-column: 1; }
    .evidence { flex-direction: column; gap: 9px; }
    footer { margin: 0 14px; }
}
