/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0b0d11;
  --bg-card:   #12151c;
  --bg-card2:  #181c25;
  --border:    #1e2330;
  --text:      #e2e8f0;
  --text-muted:#8892a4;
  --accent:    #6c63ff;
  --accent-2:  #a78bfa;
  --green:     #34d399;
  --red:       #f87171;
  --yellow:    #fbbf24;
  --radius:    12px;
  --font:      'Inter', system-ui, sans-serif;
  --mono:      'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }
.btn-primary  { background: var(--accent); color: #fff; }
.btn-secondary { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--text-muted); font-size: 0.9rem; padding: 8px 14px; }
.btn-ghost:hover { color: var(--text); }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 17, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 24px;
  height: 24px;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
.logo-accent { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ── */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}
.hero-inner { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}
.hero-logo {
  width: 56px;
  height: 56px;
  image-rendering: -webkit-optimize-contrast;
}
.hero-wordmark {
  font-family: var(--mono);
  font-size: 48px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 28px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-showcase {
  max-width: 860px;
  margin: 0 auto 36px;
}

.showcase-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1363 / 670;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #0d1016;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.showcase-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.showcase-img.is-active {
  opacity: 1;
  pointer-events: auto;
}

.showcase-dots {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.showcase-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.showcase-dot:hover {
  border-color: var(--accent-2);
}

.showcase-dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.15);
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* JetBrains Marketplace install widget */
.marketplace-install {
  display: flex;
  justify-content: center;
  flex-basis: 100%;
}
.marketplace-card {
  display: flex;
  justify-content: center;
  flex-basis: 100%;
}
.hero-marketplace-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 auto 40px;
}
.marketplace-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 0 auto 40px;
}
.marketplace-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.marketplace-badge-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.marketplace-embed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.marketplace-embed iframe {
  border: 0;
  max-width: 100%;
}
.marketplace-embed-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

.hero-notice {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 8px;
  padding: 12px 18px;
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}
.notice-icon { margin-right: 6px; }

/* ── Pillars ── */
.pillars {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.pillar { text-align: center; }
.pillar-icon { font-size: 2rem; margin-bottom: 12px; }
.pillar h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.pillar p  { font-size: 0.9rem; color: var(--text-muted); }

/* ── Section headers ── */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ── Packages ── */
.packages { padding: 88px 0; }
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.15s;
}
.package-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.package-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}
.package-card h3 {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.package-subtitle {
  font-size: 0.82rem;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 12px;
}
.package-card p:last-child {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Compare ── */
.compare {
  padding: 88px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.table-wrapper { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.compare-table th {
  text-align: left;
  padding: 12px 20px;
  background: var(--bg-card2);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.compare-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }
.compare-table .col-ideagent { background: rgba(108, 99, 255, 0.05); }
.compare-table th.col-ideagent { color: var(--accent-2); }
.check   { color: var(--green); font-size: 1rem; }
.cross   { color: var(--red); font-size: 1rem; }
.partial { color: var(--yellow); font-size: 0.88rem; }

/* ── Issues ── */
.issues { padding: 88px 0; }
.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.issue-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
}
.issue-card:hover {
  border-color: var(--accent-2);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}
.issue-icon { font-size: 1.4rem; flex-shrink: 0; }
.issue-label { flex: 1; }
.issue-arrow { color: var(--text-muted); font-size: 1.1rem; }

/* ── Footer ── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 460px;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ── Docs index (index.html) ── */
.docs { padding: 88px 0; }
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.doc-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
}
.doc-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}
.doc-card-icon { font-size: 1.7rem; margin-bottom: 12px; }
.doc-card h3 {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.doc-card .doc-card-sub {
  font-size: 0.82rem;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 12px;
}
.doc-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.doc-card-more {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
}

/* ── Doc page (component pages) ── */
.doc-hero {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--border);
}
.doc-hero .badge { margin-bottom: 20px; }
.doc-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: 16px; }
.doc-hero .doc-lede {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 720px;
}
.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.back-link:hover { color: var(--accent-2); text-decoration: none; }

.doc-body { padding: 56px 0 40px; }
.doc-body .container { max-width: 820px; }
.doc-section { margin-bottom: 56px; }
.doc-section:last-child { margin-bottom: 0; }
.doc-section > h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.doc-section > h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text);
}
.doc-section p { color: var(--text-muted); margin-bottom: 16px; }
.doc-section ul { list-style: none; margin: 0 0 16px; padding: 0; }
.doc-section ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text-muted);
}
.doc-section ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.doc-section ul li strong { color: var(--text); font-weight: 600; }
code, .kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--accent-2);
}

