:root {
  --bg: #08111f;
  --bg-elevated: #0d1829;
  --surface: rgba(17, 31, 52, 0.86);
  --surface-strong: #13223a;
  --text: #eef4ff;
  --muted: #aab8cf;
  --line: rgba(148, 163, 184, 0.20);
  --primary: #60a5fa;
  --secondary: #8b5cf6;
  --success: #34d399;
  --warning: #fbbf24;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.30);
  --radius: 20px;
  --max-width: 1280px;
}

:root[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-elevated: #ffffff;
  --surface: rgba(255, 255, 255, 0.90);
  --surface-strong: #ffffff;
  --text: #162033;
  --muted: #5e6b80;
  --line: rgba(71, 85, 105, 0.18);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(96, 165, 250, 0.18), transparent 34%),
    radial-gradient(circle at 100% 10%, rgba(139, 92, 246, 0.15), transparent 30%),
    var(--bg);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 999;
  padding: .7rem 1rem;
  background: var(--bg-elevated);
  border-radius: .7rem;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  min-height: 74px;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, .25));
}
.brand-name {
  font-size: 1.42rem;
  font-weight: 850;
  letter-spacing: -.035em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-left: auto;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: .62rem .8rem;
  border-radius: .8rem;
  font-weight: 600;
  font-size: .95rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(96, 165, 250, .12);
}

.nav-actions { display: flex; align-items: center; gap: .5rem; }

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}
.icon-button:hover { border-color: rgba(96, 165, 250, .55); }

.menu-toggle { display: none; }

.hero {
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, .82fr);
  gap: 4rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .78rem;
  border: 1px solid rgba(96, 165, 250, .35);
  border-radius: 999px;
  background: rgba(96, 165, 250, .08);
  color: var(--primary);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .02em;
}
.dot {
  width: .55rem; height: .55rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(52, 211, 153, .12);
}
h1, h2, h3 { line-height: 1.15; margin-top: 0; }
h1 {
  margin: 1.25rem 0 1rem;
  font-size: clamp(2.8rem, 6.2vw, 5.45rem);
  letter-spacing: -.055em;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -.035em;
}
h3 { font-size: 1.25rem; }
.gradient-text {
  background: linear-gradient(110deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.8rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .72rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 750;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  border-color: transparent;
  color: white;
}
.button.secondary {
  background: var(--surface);
  color: var(--text);
}
.button.ghost { color: var(--muted); }
.button.small { min-height: 38px; padding: .5rem .75rem; font-size: .92rem; }

.hero-panel,
.card,
.content-panel,
.notice,
.metric {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-panel {
  width: 100%;
  padding: 1.1rem;
  transform: rotate(1deg);
}
.hero-panel-inner {
  border-radius: 15px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}
.fake-titlebar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
}
.fake-title {
  margin-left: .5rem;
  font-weight: 800;
}
.fake-build {
  margin-left: auto;
  padding: .25rem .55rem;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(96, 165, 250, .10);
  border: 1px solid rgba(96, 165, 250, .22);
  font-size: .76rem;
  font-weight: 800;
}
.fake-dot { width: 10px; height: 10px; border-radius: 50%; background: #64748b; }
.fake-content { padding: 1.2rem; }
.status-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .8rem;
  align-items: center;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}
.status-row:last-child { border-bottom: 0; }
.status-icon {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(52, 211, 153, .10);
  color: var(--success);
  font-weight: 900;
}
.status-label { font-weight: 700; }
.status-detail { color: var(--muted); font-size: .88rem; }
.status-ok { color: var(--success); font-weight: 800; font-size: .82rem; }

.section { padding: 4.5rem 0; }
.section.compact { padding: 2.5rem 0; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}
.section-header p {
  max-width: 620px;
  margin: .5rem 0 0;
  color: var(--muted);
}

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

.card {
  padding: 1.35rem;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, .45);
}
.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: linear-gradient(140deg, rgba(96, 165, 250, .17), rgba(139, 92, 246, .15));
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 800;
}
.card p { color: var(--muted); margin-bottom: 1rem; }
.card-link {
  text-decoration: none;
  color: var(--primary);
  font-weight: 750;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.metric {
  padding: 1.2rem;
  box-shadow: none;
}
.metric strong { display: block; font-size: 1.8rem; }
.metric span { color: var(--muted); font-size: .92rem; }

.page-hero { padding: 4.5rem 0 2rem; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
.breadcrumb {
  display: flex;
  gap: .5rem;
  color: var(--muted);
  font-size: .92rem;
}
.breadcrumb a { color: var(--primary); text-decoration: none; }

.content-panel { padding: clamp(1.2rem, 3vw, 2rem); box-shadow: none; }
.content-panel + .content-panel { margin-top: 1rem; }

.tool-list {
  display: grid;
  gap: 1rem;
}
.tool-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.tool-item h3 { margin-bottom: .35rem; }
.tool-item p { margin: 0; color: var(--muted); }
.tool-badge {
  display: grid; place-items: center;
  width: 62px; height: 62px;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(96, 165, 250, .18), rgba(139, 92, 246, .18));
  color: var(--primary);
  font-size: 1.45rem;
  font-weight: 850;
}

.notice {
  padding: 1rem 1.15rem;
  box-shadow: none;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.notice strong { display: block; margin-bottom: .1rem; }
.notice p { margin: 0; color: var(--muted); }
.notice.info { border-color: rgba(96, 165, 250, .32); }
.notice.warning { border-color: rgba(251, 191, 36, .32); }

.download-row,
.version-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.download-row:last-child,
.version-row:last-child { border-bottom: 0; }
.download-row p,
.version-row p { margin: .2rem 0 0; color: var(--muted); }
.version-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .28rem .55rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, .10);
  color: var(--primary);
  font-weight: 750;
  font-size: .82rem;
}
.tag.stable {
  color: var(--success);
  background: rgba(52, 211, 153, .10);
}
.tag.pending {
  color: var(--warning);
  background: rgba(251, 191, 36, .10);
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: .35rem;
  top: .5rem;
  bottom: .5rem;
  width: 2px;
  background: var(--line);
}
.timeline-item { position: relative; padding: 0 0 1.75rem 1.2rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.47rem;
  top: .35rem;
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  box-shadow: 0 0 0 6px rgba(96, 165, 250, .10);
}
.timeline-item h3 { margin-bottom: .3rem; }
.timeline-item p { margin: 0; color: var(--muted); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  position: relative;
  padding: .45rem 0 .45rem 1.65rem;
  color: var(--muted);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 900;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-grid p { margin: 0; }

.muted { color: var(--muted); }
.spacer-top { margin-top: 1.5rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { transform: none; max-width: 620px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-toggle { display: inline-grid; }
  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + .5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: .8rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg-elevated);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem; }
}

