/* ============================================================
   Learning Pipeline — Modern, clean, friendly, inviting
   Reference: Originals/ai/ai-heroes/193-aihero-mesh-gradient
   Layered with soft-SaaS motion (Linear/Framer-style).
   Dials: DESIGN_VARIANCE=8, MOTION_INTENSITY=9, VISUAL_DENSITY=4
   ============================================================ */

/* ---------- Tokens ---------- */
:root[data-theme="light"],
:root[data-theme="auto"] {
  --paper:         #faf6ee;
  --paper-soft:    #f4efe3;
  --card:          rgba(255, 255, 255, 0.75);
  --card-solid:    #ffffff;
  --ink:           #1a1916;
  --ink-2:         #615b52;
  --ink-3:         #9a9386;
  --rule:          rgba(26, 25, 22, 0.08);
  --rule-strong:   rgba(26, 25, 22, 0.14);

  /* Friendly multi-hue accent set — ONE primary + supporting chips */
  --coral:         #e8624a;   /* primary CTA warmth */
  --coral-deep:    #b8472d;
  --amber:         #e8a85c;
  --sage:          #7fa57a;
  --sage-deep:     #3d5944;
  --sand:          #d8c4a0;
  --sky:           #6ba4c7;

  --shadow-soft:
    0 1px 2px rgba(26, 25, 22, 0.04),
    0 8px 20px -10px rgba(26, 25, 22, 0.08),
    0 30px 60px -30px rgba(26, 25, 22, 0.12);
  --shadow-hover:
    0 2px 6px rgba(232, 98, 74, 0.08),
    0 22px 50px -20px rgba(232, 98, 74, 0.22),
    0 40px 80px -30px rgba(26, 25, 22, 0.18);
  --shadow-pill:
    0 6px 18px -6px rgba(232, 98, 74, 0.45),
    0 20px 50px -20px rgba(232, 98, 74, 0.55);

  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);          /* overshoot */
  --ease:   cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[data-theme="dark"] {
  --paper:       #141311;
  --paper-soft:  #1c1a16;
  --card:        rgba(28, 26, 22, 0.75);
  --card-solid:  #1c1a16;
  --ink:         #f7f2e6;
  --ink-2:       #c0b6a4;
  --ink-3:       #7e7769;
  --rule:        rgba(247, 242, 230, 0.1);
  --rule-strong: rgba(247, 242, 230, 0.2);
  --coral:       #f2775e;
  --coral-deep:  #e8624a;
  --sage:        #8ab585;
  --sky:         #7fb5d6;
  --shadow-soft: 0 14px 40px -18px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 22px 50px -20px rgba(242, 119, 94, 0.35);
  --shadow-pill:  0 20px 50px -20px rgba(242, 119, 94, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --paper:       #141311;
    --paper-soft:  #1c1a16;
    --card:        rgba(28, 26, 22, 0.75);
    --card-solid:  #1c1a16;
    --ink:         #f7f2e6;
    --ink-2:       #c0b6a4;
    --ink-3:       #7e7769;
    --rule:        rgba(247, 242, 230, 0.1);
    --rule-strong: rgba(247, 242, 230, 0.2);
    --coral:       #f2775e;
    --sage:        #8ab585;
    --sky:         #7fb5d6;
    --shadow-soft: 0 14px 40px -18px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 22px 50px -20px rgba(242, 119, 94, 0.35);
    --shadow-pill:  0 20px 50px -20px rgba(242, 119, 94, 0.6);
  }
}

/* ---------- Reset + base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Cabinet Grotesk", Inter, -apple-system, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.56;
  font-feature-settings: "cv11", "ss01", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 12px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: "Cabinet Grotesk", Inter, sans-serif;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.028em;
}
h1 {
  font-size: clamp(3rem, 7.5vw, 7rem);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(1.6rem, 2vw + 0.6rem, 2.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.028em;
}
h3 { font-size: 1.35rem; line-height: 1.18; font-weight: 700; }
p { margin: 0; }

.mono {
  font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-feature-settings: "tnum";
}

/* ---------- Layout shell ---------- */
.shell {
  width: min(1280px, calc(100vw - 56px));
  margin: 0 auto;
}
@media (max-width: 600px) {
  .shell { width: calc(100vw - 32px); }
}

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--coral), var(--amber));
  z-index: 100;
  transition: width 80ms linear;
  pointer-events: none;
}

