:root {
  --bg: #06080b; --bg-2: #10141b; --bg-3: #1a202c;
  --fg: #e8ecf2; --fg-2: #9ea8b7; --fg-3: #6b778c;
  --acc: #c4f135; --acc-hover: #b0d930;
  --crit: #ff4d4f; --high: #ff7a45; --med: #faad14; --low: #52c41a;
  --kev: #d32029; --trust-ver: #13c2c2; --trust-unk: #8c8c8c; --trust-sus: #faad14; --trust-mal: #ff4d4f;
  --line: #2e3644; --line-2: #3f4a5c;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font: 15px/1.5 'Geist', system-ui, sans-serif; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; padding-top: 60px; overflow-y: scroll; }
a { color: var(--fg); text-decoration: none; transition: color .2s; }
a:hover { color: var(--acc); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: absolute; top: -40px; left: 0; background: var(--acc); color: #000; padding: 8px 16px; z-index: 1000; font-weight: 600; }
.skip:focus { top: 0; }

/* Loader */
.boot { position: fixed; inset: 0; background: var(--bg); z-index: 9999; display: grid; place-items: center; pointer-events: none; animation: bootOff .6s 1.2s forwards; }
.boot-inner { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.boot-mark { font: italic 400 32px 'Instrument Serif'; display: flex; align-items: center; gap: 12px; }
.boot-mark svg { width: 40px; height: 40px; }
.caret { display: inline-block; width: 12px; height: 32px; background: var(--acc); vertical-align: middle; margin-left: 8px; animation: blink 1s infinite; }
.boot-bar { width: 200px; height: 2px; background: var(--bg-2); position: relative; overflow: hidden; border-radius: 2px; }
.boot-bar::after { content: ''; position: absolute; inset: 0; background: var(--acc); transform-origin: left; animation: load 1s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes load { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes bootOff { to { opacity: 0; visibility: hidden; } }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; height: 60px; z-index: 100; border-bottom: 1px solid transparent; transition: all .3s; }
.nav.scrolled { background: rgba(6,8,11,0.85); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { font: italic 400 24px 'Instrument Serif'; display: flex; align-items: center; gap: 8px; }
.brand svg { width: 28px; height: 28px; }
.brand b { color: var(--acc); font-weight: 400; }
.nav-links { display: flex; gap: 24px; font-weight: 500; font-size: 14px; }
@media (max-width: 768px) { .nav-links { display: none; } }
.nav-r { display: flex; align-items: center; gap: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; font: 500 14px/1 'Geist'; cursor: pointer; transition: all .2s; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg); white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--line); border-color: var(--line); }
.btn svg { width: 16px; height: 16px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 6px; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--bg-2); }
.btn-acc { background: var(--acc); color: #000; border-color: var(--acc); }
.btn-acc:hover:not(:disabled) { background: var(--acc-hover); border-color: var(--acc-hover); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.kbd { display: inline-block; padding: 2px 6px; border-radius: 4px; background: var(--bg-3); border: 1px solid var(--line); font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--fg-2); }

/* Hero */
.hero { padding: 100px 20px 80px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 20px; background: rgba(196, 241, 53, 0.1); color: var(--acc); font-size: 13px; font-weight: 600; margin-bottom: 24px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px var(--acc); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(196,241,53,0.4); } 70% { box-shadow: 0 0 0 6px rgba(196,241,53,0); } 100% { box-shadow: 0 0 0 0 rgba(196,241,53,0); } }
h1 { font: 500 64px/1.1 'Geist'; letter-spacing: -0.03em; margin-bottom: 24px; max-width: 800px; }
h1 em { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; color: var(--acc); }
@media (max-width: 600px) { h1 { font-size: 48px; } }
.lede { font-size: 18px; color: var(--fg-2); max-width: 600px; margin-bottom: 48px; }

/* Search */
.search { width: 100%; max-width: 640px; margin: 0 auto; position: relative; }
.search-box { display: flex; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; transition: all .2s; box-shadow: 0 12px 24px rgba(0,0,0,0.4); }
.search-box:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(196,241,53,0.15), 0 12px 24px rgba(0,0,0,0.4); }
.search-box svg { width: 24px; height: 24px; color: var(--fg-2); }
.search-box input { flex: 1; background: transparent; border: 0; padding: 16px; font: 16px 'Geist'; color: var(--fg); outline: none; }
.search-box input::placeholder { color: var(--fg-3); }
.search-hints { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; font-size: 13px; color: var(--fg-3); align-items: center; }

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); width: 100%; }
.stat { text-align: left; }
.stat-val { font: 600 32px/1 'Geist'; letter-spacing: -0.02em; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--fg-2); display: flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }

