
:root {
  --bg: #08080c;
  --bg2: #0e0e14;
  --bg3: #16161e;
  --surface: #1a1a24;
  --border: #2a2a3a;
  --text: #d0d0d8;
  --text2: #8888a0;
  --text3: #555568;
  --red: #e83030;
  --red2: #ff4444;
  --green: #00e87b;
  --blue: #5566ff;
  --orange: #ff9922;
  --purple: #aa55ff;
  --cyan: #00ccdd;
  --product: #e83030;
  --person: #ff9922;
  --company: #00e87b;
  --vc_firm: #5566ff;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', 'JetBrains Mono', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', sans-serif;
  --max-w: 1200px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green); }
::selection { background: var(--red); color: #fff; }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,8,12,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav-brand {
  font-family: var(--font-mono); font-weight: 700; font-size: 18px;
  color: var(--red2); letter-spacing: -0.5px;
}
.nav-brand span { color: var(--text3); font-weight: 400; font-size: 13px; margin-left: 8px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--text2); font-size: 14px; font-family: var(--font-mono);
  padding: 4px 0; border-bottom: 2px solid transparent; transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text); border-bottom-color: var(--red);
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-family: var(--font-mono); font-size: clamp(36px, 6vw, 64px);
  font-weight: 800; line-height: 1.1; letter-spacing: -2px;
  color: #fff;
}
.hero h1 .accent { color: var(--red2); }
.hero .tagline {
  margin-top: 20px; font-size: 18px; color: var(--text2);
  max-width: 600px; line-height: 1.8;
}
.hero .stats {
  display: flex; gap: 40px; margin-top: 40px;
}
.hero .stat {
  display: flex; flex-direction: column;
}
.hero .stat-num {
  font-family: var(--font-mono); font-size: 36px; font-weight: 700;
  color: var(--green); line-height: 1;
}
.hero .stat-label {
  font-size: 13px; color: var(--text3); margin-top: 4px;
  font-family: var(--font-mono); text-transform: uppercase;
}
.hero .cta-row {
  display: flex; gap: 16px; margin-top: 40px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  transition: all .2s; border: none; cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red2); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text2); color: #fff; }

.section { padding: 60px 0; }
.section-title {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--red2); text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 24px;
}

.recent-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.article-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 20px; transition: all .25s;
  display: flex; flex-direction: column;
}
.article-card:hover {
  border-color: var(--red); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232,48,48,.08);
}
.article-card .meta {
  font-family: var(--font-mono); font-size: 12px; color: var(--text3);
  display: flex; gap: 12px; margin-bottom: 8px;
}
.article-card .title {
  font-size: 16px; font-weight: 600; color: #fff; line-height: 1.4;
}
.article-card .author-tag {
  display: inline-block; margin-top: 12px;
  font-size: 12px; font-family: var(--font-mono);
  color: var(--text2); background: var(--bg3);
  padding: 2px 8px; border-radius: 4px;
}

.page-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-family: var(--font-mono); font-size: 32px; font-weight: 700;
  color: #fff; letter-spacing: -1px;
}
.page-header p {
  margin-top: 8px; color: var(--text2); font-size: 15px;
}

.search-bar {
  display: flex; gap: 12px; margin: 24px 0;
}
.search-bar input {
  flex: 1; padding: 10px 16px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; font-family: var(--font-sans);
  outline: none; transition: border-color .2s;
}
.search-bar input:focus { border-color: var(--red); }
.search-bar input::placeholder { color: var(--text3); }
.filter-btn {
  padding: 8px 16px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); font-size: 13px; font-family: var(--font-mono);
  cursor: pointer; transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--red); color: var(--red2);
}

.article-list { list-style: none; }
.article-list li {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  display: flex; align-items: baseline; gap: 16px;
  transition: background .2s;
}
.article-list li:hover { background: var(--bg2); }
.article-list .num {
  font-family: var(--font-mono); font-size: 13px; color: var(--text3);
  min-width: 36px; text-align: right;
}
.article-list .date {
  font-family: var(--font-mono); font-size: 13px; color: var(--text3);
  min-width: 100px;
}
.article-list .title-link {
  font-size: 15px; color: var(--text); font-weight: 500; flex: 1;
}
.article-list .title-link:hover { color: var(--red2); }
.article-list .author {
  font-family: var(--font-mono); font-size: 12px; color: var(--text3);
  min-width: 80px; text-align: right;
}

