:root {
  --navy: #000099;
  --ink: #071647;
  --text: #24304f;
  --muted: #5d6888;
  --line: #dce3f2;
  --surface: #f5f7fd;
  --white: #fff;
  --good: #0b6b46;
  --bad: #a11d2f;
  --radius: 16px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
a { color: var(--navy); }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -0.015em; }
p { margin: 0; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #6b7cff; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--white); padding: 8px 12px; border-radius: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; padding-top: 48px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.prewrap { white-space: pre-line; }
.loading { padding: 64px 0; color: var(--muted); }

/* Top bar */
.topbar { background: var(--navy); color: var(--white); }
.topbar-inner { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--white); text-decoration: none; }
.brand-mark { font-weight: 800; font-size: 24px; letter-spacing: -0.04em; }
.brand-sub { font-size: 13px; font-weight: 600; opacity: .8; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.35); }
.toplink { color: rgba(255,255,255,.85); font-size: 14px; text-decoration: none; }
.toplink:hover { color: var(--white); text-decoration: underline; }

/* Hero */
.hero { background: linear-gradient(180deg, #eef2ff 0%, var(--white) 100%); border-bottom: 1px solid var(--line); padding: 48px 0 36px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #3949b5; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.05; font-weight: 800; margin-top: 10px; max-width: 18ch; }
.lede { margin-top: 14px; max-width: 62ch; font-size: 17px; }
.updated { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* Directory */
.directory { padding-top: 24px; padding-bottom: 56px; }
.controls { display: flex; gap: 10px; }
.search { flex: 1; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 16px; color: var(--ink); }
.search:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(0,0,153,.12); }
.sort { min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; }
.tab:hover { border-color: #b7c2e6; }
.tab.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tab-n { font-size: 12px; font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }
.count { margin: 18px 0 6px; font-size: 13px; color: var(--muted); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows > li { border-bottom: 1px solid var(--line); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 8px; text-decoration: none; color: inherit; border-radius: 10px; }
.row:hover { background: var(--surface); }
.row:hover .row-name { color: var(--navy); }
.row-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row-name { font-weight: 700; color: var(--ink); font-size: 16px; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.row-meta { display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: baseline; justify-items: end; text-align: right; flex-shrink: 0; }
.row-count { font-size: 18px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.row-count-label { font-size: 12px; color: var(--muted); justify-self: start; }
.row-date { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.empty { padding: 32px 8px; color: var(--muted); }
.linkbtn { background: none; border: 0; color: var(--navy); text-decoration: underline; cursor: pointer; padding: 0; }
.more { display: flex; justify-content: center; margin-top: 20px; }

.chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 3px 8px; border-radius: 6px; background: #eef1fb; color: #2d3a80; }
.chip-fintech { background: #e6f4ee; color: #0e5a3b; }
.chip-blockchain { background: #eef0ff; color: #3730a3; }
.chip-ai { background: #f3eaff; color: #6b21a8; }
.chip-cybersecurity { background: #e8f2fb; color: #0b4f86; }
.chip-esports { background: #fff0e6; color: #9a3412; }
.chip-igaming { background: #fdecef; color: #9f1239; }
.badge-claimed { font-size: 11px; font-weight: 700; color: var(--good); background: #e5f5ee; border-radius: 6px; padding: 2px 7px; }

/* Buttons & panels */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--navy); background: var(--navy); color: var(--white); font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: #00007a; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: var(--white); color: var(--navy); }
.btn-ghost:hover { background: var(--surface); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white); }
.panel h1 { font-size: 26px; margin-bottom: 8px; }
.panel h2 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.panel p + p, .panel h2 + p, .panel h1 + p { margin-top: 10px; }
.panel .btn { margin-top: 18px; }
.error { border-color: #f1c4cb; background: #fff7f8; }
.claim-teaser { margin-top: 40px; background: var(--surface); display: flex; justify-content: space-between; gap: 20px; align-items: center; }

/* Company page */
.company { padding-top: 24px; padding-bottom: 64px; }
.back { display: inline-block; font-size: 14px; font-weight: 600; text-decoration: none; margin-bottom: 18px; }
.back:hover { text-decoration: underline; }
.company-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.company-head h1 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; margin: 6px 0 12px; line-height: 1.1; }
.company-head .muted { margin-top: 10px; font-size: 14px; }
.company-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; margin-top: 24px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.side { position: sticky; top: 16px; }
.h-count { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 2px 10px; }
.contexts { margin-top: 14px; padding: 14px 16px; background: var(--surface); border-radius: 12px; font-size: 14px; }
.contexts p + p { margin-top: 8px; }
.coverage { list-style: none; margin: 14px 0 0; padding: 0; }
.coverage li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.coverage li:first-child { border-top: 0; }
.coverage a { font-weight: 600; text-decoration: none; line-height: 1.4; }
.coverage a:hover { text-decoration: underline; }
.cov-meta { font-size: 12px; color: var(--muted); }
.profile-head { display: flex; gap: 16px; align-items: center; }
.profile-head img { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.profile .prewrap { margin-top: 16px; }
.fields { margin: 16px 0 0; display: grid; gap: 10px; }
.field dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.field dd { margin: 2px 0 0; white-space: pre-line; }
.links { display: flex; gap: 16px; margin-top: 16px; font-weight: 600; }

/* Claim */
.claim { border-color: #c9d2f3; box-shadow: 0 8px 30px rgba(0, 0, 153, .06); scroll-margin-top: 16px; }
.price { margin-top: 8px; font-size: 15px; }
.price strong { font-size: 22px; color: var(--ink); }
.steps { margin: 14px 0 0; padding-left: 20px; font-size: 14px; display: grid; gap: 6px; }
.claim-form { margin-top: 18px; display: grid; gap: 12px; }
.grid2 { display: grid; gap: 12px; }
.input { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
.input .opt { font-weight: 400; color: var(--muted); }
.input input, .input textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-weight: 400; color: var(--ink); background: var(--white); }
.input textarea { resize: vertical; }
.input input:focus, .input textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(0,0,153,.12); }
.check { display: flex; gap: 10px; font-size: 13px; align-items: flex-start; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: 12px; color: var(--muted); }
.claim-form .btn { margin-top: 4px; width: 100%; }
.msg { padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.msg.bad { background: #fff1f3; color: var(--bad); }
.msg.good { background: #ecf8f2; color: var(--good); margin-top: 12px; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--surface); font-size: 13px; padding: 28px 0; }
.footer-inner { display: grid; gap: 10px; max-width: 1120px; }
.footer p { max-width: 80ch; }

@media (max-width: 860px) {
  .company-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .company-head { flex-direction: column; align-items: flex-start; }
  .claim-teaser { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .controls { flex-direction: column; }
  .brand-sub { display: none; }
  .row-date { display: none; }
  .hero { padding: 32px 0 24px; }
}
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
