/* ==========================================================================
   One Less Slave — Design System
   Monochrome, geometric, Geist-driven. Modeled closely on vercel.com.
   ========================================================================== */

:root {
  /* Color — near-monochrome, like Vercel */
  --bg: #000000;
  --bg-elev: #0a0a0a;
  --bg-card: #0a0a0a;
  --bg-card-hover: #111111;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);
  --fg: #ededed;
  --fg-bright: #ffffff;
  --fg-muted: #a1a1a1;
  --fg-faint: #8b8b8b;

  /* Glow is neutral white, like Vercel's emblem halo */
  --glow: rgba(255, 255, 255, 0.16);
  --glow-soft: rgba(255, 255, 255, 0.05);

  /* Brand accent — used sparingly (logo mark + a few details) */
  --brand: #f5b53f;
  /* Link blue, mirrors Vercel docs links */
  --blue: #52a8ff;

  /* Type — Geist */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --maxw: 1240px;
  --maxw-prose: 740px;
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 64px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
::selection { background: var(--fg-bright); color: #000; }

/* ----- Layout helpers ----- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 20px;
}
.muted { color: var(--fg-muted); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Dotted divider — a Geist signature */
.dotted-sep { border: 0; border-top: 1px dashed var(--border-strong); margin: 0; }

/* Accessibility: visually-hidden text for screen readers */
.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;
}

/* Skip-to-content link (visible on keyboard focus) */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  background: var(--fg-bright); color: #000; font-size: 14px; font-weight: 500;
  padding: 10px 16px; border-radius: 8px;
  transform: translateY(-150%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; outline: none; }

/* Visible focus ring for keyboard users only */
:focus-visible { outline: 2px solid var(--fg-bright); outline-offset: 2px; border-radius: 6px; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .chip:focus-visible { outline: 2px solid var(--fg-bright); outline-offset: 3px; }
main:focus { outline: none; }

/* ----- Typography ----- */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; color: var(--fg-bright); }
.display {
  font-size: clamp(2.8rem, 7.5vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--fg-bright);
}
.h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.04em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--fg-muted); line-height: 1.5; letter-spacing: -0.01em; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(0, 0, 0, 0.82); }
.nav { display: flex; align-items: center; gap: 28px; width: 100%; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 500; letter-spacing: -0.02em; }
.brand .mark { width: 24px; height: 24px; flex: none; }
/* Image logo is portrait — preserve aspect ratio and let it sit a touch taller */
.brand img.mark { width: auto; height: 30px; }
.footer-brand .brand img.mark { height: 34px; }
.brand-name { font-size: 15px; color: var(--fg-bright); }
.brand-name b { font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > a, .nav-trigger {
  font-size: 14px;
  color: var(--fg-muted);
  padding: 7px 11px;
  border-radius: 7px;
  background: none; border: 0;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color 0.15s;
  letter-spacing: -0.01em;
}
.nav-links > a:hover, .nav-trigger:hover { color: var(--fg-bright); }
.nav-links > a.active { color: var(--fg-bright); }
.nav-trigger svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }

.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-link { display: inline-flex; padding: 7px; border-radius: 7px; color: var(--fg-muted); transition: color .15s; }
.icon-link:hover { color: var(--fg-bright); }
.icon-link svg { width: 19px; height: 19px; }