@media (max-width: 620px) {
  .hero { padding-top: 4rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .section-header { display: block; }
  .section-header .button { margin-top: 1rem; }
  .download-row, .version-row { grid-template-columns: 1fr; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .brand img { width: 42px; height: 42px; }
}

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

@media print {
  .site-header, .hero-actions, .site-footer, .menu-toggle, .theme-toggle { display: none !important; }
  body { background: white; color: black; }
  .card, .content-panel, .notice, .tool-item { border: 1px solid #bbb; box-shadow: none; }
}

.release-highlight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(96, 165, 250, .28);
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgba(96, 165, 250, .09), rgba(139, 92, 246, .08)),
    var(--surface);
}
.release-number {
  display: grid;
  place-items: center;
  min-width: 74px;
  height: 74px;
  padding: .5rem;
  border-radius: 20px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-size: 1.1rem;
  font-weight: 900;
}
.release-highlight h3 { margin-bottom: .25rem; }
.release-highlight p { margin: 0; color: var(--muted); }

.tool-features {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .8rem;
}
.feature-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .25rem .55rem;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(148, 163, 184, .08);
  border: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 650;
}
.document-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .3rem .6rem;
  border-radius: 999px;
  color: var(--warning);
  background: rgba(251, 191, 36, .10);
  font-size: .82rem;
  font-weight: 800;
}
.version-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.version-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.version-card strong {
  display: block;
  margin-bottom: .35rem;
  font-size: 1.15rem;
}
.version-card p { margin: 0; color: var(--muted); }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .release-highlight { grid-template-columns: auto 1fr; }
  .release-highlight .button { grid-column: 1 / -1; }
  .version-summary { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-4 { grid-template-columns: 1fr; }
  .release-highlight { grid-template-columns: 1fr; }
  .release-number { width: 74px; }
  .brand-name { font-size: 1.22rem; }
}

