/* skill-gate landing — terminal + modern UI hybrid (parity with glance-gate) */

:root {
  /* Body darker than the terminal frame so the content visibly sits on a page. */
  --bg: #03060a;
  --bg-pane: #0c1316;
  --bg-elev: #11181b;
  --bg-card: #0a1214;
  --bar: #131a1d;
  --bar-edge: #212a2e;
  --rule: #1a2226;
  --fg: #d6dde1;
  --fg-soft: #adb5ba;
  --fg-muted: #6f7a80;
  --fg-dim: #4d575b;
  --accent: #4ade80;        /* prompt green */
  --accent-2: #22d3ee;      /* command cyan */
  --accent-3: #a78bfa;      /* magenta accent */
  --warn: #fbbf24;
  --err: #f87171;
  --link: #7dd3fc;
  --selection: #1f4d3a;
  --grad-1: linear-gradient(135deg, #4ade80 0%, #22d3ee 100%);
  --grad-2: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-term: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02);
  --font-mono: ui-monospace, "JetBrains Mono", "Fira Code", "SFMono-Regular",
    Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-ui: ui-sans-serif, -apple-system, "Inter", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

::selection { background: var(--selection); color: #e5fbef; }

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 120ms ease, color 120ms ease;
}
a:hover, a:focus-visible { border-bottom-color: var(--link); outline: none; }

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}
button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}

input, select, textarea {
  font: inherit;
  color: var(--fg);
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 9px 12px;
  width: 100%;
  transition: border-color 120ms ease, background 120ms ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  background: #0c1416;
}
textarea { resize: vertical; min-height: 64px; font-family: var(--font-mono); }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-muted) 50%), linear-gradient(135deg, var(--fg-muted) 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #0b0f10;
  padding: 8px 12px;
  border-radius: 4px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.grid {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(34, 211, 238, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at bottom, rgba(74, 222, 128, 0.04) 0%, transparent 60%),
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
}
.scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.4;
  mix-blend-mode: overlay;
  transition: opacity 200ms ease;
}
body[data-effects="off"] .scanlines { opacity: 0; }
body[data-effects="off"] .grid { opacity: 0.35; }

/* ---------- Terminal frame ---------- */
.terminal {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 32px auto 64px;
  background: var(--bg-pane);
  border: 1px solid var(--bar-edge);
  border-radius: 12px;
  box-shadow: var(--shadow-term);
  overflow: hidden;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(to bottom, #1a2125, #11171a);
  border-bottom: 1px solid var(--bar-edge);
  padding: 11px 16px;
  backdrop-filter: blur(8px);
}
.dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 2px rgba(0,0,0,0.5); }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.bar-title { flex: 1; text-align: center; color: var(--fg-muted); font-size: 12px; letter-spacing: 0.02em; }
.bar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 11px;
  color: var(--fg-muted);
  border: 1px solid var(--bar-edge);
  border-radius: 999px;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
.bar-toggle:hover { color: var(--fg-soft); border-color: var(--rule); background: rgba(255,255,255,0.02); }
.bar-toggle-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); transition: background 120ms ease, box-shadow 120ms ease; }
body[data-effects="off"] .bar-toggle-dot { background: var(--fg-dim); box-shadow: none; }

/* ---------- Screen ---------- */
.screen { padding: 28px 36px 36px; }

/* ---------- Hero ---------- */
.hero { padding-top: 8px; }
/* Compact mode: brand mark + tagline + 2 CTAs, then marketplace begins. */
.hero-compact { text-align: center; padding-bottom: 12px; }
.hero-compact .ascii { display: inline-block; text-align: left; }
.hero-compact .tag { font-size: 18px; max-width: 720px; margin: 0 auto 22px; }
.hero-compact .cta-row { justify-content: center; margin-bottom: 8px; }

