:root {
  color-scheme: dark;
  --ink: #f2f1eb;
  --muted: #9da5a1;
  --faint: #666f6b;
  --paper: #080b0d;
  --panel: #0e1315;
  --panel-2: #141a1d;
  --line: #2b3336;
  --acid: #d8ff43;
  --orange: #ff5b35;
  --cyan: #75e5d2;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { color: inherit; }

.noise { position: fixed; inset: 0; z-index: -1; opacity: .2; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E"); }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 10; background: var(--acid); color: #050705; padding: 10px 14px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.topbar { min-height: 64px; padding: 0 clamp(20px, 5vw, 78px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; position: sticky; top: 0; z-index: 5; background: rgba(8, 11, 13, .9); backdrop-filter: blur(16px); }
.brand { display: inline-flex; gap: 9px; align-items: center; text-decoration: none; font: 700 15px var(--mono); letter-spacing: -.04em; }
.brand span { color: var(--acid); font-size: 22px; }
.topbar nav { display: flex; gap: 22px; }
.topbar nav a { color: var(--muted); text-decoration: none; font: 12px var(--mono); }
.topbar nav a:hover, .topbar nav a:focus-visible { color: var(--acid); }

main { width: min(1460px, 100%); margin: 0 auto; }
.hero { min-height: 650px; padding: clamp(76px, 11vw, 150px) clamp(20px, 5vw, 78px) 82px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr); gap: clamp(44px, 8vw, 120px); align-items: center; }
.kicker { margin: 0 0 21px; color: var(--acid); font: 700 11px var(--mono); letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 28px; font-size: clamp(56px, 8.2vw, 128px); line-height: .84; letter-spacing: -.075em; font-weight: 800; }
h1 em { color: var(--acid); font-style: normal; }
.lede { max-width: 700px; margin-bottom: 34px; color: #c4cbc7; font-size: clamp(18px, 2vw, 24px); line-height: 1.45; letter-spacing: -.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--panel); text-decoration: none; font: 700 12px var(--mono); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); border-color: var(--ink); }
.button-primary { background: var(--acid); border-color: var(--acid); color: #090c08; }

.pulse-panel { border: 1px solid var(--line); background: rgba(14, 19, 21, .86); box-shadow: 18px 18px 0 rgba(216, 255, 67, .05); }
.panel-head { min-height: 45px; padding: 0 15px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); color: var(--muted); font: 700 10px var(--mono); letter-spacing: .12em; }
.panel-time { margin-left: auto; color: var(--faint); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 16px var(--acid); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.pulse-number { padding: 25px 20px 0; display: flex; align-items: baseline; gap: 8px; }
.pulse-number strong { font: 800 clamp(64px, 7vw, 92px)/1 var(--mono); letter-spacing: -.09em; }
.pulse-number span { color: var(--faint); font: 700 20px var(--mono); }
.pulse-label { margin: 2px 20px 20px; color: var(--muted); font: 12px var(--mono); }
.meter { height: 7px; margin: 0 20px; background: #242b2c; overflow: hidden; }
.meter span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--orange), var(--acid)); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.pulse-state { min-height: 42px; margin: 14px 20px 19px; color: var(--acid); font: 12px/1.5 var(--mono); }
.pulse-facts { margin: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.pulse-facts div { padding: 13px 10px; border-right: 1px solid var(--line); }
.pulse-facts div:last-child { border: 0; }
.pulse-facts dt { color: var(--faint); font: 9px var(--mono); text-transform: uppercase; }
.pulse-facts dd { margin: 4px 0 0; font: 10px var(--mono); }
.proof-link { display: block; padding: 13px 20px; border-top: 1px solid var(--line); color: var(--muted); text-decoration: none; font: 10px var(--mono); }
.proof-link:hover { color: var(--acid); }

.signal-strip { margin: 0 clamp(20px, 5vw, 78px); border-block: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.signal-strip div { min-height: 105px; padding: 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.signal-strip div:last-child { border: 0; }
.signal-strip span { font: 700 clamp(28px, 3vw, 44px) var(--mono); letter-spacing: -.06em; }
.signal-strip small { margin-top: 4px; color: var(--faint); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; }

.feed-section { padding: 110px clamp(20px, 5vw, 78px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 35px; }
h2 { margin-bottom: 0; font-size: clamp(40px, 5vw, 76px); line-height: .95; letter-spacing: -.055em; }
.refresh, .copy-command, .copy-prompt { border: 1px solid var(--line); background: var(--panel); cursor: pointer; font: 11px var(--mono); }
.refresh { padding: 12px 15px; }
.refresh:hover, .refresh:focus-visible, .copy-command:hover, .copy-prompt:hover { border-color: var(--acid); color: var(--acid); }
.refresh:disabled { cursor: wait; opacity: .5; }
.controls { padding: 14px; border: 1px solid var(--line); background: var(--panel); display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; gap: 16px; align-items: end; }
.controls label, .controls legend { color: var(--faint); font: 9px var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.search-field, .sort-field { display: grid; gap: 7px; }
.search-field input, .sort-field select { height: 42px; border: 1px solid var(--line); background: #090d0f; color: var(--ink); padding: 0 12px; outline: none; }
.search-field input:focus, .sort-field select:focus { border-color: var(--acid); }
fieldset { margin: 0; padding: 0; border: 0; }
.segmented { margin-top: 7px; display: flex; }
.segmented button { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-right: 0; background: #090d0f; color: var(--muted); cursor: pointer; font: 10px var(--mono); }
.segmented button:last-child { border-right: 1px solid var(--line); }
.segmented button.active { background: var(--acid); color: #090c08; border-color: var(--acid); }
.feed-meta { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--faint); font: 10px var(--mono); }
.feed-meta p { margin: 0; }
.repo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.repo-card { min-width: 0; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(14, 19, 21, .76); display: flex; flex-direction: column; gap: 16px; transition: background .18s ease; }
.repo-card:hover { background: var(--panel-2); }
.card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.access-badge { padding: 4px 7px; background: rgba(216, 255, 67, .08); color: var(--acid); font: 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.access-badge[data-level="heavy"] { color: var(--orange); background: rgba(255,91,53,.08); }
.access-badge[data-level="read"] { color: var(--cyan); background: rgba(117,229,210,.08); }
.repo-stars { color: var(--muted); font: 11px var(--mono); }
.repo-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.repo-avatar { border-radius: 7px; background: #1c2224; }
.repo-owner { margin: 0; color: var(--faint); font: 9px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.repo-name { margin: 1px 0 0; font-size: 18px; letter-spacing: -.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.repo-description { min-height: 67px; margin: 0; color: #bec5c1; font-size: 14px; line-height: 1.6; }
.repo-tags { min-height: 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.repo-tags span { padding: 4px 6px; border: 1px solid var(--line); color: var(--muted); font: 9px var(--mono); }
.command { min-width: 0; height: 42px; border: 1px solid var(--line); background: #070a0b; display: flex; align-items: center; }
.command[hidden] { display: none; }
.command code { flex: 1; min-width: 0; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cyan); font: 10px var(--mono); }
.copy-command { align-self: stretch; border-width: 0 0 0 1px; padding: 0 10px; }
.card-actions { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.launch-link { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-link { color: var(--muted); font: 10px var(--mono); text-decoration: none; }
.source-link:hover { color: var(--ink); }
details { margin-inline: -22px; padding-inline: 22px; border-top: 1px solid var(--line); }
details summary { padding-top: 14px; color: var(--faint); cursor: pointer; font: 10px var(--mono); }
.details-body { padding-top: 13px; }
.details-body p { color: var(--muted); font: 11px/1.55 var(--mono); }
.copy-prompt { width: 100%; padding: 10px; }
.empty-state { padding: 70px 20px; border: 1px solid var(--line); text-align: center; color: var(--muted); }
.empty-state strong { color: var(--ink); font-size: 24px; }

.how { margin: 0 clamp(20px, 5vw, 78px) 110px; padding: 60px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(40px, 8vw, 120px); }
.how ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.how li { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 130px 1fr; gap: 15px; align-items: baseline; }
.how li span { color: var(--acid); font: 10px var(--mono); }
.how li strong { font-size: 18px; }
.how li p { margin: 0; color: var(--muted); font-size: 13px; }
.how code { color: var(--cyan); }

footer { width: min(1460px, 100%); margin: 0 auto; padding: 24px clamp(20px, 5vw, 78px) 45px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 30px; color: var(--faint); font: 10px var(--mono); }
footer p { margin: 0; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .pulse-panel { max-width: 520px; }
  .controls { grid-template-columns: 1fr; }
  .repo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { min-height: 56px; }
  .topbar nav a:not(:last-child) { display: none; }
  .hero { min-height: 0; padding-top: 72px; }
  h1 { font-size: clamp(50px, 16vw, 78px); }
  .signal-strip { grid-template-columns: repeat(2, 1fr); }
  .signal-strip div:nth-child(2) { border-right: 0; }
  .signal-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head { align-items: start; flex-direction: column; }
  .segmented { overflow-x: auto; }
  .segmented button { flex: 0 0 auto; }
  .feed-meta { align-items: start; flex-direction: column; padding-block: 14px; }
  .repo-grid { grid-template-columns: 1fr; }
  .how li { grid-template-columns: 34px 1fr; }
  .how li p { grid-column: 2; }
  footer { flex-direction: column; }
}

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