/* ===== v0.3 real screenshots and tool cards ===== */
.hero-shot {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,.22);
}
.hero-shot img,
.tool-media img,
.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-shot-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

.screen-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 1rem;
}
.screenshot-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}
.screenshot-card .meta {
  padding: 1rem 1rem 1.1rem;
}
.screenshot-card h3 {
  margin-bottom: .35rem;
}
.screenshot-card p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}
.screenshot-card.compact img {
  background: rgba(0,0,0,.18);
}
.screenshot-card.compact .image-wrap {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 1rem;
  background: rgba(0,0,0,.08);
}
.screenshot-card.compact.portrait .image-wrap {
  min-height: 380px;
}
.screenshot-card.compact.portrait img {
  width: auto;
  max-width: 100%;
  max-height: 360px;
}
.screenshot-card .image-wrap {
  overflow: hidden;
}
.screenshot-card .image-wrap img {
  transition: transform .22s ease;
}
.screenshot-card:hover .image-wrap img {
  transform: scale(1.01);
}
.screenshot-card.wide {
  grid-column: span 1;
}
.screenshot-card.tall {
  grid-column: span 1;
}
.screenshot-card.large {
  grid-column: span 1;
}

.tool-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.tool-card-v2 {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
}
.tool-card-v2 .tool-head {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.2rem;
}
.tool-card-v2 .tool-head img {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  object-fit: contain;
  background: rgba(0,0,0,.14);
}
.tool-card-v2 .tool-head p {
  margin: .25rem 0 0;
  color: var(--muted);
}
.tool-card-v2 .tool-body {
  padding: 0 1.2rem 1.2rem;
}
.tool-card-v2 .tool-body p {
  color: var(--muted);
}
.tool-card-v2 .tool-media {
  margin-top: .9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.12);
}
.tool-card-v2 .tool-media.portrait {
  display: grid;
  place-items: center;
  min-height: 320px;
}
.tool-card-v2 .tool-media.portrait img {
  width: auto;
  max-width: 100%;
  max-height: 300px;
}
.tool-card-v2 .tool-caption {
  padding: .7rem .9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}
.small-note {
  color: var(--muted);
  font-size: .92rem;
}
.inline-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: .45rem;
  border-radius: 4px;
}
.kpi-row.alt {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.notice + .small-note {
  margin-top: .8rem;
}
.gallery-intro {
  max-width: 760px;
  color: var(--muted);
}
.icon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.icon-chip {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.icon-chip img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.hero .lead {
  max-width: 740px;
}
@media (max-width: 1100px) {
  .screen-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .tool-grid-v2 { grid-template-columns: 1fr; }
  .screen-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Catalyst Site v0.5 — Visual polish
   ========================================================= */

:root {
  --primary: #22d3ee;
  --secondary: #3b82f6;
  --glow: rgba(34, 211, 238, .24);
}

:root[data-theme="light"] {
  --primary: #0284c7;
  --secondary: #2563eb;
  --glow: rgba(2, 132, 199, .16);
}

body {
  background:
    radial-gradient(circle at 10% -10%, rgba(34, 211, 238, .15), transparent 34%),
    radial-gradient(circle at 95% 5%, rgba(59, 130, 246, .16), transparent 30%),
    var(--bg);
}

.site-header {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .10);
}

.nav-wrap {
  min-height: 70px;
}

.brand {
  gap: .65rem;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  filter:
    drop-shadow(0 0 8px rgba(34, 211, 238, .30))
    drop-shadow(0 8px 18px rgba(0, 0, 0, .22));
}

.brand-name {
  font-size: 1.36rem;
}

.site-nav a {
  position: relative;
  padding: .62rem .82rem;
  transition: color .18s ease, background .18s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .22rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(34, 211, 238, .08);
}

.icon-button {
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, .55);
  background: rgba(34, 211, 238, .08);
}

.hero {
  padding: 5.4rem 0 4.2rem;
}

.hero-grid {
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
  gap: clamp(2.5rem, 5vw, 5rem);
}

h1 {
  font-size: clamp(2.8rem, 5.6vw, 5.15rem);
}

.gradient-text {
  background: linear-gradient(110deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
}

.eyebrow {
  border-color: rgba(34, 211, 238, .34);
  background: rgba(34, 211, 238, .075);
}

.button.primary {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  box-shadow: 0 12px 30px rgba(37, 99, 235, .18);
}

.button.primary:hover {
  box-shadow: 0 16px 38px rgba(34, 211, 238, .22);
}

.hero-panel {
  padding: .75rem;
  transform: rotate(.45deg);
  border-color: rgba(34, 211, 238, .24);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .32),
    0 0 50px rgba(34, 211, 238, .08);
  transition: transform .25s ease, border-color .25s ease;
}

.hero-panel:hover {
  transform: rotate(0deg) translateY(-3px);
  border-color: rgba(34, 211, 238, .45);
}

.hero-shot {
  position: relative;
}

.hero-shot::after {
  content: "Agrandir";
  position: absolute;
  right: 1rem;
  top: 1rem;
  padding: .38rem .62rem;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 999px;
  color: white;
  background: rgba(6, 15, 28, .72);
  backdrop-filter: blur(8px);
  font-size: .78rem;
  font-weight: 750;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.hero-shot:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.hero-shot-caption {
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
}

.metric {
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  opacity: .82;
}

.metric:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, .34);
}

