:root {
  color-scheme: dark;
  --bg: #07101d;
  --bg-deep: #040914;
  --panel: #0d1726;
  --panel-hover: #101e31;
  --line: rgba(183, 204, 234, .14);
  --text: #f4f8ff;
  --muted: #9aa9bf;
  --blue: #3b82f6;
  --blue-strong: #0d6efd;
  --blue-soft: rgba(59, 130, 246, .14);
  --green: #50c890;
  --shadow: 0 18px 48px rgba(0, 0, 0, .24);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg-deep); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 50% -20%, #142d56 0, var(--bg) 35rem, var(--bg-deep) 72rem); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.skip-link { position: fixed; z-index: 10; top: .6rem; left: .7rem; transform: translateY(-180%); padding: .7rem .9rem; border-radius: .55rem; background: white; color: #08111e; font-weight: 800; transition: transform .16s; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.site-header { position: sticky; z-index: 4; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; padding: .85rem max(1rem, calc((100vw - 1220px) / 2)); border-bottom: 1px solid var(--line); background: rgba(5, 12, 23, .88); backdrop-filter: blur(16px); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .65rem; color: #fff; font-size: .84rem; line-height: 1.02; text-transform: uppercase; letter-spacing: -.02em; }
.brand strong { color: #83b4ff; }
.brand small { display: block; margin-top: .14rem; font-size: .58rem; letter-spacing: .1em; }
.brand-icon { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border: 1px solid #7fb2ff; border-radius: .5rem; color: #9dc4ff; font-size: 1.5rem; box-shadow: inset 0 0 16px rgba(54, 133, 255, .3); }
.global-search { display: flex; width: min(100%, 27rem); align-items: center; gap: .55rem; padding: .15rem .8rem; border: 1px solid var(--line); border-radius: .7rem; background: rgba(255, 255, 255, .045); transition: border-color .16s, box-shadow .16s; }
.global-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, .18); }
.global-search svg { width: 1.08rem; fill: none; stroke: #8da2c0; stroke-width: 1.9; }
.global-search input { width: 100%; height: 2.3rem; border: 0; outline: 0; color: var(--text); background: transparent; font-size: .9rem; }
.global-search input::placeholder { color: #7e8ca2; }

main { width: min(100% - 2rem, 1220px); min-height: calc(100vh - 8.4rem); margin: 0 auto; padding: 2.6rem 0 4.5rem; }
.page-intro { max-width: 48rem; margin-bottom: 2rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .7rem; color: #7fb2ff; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow::before { width: .48rem; height: .48rem; border-radius: 50%; background: var(--blue); box-shadow: 0 0 14px var(--blue); content: ""; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 52rem; margin-bottom: .75rem; font-size: clamp(2rem, 4.6vw, 3.35rem); line-height: 1.05; letter-spacing: -.055em; }
h1 .highlight { color: #65a1ff; }
.lead { max-width: 43rem; margin-bottom: 0; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.12rem); line-height: 1.65; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: 1.6rem; color: var(--muted); font-size: .9rem; }
.breadcrumb a { color: #b9c8dc; }
.breadcrumb a:hover { color: white; }
.breadcrumb [aria-current="page"] { overflow: hidden; max-width: 22rem; color: white; text-overflow: ellipsis; white-space: nowrap; }
.crumb-separator { color: #536176; }

.stats { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.35rem; }
.stat { display: inline-flex; align-items: baseline; gap: .35rem; padding: .52rem .7rem; border: 1px solid var(--line); border-radius: .55rem; color: var(--muted); background: rgba(255, 255, 255, .025); font-size: .83rem; }
.stat strong { color: #e8f1ff; font-size: 1rem; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 1rem; }
.brand-card { position: relative; display: flex; min-height: 196px; flex-direction: column; justify-content: space-between; padding: 1.15rem; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: linear-gradient(145deg, rgba(23, 40, 63, .92), rgba(9, 17, 30, .98)); box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.brand-card::after { position: absolute; right: -3rem; bottom: -4rem; width: 11rem; height: 11rem; border-radius: 50%; background: radial-gradient(circle, rgba(63, 137, 255, .18), transparent 66%); content: ""; pointer-events: none; }
.brand-card:hover { transform: translateY(-4px); border-color: rgba(93, 159, 255, .6); background: var(--panel-hover); }
.brand-card:focus-visible, .model-card:focus-visible, .resource-card:focus-visible, .button:focus-visible { outline: 3px solid #a8cbff; outline-offset: 3px; }
.brand-mark { display: grid; width: 4rem; height: 4rem; place-items: center; border: 1px solid rgba(139, 185, 255, .42); border-radius: .85rem; color: #dceaff; background: linear-gradient(135deg, #1f579f, #0a1e3a); font-size: .95rem; font-weight: 900; letter-spacing: -.06em; box-shadow: inset 0 0 20px rgba(124, 183, 255, .25); }
.brand-card h2 { position: relative; z-index: 1; margin: 1rem 0 .2rem; font-size: 1.18rem; letter-spacing: -.03em; }
.brand-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: .87rem; }
.card-arrow { position: relative; z-index: 1; align-self: flex-end; margin-top: .5rem; color: #79afff; font-size: 1.4rem; }

.section-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-title h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.035em; }
.section-title p { margin: 0; color: var(--muted); font-size: .9rem; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .85rem; }
.model-card { display: flex; min-height: 106px; align-items: center; gap: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: .82rem; background: rgba(255, 255, 255, .035); transition: .16s; }
.model-card:hover { border-color: rgba(92, 158, 255, .6); background: var(--panel-hover); }
.model-icon { display: grid; flex: 0 0 2.65rem; width: 2.65rem; height: 2.65rem; place-items: center; border-radius: .68rem; color: #a8caff; background: var(--blue-soft); font-size: 1.23rem; }
.model-card h2 { margin: 0 0 .2rem; font-size: 1rem; }
.model-card p { margin: 0; color: var(--muted); font-size: .82rem; }

.resource-list { display: grid; gap: .65rem; }
.resource-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .78rem; background: rgba(255, 255, 255, .03); transition: .16s; }
.resource-card:hover { border-color: rgba(96, 159, 255, .55); background: var(--panel-hover); }
.file-icon { display: grid; width: 2.65rem; height: 2.65rem; place-items: center; border-radius: .58rem; color: #7eb5ff; background: var(--blue-soft); }
.file-icon svg { width: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.resource-main { min-width: 0; }
.resource-main h2 { overflow: hidden; margin: 0 0 .36rem; font-size: .97rem; font-weight: 700; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.resource-meta { display: flex; flex-wrap: wrap; gap: .4rem; color: var(--muted); font-size: .78rem; }
.tag { padding: .2rem .44rem; border: 1px solid rgba(116, 174, 255, .22); border-radius: 999px; color: #afceff; background: rgba(60, 129, 246, .1); }
.resource-arrow { color: #82b5ff; font-size: 1.3rem; }

.search-results { display: grid; gap: .7rem; }
.search-note { margin: -.5rem 0 1.5rem; color: var(--muted); }
.empty-state, .error-state, .loading-state { display: grid; min-height: 16rem; place-content: center; justify-items: center; padding: 2rem; border: 1px dashed var(--line); border-radius: 1rem; color: var(--muted); text-align: center; }
.empty-state h2, .error-state h1 { margin: .9rem 0 .4rem; color: var(--text); font-size: 1.25rem; }
.empty-icon { color: #7fb2ff; font-size: 2.2rem; }
.spinner { width: 2rem; height: 2rem; border: 3px solid rgba(122, 178, 255, .22); border-top-color: #75adff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.viewer-layout { display: grid; gap: 1.15rem; }
.viewer-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: #111923; box-shadow: var(--shadow); }
.viewer-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); background: #0c1522; }
.viewer-toolbar h2 { margin: 0; font-size: .95rem; }
.viewer-frame { display: block; width: 100%; height: min(72vh, 950px); border: 0; background: #edf1f7; }
.button { display: inline-flex; min-height: 2.6rem; align-items: center; justify-content: center; gap: .45rem; padding: .55rem .85rem; border: 1px solid #2878ed; border-radius: .55rem; color: #dbeaff; background: rgba(36, 120, 238, .14); font-size: .83rem; font-weight: 800; transition: .16s; }
.button:hover { color: white; background: var(--blue-strong); }
.viewer-help { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }

.site-footer { width: min(100% - 2rem, 1220px); padding: 1.4rem 0 2rem; margin: 0 auto; border-top: 1px solid var(--line); color: #74849a; font-size: .8rem; text-align: center; }

@media (max-width: 580px) {
  .site-header { align-items: stretch; min-height: auto; flex-direction: column; padding-top: .75rem; padding-bottom: .75rem; }
  .global-search { width: 100%; }
  main { width: min(100% - 1.25rem, 1220px); padding-top: 1.8rem; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .brand-card { min-height: 166px; padding: .85rem; border-radius: .8rem; }
  .brand-mark { width: 3.15rem; height: 3.15rem; font-size: .78rem; }
  .brand-card h2 { margin-top: .7rem; font-size: 1rem; }
  .brand-card p { font-size: .77rem; }
  .resource-card { grid-template-columns: auto minmax(0, 1fr); padding: .75rem; }
  .resource-arrow { display: none; }
  .resource-main h2 { white-space: normal; }
  .viewer-frame { height: 65vh; }
}

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