.callout {
  background: rgba(108, 99, 255, 0.06);
  border: 1px solid rgba(108, 99, 255, 0.22);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.callout strong { color: var(--text); }
.callout.warn {
  background: rgba(251, 191, 36, 0.06);
  border-color: rgba(251, 191, 36, 0.25);
  border-left-color: var(--yellow);
}

/* Security-policy notice inside the Why-IDEAgent section */
.notice-private {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 760px;
}
.notice-private .notice-icon {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4;
}
.notice-private a { color: var(--accent); }

/* Invisible alias so legacy #docs links still scroll to this section */
.anchor-alias {
  display: block;
  position: relative;
  top: -80px;
  visibility: hidden;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.spec-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.spec-item .spec-k {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 4px;
}
.spec-item .spec-v { font-size: 0.9rem; color: var(--text); }

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin: 24px 0;
}
.flow-step {
  flex: 1;
  min-width: 130px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.flow-step .flow-n {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}
.flow-step .flow-t { font-size: 0.9rem; font-weight: 600; margin: 4px 0; }
.flow-step .flow-d { font-size: 0.82rem; color: var(--text-muted); }

/* ── Architecture diagram (ASCII-style stack) ── */
.arch-diagram {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.5;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  color: var(--text-muted);
  white-space: pre;
  margin: 24px 0;
}
.arch-layer {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
.arch-layer .arch-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 6px;
  padding: 4px 8px;
  flex-shrink: 0;
}
.arch-layer .arch-text { font-size: 0.9rem; color: var(--text-muted); }
.arch-layer .arch-text strong { color: var(--text); }
.arch-arrow { text-align: center; color: var(--accent-2); font-size: 1.1rem; margin: 2px 0; }

/* ── Topology graph (node/edge diagram) ── */
.graph {
  margin: 28px 0 8px;
}
/* One horizontal tier of the graph (a run-context lane) */
.graph-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.graph-tier-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.22);
  border-radius: 100px;
  padding: 3px 12px;
  margin-bottom: 14px;
}
/* Row of sibling nodes */
.graph-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  width: 100%;
}
/* A node is a clickable graph vertex linking to a component page */
.node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 190px;
  max-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
a.node:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(108, 99, 255, 0.15);
  text-decoration: none;
  color: var(--text);
}
.node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.15);
}
.node-title {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
}
.node-sub { font-size: 0.78rem; color: var(--text-muted); }
.node-more { font-size: 0.74rem; font-weight: 600; color: var(--accent-2); margin-top: 2px; }
/* Non-link node (e.g. grouped machines) */
.node.is-static { cursor: default; }
.node.is-static .node-dot { background: var(--accent-2); }

/* A group wraps sibling nodes that form one logical unit (e.g. Project Context) */
.node-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.015);
}
.node-group-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--accent-2);
  font-weight: 600;
}
.node-group .graph-row { gap: 12px; }

/* Edges: connectors drawn between tiers/rows */
.edge {
  color: var(--accent-2);
  font-size: 1.3rem;
  line-height: 1;
  margin: 12px 0;
  text-align: center;
}
.edge-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Setup screenshots ── */
.setup-shot {
  margin: 20px 0 8px;
}
.setup-shot img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.setup-shot figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 720px;
}
.setup-shot figcaption strong {
  color: var(--text);
}
/* Simple ordered setup steps */
.setup-steps {
  margin: 12px 0 0;
  padding-left: 20px;
}
.setup-steps li {
  margin: 6px 0;
  line-height: 1.55;
}
.setup-steps code {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
}

/* ── Redaction hero ── */
.redaction {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(120% 100% at 80% 0%, rgba(108, 99, 255, 0.12), transparent 60%),
    var(--bg-card);
}
.redaction-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.redaction-copy .badge { margin-bottom: 20px; }
.redaction-title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.redaction-lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 22px;
}
.redaction-points {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}
.redaction-points li {
  position: relative;
  padding-left: 26px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.redaction-points li::before {
  content: "🛡️";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.95rem;
}
.redaction-points strong { color: var(--text); }
.redaction code, .whynot code {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--accent-2);
}

/* Redaction live-demo screenshot */
.redaction-demo { display: grid; gap: 10px; }
.redaction-shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}
.redaction-pane {
  background: #0d1016;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}
.redaction-pane-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
}
.redaction-pane-head .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-r { background: var(--red); }
.dot-y { background: var(--yellow); }
.dot-g { background: var(--green); }
.pane-label {
  margin-left: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-family: var(--mono);
}
.redaction-code {
  margin: 0;
  padding: 16px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
  color: var(--text);
}
.redaction-code .c-key { color: var(--text-muted); }
.redaction-code .c-val { color: var(--yellow); }
.redaction-code .c-red {
  color: var(--red);
  background: rgba(248, 113, 113, 0.12);
  border-radius: 4px;
  padding: 0 4px;
}
.redaction-arrow {
  text-align: center;
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--accent-2);
}

/* ── Why not X ── */
.whynot {
  padding: 88px 0;
}
.whynot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.whynot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: border-color 0.2s, transform 0.15s;
}
.whynot-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.whynot-card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.whynot-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .redaction-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn-ghost) { display: none; }
  .hero { padding: 64px 0 56px; }
  h1 { font-size: 1.85rem; }
  .packages-grid { grid-template-columns: 1fr; }
  .issues-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .whynot-grid { grid-template-columns: 1fr; }
  .flow-step { min-width: 100%; }
  .graph-row { flex-direction: column; align-items: stretch; }
  .node { max-width: 100%; min-width: 0; }
}