.article-page { padding: 48px 0 80px; }
.article-page .article-header { margin-bottom: 40px; }
.article-page .article-header h1 {
  font-size: clamp(24px, 4vw, 36px); font-weight: 700;
  color: #fff; line-height: 1.3; letter-spacing: -0.5px;
}
.article-page .article-meta {
  display: flex; gap: 16px; margin-top: 12px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text3);
}
.article-page .article-body {
  max-width: 720px;
  font-size: 16px; line-height: 1.9; color: var(--text);
}
.article-body h1 { font-size: 28px; font-weight: 700; color: #fff; margin: 40px 0 16px; }
.article-body h2 { font-size: 22px; font-weight: 600; color: #fff; margin: 32px 0 12px; }
.article-body h3 { font-size: 18px; font-weight: 600; color: #fff; margin: 24px 0 8px; }
.article-body p { margin: 16px 0; }
.article-body ul, .article-body ol { margin: 16px 0; padding-left: 24px; }
.article-body li { margin: 4px 0; }
.article-body blockquote {
  border-left: 3px solid var(--red); padding: 8px 16px;
  margin: 16px 0; color: var(--text2); background: var(--bg2);
  border-radius: 0 6px 6px 0;
}
.article-body code {
  background: var(--bg3); padding: 2px 6px; border-radius: 3px;
  font-family: var(--font-mono); font-size: 14px;
}
.article-body pre {
  background: var(--bg3); padding: 16px; border-radius: 6px;
  overflow-x: auto; margin: 16px 0;
}
.article-body pre code { background: none; padding: 0; }
.article-body hr {
  border: none; border-top: 1px solid var(--border); margin: 32px 0;
}
.article-body strong { color: #fff; }
.article-body img { max-width: 100%; border-radius: 6px; margin: 16px 0; }
.article-nav {
  display: flex; justify-content: space-between; margin-top: 48px;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.article-nav a {
  font-family: var(--font-mono); font-size: 14px; color: var(--text2);
}
.article-nav a:hover { color: var(--red2); }

.graph-container {
  position: relative;
  width: 100%; height: calc(100vh - 56px);
  background: var(--bg);
}
.graph-svg { width: 100%; height: 100%; }
.graph-svg .node-circle { cursor: pointer; transition: r .2s; }
.graph-svg .node-circle:hover { filter: brightness(1.3); }
.graph-svg .link { stroke-opacity: 0.15; }
.graph-svg .node-label {
  font-family: var(--font-mono); font-size: 10px;
  fill: var(--text2); pointer-events: none;
}

.graph-controls {
  position: absolute; top: 16px; right: 16px;
  display: flex; flex-direction: column; gap: 8px; z-index: 10;
}
.graph-controls button {
  width: 36px; height: 36px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.graph-controls button:hover { border-color: var(--red); color: var(--red2); }

.graph-legend {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(26,26,36,.9); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 16px; z-index: 10;
}
.graph-legend .item {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text2);
  margin: 4px 0;
}
.graph-legend .dot {
  width: 10px; height: 10px; border-radius: 50%;
}

.node-detail {
  position: absolute; top: 16px; left: 16px;
  background: rgba(26,26,36,.95); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 20px; z-index: 20; max-width: 360px;
  display: none;
}
.node-detail.visible { display: block; }
.node-detail .close-btn {
  position: absolute; top: 8px; right: 12px;
  background: none; border: none; color: var(--text3);
  font-size: 18px; cursor: pointer;
}
.node-detail h3 {
  font-family: var(--font-mono); font-size: 16px; color: #fff;
  margin-bottom: 8px;
}
.node-detail .type-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  margin-bottom: 8px;
}
.node-detail p { font-size: 13px; color: var(--text2); line-height: 1.6; }
.node-detail .stats-row {
  display: flex; gap: 16px; margin-top: 12px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text3);
}

.leaderboards {
  padding: 40px 0;
}
.leaderboards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.lb-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.lb-card .lb-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  color: #fff; display: flex; align-items: center; gap: 8px;
}
.lb-card .lb-header .dot { width: 8px; height: 8px; border-radius: 50%; }
.lb-card .lb-list { list-style: none; }
.lb-card .lb-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; border-bottom: 1px solid rgba(42,42,58,.5);
  font-size: 13px; transition: background .2s;
}
.lb-card .lb-item:hover { background: var(--bg3); }
.lb-card .lb-rank {
  font-family: var(--font-mono); font-size: 12px; color: var(--text3);
  min-width: 24px;
}
.lb-card .lb-name { color: var(--text); flex: 1; }
.lb-card .lb-score {
  font-family: var(--font-mono); font-size: 12px; color: var(--text3);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0; text-align: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--text3);
}

@media (max-width: 768px) {
  .hero .stats { flex-wrap: wrap; gap: 24px; }
  .hero .cta-row { flex-direction: column; }
  .article-list li { flex-wrap: wrap; }
  .article-list .date { min-width: auto; }
  .article-list .author { min-width: auto; text-align: left; }
  .leaderboards-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .recent-grid { grid-template-columns: 1fr; }
}