.release-highlight {
  position: relative;
  overflow: hidden;
}

.release-highlight::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .16), transparent 68%);
  pointer-events: none;
}

.release-number {
  box-shadow: 0 12px 28px rgba(37, 99, 235, .25);
}

.section-header {
  margin-bottom: 2.2rem;
}

.gallery-hint {
  margin-top: .65rem !important;
  color: var(--primary) !important;
  font-size: .92rem;
  font-weight: 700;
}

.screen-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}

.screenshot-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, .40);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .22);
}

.screenshot-card .image-wrap {
  position: relative;
  cursor: zoom-in;
}

.screenshot-card .image-wrap::after {
  content: "Cliquer pour agrandir";
  position: absolute;
  right: .8rem;
  bottom: .8rem;
  padding: .35rem .58rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 15, 28, .72);
  backdrop-filter: blur(8px);
  font-size: .76rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.screenshot-card:hover .image-wrap::after {
  opacity: 1;
  transform: translateY(0);
}

.screenshot-card .meta {
  flex: 1;
}

.gallery-outils {
  grid-column: span 7;
}

.gallery-diagnostic {
  grid-column: span 5;
}

.gallery-messenger {
  grid-column: span 4;
}

.gallery-nas {
  grid-column: span 8;
}

.gallery-speed {
  grid-column: span 8;
}

.gallery-icons {
  grid-column: span 4;
}

.card {
  position: relative;
  overflow: hidden;
  border-color: rgba(148, 163, 184, .16);
}

.card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -70px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .11), transparent 70%);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

.card:hover {
  border-color: rgba(34, 211, 238, .38);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .16);
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(34, 211, 238, .13), rgba(59, 130, 246, .12));
  border: 1px solid rgba(34, 211, 238, .13);
}

.card-icon .inline-icon {
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 11px;
  object-fit: contain;
}

.card-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}

.card-link:hover {
  color: #67e8f9;
}

.tool-card-v2 {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tool-card-v2:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, .36);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .18);
}

.tool-card-v2 .tool-head img {
  box-shadow: 0 12px 28px rgba(0, 0, 0, .20);
}

.tool-media {
  cursor: zoom-in;
}

.feature-pill {
  border-color: rgba(34, 211, 238, .14);
}

.content-panel,
.notice,
.version-card,
.tool-item {
  transition: border-color .18s ease, box-shadow .18s ease;
}

.content-panel:hover,
.version-card:hover {
  border-color: rgba(34, 211, 238, .28);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(1, 7, 17, .90);
  backdrop-filter: blur(14px);
}

.lightbox.open {
  display: grid;
}

.lightbox-dialog {
  position: relative;
  max-width: min(96vw, 1720px);
  max-height: 94vh;
  border: 1px solid rgba(103, 232, 249, .24);
  border-radius: 18px;
  overflow: hidden;
  background: #07101e;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .65);
}

.lightbox-dialog img {
  display: block;
  max-width: 94vw;
  max-height: 86vh;
  width: auto;
  height: auto;
}

.lightbox-caption {
  padding: .8rem 1rem;
  color: #cbd5e1;
  border-top: 1px solid rgba(148, 163, 184, .18);
  background: #0b1628;
  font-size: .92rem;
}