/* Sections */
.sec { padding: 80px 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 24px; }
.kicker { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--acc); margin-bottom: 8px; }
.sec-head h2 { font: 500 32px/1.2 'Geist'; letter-spacing: -0.02em; }
.sec-head h2 em { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; color: var(--acc); }
.sec-head p { color: var(--fg-2); margin-top: 8px; max-width: 500px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px; transition: all .2s; display: flex; flex-direction: column; cursor: pointer; text-align: left; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,0.3); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.card-id { font-family: 'Geist Mono', monospace; font-weight: 600; font-size: 14px; }
.card-prod { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.card-vuln { color: var(--fg-2); font-size: 14px; line-height: 1.4; flex: 1; }
.card-foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; }

/* Panel & Table */
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.toolbar { padding: 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: -4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--fg-2); padding: 4px 12px; border-radius: 16px; font: 500 13px 'Geist'; cursor: pointer; white-space: nowrap; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--fg-3); color: var(--fg); }
.chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.right { display: flex; gap: 12px; align-items: center; }
.select { background: var(--bg-3); border: 1px solid var(--line); color: var(--fg); border-radius: 6px; padding: 0 12px; height: 32px; font: 500 13px 'Geist'; outline: none; cursor: pointer; }

.tbl { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; white-space: nowrap; }
.tbl th { font-weight: 500; color: var(--fg-3); padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,0.2); }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); transition: background .2s; cursor: pointer; }
.tbl tr:hover td { background: var(--bg-3); }
.tbl .id { font-family: 'Geist Mono', monospace; font-weight: 500; }
.tbl .prod { font-weight: 500; }
.tbl .dim { color: var(--fg-2); }
.meta-row { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--fg-3); }
.pager { display: flex; gap: 4px; }