/* ---------- Top nav ---------- */
.top-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 0 4px;
  position: relative;
  z-index: 10;
}
.top-nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.top-nav .brand::before {
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--ink);
  position: relative;
  flex-shrink: 0;
  transition: transform 500ms var(--spring);
}
.top-nav .brand::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--coral);
  transform: translateY(-50%) rotate(0deg);
  transition: transform 500ms var(--spring), background 240ms var(--ease);
}
.top-nav .brand:hover::before { transform: rotate(-8deg) scale(1.08); }
.top-nav .brand:hover::after { transform: translateY(-50%) rotate(45deg); background: var(--amber); }
.top-nav a:not(.brand) {
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 200ms var(--ease);
}
.top-nav a:not(.brand):hover { color: var(--ink); }
#theme-toggle {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--rule);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1rem;
  backdrop-filter: blur(12px);
  transition: all 400ms var(--spring);
}
#theme-toggle:hover {
  transform: rotate(180deg) scale(1.08);
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ============================================================
   HERO — animated mesh gradient blob background
   ============================================================ */
.hero {
  position: relative;
  min-height: 760px;
  padding: 72px 0 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero-compact { min-height: 460px; padding: 60px 0 80px; }

/* Mesh gradient — 4 blurred blobs that float */
.mesh {
  position: absolute;
  inset: -20%;
  overflow: hidden;
  filter: blur(70px) saturate(135%);
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.blob {
  position: absolute;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  mix-blend-mode: multiply;
  will-change: transform;
}
.b1 { background: var(--coral);    top: -12vw; left: -8vw; animation: f1 24s ease-in-out infinite; }
.b2 { background: var(--amber);    top:  18vw; left: 30vw; animation: f2 28s ease-in-out infinite; }
.b3 { background: var(--sage);     top:   8vw; left: 58vw; animation: f3 26s ease-in-out infinite; }
.b4 { background: var(--sand);     top:  32vw; left: 14vw; animation: f4 30s ease-in-out infinite; }
.b5 { background: var(--sky);      top:  -6vw; left: 42vw; animation: f1 34s ease-in-out infinite reverse; width: 42vw; height: 42vw; }
@keyframes f1 { 0%,100%{transform:translate(0,0) scale(1);}    50%{transform:translate(8vw,6vw)   scale(1.15);} }
@keyframes f2 { 0%,100%{transform:translate(0,0) scale(1.05);} 50%{transform:translate(-6vw,8vw)  scale(0.9);}  }
@keyframes f3 { 0%,100%{transform:translate(0,0) scale(0.95);} 50%{transform:translate(-10vw,-4vw) scale(1.1);} }
@keyframes f4 { 0%,100%{transform:translate(0,0) scale(1);}    50%{transform:translate(6vw,-8vw)  scale(1.1);}  }

/* Grain noise overlay */
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: multiply;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 44px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--rule-strong);
  border-radius: 9999px;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 14px var(--coral);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.4} }

h1.headline {
  margin-top: 32px;
  max-width: 14ch;
  font-weight: 900;
  font-size: clamp(3.25rem, 8vw, 8rem);
  line-height: 0.84;
  letter-spacing: -0.048em;
}
h1.headline em {
  font-style: normal;
  display: inline-block;
  color: var(--coral);
  position: relative;
}
h1.headline em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.16em;
  background: var(--coral);
  opacity: 0.18;
  border-radius: 2px;
  transform-origin: left;
  animation: grow-underline 1.4s 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform: scaleX(0);
}
@keyframes grow-underline { to { transform: scaleX(1); } }

