/* DryRun Security — Capability Matrix */
/* Brand: #1A1825 bg, #272537 surface, #C8FF09 accent, #38D92D green, #3B1EF9 blue */

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

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:root {
  --bg-primary: #1A1825;
  --bg-secondary: #272537;
  --bg-surface: #2A2933;
  --bg-elevated: #33313F;
  --bg-hover: #3A3849;
  --border: rgba(255,255,255,0.08);
  --border-active: rgba(200,255,9,0.25);
  --text-primary: #FFFFFF;
  --text-secondary: #B0AEC0;
  --text-muted: #9896A8;
  --accent: #C8FF09;
  --accent-dim: rgba(200,255,9,0.15);
  --green: #38D92D;
  --green-dim: rgba(56,217,45,0.12);
  --blue: #3B1EF9;
  --purple: #6851FA;
  --red: #FF4D6A;
  --red-dim: rgba(255,77,106,0.12);
  --orange: #FF9F43;
  --orange-dim: rgba(255,159,67,0.12);
  --gray-dim: rgba(255,255,255,0.06);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 8px;
  --radius-sm: 5px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --transition: 180ms ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,24,37,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo { height: 42px; width: auto; }

.header-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.page-title {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--green);
  color: #000;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}
.btn-demo:hover { background: #4AE63D; transform: translateY(-1px); }

.btn-matrix {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all var(--transition);
}
.btn-matrix:hover { border-color: rgba(255,255,255,0.2); color: var(--text-primary); }

/* Hero */
.hero {
  padding: 48px 24px 32px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner { max-width: 640px; margin: 0 auto; }

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Controls */
.controls-bar {
  position: sticky;
  top: 60px;
  z-index: 90;
  background: rgba(26,24,37,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
}

.controls-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  flex: 0 0 260px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  padding: 8px 40px 8px 38px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
}
.search-wrap input:focus { border-color: var(--accent); }
.search-wrap input::placeholder { color: var(--text-muted); }

.search-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  pointer-events: none;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.vendor-toggles {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.vendor-toggle {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.vendor-toggle:hover { border-color: rgba(255,255,255,0.2); color: var(--text-secondary); }
.vendor-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vendor-toggle.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.vendor-toggle.is-dryrun {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-dim);
  cursor: default;
  font-weight: 700;
}

.view-toggles { display: flex; gap: 2px; }

.view-btn {
  padding: 5px 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.view-btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.view-btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.view-btn:not(:first-child) { border-left: none; }
.view-btn:hover { color: var(--text-secondary); }
.view-btn.active { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }
.view-btn.active + .view-btn { border-left-color: var(--accent); }

.btn-reset {
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-reset:hover { color: var(--red); border-color: var(--red); }

/* Stats Bar */
.stats-bar {
  padding: 10px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}

.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.stat-dot.yes { background: var(--green); }
.stat-dot.partial { background: var(--orange); }
.stat-dot.no { background: var(--red); }

.stat-label { color: var(--text-muted); }
.stat-value { color: var(--text-primary); font-weight: 700; font-family: var(--mono); }

.stat-separator {
  width: 1px;
  height: 16px;
  background: var(--border);
}

/* Matrix */
.matrix-section {
  padding: 0 24px 40px;
}

.matrix-wrap {
  max-width: 1600px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  box-shadow: var(--shadow);
  position: relative;
  /* NO overflow-x here — it would create a scroll container that
     captures position:sticky, breaking thead viewport-relative sticking.
     Horizontal scroll is handled by the page body when many vendors are active. */
}

/* Horizontal scrolling: when many vendors are enabled, the table naturally
   grows beyond the viewport. The page body handles the horizontal scroll.
   No overflow-x on .matrix-wrap or any inner wrapper — that would create
   a scroll container capturing position:sticky (per CSS spec, overflow-x:auto
   forces overflow-y:auto), breaking thead viewport-relative sticking. */

/* Scroll affordance: right-edge fade when table is wider than viewport */
.matrix-wrap.has-scroll::after {
  content: '';
  display: block;
  width: 48px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--bg-primary));
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  transition: opacity 0.3s ease;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  table-layout: auto;
}

/* Thead */
.matrix-table thead th {
  position: sticky;
  top: var(--thead-top, 0px);
  z-index: 10;
  background: var(--bg-primary);
  padding: 14px 12px;
  text-align: center;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.matrix-table thead th.th-capability {
  text-align: left;
  min-width: 200px;
  position: sticky;
  left: 0;
  z-index: 20;
  background: var(--bg-primary);
}

.matrix-table thead th.th-dryrun {
  color: var(--green);
  background: linear-gradient(180deg, rgba(56,217,45,0.08) 0%, var(--bg-primary) 100%);
  width: var(--vendor-col-width, auto);
  min-width: 80px;
  max-width: var(--vendor-col-width, none);
}

.matrix-table thead th.th-vendor { 
  width: var(--vendor-col-width, auto);
  min-width: 80px;
  max-width: var(--vendor-col-width, none);
}

/* Subtle vertical borders between vendor columns */
.cap-row td:not(.td-capability) {
  border-left: 1px solid rgba(255,255,255,0.04);
}

/* Category rows */
.category-row td {
  padding: 10px 12px;
  background: var(--bg-primary);
  border-top: 2px solid rgba(200,255,9,0.12);
  border-bottom: 1px solid var(--border);
}

.category-name {
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 1px 7px;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: 0;
}

/* Capability rows */
.cap-row td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  transition: background var(--transition);
}

.cap-row:hover td { background: rgba(255,255,255,0.02); }

.cap-row td.td-capability {
  position: sticky;
  left: 0;
  z-index: 5;
  background: var(--bg-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  min-width: 200px;
  max-width: 250px;
}
.cap-row:hover td.td-capability { background: var(--bg-elevated); }

.cap-row td.td-dryrun {
  background: rgba(56,217,45,0.04);
  border-left: 2px solid rgba(56,217,45,0.15);
  border-right: 2px solid rgba(56,217,45,0.15);
  text-align: center;
  width: var(--vendor-col-width, auto);
}
.cap-row:hover td.td-dryrun { background: rgba(56,217,45,0.08); }

.cap-row td.td-vendor {
  text-align: center;
  width: var(--vendor-col-width, auto);
}

/* Highlight row (approach/differentiator) */
.cap-row.highlight-row td {
  background: rgba(200,255,9,0.03);
  border-bottom: 1px solid rgba(200,255,9,0.1);
}
.cap-row.highlight-row td.td-capability {
  background: rgba(200,255,9,0.06);
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: default;
  transition: transform var(--transition);
}
.status-badge:hover { transform: scale(1.15); }

.status-badge.s-yes { background: var(--green-dim); color: var(--green); }
.status-badge.s-partial { background: var(--orange-dim); color: var(--orange); }
.status-badge.s-no { background: var(--red-dim); color: var(--red); }
.status-badge.s-na { background: var(--gray-dim); color: var(--text-muted); font-size: 0.72rem; font-weight: 700; }
.status-badge.s-info { background: rgba(96,165,250,0.12); color: rgba(96,165,250,0.9); }

/* Info cell (approach/differentiator) */
.info-cell {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-secondary);
  text-align: left;
  padding: 6px 0;
  max-width: 100%;
}
.td-dryrun .info-cell {
  color: var(--green);
  font-weight: 600;
}

/* Cell with tooltip text */
.cell-has-detail { cursor: pointer; position: relative; }
.cell-has-detail:hover .status-badge { transform: scale(1.15); }

/* Tooltip */
.cell-tooltip {
  position: fixed;
  z-index: 200;
  max-width: 360px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-active);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-secondary);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 150ms ease, transform 150ms ease;
}
.cell-tooltip.visible { opacity: 1; transform: translateY(0); }
.cell-tooltip .tip-vendor {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cell-tooltip .tip-cap {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Matched search highlight */
.search-match td.td-capability { color: var(--accent); }
.search-no-match { display: none !important; }

/* Hidden vendor columns */
.col-hidden { display: none; }

/* ===== Header Nav Updates ===== */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav a {
  padding: 6px 14px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: color var(--transition);
}
.header-nav a:hover { color: var(--text-primary); }
.header-nav a.active {
  color: var(--text-primary);
  border-bottom: 2px solid var(--green);
  border-radius: 0;
  padding-bottom: 4px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-get-started {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text-primary);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all var(--transition);
  background: transparent;
}
.btn-get-started:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Social Proof Section ===== */
.social-proof {
  padding: 64px 24px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.social-proof-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Stats bar */
.sp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}

.sp-stat {
  background: var(--bg-secondary);
  padding: 28px 24px;
  text-align: center;
}

.sp-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.sp-stat-number.sp-stat-text {
  font-size: 1.35rem;
  letter-spacing: 0;
}

.sp-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Quotes grid */
.sp-quotes-header {
  text-align: center;
  margin-bottom: 32px;
}

.sp-quotes-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}

.sp-quotes-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.sp-quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.sp-quote-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: border-color var(--transition);
}

.sp-quote-card:hover { border-color: rgba(200,255,9,0.2); }

.sp-quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  font-family: Georgia, serif;
  margin-bottom: 12px;
  display: block;
  opacity: 0.7;
}

.sp-quote-text {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-style: italic;
}

.sp-quote-author {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sp-quote-author strong {
  color: var(--text-secondary);
  display: block;
  margin-bottom: 2px;
}

/* G2 recognition bar */
.sp-g2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.sp-g2-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sp-g2-badge-icon {
  width: 44px;
  height: 44px;
  background: #FF492C;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.sp-g2-badge-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sp-g2-badge-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sp-g2-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.sp-g2-link {
  padding: 8px 20px;
  border: 1px solid rgba(200,255,9,0.3);
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all var(--transition);
  background: var(--accent-dim);
}
.sp-g2-link:hover { background: rgba(200,255,9,0.2); border-color: var(--accent); }

/* ===== Full Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
  padding: 0;
}

.footer-main {
  padding: 56px 24px 40px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
  gap: 48px;
}

.footer-col-logo .footer-logo-img {
  height: 28px;
  width: auto;
  margin-bottom: 20px;
  display: block;
}

.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  width: fit-content;
}

.footer-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-primary); }

.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer-social-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-social-links a:hover { color: var(--text-primary); }

.footer-social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.6;
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-legal a {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--text-secondary); }

.footer-legal-sep {
  color: var(--border);
  font-size: 0.78rem;
}

/* Legacy footer classes (for sources notes) */
.footer-source {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 6px;
}

.footer-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  opacity: 0.7;
}

.footer-logo-link { text-decoration: none; display: inline-block; }
.footer-logo { height: 24px; width: auto; opacity: 0.5; margin-bottom: 8px; }

/* DryRun advantage highlight glow */
.dryrun-advantage td.td-dryrun {
  background: rgba(56,217,45,0.1);
}

/* SCM Platform Tags */
.scm-cell { text-align: center !important; line-height: 1.8; }
.scm-tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 10px;
  margin: 1px 1px;
  font-weight: 500;
  white-space: nowrap;
}
.scm-tag.github { border: 1px solid rgba(255,255,255,0.25); color: #e6e6e6; }
.scm-tag.gitlab { border: 1px solid rgba(252,109,38,0.4); color: #FC6D26; }
.scm-tag.bitbucket { border: 1px solid rgba(38,132,255,0.4); color: #2684FF; }
.scm-tag.ado { border: 1px solid rgba(0,120,212,0.4); color: #0078D4; }
.scm-tag.indirect { border: 1px solid rgba(255,255,255,0.1); color: var(--text-muted); font-style: italic; }

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 1.5rem; }
  .controls-inner { gap: 12px; }
  .search-wrap { flex: 1 1 100%; }
  .vendor-toggles { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .header-nav {
    display: flex;
    gap: 12px;
    order: 10;
    width: 100%;
    justify-content: center;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 6px;
  }
  .header-nav a {
    font-size: 0.72rem;
    padding: 2px 0;
  }
  /* Hide external links on mobile nav — keep internal only */
  .header-nav a[target="_blank"] { display: none; }
  .header-right .btn-get-started { display: none; }

  /* Social proof responsive */
  .sp-stats { grid-template-columns: repeat(2, 1fr); }
  .sp-quotes-grid { grid-template-columns: 1fr; }
  .sp-g2 { gap: 20px; flex-direction: column; text-align: center; }
  .sp-g2-divider { width: 80%; height: 1px; }

  /* Footer responsive */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-legal { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 600px) {
  /* --- Prevent horizontal overflow on mobile --- */
  html, body { overflow-x: hidden; }

  /* --- Header: compact on mobile --- */
  .header-inner { height: auto; padding: 8px 12px; flex-wrap: wrap; }
  .logo { height: 32px; }
  .header-right { gap: 6px; }
  .header-right .btn-get-started { display: none; }
  .btn-demo { font-size: 0.75rem; padding: 6px 12px; }

  /* --- Controls: collapse to save vertical space --- */
  .controls-bar { top: 48px; padding: 8px 12px; }
  .controls-inner { gap: 8px; }
  .search-wrap { flex: 1 1 100%; }
  .search-wrap input { font-size: 0.85rem; padding: 6px 12px 6px 32px; }
  .search-icon { left: 10px; top: 8px; font-size: 0.85rem; }
  .vendor-toggles { gap: 4px; flex-wrap: wrap; overflow-x: visible; max-width: 100%; }
  .vendor-toggle { font-size: 0.65rem; padding: 3px 8px; }
  .view-toggles { gap: 2px; }
  .view-btn { font-size: 0.7rem; padding: 3px 8px; }
  .stats-row { font-size: 0.7rem; gap: 8px; flex-wrap: wrap; }

  /* --- Hero: tighter on mobile --- */
  .hero { padding: 20px 12px 12px; }
  .hero-label { font-size: 0.65rem; }
  .hero-title { font-size: 1.25rem; }
  .hero-subtitle { font-size: 0.8rem; }

  /* --- Matrix table: stacked card layout on mobile --- */

  /* Remove horizontal scroll — stacked cards on mobile */
  .matrix-wrap {
    overflow-x: hidden;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .matrix-wrap::after {
    display: none;
  }

  /* Make all table elements block-level */
  .matrix-table,
  .matrix-table thead,
  .matrix-table tbody,
  .matrix-table tr,
  .matrix-table th,
  .matrix-table td {
    display: block;
  }

  /* Hide the thead — column headers not needed in card layout */
  .matrix-table thead {
    display: none;
  }

  /* Category rows become section dividers */
  .category-row td {
    padding: 12px 0 4px !important;
    background: transparent !important;
    border-top: none !important;
    border-bottom: none !important;
  }
  .category-name { font-size: 0.75rem; }
  .category-count { font-size: 0.6rem; padding: 1px 5px; }

  /* Each capability row becomes a card */
  .cap-row {
    background: #272537;
    border-radius: 8px;
    margin-bottom: 6px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.06);
  }

  /* Capability name is the card title */
  .cap-row .td-capability {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0 0 8px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    margin-bottom: 6px;
    min-width: unset !important;
    max-width: unset !important;
    position: static !important;
    background: transparent !important;
    color: var(--text-primary);
  }
  .cap-row:hover .td-capability {
    background: transparent !important;
  }

  /* Each vendor td is a row: [label] [badge] [detail] */
  .cap-row td:not(.td-capability) {
    display: flex !important;
    align-items: center;
    padding: 4px 0 !important;
    border: none !important;
    min-width: unset !important;
    max-width: unset !important;
    background: transparent !important;
    position: static !important;
  }

  /* Vendor name shown via ::before using data-label */
  .cap-row td:not(.td-capability)::before {
    content: attr(data-label);
    display: inline-block;
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: left;
    flex-shrink: 0;
  }

  /* Badge gets fixed width for alignment */
  .cap-row td:not(.td-capability) .status-badge {
    flex-shrink: 0;
  }

  /* Show detail text inline on mobile */
  .cap-row td:not(.td-capability) .cell-detail {
    font-size: 0.72rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 8px;
  }

  /* DryRun row gets accent left border */
  .cap-row .td-dryrun {
    border-left: 2px solid #C8FF09 !important;
    padding-left: 8px !important;
    margin-left: -4px;
    background: transparent !important;
    border-right: none !important;
  }

  /* Hidden columns stay hidden */
  .cap-row td.col-hidden {
    display: none !important;
  }

  /* Status badges keep same size */
  .status-badge { width: 22px; height: 22px; font-size: 0.65rem; flex-shrink: 0; }

  /* Highlight rows — subtle in card context */
  .cap-row.highlight-row {
    border-color: rgba(200,255,9,0.12);
  }
  .cap-row.highlight-row .td-capability {
    color: var(--accent) !important;
  }
  .cap-row:hover td { background: transparent !important; }

  /* --- Tooltip: position better on mobile --- */
  .cell-tooltip { font-size: 0.7rem; max-width: 260px; }

  /* --- Social proof: mobile --- */
  .social-proof { padding: 40px 12px; }
  .sp-section-title { font-size: 1.1rem; }
  .sp-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sp-stat-number { font-size: 1.5rem; }
  .sp-stat-label { font-size: 0.7rem; }
  .sp-quote-card { padding: 20px 16px; }
  .sp-quote-text { font-size: 0.85rem; }
  .sp-quote-mark { font-size: 1.5rem; }

  /* --- Footer: single column on mobile --- */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding: 40px 12px 20px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-legal { flex-wrap: wrap; gap: 12px; }
}

/* ===== Prepared-For Banner ===== */
/* Back to Matrix bar */
.back-bar {
  background: rgba(200,255,9,0.06);
  border-bottom: 1px solid rgba(200,255,9,0.12);
  padding: 8px 24px;
  text-align: left;
}
.back-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.back-link:hover {
  text-decoration: underline;
}

.prepared-banner {
  width: 100%;
  background: rgba(200,255,9,0.08);
  border-bottom: 1px solid rgba(200,255,9,0.2);
  padding: 8px 24px;
  text-align: center;
}

.prepared-banner-text {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.prepared-banner-text strong {
  font-weight: 700;
}

/* ===== Share Page ===== */
.share-hero {
  padding: 48px 24px 32px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border);
}

.share-hero-inner {
  max-width: 600px;
  margin: 0 auto;
}

.share-steps {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.share-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 2px;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-description {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: -8px;
}

.selection-counter {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--mono);
  transition: all var(--transition);
}

.selection-counter.has-selection {
  color: var(--accent);
  border-color: var(--border-active);
  background: var(--accent-dim);
}

.vendor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.vendor-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.vendor-card:hover:not(.disabled):not(.is-dryrun) {
  border-color: rgba(255,255,255,0.18);
  background: var(--bg-elevated);
}

.vendor-card.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.vendor-card.selected:hover {
  border-color: var(--accent);
  background: rgba(200,255,9,0.12);
}

.vendor-card.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.vendor-card.is-dryrun {
  border-color: var(--green);
  background: var(--green-dim);
  cursor: default;
  order: -1;
}

.vendor-card-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  background: var(--bg-primary);
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 0.65rem;
  color: transparent;
}

.vendor-card.selected .vendor-card-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.vendor-card.is-dryrun .vendor-card-check {
  background: var(--green);
  border-color: var(--green);
  color: #000;
}

.vendor-card-info {
  flex: 1;
  min-width: 0;
}

.vendor-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vendor-card.is-dryrun .vendor-card-name {
  color: var(--green);
}

.vendor-card-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.vendor-card.is-dryrun .vendor-card-tag {
  color: rgba(56,217,45,0.7);
}

/* For input (Step 2) */
.for-input-wrap {
  position: relative;
}

.for-input {
  width: 100%;
  max-width: 480px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}

.for-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,255,9,0.08);
}

.for-input::placeholder {
  color: var(--text-muted);
}

.for-input-helper {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* URL Output section */
.url-output-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 200ms ease;
}

.url-output-section.hidden {
  display: none;
}

.url-output-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.url-output-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.url-output {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.78rem;
  outline: none;
  cursor: text;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.copy-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  background: var(--accent);
  color: #000;
  font-family: var(--font);
  font-size: 0.83rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-btn:hover {
  background: #d4ff2a;
  transform: translateY(-1px);
}

.copy-btn.copied {
  background: var(--green);
}

.url-output-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.preview-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition);
}

