/* offensive.agency — dark only, system fonts, no external resource. */
:root {
  --bg: #09080f;
  --surface: #12141a;
  --surface-2: #191c24;
  --surface-3: #232733;
  --line: rgba(255,255,255,.075);
  --line-2: rgba(255,255,255,.14);
  --text: #eef0f4;
  --text-2: #b9bfcb;
  --muted: #838b9a;
  --link: #8aa6ff;
  --brand: #a970ff;          /* violet and blue of the logo */
  --brand-2: #6b93ff;
  --brand-deep: #8648e6;     /* same pair, dark enough for white text */
  --brand-deep-2: #4a69e2;
  --cream: #ecd9ae;          /* horns */
  --ok: #0ca30c;
  --warn: #fab219;
  --serious: #ec835a;
  --crit: #f0605d;
  --violet: #a99ff0;
  --radius: 14px;
  --radius-sm: 9px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scrollbar-color: var(--surface-3) transparent; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 420px at 85% -120px, rgba(150,90,245,.16), transparent 65%),
    radial-gradient(800px 420px at 5% -160px, rgba(75,110,235,.16), transparent 60%),
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px) 0 0 / 44px 100%,
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1 { font-size: 1.7rem; margin: 0 0 1rem; letter-spacing: -.025em; font-weight: 750; }
h2 { font-size: .78rem; margin: 0 0 .9rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
h2.section { margin: 2rem 0 .8rem; }
p { margin: 0 0 .8rem; }
code { font-family: var(--mono); font-size: .86em; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); }
::selection { background: rgba(150,90,245,.35); }
.muted { color: var(--muted); }
.mono-val { font-family: var(--mono); font-size: .92em; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.ellipsis { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-right { margin-left: auto; display: inline-flex; gap: .4rem; }

/* ── top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 20; height: 60px; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 1.6rem;
  background: rgba(9,8,15,.72); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 750; font-size: 1.08rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(169,112,255,.45), 0 0 16px rgba(150,90,245,.5); transition: transform .25s; }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar nav { display: flex; gap: .15rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.topbar nav a { position: relative; padding: .42rem .8rem; border-radius: 8px; color: var(--muted); font-weight: 550; white-space: nowrap; transition: color .15s, background .15s; }
.topbar nav a:hover { color: var(--text); background: rgba(255,255,255,.05); text-decoration: none; }
.topbar nav a.active { color: var(--text); }
.topbar nav a.active::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: -13px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.live { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .76rem; color: var(--text-2); white-space: nowrap; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(12,163,12,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(12,163,12,0); } 100% { box-shadow: 0 0 0 0 rgba(12,163,12,0); } }
@media (max-width: 760px) { .live { display: none; } .topbar { gap: .8rem; padding: 0 1rem; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.container { max-width: 1280px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }
.foot { max-width: 1280px; margin: 0 auto; padding: 1.6rem 1.5rem 2.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }
.foot a { color: var(--text-2); }

/* ── hero ── */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem; align-items: center; margin-bottom: 1.6rem; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } }
.eyebrow { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); margin-bottom: .8rem; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.04; letter-spacing: -.04em; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-2); font-size: 1.02rem; max-width: 46ch; }
.hero-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.hero .card { margin: 0; }
.hero-title { display: flex; align-items: center; gap: 1.3rem; margin-bottom: 1rem; }
.hero-title h1 { margin: 0; }
.hero-logo { flex: none; width: clamp(96px, 12vw, 150px); height: auto; border-radius: 50%; box-shadow: 0 0 0 1px rgba(169,112,255,.4), 0 0 60px -6px rgba(150,90,245,.65); }
@media (max-width: 560px) { .hero-title { flex-direction: column; align-items: flex-start; } }

/* ── cards ── */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; margin-bottom: 1.25rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px -18px rgba(0,0,0,.8);
}
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.card-head h2 { margin: 0; }
.card-head span { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.grid-2 > .card, .grid-3 > .card { margin: 0; }
.grid-2, .grid-3 { margin-bottom: 1.25rem; align-items: start; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ── KPI tiles ── */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile {
  position: relative; overflow: hidden; padding: 1.05rem 1.15rem 1rem; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01) 60%), var(--surface);
  border: 1px solid var(--line); transition: transform .18s, border-color .18s;
}
.tile:hover { transform: translateY(-2px); border-color: var(--line-2); }
.tile::after { content: ""; position: absolute; right: -40px; top: -40px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(107,147,255,.2), transparent 70%); }
.tile-hot::after { background: radial-gradient(circle, rgba(150,90,245,.3), transparent 70%); }
.tile-warn::after { background: radial-gradient(circle, rgba(250,178,25,.24), transparent 70%); }
.tile-num { display: block; font-size: 2.15rem; font-weight: 760; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tile-lbl { display: block; margin-top: .35rem; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }

/* ── segmented share bar ── */
.mix { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; }
.mix span { min-width: 3px; transition: filter .15s; }
.mix span:hover { filter: brightness(1.25); }
.mix-legend { display: flex; flex-wrap: wrap; gap: .45rem 1.3rem; margin-top: .9rem; }
.mix-legend a { display: inline-flex; align-items: baseline; gap: .45rem; color: var(--text-2); white-space: nowrap; }
.mix-legend a:hover { color: var(--text); text-decoration: none; }
.mix-legend i, .legend i, .tip i, .dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; flex: none; align-self: center; }
.mix-legend b { color: var(--text); font-variant-numeric: tabular-nums; }
.mix-legend small { color: var(--muted); font-family: var(--mono); font-size: .74rem; }