.ascii {
  color: var(--accent);
  font-size: 11px;
  line-height: 1.1;
  margin: 0 0 18px;
  white-space: pre;
  overflow-x: auto;
  text-shadow: 0 0 18px rgba(74, 222, 128, 0.18);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tag { margin: 0 0 24px; color: var(--fg-soft); font-size: 17px; line-height: 1.55; }
.tag-line { display: block; }
.hi-grn { color: var(--accent); font-weight: 600; }
.hi-cyn { color: var(--accent-2); font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  border: 1px solid var(--bar-edge);
  background: var(--bg-card);
  color: var(--fg);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, color 120ms ease;
}
.cta:hover { transform: translateY(-1px); border-bottom-color: var(--bar-edge); }
.cta-primary { background: linear-gradient(135deg, rgba(74,222,128,0.18), rgba(34,211,238,0.14)); border-color: rgba(74,222,128,0.4); color: var(--accent); }
.cta-primary:hover { border-color: var(--accent); color: #d2ffe2; }
.cta-ghost { color: var(--fg-soft); }
.cta-ghost:hover { color: var(--fg); border-color: var(--rule); }

.stats {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg-card);
  padding: 16px;
}
.stats li { text-align: center; border-right: 1px dashed var(--rule); padding: 4px 8px; }
.stats li:last-child { border-right: none; }
.stat-num { display: block; font-size: 22px; color: var(--accent); font-weight: 600; letter-spacing: -0.01em; }
.stat-unit { display: block; font-size: 11.5px; color: var(--fg-muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Generic blocks ---------- */
h2 { font-size: 16px; margin: 14px 0 18px; color: var(--accent); font-weight: 600; letter-spacing: 0.01em; }
h3 { font-size: 14.5px; margin: 0 0 4px; color: var(--fg); font-weight: 600; }

.muted { color: var(--fg-muted); }
.dim { color: var(--fg-dim); }
.ok  { color: var(--accent); }
.warn { color: var(--warn); }
.err { color: var(--err); }

.rule { border: 0; border-top: 1px dashed var(--rule); margin: 36px 0 26px; }

code {
  background: #111819;
  border: 1px solid var(--rule);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.8px;
  color: var(--fg);
}

/* ---------- Demo (typer) ---------- */
.demo > p.muted { margin: -8px 0 14px; }
.demo-window {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 13.5px;
  box-shadow: var(--shadow-card);
}
.demo-window.mini { padding: 14px 16px; }
.line { margin: 6px 0; white-space: pre-wrap; word-break: break-word; }
.prompt { color: var(--accent); user-select: none; }
.cmd { color: var(--accent-2); }
.cmd-static { color: var(--accent-2); }
.out { color: var(--fg); margin: 2px 0 8px; }
.out.muted { color: var(--fg-muted); }

.cmd.typing::after {
  content: "▋";
  margin-left: 1px;
  color: var(--accent-2);
  animation: blink 0.9s steps(2, start) infinite;
}

.think {
  margin: 12px 0 4px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent-3);
  border-radius: 6px;
}
.think-head { display: flex; align-items: center; gap: 7px; color: var(--accent-3); font-size: 12.5px; letter-spacing: 0.03em; transition: color 220ms ease; }
.think-spark { display: inline-block; animation: spark-pulse 1.6s ease-in-out infinite; }
.think-dots { display: inline-flex; letter-spacing: 1.5px; }
.think-dots i { font-style: normal; animation: dot-pulse 1.3s ease-in-out infinite; }
.think-dots i:nth-child(2) { animation-delay: 0.16s; }
.think-dots i:nth-child(3) { animation-delay: 0.32s; }
.think-done .think-head { color: var(--accent); }
.think-done .think-spark { animation: none; }
.think-done .think-dots { display: none; }

.think-steps { list-style: none; margin: 9px 0 0; padding: 0; display: grid; gap: 5px; }
.think-step { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; opacity: 0; transform: translateY(3px); transition: opacity 260ms ease, transform 260ms ease; }
.think-step.active, .think-step.done { opacity: 1; transform: translateY(0); }
.think-step::before { content: "\25CB"; display: inline-block; width: 1em; flex: none; text-align: center; color: var(--fg-dim); }
.think-step.active::before { content: "\25D0"; color: var(--accent-2); animation: spin 0.85s linear infinite; }
.think-step.done::before { content: "\2713"; color: var(--accent); animation: none; }
.step-label { flex: none; color: var(--fg-soft); font-weight: 600; }
.think-step.done .step-label { color: var(--accent); }
.step-meta { color: var(--fg-muted); }

/* ---------- Result + install list ---------- */
.result {
  margin: 12px 0 4px;
  padding: 13px 15px;
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.06), var(--bg-card));
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 8px;
}
.result-head { font-size: 13px; color: var(--fg); margin-bottom: 11px; }
.result-check { color: var(--accent); font-weight: 700; margin-right: 5px; }
.result-foot { color: var(--fg-soft); }
.result-foot .prompt { margin-right: 3px; }