.preview-link:hover {
  color: var(--text-primary);
}

.preview-link svg {
  opacity: 0.6;
}

/* Share page responsive */
@media (max-width: 720px) {
  .vendor-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .vendor-grid { grid-template-columns: 1fr; }
  .url-output-row { flex-direction: column; }
  .copy-btn { width: 100%; justify-content: center; }
  .share-steps { padding: 24px 16px 48px; }
}

/* Scrollbar */
/* Styled horizontal scrollbar for page-level scroll (when many vendors active) */
html::-webkit-scrollbar { height: 8px; }
html::-webkit-scrollbar-track { background: var(--bg-primary); }
html::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; }
html::-webkit-scrollbar-thumb:hover { background: var(--bg-hover); }

/* CTA Section */
.cta-section {
  padding: 60px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-top: 1px solid var(--border);
}
.cta-inner { max-width: 500px; margin: 0 auto; }
.cta-inner h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.cta-inner p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.btn-demo-lg {
  display: inline-flex;
  padding: 12px 32px;
  background: var(--green);
  color: #000;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 180ms ease;
}
.btn-demo-lg:hover { background: #4AE63D; transform: translateY(-1px); }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.matrix-table tbody { animation: fadeIn 400ms ease; }

/* Compare mode highlight */
.compare-winner td.td-dryrun .status-badge.s-yes {
  box-shadow: 0 0 0 2px var(--green), 0 0 12px rgba(56,217,45,0.3);
}