/* ── notices ── */
.banner { padding: .75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.1rem; border: 1px solid var(--line); background: var(--surface); }
.banner-warn { border-color: rgba(240,96,93,.45); background: rgba(240,96,93,.09); }
.note { display: flex; gap: .7rem; align-items: flex-start; color: var(--text-2); padding: .7rem 1rem; margin-bottom: 1.1rem; border-left: 2px solid var(--warn); background: rgba(250,178,25,.06); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ── tables ── */
.table-scroll { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; }
.table-scroll .table { min-width: 880px; }
.table th, .table td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); color: var(--muted); font-size: .7rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: rgba(255,255,255,.035); }
.table td.mono-val a { color: var(--text); font-weight: 600; }
.table td.mono-val a:hover { color: var(--link); }
.card:not(.table-scroll) > .table th:first-child, .card:not(.table-scroll) > .table td:first-child { padding-left: 0; }
.card:not(.table-scroll) > .table thead th { background: transparent; position: static; }
th.sort { cursor: pointer; user-select: none; }
th.sort:hover { color: var(--text); }
th.sort::after { content: "↕"; opacity: .3; margin-left: .4rem; }
th.sort.sorted { color: var(--text); }
th.sort.sorted[data-dir="asc"]::after { content: "↑"; opacity: 1; color: var(--cream); }
th.sort.sorted[data-dir="desc"]::after { content: "↓"; opacity: 1; color: var(--cream); }
.seen { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .84em; white-space: nowrap; }
.seen::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--surface-3); }
.seen-hot::before { background: var(--ok); box-shadow: 0 0 6px rgba(12,163,12,.8); }
.seen-warm::before { background: var(--warn); }

