/* msu-skills — a quiet, task-first catalog for Agent Skills.
   The visual hierarchy is carried by type, space, and one routing-map signature. */

:root {
  color-scheme: light dark;

  --canvas: #f6f8fa;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #f2f4f6;
  --ink: #191f28;
  --ink-2: #333d4b;
  --ink-3: #4e5968;
  --ink-4: #6b7684;
  --line: #e5e8eb;
  --line-strong: #d1d6db;
  --blue: #3182f6;
  --blue-strong: #1b64da;
  --blue-soft: #eaf3ff;
  --green: #00a878;
  --green-soft: #e8f8f2;
  --code-bg: #121821;
  --code-surface: #1a2330;
  --code-text: #e9eef5;
  --code-muted: #9aa8ba;
  --nav-glass: rgba(255, 255, 255, 0.82);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 18px 50px rgba(23, 36, 53, 0.1);

  --display: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --page: 1180px;
  --gutter: clamp(20px, 4.8vw, 56px);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0d1117;
    --surface: #121821;
    --surface-raised: #171f2a;
    --surface-soft: #1a222d;
    --ink: #f2f5f8;
    --ink-2: #d6dde6;
    --ink-3: #b4bdc8;
    --ink-4: #929eac;
    --line: #27313d;
    --line-strong: #374352;
    --blue: #5a9cff;
    --blue-strong: #82b4ff;
    --blue-soft: #132b49;
    --green: #4ad6aa;
    --green-soft: #102d27;
    --code-bg: #080c12;
    --code-surface: #111821;
    --code-text: #edf2f7;
    --code-muted: #9aa8ba;
    --nav-glass: rgba(13, 17, 23, 0.82);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.16);
    --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.3);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a {
  color: inherit;
}

code {
  padding: 0.1em 0.38em;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.87em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip:focus {
  top: 12px;
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: var(--nav-glass);
  backdrop-filter: saturate(1.4) blur(18px);
}

.topbar-inner {
  max-width: var(--page);
  min-height: 68px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.wordmark-mark {
  position: relative;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 8px;
  background: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.wordmark-mark::before,
.wordmark-mark::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
}

.wordmark-mark::before {
  top: 7px;
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.78);
}

.wordmark-mark::after {
  top: 15px;
  right: 11px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(0.3rem, 1.5vw, 1.15rem);
  font-size: 0.86rem;
  font-weight: 600;
}

.topnav a {
  min-height: 44px;
  padding: 0 0.5rem;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.topnav a:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.topnav .topnav-repo {
  min-height: 44px;
  margin-left: 0.2rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 8%, color-mix(in srgb, var(--blue) 11%, transparent) 0, transparent 31rem),
    var(--surface);
}

.hero-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(4.8rem, 10vw, 8.2rem) var(--gutter) clamp(4rem, 8vw, 6.7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(3.5rem, 8vw, 7rem);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-kicker,
.action-kicker {
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--blue-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-kicker > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 12%, transparent);
}

.hero h1 {
  max-width: 12ch;
  margin: 0 0 1.5rem;
  font-size: clamp(3rem, 6.7vw, 5.7rem);
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.lede {
  max-width: 55ch;
  margin: 0 0 2rem;
  color: var(--ink-3);
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  line-height: 1.72;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  min-height: 48px;
  padding: 0.72rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--blue) 50%, var(--line));
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--blue) 25%, transparent);
}

.btn-primary:hover {
  border-color: var(--blue-strong);
  background: var(--blue-strong);
}

.btn-quiet {
  background: transparent;
}

/* Signature: the source-to-channel routing panel */

.fan {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line-strong) 85%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-raised) 93%, transparent);
  box-shadow: var(--shadow-md);
}

.fan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #7eaef8 58%, transparent);
}

.fan-cap {
  min-height: 30px;
  margin: 0 0 1rem;
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.fan-live {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--green);
}

.fan-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 12%, transparent);
}

