:root {
  color-scheme: dark;
  --ink: #edf5f1;
  --muted: #9cadA5;
  --line: rgba(213, 240, 225, 0.13);
  --panel: #111b18;
  --panel-2: #15231f;
  --accent: #a7ff5b;
  --accent-2: #55d9a5;
  --bg: #08110f;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 10%, rgba(59, 149, 112, 0.14), transparent 32rem),
    var(--bg);
  font-family: var(--sans);
  line-height: 1.6;
}
a { color: inherit; }
button, input, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.hero {
  min-height: 580px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(8,17,15,.2), rgba(8,17,15,.78)),
    repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255,255,255,.035) 25%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 430px; height: 430px; right: -80px; top: 90px;
  border: 1px solid rgba(167,255,91,.25); border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(167,255,91,.025), 0 0 0 140px rgba(167,255,91,.018);
}
.nav { height: 78px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: #07100d; background: var(--accent); border-radius: 9px; font: 700 12px var(--mono); }
.nav-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-link:hover { color: var(--accent); }
.hero-content { padding-top: 84px; position: relative; z-index: 1; }
.eyebrow, .section-kicker { color: var(--accent); font: 700 11px/1 var(--mono); letter-spacing: .16em; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 1px; background: var(--accent); }
h1 { max-width: 820px; margin: 26px 0 24px; font-size: clamp(48px, 8vw, 92px); line-height: .98; letter-spacing: -.065em; font-weight: 670; }
h1 em { color: var(--accent); font-style: normal; font-family: Georgia, serif; font-weight: 400; }
.hero-content > p { max-width: 650px; color: #b8c7c0; font-size: 17px; }
.hero-meta { display: flex; align-items: center; gap: 12px; margin-top: 38px; color: var(--muted); font: 12px var(--mono); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.main-content { margin-top: -54px; position: relative; z-index: 3; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: #dfffc4; color: #0d1713; border-radius: 2px; }
.stats article { padding: 24px 30px; display: flex; align-items: baseline; gap: 12px; border-right: 1px solid rgba(8,17,15,.16); }
.stats article:last-child { border: 0; }
.stats strong { font: 600 clamp(28px, 4vw, 42px) Georgia, serif; }
.stats span { font: 650 12px var(--mono); text-transform: uppercase; letter-spacing: .05em; }

.explorer { padding: 92px 0 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
h2 { margin: 9px 0 0; font-size: clamp(30px, 5vw, 48px); letter-spacing: -.04em; line-height: 1.1; }
.tabs { display: flex; border: 1px solid var(--line); padding: 4px; border-radius: 8px; }
.tab { border: 0; padding: 10px 16px; border-radius: 5px; color: var(--muted); background: transparent; cursor: pointer; }
.tab.active { color: #0c1612; background: var(--accent); font-weight: 700; }
.toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 180px 160px; gap: 10px; margin-top: 36px; }
.search-field, .select-field { height: 48px; border: 1px solid var(--line); background: rgba(17,27,24,.72); display: flex; align-items: center; border-radius: 7px; }
.search-field:focus-within, .select-field:focus-within { border-color: rgba(167,255,91,.6); }
.search-field svg { width: 18px; margin-left: 15px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
input, select { width: 100%; color: var(--ink); background: transparent; border: 0; outline: 0; padding: 0 14px; }
select { cursor: pointer; }
select option { background: var(--panel); }
.status { color: var(--muted); margin: 24px 0 14px; min-height: 26px; font-size: 14px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project-card { min-height: 310px; padding: 22px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(21,35,31,.92), rgba(13,23,20,.92)); border-radius: 8px; display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease; }
.project-card:hover { transform: translateY(-3px); border-color: rgba(167,255,91,.4); }
.card-top { display: flex; align-items: center; min-height: 32px; gap: 12px; }
.rank { min-width: 42px; color: var(--accent); font: 700 13px var(--mono); }
.owner { display: flex; align-items: center; min-width: 0; gap: 8px; color: var(--muted); font-size: 13px; }
.avatar { border-radius: 50%; background: #263530; }
.owner-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.language { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.language i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
.language b { font-weight: 500; }
.project-card h3 { margin: 22px 0 10px; font-size: 22px; letter-spacing: -.03em; overflow-wrap: anywhere; }
.project-link { text-decoration: none; }
.project-link:hover { color: var(--accent); }
.description { margin: 0 0 18px; color: #adbbb5; font-size: 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.topic { padding: 3px 8px; color: #accbbd; border: 1px solid rgba(85,217,165,.2); border-radius: 99px; font: 11px var(--mono); }
.card-footer { display: flex; align-items: center; gap: 15px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font: 12px var(--mono); }
.metric::before { color: var(--accent); margin-right: 5px; }
.stars::before { content: "★"; }
.forks::before { content: "⑂"; }
.created { margin-left: auto; }
.visit { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; }
.visit:hover { color: #07100d; background: var(--accent); }
.load-more { display: block; margin: 28px auto 0; padding: 12px 26px; color: var(--accent); border: 1px solid rgba(167,255,91,.4); background: transparent; border-radius: 6px; cursor: pointer; }
.load-more:hover { color: #07100d; background: var(--accent); }

.methodology { padding: 90px 0; border-top: 1px solid var(--line); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 40px; background: var(--line); }
.method-grid article { padding: 30px; background: var(--bg); }
.method-grid span { color: var(--accent); font: 12px var(--mono); }
.method-grid h3 { margin: 18px 0 8px; }
.method-grid p, .method-note { color: var(--muted); font-size: 14px; }
.method-note { margin-top: 24px; }
footer { border-top: 1px solid var(--line); color: var(--muted); font: 12px var(--mono); }
.footer-inner { min-height: 100px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1180px); }
  .hero { min-height: 535px; }
  .hero-content { padding-top: 60px; }
  .hero::after { opacity: .35; }
  .stats { grid-template-columns: 1fr; }
  .stats article { border-right: 0; border-bottom: 1px solid rgba(8,17,15,.16); padding: 15px 20px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .tabs { align-self: flex-start; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .project-grid, .method-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 290px; }
  .footer-inner { padding: 28px 0; align-items: flex-start; flex-direction: column; }
}

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