/* Visuals */
.pill { display: inline-flex; padding: 2px 8px; border-radius: 12px; font: 600 11px/1.4 'Geist Mono', monospace; letter-spacing: 0.05em; text-transform: uppercase; align-items: center; gap: 4px; border: 1px solid transparent; }
.p-kev { background: rgba(211,32,41,0.1); color: var(--kev); border-color: rgba(211,32,41,0.2); }
.p-neutral { background: var(--bg-3); color: var(--fg-2); border-color: var(--line); }
.t-critical { background: var(--crit); color: #000; }
.t-high { background: var(--high); color: #000; }
.t-medium { background: var(--med); color: #000; }
.t-low { background: var(--low); color: #000; }
.trust-Verified { color: var(--trust-ver); border-color: var(--trust-ver); }
.trust-Unknown { color: var(--trust-unk); border-color: var(--line-2); }
.trust-Suspicious { color: var(--trust-sus); border-color: var(--trust-sus); }
.trust-Malicious { color: var(--trust-mal); border-color: var(--trust-mal); background: rgba(255,77,79,0.1); }

.risk { display: flex; align-items: center; gap: 8px; }
.meter { width: 60px; height: 4px; background: var(--bg-3); border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 2px; }

/* API Section */
.api { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: stretch; }
@media(max-width: 800px){ .api { grid-template-columns: 1fr; } }
.term { background: #000; border: 1px solid var(--line); border-radius: 12px; padding: 0; overflow: hidden; font-family: 'Geist Mono', monospace; font-size: 13px; line-height: 1.6; }
.term-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f56; }
.term-bar i:nth-child(2) { background: #ffbd2e; }
.term-bar i:nth-child(3) { background: #27c93f; }
.term pre { padding: 16px; overflow-x: auto; margin: 0; }
.term .c { color: var(--fg-3); }
.term .g { color: var(--acc); }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.f h3 { font: 500 18px 'Geist'; margin-bottom: 8px; }
.f p { color: var(--fg-2); font-size: 14px; }

/* FAQ */
.faq details { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq summary { padding: 16px 20px; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; color: var(--fg-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 20px 20px; color: var(--fg-2); font-size: 15px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 64px 20px 32px; font-size: 14px; color: var(--fg-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 64px; }
@media(max-width: 800px){ .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot h5 { color: var(--fg); font-weight: 600; margin-bottom: 16px; font-size: 14px; }
.foot a { display: block; margin-bottom: 8px; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line); padding-top: 32px; font-size: 13px; color: var(--fg-3); }

/* Command Palette */
.cmdk { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 10000; display: flex; justify-content: center; align-items: flex-start; padding-top: 10vh; opacity: 0; visibility: hidden; transition: all .2s; }
.cmdk.on { opacity: 1; visibility: visible; }
.cmdk-box { background: var(--bg-2); width: 100%; max-width: 600px; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 48px rgba(0,0,0,0.5); overflow: hidden; transform: translateY(-10px) scale(0.98); transition: transform .2s; }
.cmdk.on .cmdk-box { transform: translateY(0) scale(1); }
.cmdk-in { display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); }
.cmdk-in svg { width: 20px; height: 20px; color: var(--fg-3); }
.cmdk-in input { flex: 1; background: transparent; border: 0; padding: 16px; font: 16px 'Geist'; color: var(--fg); outline: none; }
.cmdk-list { max-height: 360px; overflow-y: auto; padding: 8px; }
.cmdk-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 8px; cursor: pointer; }
.cmdk-item.sel, .cmdk-item:hover { background: var(--bg-3); }
.cmdk-item .id { font-family: 'Geist Mono', monospace; font-weight: 500; font-size: 14px; }
.cmdk-item .t { font-size: 13px; color: var(--fg-2); }
.cmdk-foot { border-top: 1px solid var(--line); padding: 8px 16px; display: flex; gap: 16px; font-size: 12px; color: var(--fg-3); background: rgba(0,0,0,0.2); }

/* Drawer Overlay */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); z-index: 9000; opacity: 0; visibility: hidden; transition: all .3s; }
.scrim.on { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100%; background: var(--bg-2); border-left: 1px solid var(--line); z-index: 9001; transform: translateX(100%); transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.5); }
.drawer.on { transform: translateX(0); }
.d-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.d-head h3 { font: 600 20px 'Geist Mono', monospace; }
.d-body { flex: 1; overflow-y: auto; padding: 24px; }
.d-desc { color: var(--fg-2); font-size: 15px; margin-bottom: 24px; line-height: 1.6; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kv { background: var(--bg-3); border: 1px solid var(--line); padding: 12px; border-radius: 8px; text-align: center; }
.kv .k { font-size: 12px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-bottom: 4px; }
.kv .v { font: 500 24px/1 'Geist'; color: var(--fg); }
.facts { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin-bottom: 24px; }
.fact { display: flex; justify-content: space-between; font-size: 14px; }
.fact span { color: var(--fg-3); }
.fact b { font-weight: 500; text-align: right; max-width: 60%; }
.d-body h4 { font: 500 16px 'Geist'; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.lnk { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.lnk:hover { border-color: var(--line-2); }
.lnk .u { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; font-family: 'Geist Mono', monospace; }
.note { font-size: 12px; color: var(--fg-3); display: flex; gap: 8px; align-items: flex-start; }
.d-foot { padding: 20px 24px; border-top: 1px solid var(--line); display: flex; gap: 12px; }

/* Utilities & Animations */
.hide-sm { display: table-cell; }
@media (max-width: 768px) { .hide-sm { display: none !important; } }
.skel { position: relative; overflow: hidden; background: var(--bg-3) !important; }
.skel::after { content:''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent); transform: translateX(-100%); animation: shimmer 1.5s infinite; }
.skel i { display: block; height: 12px; background: var(--line); border-radius: 4px; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

.rv { opacity: 0; transform: translateY(20px); transition: all .6s cubic-bezier(0.16, 1, 0.3, 1); }
.rv.in { opacity: 1; transform: translateY(0); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--fg); color: var(--bg); padding: 12px 24px; border-radius: 30px; font: 500 14px 'Geist'; box-shadow: 0 10px 30px rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: all .3s; z-index: 99999; }
.toast.on { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