.install-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.install-list li {
  display: grid;
  grid-template-columns: minmax(170px, max-content) 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 7px 0;
  border-top: 1px dashed var(--rule);
}
.install-list li:first-child { border-top: none; padding-top: 0; }
.il-name { color: var(--accent-2); font-weight: 600; }
.il-desc { color: var(--fg-soft); font-size: 12.8px; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════════
   MARKETPLACE — the dominant chapter of the page.
   Visual hierarchy: opener > strips (categories, picks, trending, all).
   Each strip has its own .strip-head + content area for breathing room.
   ═══════════════════════════════════════════════════════════════════ */

.market {
  /* Subtle alt background so the chapter feels distinct from the rest. */
  position: relative;
  margin: 0 -36px;
  padding: 48px 36px 12px;
  background:
    radial-gradient(ellipse 1200px 600px at 50% 0%, rgba(34,211,238,0.05), transparent 70%),
    radial-gradient(ellipse 800px 400px at 80% 40%, rgba(74,222,128,0.04), transparent 70%),
    linear-gradient(180deg, rgba(15,23,25,0.4), transparent 200px);
}
.market > p.muted { margin: -8px 0 14px; }

/* ─── Opener (above-the-fold for the chapter) ─── */
.market-opener {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
  padding: 0 8px;
}
.market-tag-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.market-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.30);
  border-radius: 999px;
  font-weight: 600;
}
.market-title {
  font-size: clamp(28px, 4.8vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-family: var(--font-ui);
  font-weight: 700;
  background: linear-gradient(135deg, #e5fbef 0%, #c0ffd6 35%, #22d3ee 70%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px rgba(34,211,238,0.12);
}
.market-subtitle {
  margin: 0 auto 32px;
  max-width: 640px;
  color: var(--fg-soft);
  font-size: 15px;
  line-height: 1.6;
}
.market-subtitle .hi-grn,
.market-subtitle .hi-cyn { font-family: var(--font-mono); font-size: 13.5px; padding: 1px 6px; border-radius: 4px; background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.25); }

/* ─── Hero search ─── */
.market-search-hero {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 640px;
  margin: 0 auto 24px;
}
.market-search-hero::before {
  /* Subtle outer glow on focus */
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74,222,128,0.0), rgba(34,211,238,0.0));
  z-index: -1;
  transition: background 240ms ease;
}
.market-search-hero:focus-within::before {
  background: linear-gradient(135deg, rgba(74,222,128,0.25), rgba(34,211,238,0.20), rgba(167,139,250,0.18));
  filter: blur(8px);
}
.market-search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
  pointer-events: none;
}
.market-search-hero input {
  width: 100%;
  padding: 20px 88px 20px 56px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--fg);
  background: linear-gradient(180deg, var(--bg-pane), var(--bg-elev));
  border: 1px solid var(--rule);
  border-radius: 12px;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.02);
}
.market-search-hero input::placeholder { color: var(--fg-dim); }
.market-search-hero input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 12px 36px rgba(0,0,0,0.32), 0 0 0 4px rgba(34,211,238,0.10);
}
.market-search-kbd {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 4px 8px;
  pointer-events: none;
}

/* ─── Live stats bar ─── */
.market-stats {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 640px;
  margin: 14px auto 0;
}
.market-stats li {
  text-align: center;
  border-right: 1px dashed var(--rule);
  padding: 6px 8px;
}
.market-stats li:last-child { border-right: none; }
.ms-num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.ms-pct { font-size: 16px; opacity: 0.6; }
.ms-unit {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  text-transform: uppercase;
  margin-top: 3px;
}

/* Used both at the top and in the strip heads */
.market-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.35);
  border-radius: 999px;
}
.market-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: badge-pulse 1.8s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50%      { opacity: 0.55; box-shadow: 0 0 14px var(--accent); }
}

/* ─── Each marketplace sub-section ─── */
.market-strip { margin: 0 0 44px; }
.market-strip:last-child { margin-bottom: 12px; }
.strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0 2px 10px;
  border-bottom: 1px solid var(--rule);
}
.strip-title {
  margin: 0;
  font-size: 17px;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.strip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(74,222,128,0.10);
  border: 1px solid rgba(74,222,128,0.35);
  border-radius: 4px;
  padding: 1px 6px;
  font-variant-numeric: tabular-nums;
}
.strip-hint {
  font-size: 12px;
  color: var(--fg-muted);
  text-align: right;
}
.strip-hint .hi-grn,
.strip-hint .hi-cyn { color: var(--accent-2); }