.lightbox-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  color: white;
  background: rgba(6, 15, 28, .82);
  cursor: pointer;
  font-size: 1.3rem;
}

.lightbox-close:hover {
  background: rgba(34, 211, 238, .18);
  border-color: rgba(34, 211, 238, .60);
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(34, 211, 238, .30);
  border-radius: 13px;
  color: var(--text);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .24);
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: rgba(34, 211, 238, .65);
}

/* Progressive reveal */
.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .48s ease, transform .48s ease;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 980px;
  }

  .gallery-outils,
  .gallery-diagnostic,
  .gallery-messenger,
  .gallery-nas,
  .gallery-speed,
  .gallery-icons {
    grid-column: span 6;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 3.8rem;
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .hero-panel {
    padding: .48rem;
    transform: none;
  }

  .hero-shot-caption {
    flex-direction: column;
    gap: .15rem;
  }

  .gallery-outils,
  .gallery-diagnostic,
  .gallery-messenger,
  .gallery-nas,
  .gallery-speed,
  .gallery-icons {
    grid-column: 1 / -1;
  }

  .screenshot-card .image-wrap::after,
  .hero-shot::after {
    display: none;
  }

  .back-to-top {
    right: .8rem;
    bottom: .8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Catalyst Site v0.6 — Download page
   ========================================================= */

.release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  position: relative;
  z-index: 1;
}

.download-page-hero {
  padding-bottom: 2.5rem;
}

.download-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 3rem;
  align-items: center;
  margin-top: 1.2rem;
}

.download-logo-panel {
  display: grid;
  place-items: center;
  min-height: 190px;
  border: 1px solid rgba(34, 211, 238, .22);
  border-radius: 28px;
  background:
    radial-gradient(circle, rgba(34, 211, 238, .15), transparent 63%),
    var(--surface);
  box-shadow: var(--shadow);
}

.download-logo-panel img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .35));
}

.download-release-card {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, .28);
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(34, 211, 238, .08), rgba(59, 130, 246, .06)),
    var(--surface);
  box-shadow: var(--shadow);
}

.download-release-main {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.2rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.download-release-main h2 {
  margin: .55rem 0 .3rem;
}

.download-version-badge {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 25px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 18px 40px rgba(37, 99, 235, .28);
  font-size: 1.35rem;
  font-weight: 900;
}

.release-availability {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .28rem .58rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
}

.release-availability.pending {
  color: var(--warning);
  background: rgba(251, 191, 36, .10);
}

.release-availability.available {
  color: var(--success);
  background: rgba(52, 211, 153, .10);
}

.download-actions-panel {
  display: grid;
  grid-template-columns: minmax(230px, auto) 1fr;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, .08);
}

.download-button.disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.download-state-message {
  margin: 0;
  color: var(--muted);
}

.release-details {
  display: grid;
  grid-template-columns: 1.2fr .7fr 1fr;
  gap: 0;
}

.release-detail {
  min-width: 0;
  padding: 1.2rem clamp(1rem, 2.5vw, 1.5rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.release-detail:nth-child(3) {
  border-right: 0;
}

.release-detail-wide {
  grid-column: 1 / -1;
  border-right: 0;
  border-bottom: 0;
}

.release-detail > span {
  display: block;
  margin-bottom: .35rem;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 650;
}

.release-detail strong {
  overflow-wrap: anywhere;
}

.hash-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
}

.hash-row code {
  overflow-wrap: anywhere;
  color: var(--primary);
  font-size: .88rem;
}

.copy-hash-button {
  min-height: 36px;
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.copy-hash-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.command-box {
  overflow-x: auto;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, .18);
}

.command-box code {
  color: var(--primary);
}

.download-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.2rem;
}

.version-download-link {
  margin-top: .8rem;
}