.hero-dek {
  margin-top: 40px;
  max-width: 44ch;
  font-family: "Cabinet Grotesk", Inter, sans-serif;
  font-size: clamp(1.15rem, 0.8vw + 1rem, 1.4rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink-2);
}

/* CTA row */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 44px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 24px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 400ms var(--spring), box-shadow 400ms var(--ease);
  will-change: transform;
}
.pill:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-pill);
}
.pill .pill-arrow {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: var(--coral);
  display: grid;
  place-items: center;
  transition: transform 400ms var(--spring);
}
.pill:hover .pill-arrow { transform: rotate(-45deg); }
.pill .pill-arrow svg { width: 16px; height: 16px; stroke: var(--ink); stroke-width: 2.4; fill: none; }

.pill-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid var(--rule-strong);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 300ms var(--ease);
}
.pill-ghost:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* Stats row under hero */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  margin-top: 88px;
  max-width: 880px;
  position: relative;
  z-index: 2;
}
.stat .num {
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: clamp(2.5rem, 3vw + 0.5rem, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat .lbl {
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  margin-top: 10px;
  display: block;
}

/* ---------- Main content ---------- */
main.shell { padding: 96px 0 120px; position: relative; }

/* Section header */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 32px;
}
.section-head h2 {
  font-family: "Cabinet Grotesk", sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 14ch;
}
.section-head .meta {
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  white-space: nowrap;
  padding-bottom: 8px;
}

/* Search */
.search-wrap {
  position: relative;
  margin-bottom: 56px;
  max-width: 520px;
}
.search-wrap input {
  width: 100%;
  padding: 18px 22px 18px 56px;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rule-strong);
  border-radius: 9999px;
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  transition: all 300ms var(--ease);
}
.search-wrap input::placeholder { color: var(--ink-3); }
.search-wrap input:focus {
  outline: none;
  border-color: var(--coral);
  background: var(--card-solid);
  box-shadow: 0 0 0 5px rgba(232, 98, 74, 0.12);
  transform: translateY(-1px);
}
.search-wrap::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1916' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>");
  background-size: contain;
  pointer-events: none;
}

/* ---------- Findings grid — soft floating cards ---------- */
.findings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 28px;
}
.finding-card {
  position: relative;
  padding: 36px;
  background: var(--card-solid);
  border: 1px solid var(--rule);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  transition:
    transform 500ms var(--spring),
    box-shadow 500ms var(--ease),
    border-color 300ms var(--ease);
  will-change: transform;
  overflow: hidden;
}
.finding-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%),
                    rgba(232, 98, 74, 0.1),
                    transparent 40%);
  opacity: 0;
  transition: opacity 300ms var(--ease);
  pointer-events: none;
}
.finding-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.finding-card:hover::before { opacity: 1; }

.finding-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 9999px;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  transition: all 240ms var(--ease);
}
.topic-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}
.finding-card:hover .topic-pill { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.finding-card:hover .topic-pill::before { background: var(--amber); }

.relevance-tag {
  font-family: "Geist Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.timestamp {
  margin-left: auto;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.finding-card h2 {
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 1.75rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.028em;
  margin-bottom: 18px;
  color: var(--ink);
}
.finding-card > p {
  font-family: "Cabinet Grotesk", sans-serif;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.58;
  font-weight: 500;
}

.what-new {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--paper);
  border-radius: 16px;
  font-size: 0.95rem;
}
.what-new strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Geist Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--coral);
  font-weight: 600;
  margin-right: 8px;
}
.what-new strong::before {
  content: "★";
  font-family: inherit;
  font-size: 0.9em;
}
.what-new-text {
  display: inline;
  color: var(--ink);
  font-weight: 500;
}

.skill-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(127, 165, 122, 0.12);
  color: var(--sage-deep);
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: all 240ms var(--spring);
}
.skill-chip::before { content: "◆"; color: var(--sage); }
.skill-chip:hover {
  transform: translateY(-2px) scale(1.04);
  background: var(--sage-deep);
  color: var(--paper);
}
.skill-chip:hover::before { color: var(--amber); }