/* ─── Category grid: 8 big visual entry cards ─── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.category-card {
  position: relative;
  padding: 18px 16px 14px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  text-align: left;
  font: inherit;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, var(--cat-glow, transparent), transparent 50%);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 200ms ease;
}
.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--cat-border, rgba(34,211,238,0.4));
  background: linear-gradient(180deg, var(--bg-card), #0c1517);
  box-shadow: 0 10px 28px rgba(0,0,0,0.32);
}
.category-card:hover::after { opacity: 1; }
.category-card.active {
  border-color: var(--cat-border, rgba(74,222,128,0.5));
  background: linear-gradient(180deg, var(--bg-card), rgba(74,222,128,0.04));
  box-shadow: 0 0 0 1px var(--cat-border, rgba(74,222,128,0.4)), 0 10px 28px rgba(0,0,0,0.32);
}
.cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  font-size: 20px;
  border-radius: 10px;
  background: var(--cat-bg, rgba(34,211,238,0.10));
  border: 1px solid var(--cat-border, rgba(34,211,238,0.30));
  color: var(--cat-fg, var(--accent-2));
  margin-bottom: 6px;
}
.cat-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg);
  text-transform: capitalize;
  letter-spacing: -0.005em;
}
.cat-count {
  font-size: 11.5px;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}
.cat-sample {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--rule);
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.45;
  min-height: 30px;
}
.cat-sample b { color: var(--accent-2); font-weight: 500; }

/* Per-domain coloring — applied via inline `style="--cat-*: ..."` from JS */
.category-card[data-domain="frontend"]  { --cat-fg: #f0abfc; --cat-bg: rgba(240,171,252,0.10); --cat-border: rgba(240,171,252,0.35); --cat-glow: rgba(240,171,252,0.10); }
.category-card[data-domain="devops"]    { --cat-fg: #22d3ee; --cat-bg: rgba(34,211,238,0.10);  --cat-border: rgba(34,211,238,0.40);  --cat-glow: rgba(34,211,238,0.12); }
.category-card[data-domain="security"]  { --cat-fg: #f87171; --cat-bg: rgba(248,113,113,0.10); --cat-border: rgba(248,113,113,0.35); --cat-glow: rgba(248,113,113,0.10); }
.category-card[data-domain="data"]      { --cat-fg: #fbbf24; --cat-bg: rgba(251,191,36,0.10);  --cat-border: rgba(251,191,36,0.35);  --cat-glow: rgba(251,191,36,0.10); }
.category-card[data-domain="marketing"] { --cat-fg: #a78bfa; --cat-bg: rgba(167,139,250,0.12); --cat-border: rgba(167,139,250,0.40); --cat-glow: rgba(167,139,250,0.12); }
.category-card[data-domain="dx"]        { --cat-fg: #4ade80; --cat-bg: rgba(74,222,128,0.10);  --cat-border: rgba(74,222,128,0.40);  --cat-glow: rgba(74,222,128,0.10); }
.category-card[data-domain="ai"]        { --cat-fg: #7dd3fc; --cat-bg: rgba(125,211,252,0.12); --cat-border: rgba(125,211,252,0.40); --cat-glow: rgba(125,211,252,0.12); }

/* ─── Feature strips (editor's picks, trending) ─── */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* ─── Featured (rich) card ─── */
.featured-card {
  position: relative;
  padding: 16px 16px 14px;
  background:
    linear-gradient(135deg, rgba(74,222,128,0.10) 0%, rgba(34,211,238,0.06) 70%, transparent 100%),
    var(--bg-card);
  border: 1px solid rgba(74,222,128,0.30);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
}
.featured-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 10px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(74,222,128,0.45), rgba(34,211,238,0.45), rgba(167,139,250,0.3));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}
.featured-card:hover {
  transform: translateY(-2px);
  border-color: rgba(74,222,128,0.6);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(74,222,128,0.3);
}
.featured-rank {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 999px;
  padding: 2px 8px;
}
.featured-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  font-size: 16px;
  border-radius: 8px;
  background: rgba(34,211,238,0.10);
  border: 1px solid rgba(34,211,238,0.30);
  margin-bottom: 10px;
}
.featured-name { display: block; color: var(--accent-2); font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.featured-desc { color: var(--fg-soft); font-size: 12.8px; line-height: 1.55; margin: 0 0 12px; min-height: 60px; }
.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--fg-muted);
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
}
.featured-score {
  display: inline-flex; align-items: baseline; gap: 3px;
  color: var(--accent); font-weight: 700; font-size: 13px;
}
.featured-score-unit { color: var(--fg-muted); font-size: 10.5px; font-weight: 500; }
.featured-installs { font-variant-numeric: tabular-nums; }

/* ---------- Controls ---------- */
.market-controls {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  background: linear-gradient(180deg, var(--bg-card), rgba(10,18,20,0.6));
  border: 1px solid var(--rule);
  border-radius: 10px;
  position: sticky;
  top: 46px;
  z-index: 5;
  backdrop-filter: blur(10px);
}
.search { position: relative; display: flex; align-items: center; }
.search-prompt {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 14px;
  pointer-events: none;
}
.search input {
  padding-left: 32px;
  padding-right: 56px;
  font-size: 14px;
}
.search-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2px 6px;
  pointer-events: none;
}

.domain-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 12.5px;
  color: var(--fg-muted);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.chip-tab:hover { color: var(--fg-soft); border-color: rgba(34,211,238,0.3); transform: translateY(-1px); }
.chip-tab.active {
  color: var(--accent);
  border-color: rgba(74,222,128,0.45);
  background: rgba(74,222,128,0.08);
  box-shadow: 0 0 0 3px rgba(74,222,128,0.06);
}
.chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  font-size: 11px;
  color: var(--accent-2);
  opacity: 0.85;
}
.chip-tab.active .chip-icon { color: var(--accent); opacity: 1; }

.sort-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-muted);
  flex-wrap: wrap;
}
.sort-label { letter-spacing: 0.04em; }
.sort-opt {
  padding: 3px 10px;
  font-size: 12px;
  color: var(--fg-muted);
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-card);
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
.sort-opt:hover { color: var(--fg-soft); border-color: var(--rule); }
.sort-opt.active { color: var(--accent-2); border-color: rgba(34,211,238,0.4); background: rgba(34,211,238,0.06); }
.market-count {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: var(--fg-muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.skill {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
  cursor: pointer;
}
.skill:hover {
  transform: translateY(-2px);
  border-color: rgba(74,222,128,0.32);
  background: linear-gradient(180deg, var(--bg-card), #0c1517);
  box-shadow: 0 8px 24px rgba(0,0,0,0.32);
}
.skill.expanded {
  border-color: rgba(74,222,128,0.55);
  background: linear-gradient(180deg, var(--bg-card), rgba(74,222,128,0.04));
  cursor: default;
}
.skill-head {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
}
.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  font-size: 15px;
  border-radius: 8px;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.25);
  color: var(--accent-2);
  flex: none;
}
.skill-icon.dom-frontend  { color: #f0abfc; background: rgba(240,171,252,0.08); border-color: rgba(240,171,252,0.25); }
.skill-icon.dom-devops    { color: #22d3ee; background: rgba(34,211,238,0.08); border-color: rgba(34,211,238,0.25); }
.skill-icon.dom-security  { color: #f87171; background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.25); }
.skill-icon.dom-data      { color: #fbbf24; background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.25); }
.skill-icon.dom-marketing { color: #a78bfa; background: rgba(167,139,250,0.10); border-color: rgba(167,139,250,0.30); }
.skill-icon.dom-dx        { color: #4ade80; background: rgba(74,222,128,0.08); border-color: rgba(74,222,128,0.25); }
.skill-icon.dom-ai        { color: #7dd3fc; background: rgba(125,211,252,0.10); border-color: rgba(125,211,252,0.30); }
.skill-icon.dom-other     { color: var(--fg-muted); background: var(--bg-elev); border-color: var(--rule); }

.skill-name-line { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.skill-name { color: var(--accent-2); font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Card sub-line: domain chip (UPPERCASE) + "by <owner>" (sentence case) side by side */
.skill-meta-line { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.skill-domain {
  font-size: 9.5px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1px 6px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.skill-by {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}
.skill-owner { color: var(--accent-2); font-weight: 500; }
.skill-score {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 999px;
  padding: 2px 9px;
}
.skill-score-unit { color: var(--fg-muted); font-size: 10.5px; font-weight: 500; }
.skill-desc { color: var(--fg-soft); font-size: 12.5px; line-height: 1.5; margin: 0; }

/* install volume bar — visual popularity at a glance */
.skill-install-bar {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 2px;
}
.skill-install-track {
  height: 4px;
  background: var(--bg-elev);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.skill-install-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.skill-installs { font-variant-numeric: tabular-nums; }

.skill-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 11px; color: var(--fg-muted); margin-top: 2px; }
.skill-tag {
  padding: 1px 8px;
  font-size: 11px;
  color: var(--fg-soft);
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 999px;
}

/* expand: details panel revealed on click */
.skill-details {
  display: none;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
  animation: fade 240ms ease both;
}
.skill.expanded .skill-details { display: block; }
.skill-details-row { margin: 6px 0; font-size: 12px; color: var(--fg-soft); display: flex; gap: 8px; flex-wrap: wrap; }
.skill-details-label { color: var(--fg-muted); letter-spacing: 0.04em; text-transform: uppercase; font-size: 10.5px; min-width: 84px; }
.skill-details code {
  font-size: 11.5px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  padding: 1px 6px;
  border-radius: 4px;
}
.skill-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.skill-install-cmd {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
  overflow: hidden;
}
.skill-install-cmd .prompt { flex: none; }
.skill-install-cmd code { background: none; border: none; padding: 0; font-size: inherit; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skill-install-cmd-copy {
  flex: none;
  font-size: 10.5px;
  color: var(--fg-muted);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2px 8px;
  background: var(--bg-card);
  transition: color 120ms ease, border-color 120ms ease;
}
.skill-install-cmd-copy:hover { color: var(--accent); border-color: var(--accent); }
.skill-install-cmd-copy.copied { color: var(--accent); border-color: var(--accent); background: rgba(74,222,128,0.06); }
.skill-github {
  font-size: 11.5px;
  color: var(--accent-2);
  border: 1px solid rgba(34,211,238,0.3);
  border-radius: 4px;
  padding: 4px 10px;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
.skill-github:hover { color: #d2ffe2; background: rgba(34,211,238,0.06); border-color: var(--accent-2); }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: 18px 0 4px;
  padding: 4px;
}
.pagination[hidden] { display: none; }
.pg-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  font: inherit;
  font-size: 12.5px;
  color: var(--fg-soft);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease, transform 120ms ease;
}
.pg-btn:hover {
  color: var(--fg);
  border-color: rgba(34,211,238,0.35);
  background: rgba(34,211,238,0.04);
  transform: translateY(-1px);
}
.pg-btn.active {
  color: var(--accent);
  border-color: rgba(74,222,128,0.50);
  background: rgba(74,222,128,0.08);
  box-shadow: 0 0 0 3px rgba(74,222,128,0.06);
  font-weight: 600;
}
.pg-btn.active:hover { transform: none; }
.pg-btn.disabled,
.pg-btn:disabled {
  color: var(--fg-dim);
  background: var(--bg-card);
  border-color: var(--rule);
  cursor: not-allowed;
  opacity: 0.4;
}
.pg-btn.disabled:hover,
.pg-btn:disabled:hover {
  transform: none;
  background: var(--bg-card);
  color: var(--fg-dim);
  border-color: var(--rule);
}
.pg-prev, .pg-next { font-size: 14px; padding: 0 12px; }
.pg-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  user-select: none;
}

/* empty state turned into a launchpad */
.market-empty {
  text-align: center;
  padding: 40px 20px;
  background:
    radial-gradient(ellipse at top, rgba(34,211,238,0.06) 0%, transparent 60%),
    var(--bg-card);
  border: 1px dashed var(--rule);
  border-radius: 10px;
  margin-top: 4px;
}
.empty-icon {
  font-size: 32px;
  color: var(--accent-2);
  margin-bottom: 4px;
  opacity: 0.8;
}
.empty-title { color: var(--fg); font-size: 15px; margin: 0 0 6px; }
.empty-body { color: var(--fg-muted); font-size: 13px; max-width: 380px; margin: 0 auto 16px; line-height: 1.55; }

/* ════════════════════════════════════════════════════════════════════
   Per-section background tints — so sections are visually distinct
   instead of an undifferentiated wall of black.

   Pattern: each section's wrapper gets a faint radial gradient in its
   accent color, plus a thin top-border in the same accent. The .market
   section already has its own treatment (see below) and is excluded.
   ════════════════════════════════════════════════════════════════════ */

.hero {
  background:
    radial-gradient(ellipse 900px 360px at 50% 0%, rgba(74,222,128,0.05), transparent 70%);
}

#lazy-path {
  margin: 0 -36px;
  padding: 40px 36px 28px;
  background:
    radial-gradient(ellipse 900px 460px at 50% 0%, rgba(167,139,250,0.06), transparent 70%),
    linear-gradient(180deg, rgba(15,23,25,0.4), transparent 220px);
  border-top: 1px solid rgba(167,139,250,0.18);
}

.how {
  margin: 0 -36px;
  padding: 40px 36px 28px;
  background:
    radial-gradient(ellipse 900px 460px at 50% 0%, rgba(251,191,36,0.05), transparent 70%),
    linear-gradient(180deg, rgba(15,23,25,0.4), transparent 220px);
  border-top: 1px solid rgba(251,191,36,0.16);
}

.install {
  margin: 0 -36px;
  padding: 40px 36px 28px;
  background:
    radial-gradient(ellipse 900px 460px at 50% 0%, rgba(74,222,128,0.05), transparent 70%),
    linear-gradient(180deg, rgba(15,23,25,0.4), transparent 220px);
  border-top: 1px solid rgba(74,222,128,0.18);
}

.trust {
  margin: 0 -36px;
  padding: 40px 36px 28px;
  background:
    radial-gradient(ellipse 900px 460px at 50% 0%, rgba(248,113,113,0.04), transparent 70%),
    linear-gradient(180deg, rgba(15,23,25,0.4), transparent 220px);
  border-top: 1px solid rgba(248,113,113,0.16);
}

/* The marketplace's existing tint stays, but also gets the same edge. */
.market { border-top: 1px solid rgba(34,211,238,0.18); }

/* Section titles a touch bigger so each section announces itself */
.how > h2, .install > h2, .trust > h2, #lazy-path > h2 {
  font-size: 17px;
  margin-bottom: 14px;
}

/* ---------- Labeled section dividers (replaces <hr class="rule">) ---------- */
.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 -36px;
  padding: 22px 36px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.25));
}
.sd-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule) 30%, var(--rule) 70%, transparent);
}
.sd-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- "+ submit a skill" pill (marketplace opener) ---------- */
.market-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--accent-2);
  background: var(--bg-card);
  border: 1px solid rgba(34,211,238,0.30);
  border-radius: 999px;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease, transform 120ms ease;
}
.market-submit-btn:hover {
  color: #d2ffe2;
  border-color: var(--accent-2);
  background: rgba(34,211,238,0.10);
  transform: translateY(-1px);
}

/* ---------- Request-a-skill modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 16px 32px;
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  cursor: pointer;
  animation: modal-bg-in 180ms ease;
}
@keyframes modal-bg-in { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 620px;
  background: linear-gradient(180deg, var(--bg-pane), var(--bg-elev));
  border: 1px solid var(--bar-edge);
  border-radius: 14px;
  padding: 22px 24px 24px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02);
  animation: modal-card-in 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modal-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.modal-head h2 {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.modal-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.55;
  max-width: 460px;
}
.modal-close {
  flex: none;
  width: 30px; height: 30px;
  font-size: 22px;
  line-height: 1;
  color: var(--fg-muted);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease, transform 120ms ease;
}
.modal-close:hover {
  color: var(--err);
  border-color: rgba(248,113,113,0.4);
  background: rgba(248,113,113,0.06);
  transform: rotate(90deg);
}

/* ---------- "OR" divider — separates marketplace from lazy path ---------- */
.or-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 44px 0 36px;
  padding: 0 8px;
}
.or-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule) 30%, var(--rule) 70%, transparent);
}
.or-pill {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px dashed var(--rule);
  border-radius: 999px;
  font-family: var(--font-mono);
}