/* ----- Mega menu (Catalog) ----- */
.has-mega { position: relative; }
.mega {
  position: fixed;
  left: 0; right: 0; top: var(--header-h);
  background: rgba(0,0,0,0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 90;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega,
.has-mega.open .mega,
.mega:hover { opacity: 1; visibility: visible; transform: none; }
.has-mega:hover .nav-trigger svg,
.has-mega:focus-within .nav-trigger svg,
.has-mega.open .nav-trigger svg { transform: rotate(180deg); }
.mega-inner { max-width: var(--maxw); margin: 0 auto; padding: 32px 24px 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mega-item { display: block; padding: 18px 20px; border-radius: 12px; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.mega-item:hover { background: var(--bg-elev); border-color: var(--border); }
.mega-item .mi-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.mega-item .mi-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,0.05); border: 1px solid var(--border); }
.mega-item .mi-ic svg { width: 18px; height: 18px; color: var(--fg-bright); }
.mega-item h4 { font-size: 1.05rem; color: var(--fg-bright); letter-spacing: -0.02em; }
.mega-item p { font-size: 0.86rem; color: var(--fg-muted); line-height: 1.45; }
.mega-foot { border-top: 1px solid var(--border); }
.mega-foot a { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-faint); padding: 16px 0; }
.mega-foot a:hover { color: var(--fg-bright); }
.mega-foot { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  letter-spacing: -0.01em;
  transition: transform 0.12s var(--ease), background 0.18s, border-color 0.18s, color 0.18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-accent { background: var(--fg-bright); color: #000; }
.btn-primary:hover, .btn-accent:hover { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.10); }
.btn-ghost { border-color: var(--border); color: var(--fg-bright); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--border-strong); }
.btn-lg { padding: 12px 22px; font-size: 15px; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; color: var(--fg); padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; }

/* Mobile drawer hidden on desktop; shown only via media query below */
.mobile-menu { display: none; }

/* ==========================================================================
   Hero — three-zone (copy / emblem / mono caption)
   ========================================================================== */
.hero { position: relative; padding: clamp(60px, 11vw, 128px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr 0.5fr;
  gap: 40px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 30px; }
.hero .lead { max-width: 460px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* mono caption (right column) */
.hero-caption { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); line-height: 2.1; z-index: 2; }
.hero-caption span { display: block; }

/* Glowing emblem */
.emblem-wrap { position: relative; display: grid; place-items: center; min-height: 340px; }
.emblem-glow {
  position: absolute;
  width: min(440px, 90%);
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--glow) 0%, var(--glow-soft) 36%, transparent 68%);
  filter: blur(4px);
  animation: pulse 6s ease-in-out infinite;
}
.emblem { position: relative; width: min(280px, 72%); z-index: 1; }
@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Ambient page glow at very top */
.page-glow {
  position: absolute;
  top: -240px; left: 50%;
  transform: translateX(-50%);
  width: 1200px; height: 620px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.07) 0%, transparent 62%);
  pointer-events: none; z-index: 0;
}

/* ==========================================================================
   Home — README / docs style
   ========================================================================== */
.readme-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: clamp(40px, 6vw, 72px) 0;
  overflow: hidden;
}
.readme-wrap { position: relative; z-index: 2; max-width: 760px; }

.repo-path { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; color: var(--fg-faint); margin-bottom: 22px; }
.repo-path .repo-org { color: var(--fg-muted); }
.repo-path .repo-name { color: var(--fg-bright); }

.readme-title { font-size: clamp(2.2rem, 5.2vw, 3.6rem); letter-spacing: -0.045em; line-height: 1.02; margin-bottom: 22px; }
.readme-lead { max-width: 620px; margin-bottom: 26px; }

.readme-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.01em;
  color: var(--fg-muted); background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 7px;
}
.badge b { color: var(--fg-bright); font-weight: 500; }

.readme-snippet { max-width: 520px; margin-bottom: 28px; }

.readme-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Section heading with a markdown-style hash */
.readme-h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.035em; margin-bottom: 8px; display: flex; align-items: baseline; gap: 12px; }
.readme-h2 .hash { font-family: var(--font-mono); color: var(--fg-faint); font-weight: 400; font-size: 0.7em; }
.readme-sub { color: var(--fg-muted); font-size: 0.95rem; margin-bottom: 32px; }

/* Repo-style category list */
.repo-list { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); }
.repo-row {
  display: block; padding: 26px 28px;
  border-bottom: 1px solid var(--border);
  transition: background .18s var(--ease);
}
.repo-row:last-child { border-bottom: 0; }
.repo-row:hover { background: var(--bg-card-hover); }
.repo-row-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.repo-row .caret { color: var(--fg-faint); font-family: var(--font-mono); transition: transform .18s var(--ease); }
.repo-row:hover .caret { transform: translateX(3px); color: var(--fg-bright); }
.repo-row h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.repo-row .count { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-faint); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.repo-row p { color: var(--fg-muted); font-size: 0.94rem; margin-bottom: 14px; max-width: 640px; }
.repo-row .tools { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-muted); line-height: 1.7; }
.repo-row .tools .sep { color: var(--fg-faint); margin: 0 7px; }

/* Contribute line */
.contribute-line {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  padding: 22px 26px;
}
.contribute-line p { color: var(--fg-muted); font-size: 0.95rem; }
.contribute-line strong { color: var(--fg-bright); font-weight: 500; }
.contribute-line .spacer { flex: 1; }

@media (max-width: 560px) {
  .repo-row .count { margin-left: 0; }
  .repo-row-top { flex-wrap: wrap; }
}

/* ==========================================================================
   Logo cloud
   ========================================================================== */