.fan-grid {
  display: grid;
  grid-template-columns: minmax(118px, 0.72fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 2rem;
}

.fan-source {
  position: relative;
  min-height: 112px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 17px;
  background: var(--code-bg);
  color: var(--code-text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.fan-source::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 2rem;
  border-top: 1px solid var(--line-strong);
}

.fan-source > span:last-child {
  display: grid;
  gap: 0.1rem;
}

.fan-source strong {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
}

.fan-source small,
.fan-row small {
  color: var(--code-muted);
  font-size: 0.67rem;
}

.fan-file-icon {
  position: relative;
  width: 29px;
  height: 35px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 7px;
}

.fan-file-icon::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 7px;
  width: 13px;
  height: 2px;
  border-radius: 3px;
  background: var(--blue);
  box-shadow: 0 6px 0 rgba(255, 255, 255, 0.7), 0 12px 0 rgba(255, 255, 255, 0.42);
}

.fan-list {
  position: relative;
  margin: 0;
  padding: 0;
  display: grid;
  list-style: none;
}

.fan-list::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 16.66%;
  bottom: 16.66%;
  border-left: 1px solid var(--line-strong);
}

.fan-row {
  position: relative;
  min-height: 76px;
  padding: 0.8rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.fan-row:last-child {
  border-bottom: 0;
}

.fan-row::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 50%;
  width: 1rem;
  border-top: 1px solid var(--line-strong);
}

.fan-row::after {
  content: "";
  position: absolute;
  left: calc(-1rem - 3px);
  top: calc(50% - 3px);
  width: 7px;
  height: 7px;
  border: 2px solid var(--surface-raised);
  border-radius: 50%;
  background: var(--blue);
}

.fan-row > span:first-child {
  min-width: 0;
  display: grid;
}

.fan-to {
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 700;
}

.fan-row small {
  color: var(--ink-4);
}

.fan-note {
  flex: 0 0 auto;
  padding: 0.24rem 0.48rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.6rem;
  white-space: nowrap;
}

.fan-note-ready {
  background: var(--green-soft);
  color: var(--green);
}

.fan-foot {
  margin: 1rem 0 0;
  padding: 1rem 0.25rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.78rem;
  text-wrap: pretty;
}

.hero-proof {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.hero-proof p {
  min-width: 0;
  margin: 0;
  padding: 1.45rem clamp(0rem, 2vw, 1.8rem);
  display: grid;
  gap: 0.1rem;
  border-right: 1px solid var(--line);
}

.hero-proof p:first-child {
  padding-left: 0;
}

.hero-proof p:last-child {
  padding-right: 0;
  border-right: 0;
}

.hero-proof strong {
  font-size: 0.81rem;
  font-weight: 800;
}

.hero-proof span {
  color: var(--ink-4);
  font-size: 0.74rem;
}

/* Sections */

.band {
  scroll-margin-top: 68px;
  border-bottom: 1px solid var(--line);
}

.band-alt {
  background: var(--surface);
}

.band-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(4.8rem, 9vw, 7.8rem) var(--gutter);
}

.band-narrow > * {
  max-width: 820px;
}