/* ---------- Lazy install one-liner under the demo ---------- */
.lazy-install {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 8px;
  flex-wrap: wrap;
}
.lazy-install-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.lazy-install code {
  flex: 1;
  min-width: 280px;
  background: none;
  border: none;
  padding: 0;
  font-size: 12.5px;
  color: var(--fg);
  overflow-x: auto;
}

/* ---------- Feature cards (how it works) ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 16px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.card:hover { transform: translateY(-2px); border-color: rgba(74, 222, 128, 0.3); background: linear-gradient(180deg, var(--bg-card), #0c1517); }
.card header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--fg-soft); font-size: 13px; line-height: 1.55; }

.kbd {
  display: inline-block;
  font-size: 10.5px;
  color: var(--accent-2);
  padding: 1px 6px;
  border: 1px solid rgba(34,211,238,0.3);
  border-radius: 4px;
  letter-spacing: 0.04em;
  background: rgba(34,211,238,0.08);
}

/* ---------- Request form ---------- */
.req-form { display: grid; gap: 12px; }
.req-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.req-field { display: grid; gap: 5px; }
.req-label { color: var(--fg-soft); font-size: 12px; letter-spacing: 0.02em; }
.req-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.req-status { color: var(--fg-muted); font-size: 12.5px; }
.req-status.ok { color: var(--accent); }
.req-status.err { color: var(--err); }
.req-fine { margin: 4px 0 0; color: var(--fg-dim); font-size: 11.5px; }

