:root {
  color-scheme: dark;
  --bg: #06101c;
  --bg-2: #091827;
  --panel: rgba(13, 31, 49, .82);
  --panel-solid: #0d1f31;
  --text: #edf7ff;
  --muted: #91a8ba;
  --line: rgba(151, 186, 209, .16);
  --cyan: #4ee7da;
  --cyan-2: #13b8b4;
  --lime: #b9f26b;
  --orange: #ffb562;
  --red: #ff7d85;
  --shadow: 0 24px 70px rgba(0, 0, 0, .32);
  --radius: 22px;
  --max: 1240px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f9fb;
  --bg-2: #eaf3f5;
  --panel: rgba(255, 255, 255, .9);
  --panel-solid: #fff;
  --text: #102634;
  --muted: #5f7583;
  --line: rgba(31, 83, 98, .15);
  --shadow: 0 22px 65px rgba(38, 89, 103, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(45, 212, 191, .10), transparent 28rem),
    radial-gradient(circle at 90% 15%, rgba(120, 172, 255, .08), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
button, input, select { font: inherit; }
a { color: inherit; }
button { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; background: var(--cyan); color: #052021; padding: .7rem 1rem; border-radius: .6rem; font-weight: 800; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-size: 1.1rem; letter-spacing: -.03em; }
.brand img { filter: drop-shadow(0 8px 20px rgba(78, 231, 218, .18)); }
.brand strong { color: var(--cyan); }
.site-header nav { display: flex; gap: 1.7rem; }
.site-header nav a { color: var(--muted); font-size: .92rem; font-weight: 650; text-decoration: none; }
.site-header nav a:hover { color: var(--text); }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }

.hero { max-width: var(--max); margin: 0 auto; padding: 7.2rem 24px 3.8rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 4.5rem; align-items: center; }
.eyebrow { color: var(--cyan); font-size: .78rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.pulse { display: inline-block; width: 8px; height: 8px; margin-right: .5rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 7px rgba(185, 242, 107, .08); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 850px; margin: 1.15rem 0 1.4rem; font-size: clamp(3.4rem, 7vw, 6.45rem); line-height: .93; letter-spacing: -.068em; }
h1 span { color: transparent; background: linear-gradient(90deg, var(--cyan), var(--lime)); -webkit-background-clip: text; background-clip: text; }
.hero-lead { max-width: 680px; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.4rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.2rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 780; cursor: pointer; }
.button.primary { background: linear-gradient(135deg, var(--cyan), #8cf4bd); color: #062323; border-color: transparent; box-shadow: 0 10px 40px rgba(78, 231, 218, .22); }
.button.secondary { background: var(--panel); }
.button:hover { transform: translateY(-1px); }
.catalog-note { color: var(--muted); font-size: .82rem; }

.hero-visual { position: relative; min-height: 510px; display: grid; place-items: center; }
.grid-glow { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(circle, #000 25%, transparent 68%); opacity: .65; }
.phone-shell { position: relative; width: 248px; height: 470px; border: 2px solid rgba(126, 239, 228, .45); border-radius: 42px; background: linear-gradient(155deg, rgba(25, 58, 78, .95), rgba(7, 20, 34, .97)); box-shadow: inset 0 0 0 8px rgba(3, 14, 24, .55), 0 45px 100px rgba(0,0,0,.45), 0 0 90px rgba(78, 231, 218, .09); transform: rotate(6deg); }
.phone-speaker { position: absolute; top: 17px; left: 50%; width: 64px; height: 6px; transform: translateX(-50%); background: rgba(178, 220, 230, .25); border-radius: 99px; }
.screen-lines { position: absolute; left: 34px; top: 70px; width: 115px; display: grid; gap: 11px; }
.screen-lines span { height: 5px; border-radius: 4px; background: rgba(129, 184, 199, .18); }
.screen-lines span:nth-child(2) { width: 70%; } .screen-lines span:nth-child(3) { width: 92%; } .screen-lines span:nth-child(4) { width: 55%; }
.tree-map { position: absolute; inset: 175px 35px 55px; }
.tree-map i { position: absolute; display: block; }
.tree-map .root, .tree-map .node { width: 18px; height: 18px; border: 3px solid var(--cyan); border-radius: 50%; background: #082131; box-shadow: 0 0 25px rgba(78, 231, 218, .35); z-index: 2; }
.tree-map .root { left: 50%; bottom: 0; transform: translateX(-50%); width: 26px; height: 26px; border-color: var(--lime); }
.tree-map .n1 { left: 17px; top: 34px; } .tree-map .n2 { right: 17px; top: 34px; } .tree-map .n3 { left: 56px; top: 108px; } .tree-map .n4 { right: 42px; top: 128px; }
.tree-map .branch { width: 3px; background: linear-gradient(var(--cyan), var(--lime)); transform-origin: bottom center; opacity: .72; z-index: 1; }
.tree-map .b1 { height: 142px; left: 75px; top: 77px; transform: rotate(-23deg); } .tree-map .b2 { height: 147px; right: 68px; top: 75px; transform: rotate(22deg); } .tree-map .b3 { height: 100px; left: 106px; top: 124px; transform: rotate(-5deg); }
.code-card { position: absolute; padding: .7rem .9rem; border: 1px solid rgba(117, 217, 217, .22); background: rgba(9, 29, 45, .85); border-radius: 10px; color: #bcd0dc; font: 700 .73rem ui-monospace, SFMono-Regular, Menlo, monospace; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.code-card b { color: var(--cyan); }.card-a { left: 0; top: 125px; }.card-b { right: 0; top: 250px; }.card-c { left: 18px; bottom: 58px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.stats div { padding: 1.45rem 1.65rem; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-size: 1.85rem; letter-spacing: -.04em; }
.stats span { color: var(--muted); font-size: .82rem; }

.section { max-width: var(--max); margin: 0 auto; padding: 6.3rem 24px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading.narrow { max-width: 760px; }
h2 { margin: .55rem 0 .55rem; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.02; letter-spacing: -.055em; }
.section-heading p { max-width: 690px; color: var(--muted); }
.result-count { flex: none; color: var(--muted); font-size: .9rem; }

.search-panel { position: sticky; top: 92px; z-index: 30; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(24px); box-shadow: 0 20px 45px rgba(0,0,0,.12); }
.search-box { display: flex; align-items: center; gap: .8rem; height: 58px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-solid); }
.search-box svg { width: 21px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 1rem; }
.search-box kbd { color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: .1rem .42rem; font-size: .75rem; }
.filters { display: grid; grid-template-columns: 1.2fr .9fr .9fr auto; gap: .75rem; margin-top: .8rem; }
.filters label { color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.filters select { display: block; width: 100%; margin-top: .35rem; padding: .72rem .8rem; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--panel-solid); outline: none; }
.clear-button { align-self: end; height: 43px; border: 1px solid var(--line); border-radius: 9px; background: transparent; cursor: pointer; }
.active-filter-row { min-height: 30px; padding: .8rem 0 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.filter-chip { padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .73rem; }

.device-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.device-card { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); overflow: hidden; box-shadow: 0 15px 50px rgba(0,0,0,.08); transition: .22s ease; }
.device-card:hover { transform: translateY(-3px); border-color: rgba(78, 231, 218, .38); box-shadow: var(--shadow); }
.card-open { width: 100%; padding: 0; text-align: left; border: 0; background: transparent; cursor: pointer; }
.device-image { position: relative; height: 185px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 30%, rgba(78,231,218,.15), transparent 43%), linear-gradient(140deg, #0c2435, #07121f); border-bottom: 1px solid var(--line); }
.device-image::before { content: ""; width: 80px; height: 144px; border: 2px solid rgba(136, 223, 217, .55); border-radius: 15px; background: linear-gradient(145deg, rgba(37, 78, 96, .55), rgba(8, 24, 37, .8)); box-shadow: inset 0 0 0 5px rgba(1, 9, 15, .35), 0 20px 50px rgba(0,0,0,.28); }
.device-image.tablet::before { width: 122px; height: 148px; border-radius: 12px; }
.device-image.has-photo { background-position: center; background-size: contain; background-repeat: no-repeat; background-color: #fff; }
.device-image.has-photo::before { display: none; }
.device-image::after { content: attr(data-label); position: absolute; left: 16px; bottom: 12px; max-width: calc(100% - 32px); color: rgba(228, 244, 249, .7); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-body { padding: 1.05rem 1.05rem 1.2rem; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.device-brand { color: var(--cyan); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.status-badge { padding: .22rem .5rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .63rem; font-weight: 800; text-transform: uppercase; }
.status-badge.blocked { color: var(--orange); border-color: rgba(255,181,98,.32); }.status-badge.ready { color: var(--lime); border-color: rgba(185,242,107,.3); }.status-badge.research { color: #8cb7ff; border-color: rgba(140,183,255,.3); }
.device-name { margin: .55rem 0 .1rem; font-size: 1.12rem; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-variant { min-height: 40px; margin: 0 0 .9rem; color: var(--muted); font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.quick-specs { display: grid; grid-template-columns: 1fr 1fr; gap: .58rem .8rem; margin: 0; }
.quick-specs div:last-child { grid-column: 1 / -1; }
.quick-specs dt { color: var(--muted); font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; }
.quick-specs dd { margin: .12rem 0 0; font: 650 .76rem ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view-link { display: block; margin-top: 1rem; color: var(--cyan); font-size: .78rem; font-weight: 750; }.view-link b { float: right; }
.catalogue-actions { display: flex; justify-content: center; margin-top: 2rem; }
.empty-state { grid-column: 1 / -1; padding: 5rem 1rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

.methodology { border-top: 1px solid var(--line); }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.method-grid article { padding: 1.45rem; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.method-number { color: var(--cyan); font: 800 .75rem ui-monospace, monospace; }
.method-grid h3 { margin: 2rem 0 .5rem; font-size: 1rem; }
.method-grid p { margin: 0; color: var(--muted); font-size: .84rem; }
.about-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; padding: 3rem; border: 1px solid rgba(78,231,218,.22); border-radius: 26px; background: radial-gradient(circle at 15% 5%, rgba(78,231,218,.13), transparent 40%), var(--panel); }
.about-panel p { color: var(--muted); }
footer { max-width: var(--max); margin: 0 auto; padding: 2.2rem 24px 4rem; border-top: 1px solid var(--line); color: var(--muted); }
.footer-brand { margin-bottom: 1rem; color: var(--text); }.footer-small { font-size: .74rem; }

.device-dialog { width: min(1040px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 24px; color: var(--text); background: var(--bg-2); box-shadow: 0 40px 120px rgba(0,0,0,.55); overflow: auto; }
.device-dialog::backdrop { background: rgba(0, 7, 13, .74); backdrop-filter: blur(7px); }
.dialog-shell { position: relative; }
.dialog-close { position: sticky; float: right; right: 18px; top: 18px; z-index: 4; width: 42px; height: 42px; margin: 18px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel-solid); cursor: pointer; font-size: 1.45rem; }
.detail-hero { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 3.2rem 3rem 2rem; border-bottom: 1px solid var(--line); }
.detail-visual { min-height: 310px; border: 1px solid var(--line); border-radius: 20px; }
.detail-title .eyebrow { margin-top: .5rem; }.detail-title h2 { margin-top: .5rem; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.detail-subtitle { color: var(--muted); }
.detail-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.detail-badges span { padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .75rem; }
.evidence-banner { margin-top: 1rem; padding: .9rem 1rem; border-left: 3px solid var(--orange); border-radius: 8px; background: rgba(255,181,98,.07); color: var(--muted); font-size: .82rem; }
.detail-sections { padding: 2rem 3rem 3rem; }
.detail-section { margin-bottom: 2.2rem; }.detail-section h3 { margin-bottom: .8rem; font-size: 1.15rem; }
.spec-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 43% 57%; gap: 1rem; min-width: 0; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.spec-row:nth-child(odd) { padding-right: 1rem; }.spec-row:nth-child(even) { padding-left: 1rem; }
.spec-label { color: var(--muted); font-size: .76rem; }.spec-value { min-width: 0; font: 650 .78rem ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.unknown { color: var(--muted); font-style: italic; }.source-link { color: var(--cyan); }
.photo-note { margin-top: .7rem; color: var(--muted); font-size: .72rem; text-align: center; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }.hero-visual { display: none; }
  .device-grid { grid-template-columns: repeat(2, 1fr); }.method-grid { grid-template-columns: repeat(2,1fr); }
  .filters { grid-template-columns: 1fr 1fr; }.clear-button { align-self: stretch; margin-top: 1.15rem; }
  .about-panel { grid-template-columns: 1fr; gap: 1rem; }.detail-hero { grid-template-columns: 210px 1fr; padding: 2.7rem 2rem 1.7rem; }.detail-sections { padding: 1.5rem 2rem 2.5rem; }
}
@media (max-width: 680px) {
  .site-header nav { display: none; }.site-header { padding: 0 16px; }.hero { padding-top: 4.3rem; }.section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  h1 { font-size: clamp(3rem, 16vw, 4.5rem); }.stats { grid-template-columns: 1fr 1fr; }.stats div:nth-child(2) { border-right: 0; }.stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { display: block; }.result-count { margin-top: 1rem; }.search-panel { top: 84px; }.filters { grid-template-columns: 1fr; }.clear-button { margin: 0; }
  .device-grid { grid-template-columns: 1fr; }.method-grid { grid-template-columns: 1fr; }.about-panel { padding: 1.5rem; }
  .detail-hero { grid-template-columns: 1fr; padding: 4.3rem 1.2rem 1.5rem; }.detail-visual { min-height: 240px; }.detail-sections { padding: 1.2rem; }.spec-table { grid-template-columns: 1fr; }.spec-row:nth-child(n) { padding-left: 0; padding-right: 0; }
}

.section-empty{margin:.5rem 0 1.2rem;padding:1rem;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:.84rem}.status-badge.research{color:#8cb7ff;border-color:rgba(140,183,255,.3)}