.sources {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.sources-label {
  display: block;
  font-family: "Geist Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.sources a {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-2);
  word-break: break-word;
  padding: 3px 0;
  transition: color 200ms var(--ease), padding-left 240ms var(--ease);
}
.sources a::before {
  content: "→ ";
  color: var(--coral);
  margin-right: 4px;
  display: inline-block;
  transition: transform 240ms var(--ease);
}
.sources a:hover {
  color: var(--coral);
  padding-left: 4px;
}

.apply-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.apply-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--coral);
  color: var(--paper);
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 400ms var(--spring), box-shadow 400ms var(--ease);
  will-change: transform;
}
.apply-chip::after {
  content: "→";
  display: inline-block;
  transition: transform 300ms var(--spring);
  font-weight: 800;
}
.apply-chip:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 30px -10px rgba(232, 98, 74, 0.55);
}
.apply-chip:hover::after { transform: translateX(4px) rotate(-8deg); }
.apply-chip.copied { background: var(--sage-deep); }
.apply-chip.copied::after { content: "✓"; transform: rotate(0); }

/* Primary variant for the universal "Copy to any project" button */
.apply-chip.primary {
  background: var(--ink);
  color: var(--paper);
  padding-left: 22px;
  padding-right: 22px;
}
.apply-chip.primary:hover {
  background: var(--coral);
  color: var(--paper);
}
.apply-chip.primary::after { content: "⧉"; font-weight: 500; }
.apply-chip.primary.copied::after { content: "✓"; }

/* Skill card copy-invoke button (full-width bar at bottom) */
.skill-card-body { display: block; color: inherit; text-decoration: none; }
.skill-card .copy-invoke {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% + 56px);
  margin: 24px -28px -28px;
  padding: 14px 28px;
  background: var(--paper-soft);
  color: var(--ink);
  font-size: 0.82rem;
  border-radius: 0 0 22px 22px;
  border-top: 1px solid var(--rule);
  justify-content: flex-start;
  cursor: pointer;
  transition: background 240ms var(--ease), color 240ms var(--ease);
}
.skill-card .copy-invoke::after { content: none; }
.skill-card .copy-invoke code {
  font-family: "Geist Mono", ui-monospace, Menlo, monospace;
  font-size: 0.84rem;
  color: var(--coral-deep);
  background: transparent;
  padding: 0;
  font-weight: 500;
}
.skill-card .copy-invoke .copy-glyph {
  font-size: 1rem;
  color: var(--ink-3);
  transition: color 240ms var(--ease);
}
.skill-card .copy-invoke:hover {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
  transform: none;
}
.skill-card .copy-invoke:hover code { color: var(--amber); }
.skill-card .copy-invoke:hover .copy-glyph { color: var(--paper); }
.skill-card .copy-invoke.copied { background: var(--sage-deep); color: var(--paper); }
.skill-card .copy-invoke.copied code { color: var(--paper); }
.skill-card .copy-invoke.copied .copy-glyph { color: var(--paper); }
.skill-card .copy-invoke.copied::before { content: "Copied "; opacity: 0.85; font-weight: 500; }

/* Skill detail "big copy" button */
.invoke-row {
  margin-top: 32px;
  margin-bottom: 8px;
}
.copy-invoke-big {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  font-size: 1rem;
}
.copy-invoke-big code {
  font-family: "Geist Mono", ui-monospace, Menlo, monospace;
  font-size: 0.95em;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 10px;
  border-radius: 6px;
  color: inherit;
}
.copy-invoke-big::after { content: none; }
.copy-invoke-big .copy-glyph { font-size: 1.1rem; }