/* ---------- Trust list ---------- */
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.trust-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--fg-soft);
}
.tick { color: var(--accent); font-weight: 700; }
.trust-list b { color: var(--fg); font-weight: 600; }

/* ---------- Install code blocks ---------- */
.code-block { position: relative; background: var(--bg-elev); border: 1px solid var(--rule); border-radius: 8px; margin: 10px 0; }
.code-block pre { margin: 0; padding: 14px 64px 14px 16px; overflow-x: auto; font-size: 12.8px; color: var(--fg); }
.copy-btn {
  position: absolute; top: 8px; right: 8px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--fg-muted);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
.copy-btn:hover { color: var(--fg-soft); border-color: var(--accent); }
.copy-btn.copied { color: var(--accent); border-color: var(--accent); background: rgba(74,222,128,0.08); }

/* ---------- Cursor + footer ---------- */
.cli-cursor { margin: 22px 0 18px; }
.cursor {
  display: inline-block;
  width: 9px;
  background: var(--accent-2);
  color: transparent;
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { to { background: transparent; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dot-pulse { 0%, 70%, 100% { opacity: 0.2; } 35% { opacity: 1; } }
@keyframes spark-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.88); }
  50%      { opacity: 1; transform: scale(1.12); }
}

.foot {
  margin-top: 22px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  color: var(--fg-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; font-size: 13px; }
.foot-links a { color: var(--fg-soft); }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--fg); border-bottom-color: var(--accent-2); }
.sep { color: var(--fg-dim); }