@media (max-width: 900px) {
  .download-hero-grid {
    grid-template-columns: 1fr;
  }

  .download-logo-panel {
    max-width: 260px;
    min-height: 210px;
  }

  .download-actions-panel {
    grid-template-columns: 1fr;
  }

  .release-details {
    grid-template-columns: 1fr 1fr;
  }

  .release-detail:nth-child(2) {
    border-right: 0;
  }

  .release-detail:nth-child(3) {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .download-release-main {
    grid-template-columns: 1fr;
  }

  .download-version-badge {
    width: 82px;
    height: 82px;
  }

  .release-details {
    grid-template-columns: 1fr;
  }

  .release-detail,
  .release-detail:nth-child(2),
  .release-detail:nth-child(3) {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .release-detail-wide {
    border-bottom: 0;
  }

  .hash-row {
    grid-template-columns: 1fr;
  }

  .copy-hash-button {
    width: fit-content;
  }
}

/* =========================================================
   Catalyst Site v1.0 — Catalyst 2.0.0 stable release
   ========================================================= */

.suite-visual {
  overflow: hidden;
  padding: 1.1rem;
  border: 1px solid rgba(34, 211, 238, .28);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, .15), transparent 38%),
    linear-gradient(145deg, rgba(16, 31, 54, .94), rgba(7, 17, 32, .96));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, .36),
    0 0 55px rgba(34, 211, 238, .08);
}

.suite-core {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 108px;
  margin-bottom: 1rem;
  border: 1px solid rgba(34, 211, 238, .18);
  border-radius: 20px;
  background: rgba(3, 12, 25, .52);
}

.suite-core img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35));
}

.suite-core span {
  display: block;
  color: #91a4c3;
  font-size: .84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.suite-core strong {
  display: block;
  color: #f4f8ff;
  font-size: 1.48rem;
}

.suite-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.suite-tool {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
  min-width: 0;
  padding: .72rem;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 14px;
  background: rgba(9, 22, 40, .68);
}

.suite-tool:last-child {
  grid-column: 1 / -1;
  width: calc(50% - .325rem);
  justify-self: center;
}

.suite-tool img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}

.suite-tool strong,
.suite-tool span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suite-tool strong {
  color: #eef5ff;
  font-size: .86rem;
  white-space: nowrap;
}

.suite-tool span {
  margin-top: .12rem;
  color: #8fa2c1;
  font-size: .75rem;
  white-space: nowrap;
}

.release-health {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, .14);
}

.release-health span {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .38rem .62rem;
  border: 1px solid rgba(52, 211, 153, .20);
  border-radius: 999px;
  color: #8ff0c9;
  background: rgba(52, 211, 153, .08);
  font-size: .82rem;
  font-weight: 800;
}

.release-health i {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .10);
}

.release-health-inline {
  justify-content: flex-start;
  padding-top: 0;
  border-top: 0;
}

.tool-original {
  margin: -.35rem 0 .8rem !important;
  color: var(--primary) !important;
  font-size: .9rem;
  font-weight: 800;
}

.official-name {
  display: inline-flex;
  margin: .15rem 0 .25rem;
  padding: .26rem .52rem;
  border: 1px solid rgba(34, 211, 238, .18);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(34, 211, 238, .07);
  font-size: .78rem;
  font-weight: 750;
}

.tool-card-current .tool-head {
  align-items: start;
}

.tool-card-current .tool-head h3 {
  margin-bottom: .25rem;
  font-size: 1.18rem;
}

.diagnostic-highlight {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(34, 211, 238, .26);
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(34, 211, 238, .08), rgba(59, 130, 246, .05)),
    var(--surface);
}

.diagnostic-highlight h2 {
  margin: .6rem 0 .5rem;
}

.diagnostic-highlight p {
  margin: 0;
  color: var(--muted);
}

.diagnostic-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: rgba(0, 0, 0, .15);
}

.diagnostic-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

@media (max-width: 1120px) {
  .suite-visual {
    max-width: 820px;
  }
}

@media (max-width: 760px) {
  .suite-tools {
    grid-template-columns: 1fr;
  }

  .suite-tool:last-child {
    grid-column: auto;
    width: 100%;
  }

  .diagnostic-highlight {
    grid-template-columns: 1fr;
  }

  .diagnostic-icon {
    width: 76px;
    height: 76px;
  }
}


/* ===== v0.8 documentation actions ===== */
.document-actions { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: flex-end; }
@media (max-width: 720px) { .document-actions { justify-content: flex-start; } }

/* ===== Accueil — alignement Diagnostic / Portail-Site ===== */
.home-panel-pair {
  align-items: stretch;
}

.home-panel-pair > .content-panel {
  height: 100%;
}

.home-panel-pair > .content-panel + .content-panel {
  margin-top: 0;
}

/* ===== À propos — alignement des paires de panneaux ===== */
.about-panel-pair {
  align-items: stretch;
}

.about-panel-pair > .content-panel {
  height: 100%;
}