.trust { border-top: 1px solid var(--border); padding: 48px 0; }
.trust p { text-align: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 30px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 56px; }
.trust-row span { color: var(--fg-muted); font-weight: 600; letter-spacing: -0.02em; font-size: 18px; opacity: 0.55; filter: grayscale(1); transition: opacity .2s; }
.trust-row span:hover { opacity: 0.95; }

/* ==========================================================================
   Section heads + feature grid
   ========================================================================== */
.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 20px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.feature {
  background: var(--bg);
  padding: 36px 32px;
}
.feature .ficon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.04); border: 1px solid var(--border); margin-bottom: 22px; }
.feature .ficon svg { width: 20px; height: 20px; color: var(--fg-bright); }
.feature h3 { font-size: 1.15rem; margin-bottom: 10px; letter-spacing: -0.02em; }
.feature p { color: var(--fg-muted); font-size: 0.95rem; }

/* Two big category cards */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cat-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 42px;
  overflow: hidden;
  background: var(--bg-elev);
  transition: border-color .25s, transform .25s var(--ease);
  display: flex; flex-direction: column;
}
.cat-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.cat-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at 20% -10%, rgba(255,255,255,0.07), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.cat-card:hover::before { opacity: 1; }
.cat-card .ficon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,0.05); border: 1px solid var(--border); margin-bottom: 24px; }
.cat-card .ficon svg { width: 24px; height: 24px; color: var(--fg-bright); }
.cat-card h3 { font-size: 1.7rem; margin-bottom: 12px; letter-spacing: -0.03em; }
.cat-card p { color: var(--fg-muted); margin-bottom: 28px; flex: 1; }
.cat-card .arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--fg-bright); font-size: 0.95rem; }
.cat-card .arrow-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.cat-card:hover .arrow-link svg { transform: translateX(4px); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--bg); padding: 40px 24px; text-align: center; }
.stat .num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -0.04em; color: var(--fg-bright); }
.stat .label { color: var(--fg-muted); font-size: 0.9rem; margin-top: 8px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { border-top: 1px solid var(--border); padding-top: 24px; }
.step .n { font-family: var(--font-mono); color: var(--fg-faint); font-size: 13px; letter-spacing: 0.1em; margin-bottom: 16px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.step p { color: var(--fg-muted); font-size: 0.95rem; }

/* CTA band — with crosshair corner marks (Geist signature) */
.cta-band {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 88px);
  text-align: center;
  overflow: visible;
  background: var(--bg-elev);
}
.cta-band .grid-bg {
  position: absolute; inset: 0; border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(700px circle at 50% 0%, rgba(255,255,255,0.08), transparent 55%);
}
.cta-band > *:not(.grid-bg) { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--fg-muted); max-width: 560px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* crosshair + marks */
.crosshair { position: absolute; width: 16px; height: 16px; z-index: 2; opacity: 0.5; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: var(--border-strong); }
.crosshair::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.crosshair::after { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }
.crosshair.tl { top: -8px; left: -8px; } .crosshair.tr { top: -8px; right: -8px; }
.crosshair.bl { bottom: -8px; left: -8px; } .crosshair.br { bottom: -8px; right: -8px; }

/* ==========================================================================
   Project listing pages
   ========================================================================== */
.page-hero { padding: clamp(56px, 9vw, 104px) 0 40px; position: relative; overflow: hidden; }
.breadcrumb { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-faint); margin-bottom: 24px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--fg-bright); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.045em; margin-bottom: 20px; }
.page-hero .lead { max-width: 660px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin: 40px 0 8px; align-items: center; }
.chip {
  font-size: 13px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--fg-muted); background: transparent;
  letter-spacing: -0.01em;
  transition: all .15s;
}
.chip:hover { color: var(--fg-bright); border-color: var(--border-strong); }
.chip.active { background: var(--fg-bright); color: #000; border-color: var(--fg-bright); }
.result-count { margin-left: auto; font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-faint); }

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 32px 0 0; }
.project-card {
  min-width: 0; /* allow grid item to shrink so long <pre> commands scroll, not stretch the column */
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 28px;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.project-card:hover { border-color: rgba(255, 255, 255, 0.14); }
.project-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.project-id { display: flex; align-items: center; gap: 14px; }
.project-logo {
  width: 46px; height: 46px; flex: none; border-radius: 11px;
  display: grid; place-items: center; font-weight: 600; font-size: 18px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--fg-bright);
}
.project-id h3 { font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.02em; }
.project-id .lang { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-faint); margin-top: 5px; }
.license-badge { font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); border: 1px solid var(--border); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.project-card p.desc { color: var(--fg-muted); font-size: 0.94rem; margin-bottom: 18px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.tag { font-size: 11.5px; font-family: var(--font-mono); color: var(--fg-muted); background: rgba(255,255,255,0.03); border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px; }

/* Install snippet — terminal styled like a Vercel code block */
.snippet { position: relative; min-width: 0; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #060606; }
.snippet .snippet-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.snippet .snippet-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.14); display: block; }
.snippet .snippet-bar .fname { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); letter-spacing: 0.02em; }
.snippet pre {
  font-family: var(--font-mono); font-size: 12.5px; color: #d6d6d6;
  padding: 13px 44px 13px 14px; overflow-x: auto; line-height: 1.5;
}
.snippet pre .prompt { color: var(--fg-faint); user-select: none; }
.copy-btn {
  position: absolute; top: 38px; right: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--fg-muted);
  border-radius: 7px; padding: 6px; line-height: 0; transition: all .15s;
}
.copy-btn:hover { color: var(--fg-bright); background: rgba(255,255,255,0.1); }
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn.copied { color: var(--fg-bright); border-color: var(--border-strong); }