.foot-ornament { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; max-width: 460px; }
.foot-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--rule) 35%, var(--rule) 65%, transparent); position: relative; }
.foot-ornament .foot-line:first-child { background: linear-gradient(to right, transparent, var(--rule) 60%, rgba(34, 211, 238, 0.35) 100%); }
.foot-ornament .foot-line:last-child { background: linear-gradient(to left, transparent, var(--rule) 60%, rgba(167, 139, 250, 0.35) 100%); }

.foot-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; position: relative; transition: transform 220ms ease; }
.foot-icon svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.35)) drop-shadow(0 0 16px rgba(74, 222, 128, 0.18));
  animation: sg-glow 4s ease-in-out infinite;
}
.foot-icon::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.18), transparent 70%);
  pointer-events: none; z-index: -1;
}
.foot-icon:hover { transform: translateY(-1px); }

@keyframes sg-glow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.30)) drop-shadow(0 0 14px rgba(74, 222, 128, 0.15)); }
  50%      { filter: drop-shadow(0 0 9px rgba(34, 211, 238, 0.55)) drop-shadow(0 0 22px rgba(74, 222, 128, 0.28)); }
}

.credit {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--fg-soft);
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.credit-pre { text-transform: uppercase; font-size: 10.5px; color: var(--fg-muted); letter-spacing: 0.18em; }
.credit-place {
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--accent-2), var(--accent), var(--accent-3));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.emoji { font-size: 15px; filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.18)); transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  .foot-icon svg, .credit-place { animation: none !important; }
}