.section-intro {
  margin-bottom: clamp(2.3rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 2rem 5rem;
  align-items: start;
}

.section-title,
.section-copy {
  min-width: 0;
}

.band h2 {
  max-width: 15ch;
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.8vw, 3.65rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.section-title h2 {
  margin-bottom: 0;
}

.section-count {
  margin: 0.8rem 0 0;
  color: var(--blue-strong);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.section-lede {
  max-width: 62ch;
  margin: 0 0 1rem;
  color: var(--ink-3);
  font-size: clamp(1rem, 1.55vw, 1.13rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.section-copy .section-lede,
.section-lede:last-child {
  margin-bottom: 0;
}

.section-note {
  max-width: 62ch;
  margin: 1rem 0 0;
  color: var(--ink-4);
  font-size: 0.9rem;
  text-wrap: pretty;
}

.section-note strong {
  color: var(--ink-2);
}

.section-source,
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
}

.section-source {
  margin: 1.7rem 0 0;
  text-align: right;
}

.section-source a,
.eyebrow a {
  color: var(--ink-4);
  text-decoration: none;
  transition: color 0.16s ease;
}

.section-source a:hover,
.eyebrow a:hover {
  color: var(--blue-strong);
}

.eyebrow {
  margin: 0 0 1.2rem;
}

/* Install picker */

.channels {
  display: grid;
  gap: 1rem;
}

.install-picker.is-enhanced {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
}

.install-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.install-tab {
  position: relative;
  min-width: 0;
  min-height: 92px;
  padding: 1.25rem 1.4rem;
  color: var(--ink-3);
  text-align: left;
  font: inherit;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.install-tab:last-child {
  border-right: 0;
}

.install-tab::after {
  content: "";
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: transparent;
}

.install-tab:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.install-tab:focus-visible {
  outline-offset: -5px;
}

.install-tab[aria-selected="true"] {
  color: var(--ink);
  background: var(--surface-raised);
}

.install-tab[aria-selected="true"]::after {
  background: var(--blue);
}

.install-tab-name,
.install-tab-sub {
  display: block;
}

.install-tab-name {
  font-size: 0.93rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.install-tab-sub {
  margin-top: 0.25rem;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.45;
}

.install-picker.is-enhanced .channels {
  display: block;
}

.install-picker.is-enhanced .channel {
  min-height: 280px;
  padding: clamp(1.7rem, 4vw, 3rem);
  grid-template-columns: minmax(290px, 1fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 5rem);
  border: 0;
  border-radius: 0;
  background: var(--surface-raised);
}

.install-picker.is-enhanced .channel-head {
  display: none;
}

.channel {
  padding: 1.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.channel-main,
.channel-side {
  min-width: 0;
}

.channel-main {
  align-self: center;
}

.channel-head h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
}

.channel-sub {
  margin: 0.2rem 0 0;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.channel-body {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.94rem;
  text-wrap: pretty;
}

.channel-agents {
  margin: 0.8rem 0 0;
  color: var(--blue-strong);
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.7;
}

.channel-foot {
  margin: 0.9rem 0 0;
  color: var(--ink-4);
  font-size: 0.79rem;
  text-wrap: pretty;
}

/* Command surfaces */

.cmd {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.25rem;
  border: 1px solid color-mix(in srgb, var(--code-bg) 80%, var(--line));
  border-radius: 14px;
  background: var(--code-bg);
  color: var(--code-text);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.cmd-context {
  min-height: 42px;
  margin: 0;
  padding: 0.65rem 5rem 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--code-surface);
  color: var(--code-muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
}

.cmd-context-icon {
  color: #73a8ff;
  font-weight: 600;
}

.cmd pre {
  margin: 0;
  padding: 1rem 4.4rem 1rem 1rem;
  overflow-x: auto;
  scrollbar-color: #3a4656 transparent;
  scrollbar-gutter: stable;
  color: var(--code-text);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.72;
  white-space: pre;
}

.cmd pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  white-space: inherit;
}

.cmd-wide pre {
  font-size: 0.8rem;
}

.channel .cmd-contextual pre {
  padding-right: 1rem;
}

.plugin-install .cmd pre {
  padding-right: 3.8rem;
  white-space: pre-wrap;
}

.plugin-install .cmd pre code {
  overflow-wrap: anywhere;
}

.cmd-prompt pre {
  white-space: pre-wrap;
}

.copy {
  position: absolute;
  top: 0.58rem;
  right: 0.58rem;
  min-width: 54px;
  min-height: 44px;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--code-muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.copy:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.copy[data-state="done"] {
  border-color: color-mix(in srgb, var(--green) 55%, transparent);
  color: #69ddb9;
}

/* Plugin cards */

.plugin-grid {
  display: grid;
  gap: 1rem;
}

.plugin-card {
  position: relative;
  min-height: 215px;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 2rem 4rem;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.plugin-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.plugin-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
  box-shadow: var(--shadow-sm);
}

.plugin-card:hover::before {
  transform: scaleY(1);
}

.plugin-card-main,
.plugin-card-side {
  min-width: 0;
}

.plugin-card-head {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
}

.plugin-card-head h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.3vw, 1.72rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.plugin-card-head code {
  color: var(--blue-strong);
  font-size: 0.67rem;
}

.plugin-card-ver {
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.plugin-card-desc {
  max-width: 48ch;
  margin: 0;
  color: var(--ink-3);
  font-size: 0.91rem;
  text-wrap: pretty;
}

.plugin-card-skills {
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  list-style: none;
}

.plugin-card-skills li {
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.67rem;
}

.plugin-card-foot {
  margin: 0;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.plugin-card-go {
  width: 34px;
  height: 34px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-size: 0;
}

.plugin-card-go span {
  font-size: 1rem;
}

/* MCP setup */

.setup-grid {
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.setup-step {
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.setup-step-wide {
  margin-bottom: 1.75rem;
}

.setup-step-head {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.setup-step-head > span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.setup-step-head p,
.setup-step-head h3 {
  margin: 0;
}

.setup-step-head p {
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.setup-step-head h3 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.callout {
  margin: 0 0 1.25rem;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--blue);
  color: var(--ink-3);
  font-size: 0.87rem;
  text-wrap: pretty;
}

.values {
  margin: 0;
  display: grid;
}

.values > div {
  min-width: 0;
  padding: 0.68rem 0;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
}

.values > div:first-child {
  padding-top: 0;
}

.values > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.values dt {
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 0.67rem;
}

.values dd {
  min-width: 0;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.snippets {
  display: grid;
  gap: 0.55rem;
}

.snippets details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.snippets summary {
  min-height: 50px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-2);
  font-size: 0.87rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.snippets summary::-webkit-details-marker {
  display: none;
}

.snippets summary::before {
  content: "+";
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.snippets details[open] summary::before {
  content: "−";
}

.snippets details .cmd {
  margin: 0 0.7rem 0.7rem;
}

.links-row {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.82rem;
}

.links-row a {
  color: var(--blue-strong);
}

/* Try band */

.band-action {
  position: relative;
  overflow: hidden;
  background: #101722;
  color: #f4f7fb;
}

.band-action::after {
  content: "";
  position: absolute;
  right: -12rem;
  bottom: -14rem;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 130, 246, 0.22), transparent 68%);
  pointer-events: none;
}

.band-action .band-inner {
  position: relative;
  z-index: 1;
}

.band-action .action-kicker {
  color: #73a8ff;
}

.band-action h2 {
  max-width: 16ch;
}

.band-action .section-lede {
  color: #9eabbc;
}

.band-action .section-source a {
  color: #7f8da0;
}

.band-action .section-source a:hover {
  color: #fff;
}

/* Plugin detail and skill cards */

.hero-inner-plugin {
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.82fr);
  align-items: start;
}

.hero-plugin h1 {
  max-width: 14ch;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 6vw, 5.2rem);
}

.plugin-ident {
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--blue-strong);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.plugin-version {
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.plugin-install {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-md);
}

.plugin-install-label {
  margin: 0 0 0.5rem;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 700;
}

.plugin-install .cmd {
  margin-bottom: 1.1rem;
}

.values-tight {
  max-width: 42rem;
  margin: 1.5rem 0 0;
}

.values-tight a {
  color: var(--blue-strong);
}

.skill-list {
  display: grid;
  gap: 1rem;
}

.skill {
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.skill-head {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.skill-name {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.skill-plugin {
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-family: var(--mono);
  font-size: 0.66rem;
  white-space: nowrap;
}

.fm {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--canvas);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.7;
}

.fm-row {
  display: block;
  padding: 0.12rem 0;
}

.fm-key {
  color: var(--blue-strong);
}

.fm-val {
  color: var(--ink-2);
}

.skill-meta {
  margin: 0 0 1.3rem;
  display: grid;
  gap: 0.35rem;
}

.skill-meta > div {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-size: 0.82rem;
}

.skill-meta dt {
  flex: 0 0 9rem;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 0.67rem;
}

.skill-meta dd {
  margin: 0;
  color: var(--ink-3);
}

.skill-links {
  margin: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.skill-links a {
  color: var(--blue-strong);
  text-decoration: none;
}

.skill-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Notices */

.notices {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  list-style: none;
  counter-reset: notice;
}

.notices li {
  position: relative;
  max-width: 82ch;
  padding: 1.2rem 0 1.2rem 2.8rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.86rem;
  text-wrap: pretty;
  counter-increment: notice;
}

.notices li:last-child {
  border-bottom: 1px solid var(--line);
}

.notices li::before {
  content: "0" counter(notice);
  position: absolute;
  left: 0;
  top: 1.35rem;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 0.65rem;
}

/* Footer */

.footer {
  background: var(--surface);
}

.footer-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 3rem var(--gutter) 3.6rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer p {
  margin: 0;
}

.footer-mark {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-mark a {
  text-decoration: none;
}

.footer-note {
  max-width: 50ch;
  margin-top: 0.45rem !important;
  color: var(--ink-4);
  font-size: 0.78rem;
}

.footer-meta {
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 0.66rem;
  text-align: right;
}

.footer-meta p + p {
  margin-top: 0.45rem !important;
}

.footer-meta a {
  color: var(--ink-3);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--blue-strong);
}

/* Responsive */

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    max-width: 13ch;
  }

  .fan {
    max-width: 650px;
  }

  .section-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }

  .band h2 {
    max-width: 18ch;
  }

  .install-picker.is-enhanced .channel,
  .plugin-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.7rem;
  }

  .install-picker.is-enhanced .channel {
    min-height: 0;
  }

  .plugin-card {
    min-height: 0;
  }

  .hero-inner-plugin {
    grid-template-columns: minmax(0, 1fr);
  }

  .plugin-install {
    max-width: 650px;
  }
}

@media (max-width: 720px) {
  .topbar,
  .topbar-inner {
    min-height: 60px;
  }

  .topnav a:not(.topnav-repo) {
    display: none;
  }

  .topnav .topnav-repo {
    min-height: 44px;
  }

  .hero-inner {
    padding-top: 4.5rem;
    padding-bottom: 4rem;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 12.5vw, 4.2rem);
    letter-spacing: -0.055em;
  }

  .fan-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .fan-source {
    min-height: 94px;
    flex-direction: row;
    align-items: center;
  }

  .fan-source::after,
  .fan-list::before,
  .fan-row::before,
  .fan-row::after {
    display: none;
  }

  .fan-row {
    min-height: 68px;
    padding-inline: 0.35rem;
  }

  .hero-proof {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-proof p,
  .hero-proof p:first-child,
  .hero-proof p:last-child {
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-proof p:last-child {
    border-bottom: 0;
  }

  .band {
    scroll-margin-top: 60px;
  }

  .band-inner {
    padding-top: 4.3rem;
    padding-bottom: 4.3rem;
  }

  .band h2 {
    font-size: clamp(2rem, 9.6vw, 3rem);
  }

  .install-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .install-tab {
    min-height: 68px;
    padding: 0.9rem 1.15rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .install-tab:last-child {
    border-bottom: 0;
  }

  .install-tab::after {
    left: 0;
    right: auto;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 3px;
    height: auto;
    border-radius: 0 999px 999px 0;
  }

  .install-picker.is-enhanced .channel {
    padding: 1.25rem;
  }

  .cmd pre,
  .channel .cmd pre,
  .plugin-install .cmd pre {
    padding: 3.15rem 0.9rem 1rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    scrollbar-gutter: auto;
  }

  .channel .cmd-contextual pre {
    padding: 1rem 0.9rem;
  }

  .setup-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-source {
    text-align: left;
  }

  .skill-meta > div {
    flex-wrap: wrap;
    gap: 0.15rem 0.75rem;
  }

  .skill-meta dt {
    flex-basis: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 440px) {
  .fan {
    padding: 1rem;
    border-radius: 22px;
  }

  .fan-cap {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .fan-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .fan-note {
    align-self: flex-start;
  }

  .btn {
    width: 100%;
  }

  .values > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }
}

/* One orchestrated entrance; interaction feedback remains immediate and restrained. */

@media (prefers-reduced-motion: no-preference) {
  .hero-kicker,
  .hero h1,
  .hero .lede,
  .hero-actions,
  .fan {
    animation: enter 0.62s cubic-bezier(0.2, 0.72, 0.25, 1) both;
  }

  .hero h1 {
    animation-delay: 0.05s;
  }

  .hero .lede {
    animation-delay: 0.1s;
  }

  .hero-actions {
    animation-delay: 0.15s;
  }

  .fan {
    animation-delay: 0.12s;
  }

  .fan-live i {
    animation: breathe 2.2s ease-in-out infinite;
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes breathe {
  0%,
  100% {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 10%, transparent);
  }

  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--green) 4%, transparent);
  }
}