/* host list: two lines per row, six columns, no horizontal scroll on a desktop */
.hosts td { vertical-align: top; }
.hosts .ip { font-family: var(--mono); font-size: 1.02rem; font-weight: 650; color: var(--text); letter-spacing: -.01em; }
.hosts .ip:hover { color: var(--link); }
.hosts .org { display: block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hosts .sub { display: block; margin-top: .15rem; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .82rem; }
.hosts .cc { color: var(--text-2); font-family: var(--mono); font-weight: 600; }
.hosts .ports { color: var(--text-2); white-space: nowrap; }
.hosts td:nth-child(2) { min-width: 200px; }
.hosts th, .hosts td { padding-left: .85rem; padding-right: .85rem; }
.hosts .date { color: var(--text-2); }
.hosts .seen { font-size: .92em; color: var(--text); }
.hosts .pill { font-size: .8rem; margin-bottom: 3px; }
.kind-cdn { color: var(--crit); font-weight: 600; }
.kind-cloud { color: var(--serious); font-weight: 600; }
.table tbody tr:nth-child(even) { background: rgba(255,255,255,.018); }

/* ── pills ── */
.pill { display: inline-flex; align-items: center; gap: .38rem; padding: .1rem .55rem; margin: 1px 4px 1px 0; border-radius: 999px; font-size: .76rem; font-weight: 600; line-height: 1.5; white-space: nowrap; color: var(--text-2); background: rgba(255,255,255,.05); border: 1px solid var(--line); }
a.pill:hover { text-decoration: none; border-color: var(--line-2); color: var(--text); }
.pill-tool { color: var(--text); }
.pill-probable { border-style: dashed; color: var(--muted); }
.pill-probable .dot { opacity: .55; }
.pill-c2 { color: var(--crit); border-color: rgba(240,96,93,.45); background: rgba(240,96,93,.1); }
.pill-multi { color: var(--warn); border-color: rgba(250,178,25,.4); background: rgba(250,178,25,.08); }
.pill-cluster { color: var(--violet); border-color: rgba(169,159,240,.4); background: rgba(169,159,240,.08); }
.pill-cdn { color: var(--crit); border-color: rgba(240,96,93,.5); background: rgba(240,96,93,.1); }
.pill-cloud { color: var(--serious); border-color: rgba(236,131,90,.45); background: rgba(236,131,90,.08); }
.pill-ok { color: #4fd24f; border-color: rgba(12,163,12,.5); background: rgba(12,163,12,.1); }

/* ── forms and buttons ── */
.filters { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; padding: .85rem 1rem; }
.input { padding: .5rem .75rem; background: rgba(0,0,0,.35); border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(138,166,255,.22); }
.input::placeholder { color: #5f6777; }
.input[type=search] { min-width: 230px; flex: 1 1 230px; }
.check { display: inline-flex; align-items: center; gap: .4rem; color: var(--text-2); cursor: pointer; }
.check input { accent-color: var(--brand); }
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: background .14s, border-color .14s, transform .08s; }
.btn:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { border-color: transparent; color: #fff; background: linear-gradient(90deg, var(--brand-deep), var(--brand-deep-2)); box-shadow: 0 6px 20px -8px rgba(150,90,245,.8); }
.btn-primary:hover { background: linear-gradient(90deg, var(--brand-deep), var(--brand-deep-2)); filter: brightness(1.1); }
.btn-sm { padding: .28rem .65rem; font-size: .8rem; font-family: var(--mono); }
.btn.copied { color: #4fd24f; border-color: rgba(12,163,12,.6); }
.pager { margin: -.3rem 0 1.5rem; display: flex; gap: .8rem; align-items: center; justify-content: center; }

/* ── charts ── */
.chart-wrap { position: relative; }
.chart { display: block; width: 100%; height: auto; }
.chart .grid { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 11px var(--mono); }
.chart .cross { stroke: rgba(255,255,255,.4); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; pointer-events: none; }
.tip { position: absolute; top: 8px; z-index: 5; min-width: 150px; padding: .55rem .7rem; border-radius: 10px; background: rgba(9,8,15,.94); border: 1px solid var(--line-2); box-shadow: 0 12px 30px -10px #000; pointer-events: none; font-size: .8rem; }
.tip strong { display: block; font-family: var(--mono); font-size: .74rem; color: var(--muted); margin-bottom: .3rem; }
.tip span { display: flex; align-items: center; gap: .45rem; color: var(--text-2); }
.tip b { margin-left: auto; padding-left: 1rem; color: var(--text); font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: .7rem 0 .8rem; color: var(--text-2); font-size: .84rem; }
.legend span { display: inline-flex; align-items: center; gap: .45rem; }
.spark { display: block; width: 100%; height: 44px; }
.bars { display: grid; gap: .42rem; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: .8rem; align-items: center; }
.bar-label { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; border-radius: 4px; background: rgba(255,255,255,.05); overflow: hidden; }
.bar { display: block; height: 100%; border-radius: 4px; }
.bar-row:hover .bar { filter: brightness(1.25); }
.bar-row:hover .bar-label { color: var(--text); }
.bar-num { font-variant-numeric: tabular-nums; font-weight: 650; min-width: 3ch; text-align: right; }

/* ── agent cards ── */
.agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.1rem; }
.agent-card { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.2rem 1rem; border-radius: var(--radius); color: var(--text); border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)), var(--surface); transition: transform .18s, border-color .18s, box-shadow .18s; }
.agent-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--c, var(--muted)); }
.agent-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 18px 40px -22px var(--c, #000); }
.agent-card h3 { margin: 0; font-size: 1.05rem; letter-spacing: -.01em; display: flex; align-items: center; gap: .5rem; }
.agent-card p { color: var(--muted); font-size: .86rem; margin: 0; min-height: 2.6em; }
.agent-big { display: flex; align-items: baseline; gap: .5rem; }
.agent-big b { font-size: 1.9rem; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.agent-big span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.agent-meta { display: flex; gap: 1.1rem; font-family: var(--mono); font-size: .74rem; color: var(--muted); margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--line); }
.agent-meta span { display: flex; flex-direction: column; }
.agent-meta b { color: var(--text-2); font-weight: 600; font-size: .82rem; }

/* ── detail pages ── */
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.detail-head h1 { margin: 0; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; word-break: break-all; }
.detail-head h1.ip { font-family: var(--mono); font-size: 1.9rem; letter-spacing: -.02em; }
.detail-head .actions { display: flex; gap: .5rem; }
.lede { color: var(--text-2); font-size: 1rem; max-width: 80ch; margin-bottom: 1.3rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.6rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.query { display: block; padding: .5rem .75rem; margin: .35rem 0; overflow-x: auto; white-space: nowrap; background: rgba(0,0,0,.4); color: var(--text-2); }
.onyphe { border-color: rgba(169,112,255,.35); background: linear-gradient(120deg, rgba(150,90,245,.1), rgba(107,147,255,.05) 60%), var(--surface); }
.card ul { margin: 0; padding-left: 1.1rem; }
.card li { margin-bottom: .45rem; color: var(--text-2); }
.card li strong { color: var(--text); }
.empty { text-align: center; padding: 4rem 1rem; }
.empty img { width: 150px; height: 150px; border-radius: 50%; margin-bottom: 1rem; filter: grayscale(.35); box-shadow: 0 0 60px -6px rgba(150,90,245,.6); }
.empty h1 { font-family: var(--mono); font-size: 4rem; margin-bottom: .4rem; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