.project-actions { display: flex; gap: 10px; margin-top: auto; }
.project-actions .btn { flex: 1; justify-content: center; }
.btn-sm { padding: 9px 14px; font-size: 13px; }

/* Submit project callout */
.submit-callout {
  margin-top: 60px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  padding: 40px; text-align: center;
}
.submit-callout h3 { font-size: 1.4rem; margin-bottom: 10px; letter-spacing: -0.03em; }
.submit-callout p { color: var(--fg-muted); max-width: 520px; margin: 0 auto 22px; }

/* Help / hotline notice — understated neutral box */
.help-notice {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--border); background: var(--bg-elev);
  border-radius: var(--radius); padding: 18px 22px; margin: 30px 0 0;
}
.help-notice svg { width: 22px; height: 22px; color: var(--fg-bright); flex: none; margin-top: 2px; }
.help-notice p { font-size: 0.92rem; color: var(--fg-muted); }
.help-notice strong { color: var(--fg-bright); }
.help-notice a { color: var(--fg-bright); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Prose (about)
   ========================================================================== */
.prose { max-width: var(--maxw-prose); margin: 0; }
.prose h2 { margin: 52px 0 18px; font-size: 1.8rem; letter-spacing: -0.035em; }
.prose h3 { margin: 34px 0 12px; font-size: 1.25rem; letter-spacing: -0.02em; }
.prose p { color: var(--fg-muted); margin-bottom: 18px; }
.prose ul.bullets { margin: 0 0 18px; padding-left: 0; }
.prose ul.bullets li { color: var(--fg-muted); padding-left: 26px; position: relative; margin-bottom: 10px; }
.prose ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--fg-muted); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
/* Buttons inside prose keep button styling, not link styling */
.prose a.btn { text-decoration: none; }
.prose a.btn-accent, .prose a.btn-primary { color: #000; }
.prose a.btn-ghost { color: var(--fg-bright); }
.prose strong { color: var(--fg-bright); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); padding: 72px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; margin-bottom: 60px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--fg-muted); font-size: 0.92rem; max-width: 300px; }
.footer-col h4 { font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 16px; font-weight: 400; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { color: var(--fg-muted); font-size: 0.92rem; transition: color .15s; }
.footer-col a:hover { color: var(--fg-bright); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 28px; }
.footer-bottom p { color: var(--fg-faint); font-size: 0.85rem; }
.footer-bottom .socials { display: flex; gap: 6px; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
/* Content is visible by default; only hidden-then-revealed when JS is active,
   so the page is fully readable if JS fails or is disabled. */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr 0.9fr; }
  .hero-caption { display: none; }
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .emblem-wrap { min-height: 240px; order: -1; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .mega-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions { gap: 4px; }
  .feature-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }

  .mobile-menu {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    background: rgba(0,0,0,0.97); backdrop-filter: blur(10px);
    padding: 24px; display: none; flex-direction: column; gap: 6px;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { font-size: 1.1rem; padding: 14px 8px; border-bottom: 1px solid var(--border); color: var(--fg); }
  .mobile-menu .btn { margin-top: 16px; justify-content: center; }
}
@media (max-width: 460px) {
  .stat .num { font-size: 2rem; }
  .container { padding: 0 18px; }
  /* keep only GitHub + menu in the header bar; CTA lives in the drawer */
  .nav-actions .btn { display: none; }
}

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