/* ---------- Reveal / fade animations ---------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .category-grid  { grid-template-columns: repeat(3, 1fr); }
  .feature-strip  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .market,
  #lazy-path,
  .how,
  .install,
  .trust { margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
  .market { padding-top: 32px; padding-bottom: 12px; }
  .section-divider { margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
  .category-grid  { grid-template-columns: repeat(2, 1fr); }
  .feature-strip  { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .screen { padding: 18px 18px 28px; }
  .terminal { margin: 16px 8px 32px; border-radius: 10px; }
  .ascii { font-size: 7px; }
  .bar-title { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(2n) { border-right: none; }
  .stats li:nth-child(-n+2) { border-bottom: 1px dashed var(--rule); padding-bottom: 10px; margin-bottom: 4px; }
  .tag { font-size: 15px; }
  h2 { font-size: 15px; }
  .install-list li { grid-template-columns: 1fr; gap: 2px; }
  .req-row { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr; }

  /* Marketplace condensed for phone */
  .market-title { font-size: 26px; }
  .market-subtitle { font-size: 13.5px; }
  .market-search-hero input { padding: 16px 64px 16px 48px; font-size: 14px; }
  .market-search-icon { left: 18px; font-size: 18px; }
  .market-search-kbd { display: none; }
  .market-stats { grid-template-columns: repeat(2, 1fr); }
  .market-stats li:nth-child(2n) { border-right: none; }
  .market-stats li:nth-child(-n+2) { border-bottom: 1px dashed var(--rule); padding-bottom: 10px; }
  .strip-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .strip-hint { text-align: left; }
}

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