@font-face { font-family: 'Space Grotesk'; src: url('/static/fonts/space-grotesk.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/static/fonts/inter.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/static/fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }

:root {
  --bg-0: #0a0d12;
  --bg-1: #10141b;
  --panel: #161b24;
  --panel-2: #1b2129;
  --border: #232935;
  --border-strong: #2e3644;
  --text-1: #e7ebf0;
  --text-2: #98a1b0;
  --text-3: #5a6270;
  --shell-accent: #8b96ab;
  --shell-accent-dim: #4d5566;
  --radius-card: 14px;
  --danger: #ff5470;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.5;
}
a { color: inherit; }
.disp { font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif; }
.mono { font-family: 'JetBrains Mono', 'Consolas', monospace; }

.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(10, 13, 18, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: radial-gradient(circle at 30% 30%, var(--shell-accent), var(--bg-1));
  position: relative; flex-shrink: 0;
}
.brand-mark::after { content: ''; position: absolute; inset: 8px; border: 1.5px solid var(--bg-0); border-radius: 50%; }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-1); }
.brand-name .dim { color: var(--text-3); font-weight: 400; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 13.5px; font-weight: 500; padding: 6px 2px; border-bottom: 1.5px solid transparent; transition: color .15s, border-color .15s; }
.nav-links a:hover { color: var(--text-1); border-color: var(--shell-accent-dim); }
.editor-link {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-3); text-decoration: none; font-size: 12.5px;
  border: 0.5px solid var(--border-strong); border-radius: 99px;
  padding: 6px 14px; transition: color .15s, border-color .15s;
}
.editor-link:hover { color: var(--text-1); border-color: var(--shell-accent); }
.editor-link svg { width: 12px; height: 12px; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.icon-link {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  color: var(--text-3); transition: color .15s, background .15s;
}
.icon-link:hover { color: var(--text-1); background: var(--panel); }
.icon-link svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 620px) {
  .nav-links { display: none; }
}

.hero { padding: 76px 32px 56px; text-align: center; border-bottom: 0.5px solid var(--border); }
.hero-eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin: 0 0 18px; }
.hero h1 { font-size: 38px; font-weight: 600; line-height: 1.16; margin: 0 0 16px; text-wrap: balance; letter-spacing: -0.01em; }
.hero p { font-size: 16px; color: var(--text-2); max-width: 560px; margin: 0 auto; line-height: 1.6; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 36px; }
.hstat { text-align: center; }
.hstat .n { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hstat .l { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.how-it-works-row { display: flex; justify-content: center; padding: 32px 32px 0; }
.btn-how-it-works {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--text-1); text-decoration: none;
  border: 1px solid rgba(34,211,255,0.35); background: rgba(34,211,255,0.06);
  padding: 11px 22px; border-radius: 99px; transition: border-color .15s, background .15s, transform .15s;
}
.btn-how-it-works svg { width: 17px; height: 17px; color: #22d3ff; flex-shrink: 0; }
.btn-how-it-works .arrow { color: #22d3ff; transition: transform .15s; }
.btn-how-it-works:hover { border-color: rgba(34,211,255,0.7); background: rgba(34,211,255,0.12); transform: translateY(-1px); }
.btn-how-it-works:hover .arrow { transform: translateX(3px); }

.eco-section { padding: 52px 32px 8px; max-width: 1180px; margin: 0 auto; }
.eco-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; scroll-margin-top: 70px; }
.eco-head .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.eco-head h2 { font-size: 20px; font-weight: 600; margin: 0; }
.eco-count { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; border: 0.5px solid var(--border); border-radius: 99px; padding: 2px 10px; }
.eco-desc { color: var(--text-2); font-size: 14px; margin: 6px 0 26px; max-width: 640px; }
.eco-empty { color: var(--text-3); font-size: 13px; padding: 18px 0 40px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; padding-bottom: 48px; }

.card {
  background: var(--panel); border: 0.5px solid var(--border); border-radius: var(--radius-card);
  padding: 18px 18px 16px; position: relative; overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s;
}
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2.5px; background: var(--acc); }
.card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.card-top { display: flex; align-items: center; gap: 11px; }
.mark { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; background: color-mix(in srgb, var(--acc) 16%, var(--panel)); color: var(--acc); border: 0.5px solid color-mix(in srgb, var(--acc) 35%, transparent); overflow: hidden; }
.mark img { width: 100%; height: 100%; object-fit: cover; }
.card-name { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.card-sub { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.card-tag { font-size: 12.5px; color: var(--text-2); line-height: 1.5; min-height: 38px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 0.5px solid var(--border); }
.pills { display: flex; gap: 4px; }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
.pill-dot.on { background: var(--acc); }
.view-link { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.card:hover .view-link { color: var(--acc); }

footer { border-top: 0.5px solid var(--border); padding: 28px 32px; text-align: center; font-size: 12px; color: var(--text-3); }

.doc-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500;
  padding: 7px 14px 7px 10px; border-radius: 99px; text-decoration: none;
}
.doc-pill svg { width: 13px; height: 13px; }