.about-panel-pair > .content-panel + .content-panel {
  margin-top: 0;
}

/* ===== Téléchargement — alignement Installation / Intégrité ===== */
.download-panel-pair {
  align-items: stretch;
}

.download-panel-pair > .content-panel {
  height: 100%;
}

.download-panel-pair > .content-panel + .content-panel {
  margin-top: 0;
}

/* ===== Accueil — KPI responsive smartphone ===== */
@media (max-width: 620px) {
  .kpi-row.alt {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-row.alt .metric {
    min-width: 0;
  }

  .kpi-row.alt .metric span {
    overflow-wrap: anywhere;
  }
}

/* ===== Téléchargement — correction largeur mobile ===== */
.download-panel-pair > .content-panel {
  min-width: 0;
}

.download-panel-pair .command-box {
  max-width: 100%;
}

/* =========================================================
   Catalyst Site v1.0 — baseline validée PC + mobile
   ========================================================= */


/* ===== Bibliothèque de documentations utilisateur ===== */
.doc-library { padding-top: 3rem; }
.doc-library h2 { margin: .35rem 0 .5rem; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.doc-eyebrow, .doc-category-kicker {
  color: var(--primary); font-size: .85rem; font-weight: 800; letter-spacing: .055em;
  text-transform: uppercase;
}
.doc-local-notice { margin-bottom: 1.1rem; }
.doc-section-nav { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.8rem; }
.doc-section-nav a {
  display: inline-flex; align-items: center; gap: .6rem; padding: .65rem 1rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--text); text-decoration: none; font-weight: 750;
}
.doc-section-nav a:hover, .doc-section-nav a:focus-visible { border-color: var(--primary); color: var(--primary); }
.doc-category { scroll-margin-top: 100px; margin-top: 2.65rem; }
.doc-category-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-bottom: 1.1rem;
}
.doc-category-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: .3rem 0; }
.doc-category-head p { margin: .3rem 0 0; color: var(--muted); }
.doc-category-head > img { flex: none; max-width: 72px; height: 72px; object-fit: contain; }
.doc-guides-panel { padding: .35rem 1.25rem; }
.doc-guide-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
}
.doc-guide-row:last-child { border-bottom: 0; }
.doc-guide-row h4 { margin: 0; font-size: 1rem; }
.doc-guide-row p { margin: .2rem 0 0; color: var(--muted); }
.doc-pending { flex: none; }
.doc-tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.doc-tool-card { min-width: 0; display: flex; flex-direction: column; }
.doc-tool-top { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.doc-tool-top img { width: 64px; height: 64px; object-fit: contain; border-radius: 13px; flex: none; }
.doc-tool-top h4 { margin: 0 0 .35rem; font-size: 1.08rem; overflow-wrap: anywhere; }
.doc-tool-card > p { margin: .85rem 0 .75rem; }
.doc-tool-card > .card-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) {
  .doc-tools-grid { grid-template-columns: 1fr; }
  .doc-guide-row { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .doc-category-head > img { width: 55px; height: 55px; }
}
@media (prefers-reduced-motion: reduce) {
  .doc-tool-card, .doc-section-nav a { transition: none; }
}

/* Actions des guides PDF - mêmes boutons que le reste du portail */
.doc-guide-row > .button { flex: 0 0 auto; }
.doc-tool-card > .button { margin-top: auto; align-self: flex-start; }
.doc-tool-card > .card-link { margin-top: .85rem; }

/* Catalyst 2.0.5 — galerie AudioConverterEngine */
.audio-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin-top:1rem; }
.audio-gallery figure { min-width:0; margin:0; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:rgba(0,0,0,.12); }
.audio-gallery img { display:block; width:100%; height:180px; object-fit:contain; cursor:zoom-in; }
.audio-gallery figcaption { padding:.55rem .8rem; color:var(--muted); border-top:1px solid var(--line); font-size:.9rem; }
.page-tools-screenshot { border-radius:16px; overflow:hidden; border:1px solid var(--line); }
.page-tools-screenshot img { display:block; width:100%; height:auto; cursor:zoom-in; }
.suite-tools .suite-tool:last-child { grid-column:auto; width:auto; justify-self:stretch; }
@media (max-width:640px) { .audio-gallery { grid-template-columns:1fr; } .audio-gallery img { height:auto; max-height:260px; } }