/* ============================================================
   SKILLS GRID — friendly cards with accent border top
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.skill-card {
  position: relative;
  display: block;
  padding: 32px 28px 28px;
  background: var(--card-solid);
  border: 1px solid var(--rule);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 500ms var(--spring), box-shadow 500ms var(--ease), border-color 300ms var(--ease);
  overflow: hidden;
  will-change: transform;
}
.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--coral), var(--amber));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 500ms var(--spring);
}
.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.skill-card:hover::before { transform: scaleX(1); }
.skill-card.featured { border-color: var(--coral); }
.skill-card.featured::before { transform: scaleX(1); }
.install-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px 12px;
  background: var(--sage-deep);
  color: var(--paper);
  font-family: "Geist Mono", monospace;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  z-index: 2;
}
.install-badge.catalog {
  background: var(--paper-soft);
  color: var(--ink-3);
  border: 1px solid var(--rule);
}
.skill-card.catalog-only { opacity: 0.85; }
.skill-card.catalog-only:hover { opacity: 1; }
.skill-card.installed h2 { padding-right: 96px; }
.skill-card.catalog-only h2 { padding-right: 96px; }

.skill-card.featured::after {
  content: "★ Featured";
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px 12px;
  background: var(--coral);
  color: var(--paper);
  font-family: "Geist Mono", monospace;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
}
.skill-card h2 {
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  padding-right: 80px;
}
.skill-card p {
  color: var(--ink-2);
  font-size: 0.925rem;
  line-height: 1.55;
  margin-bottom: 20px;
}
.source-chip {
  display: inline-flex;
  padding: 5px 12px;
  background: var(--paper);
  font-family: "Geist Mono", monospace;
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  border-radius: 9999px;
}

/* ---------- Skill detail ---------- */
.skill-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 48px 0;
  padding: 36px;
  background: var(--card-solid);
  border: 1px solid var(--rule);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  max-width: 900px;
}
.skill-meta .row { display: flex; flex-direction: column; gap: 6px; }
.skill-meta dt {
  font-family: "Geist Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 500;
  margin: 0;
}
.skill-meta dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; }
.skill-meta code {
  padding: 3px 9px;
  background: var(--paper);
  border-radius: 6px;
  font-family: "Geist Mono", monospace;
  font-size: 0.85em;
  font-weight: 500;
  color: var(--coral-deep);
}
.install-notes {
  max-width: 900px;
  margin-top: 24px;
}
.install-notes pre {
  white-space: pre-wrap;
  padding: 32px;
  background: var(--card-solid);
  border: 1px solid var(--rule);
  border-radius: 20px;
  font-family: "Geist Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
  box-shadow: var(--shadow-soft);
}

/* ---------- Empty state ---------- */
.empty {
  padding: 96px 40px;
  text-align: center;
  background: var(--card-solid);
  border: 1px solid var(--rule);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}
.empty h3 {
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.028em;
  margin-bottom: 14px;
}
.empty p { color: var(--ink-2); margin: 0 auto; max-width: 50ch; line-height: 1.6; }
.empty code {
  padding: 3px 8px;
  background: var(--paper);
  border-radius: 6px;
  font-family: "Geist Mono", monospace;
  font-size: 0.88em;
  color: var(--coral-deep);
}

/* ---------- Footer ---------- */
.colophon {
  margin-top: 96px;
  padding: 48px 0 64px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.colophon .masthead-line {
  font-family: "Cabinet Grotesk", sans-serif;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(10px);
  transition:
    opacity 1000ms var(--ease-soft),
    transform 1000ms var(--ease-soft),
    filter 1000ms var(--ease-soft);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { min-height: 620px; padding: 48px 0 80px; }
  h1.headline { font-size: clamp(2.75rem, 10vw, 4.5rem); }
  .stats { gap: 24px; margin-top: 56px; }
  .stat .num { font-size: 2rem; }
}
@media (max-width: 600px) {
  .findings-grid { grid-template-columns: 1fr; }
  .finding-card { padding: 28px; border-radius: 22px; }
  .skill-card { padding: 24px; }
  .cta-row { width: 100%; }
  .pill, .pill-ghost { width: 100%; justify-content: space-between; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  * { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
