/*
 * apex-v3.css — strategic refactor of voiddo.com homepage
 * Locked: 2026-04-30 evening pass 10
 * Spec:    /var/www/voiddo.com/brand-spec.md
 * Layered on top of style.css (does not replace existing tokens).
 */

:root {
  --apex-card-bg:           rgba(20, 32, 56, 0.55);
  --apex-card-border:       rgba(160, 200, 255, 0.10);
  --apex-card-hover-border: rgba(136, 68, 255, 0.42);
  --apex-card-hover-bg:     rgba(28, 42, 72, 0.65);
  --apex-shadow-soft:       0 1px 2px rgba(0,0,0,0.25);
  --apex-shadow-hover:      0 12px 36px rgba(136, 68, 255, 0.16);
}

/* ========== Matrix backdrop fix ==========
 * The matrix canvas sits at z-index -1 below body bg by default —
 * lift it above body gradient and bump opacity so it's visibly running.
 */
canvas#matrix-overlay {
  z-index: 0 !important;
  opacity: 0.32 !important;
  mix-blend-mode: screen;
}

body { position: relative; }
.site-header,
main,
.watermark-strip,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ========== Hero ========== */

.apex-hero {
  padding: 116px 0 72px;
  position: relative;
}

.apex-hero-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

/* When emblem is present beside the wordmark, switch to two columns. */
.apex-hero-row:has(.apex-hero-emblem) {
  grid-template-columns: auto 1fr;
}

.apex-hero-mark-col { min-width: 0; }

.apex-mark {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.9;
  font-size: clamp(5rem, 14vw, 9.5rem);
  color: var(--text-0);
  margin: 0 0 1.4rem;
  text-rendering: geometricPrecision;
}

.apex-mark-glyph .void-o {
  color: var(--violet);
  text-shadow: 0 0 36px rgba(136, 68, 255, 0.55);
}

.apex-pitch {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--text-1);
  max-width: 38rem;
  line-height: 1.55;
  margin: 0;
}

/* Emblem column — RESTORED 2026-05-02 evening per owner CANON
   («лого студии должно быть на главной всегда»). Sits beside the wordmark
   on the apex hero. Soft violet/teal aura behind keeps it from feeling
   like a sticker. */
.apex-hero-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.apex-hero-emblem::before {
  content: '';
  position: absolute;
  inset: 12% 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(136, 68, 255, 0.28), rgba(0, 246, 208, 0.09) 55%, transparent 80%);
  filter: blur(30px);
  z-index: 0;
}

.apex-hero-emblem img {
  width: clamp(200px, 22vw, 320px);
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 28px rgba(136, 68, 255, 0.28));
}

/* ========== Section frame ========== */

.apex-section {
  padding: 64px 0;
  border-top: 1px solid rgba(160, 200, 255, 0.06);
}

.apex-kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 28px;
}
.apex-kicker-tight { margin-bottom: 8px; }

/* ========== Flagship cards ========== */

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

.flagship-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 26px;
  border-radius: 16px;
  background: var(--apex-card-bg);
  border: 1px solid var(--apex-card-border);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--apex-shadow-soft);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  min-height: 180px;
  position: relative;
}

.flagship-card:hover {
  transform: translateY(-2px);
  border-color: var(--apex-card-hover-border);
  background: var(--apex-card-hover-bg);
  box-shadow: var(--apex-shadow-hover);
}

.flagship-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  border: 1px solid rgba(160, 200, 255, 0.14);
  background: rgba(8, 14, 28, 0.65);
}

.flagship-mark {
  color: var(--text-0);
  white-space: nowrap;
}

.flagship-wordmark {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin-bottom: 18px;
  color: #f3e4bd;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}
.flagship-wordmark span {
  color: #ff4b31;
  letter-spacing: -0.02em;
}

/* product-specific accents — restrained, just the icon background */
.flagship-scrb    .flagship-icon { background: linear-gradient(135deg, #2a1d18, #14110f); border-color: rgba(225, 156, 100, 0.20); }
.flagship-scrb    .flagship-mark { color: #f0d5b8; }
.flagship-rankd   .flagship-icon { background: linear-gradient(135deg, #2a2018, #14120f); border-color: rgba(255, 184, 92, 0.20); }
.flagship-rankd   .flagship-mark { color: #ffcb7a; }
.flagship-tells   .flagship-icon { background: linear-gradient(135deg, #0f1820, #07101a); border-color: rgba(65, 224, 254, 0.32); }
.flagship-tells   .flagship-mark { color: #41e0fe; font-family: 'JetBrains Mono', monospace; letter-spacing: -0.02em; }

.flagship-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-0);
  margin: 0 0 6px;
}

.flagship-pitch {
  font-size: 0.95rem;
  color: var(--text-1);
  line-height: 1.5;
  margin: 0 0 14px;
}

/* ========== urweb home acquisition branches ========== */

.urweb-branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* ========== scrb paid acquisition wedge on portal home ========== */

.scrb-repair-band {
  padding-top: 6px;
}

.scrb-repair-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.scrb-repair-card,
.scrb-repair-proof-panel {
  border-radius: 20px;
  border: 1px solid rgba(236, 173, 135, 0.16);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  position: relative;
}

.scrb-repair-card::before,
.scrb-repair-proof-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(255, 226, 183, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 60%);
}

.scrb-repair-card > *,
.scrb-repair-proof-panel > * {
  position: relative;
  z-index: 1;
}

.scrb-repair-card {
  padding: 28px 28px 26px;
  background:
    linear-gradient(145deg, rgba(68, 26, 22, 0.96), rgba(24, 12, 18, 0.97)),
    linear-gradient(145deg, #291117, #120d12);
  color: #ffe9d7;
}

.scrb-repair-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.scrb-repair-label,
.scrb-repair-price,
.scrb-repair-proof-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.scrb-repair-label {
  color: #f2c9a8;
}

.scrb-repair-price {
  color: #2a1812;
  background: linear-gradient(135deg, #ffd79f, #ffb98a);
  border: 1px solid rgba(44, 20, 10, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
  box-shadow: 0 10px 26px rgba(255, 191, 124, 0.22);
}

.scrb-repair-card h2 {
  margin: 0 0 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff4e9;
  max-width: 13ch;
}

.scrb-repair-card p {
  margin: 0;
  color: #f3d8c7;
  font-size: 1rem;
  line-height: 1.66;
  max-width: 60ch;
}

.scrb-repair-points {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.scrb-repair-points li {
  position: relative;
  padding-left: 17px;
  color: #f6ddcf;
  font-size: 0.9rem;
  line-height: 1.55;
}

.scrb-repair-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffce9f;
  box-shadow: 0 0 18px rgba(255, 206, 159, 0.35);
}

.scrb-repair-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.scrb-repair-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 214, 168, 0.18);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.scrb-repair-actions a:first-child {
  color: #24120d;
  background: linear-gradient(135deg, #ffd79f, #ffb180);
  border-color: rgba(64, 28, 13, 0.34);
  box-shadow: 0 14px 30px rgba(255, 177, 128, 0.22);
}

.scrb-repair-actions a:last-child {
  color: #ffe7d9;
  background: rgba(255, 255, 255, 0.04);
}

.scrb-repair-actions a:hover {
  transform: translateY(-1px);
}

.scrb-repair-proof {
  display: grid;
  gap: 14px;
}

.scrb-repair-proof-panel {
  padding: 22px 20px;
  background:
    linear-gradient(145deg, rgba(22, 18, 30, 0.94), rgba(11, 12, 18, 0.96)),
    linear-gradient(145deg, #17121d, #0d1016);
}

.scrb-repair-proof-panel-accent {
  background:
    linear-gradient(145deg, rgba(54, 30, 20, 0.95), rgba(18, 12, 16, 0.97)),
    linear-gradient(145deg, #221319, #120f14);
}

.scrb-repair-proof-meta {
  display: inline-block;
  margin-bottom: 10px;
  color: #f0bf9c;
}

.scrb-repair-proof-panel h3 {
  margin: 0 0 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: #fff1e6;
}

.scrb-repair-proof-panel p,
.scrb-repair-proof-list li {
  color: #d8c7bc;
  font-size: 0.92rem;
  line-height: 1.6;
}

.scrb-repair-proof-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.scrb-repair-proof-list li {
  position: relative;
  padding-left: 15px;
}

.scrb-repair-proof-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ffbe95;
}

.urweb-branch-card {
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  position: relative;
  overflow: hidden;
}

.urweb-branch-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 60%);
  pointer-events: none;
}

.urweb-branch-card > * {
  position: relative;
  z-index: 1;
}

.urweb-branch-card-creator {
  background:
    linear-gradient(145deg, rgba(70, 26, 20, 0.92), rgba(23, 12, 20, 0.94)),
    linear-gradient(145deg, #23111b, #120d12);
  color: #ffe7d4;
}

.urweb-branch-card-legal {
  background:
    linear-gradient(145deg, rgba(17, 25, 23, 0.94), rgba(10, 16, 15, 0.97)),
    linear-gradient(145deg, #0f1714, #0c100f);
  color: #e8f7ee;
}

.urweb-branch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.urweb-branch-label,
.urweb-branch-price {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.urweb-branch-label {
  color: rgba(255, 255, 255, 0.74);
}

.urweb-branch-price {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff6ef;
}

.urweb-branch-card h4 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #fff8f1;
}

.urweb-branch-card p {
  margin: 0 0 16px;
  color: rgba(255, 248, 241, 0.82);
  line-height: 1.58;
}

.urweb-branch-points {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.urweb-branch-points li {
  padding-left: 18px;
  position: relative;
  color: rgba(255, 248, 241, 0.92);
  line-height: 1.5;
}

.urweb-branch-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.7;
}

.urweb-branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.urweb-branch-actions a {
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.urweb-branch-actions a:hover {
  transform: translateY(-1px);
}

.urweb-branch-card-creator .urweb-branch-actions a:first-child {
  background: #f48a52;
  color: #1f1013;
}

.urweb-branch-card-creator .urweb-branch-actions a:last-child {
  color: #ffe7d4;
  border: 1px solid rgba(255, 231, 212, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.urweb-branch-card-legal .urweb-branch-actions a:first-child {
  background: #d6ff6b;
  color: #14200f;
}

.urweb-branch-card-legal .urweb-branch-actions a:last-child {
  color: #ebf8ef;
  border: 1px solid rgba(214, 255, 107, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

/* ========== fresh public routes / proof surfaces ========== */

.apex-fresh-routes {
  position: relative;
}

.apex-fresh-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.apex-fresh-title {
  margin: 0 0 10px;
  max-width: 14ch;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text-0);
}

.apex-fresh-copy {
  margin: 0;
  max-width: 56rem;
  color: var(--text-2);
  line-height: 1.65;
}

.apex-fresh-all {
  flex: 0 0 auto;
  align-self: center;
  text-decoration: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid rgba(160, 200, 255, 0.16);
  border-radius: 999px;
  padding: 12px 15px;
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.14s ease, border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}

.apex-fresh-all:hover {
  transform: translateY(-1px);
  color: var(--text-0);
  border-color: rgba(160, 200, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.apex-fresh-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.apex-fresh-card {
  position: relative;
  overflow: hidden;
  min-height: 276px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px 22px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.apex-fresh-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 66%);
  pointer-events: none;
}

.apex-fresh-card > * {
  position: relative;
  z-index: 1;
}

.apex-fresh-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.34);
}

.apex-fresh-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.69rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
}

.apex-fresh-card h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fffefc;
}

.apex-fresh-card p {
  margin: 0;
  color: rgba(255, 252, 246, 0.84);
  line-height: 1.58;
}

.apex-fresh-cta {
  margin-top: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff4d1;
}

.apex-fresh-card-boundary {
  background:
    linear-gradient(148deg, rgba(17, 38, 63, 0.96), rgba(5, 14, 27, 0.97)),
    linear-gradient(148deg, #10243a, #07131f);
}

.apex-fresh-card-soft {
  background:
    linear-gradient(148deg, rgba(67, 27, 46, 0.96), rgba(21, 8, 19, 0.97)),
    linear-gradient(148deg, #3b1a2d, #140b15);
}

.apex-fresh-card-ambiguity {
  background:
    linear-gradient(148deg, rgba(54, 37, 13, 0.96), rgba(20, 12, 6, 0.97)),
    linear-gradient(148deg, #3b2a11, #161008);
}

.apex-fresh-card-proof {
  background:
    linear-gradient(148deg, rgba(57, 40, 18, 0.96), rgba(21, 15, 10, 0.97)),
    linear-gradient(148deg, #392818, #16100b);
}

.flagship-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
  margin: auto 0 0;
}

/* ========== "More in the studio" portal nav ========== */

.apex-portal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.apex-portal-list li {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(160, 200, 255, 0.10);
}

.apex-portal-list li:last-child { border-bottom: 0; }

.apex-portal-list a {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-0);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
  min-width: 200px;
  transition: color 0.14s ease;
}

.apex-portal-list a:hover { color: var(--violet); }

.apex-portal-list span {
  font-size: 0.9rem;
  color: var(--text-3);
  font-style: italic;
}

/* ========== From-the-studio tile ========== */

.studio-tile-link {
  display: block;
  padding: 28px 26px;
  border-radius: 16px;
  background: var(--apex-card-bg);
  border: 1px solid var(--apex-card-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.studio-tile-link:hover {
  transform: translateY(-2px);
  border-color: var(--apex-card-hover-border);
  background: var(--apex-card-hover-bg);
}

.studio-tile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.studio-tile-title {
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 600;
  color: var(--text-0);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.4;
}

.studio-tile-arrow {
  font-size: 2rem;
  color: var(--violet);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  flex: 0 0 auto;
}

/* ========== Footer v4 — 4 cols, 16 visible links + canon line ========== */

.footer-v4 {
  background: rgba(5, 9, 20, 0.85);
  border-top: 1px solid rgba(160, 200, 255, 0.08);
  padding: 56px 0 32px;
  margin-top: 72px;
}

.footer-v4-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.fv4-brand-col .footer-brand {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-0);
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.fv4-tagline {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 24rem;
  margin: 0 0 14px;
}

.fv4-social {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.fv4-social .social-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(160, 200, 255, 0.10);
  color: var(--text-2);
  transition: color 0.14s ease, border-color 0.14s ease;
}
.fv4-social .social-icon-btn:hover {
  color: var(--violet);
  border-color: rgba(136, 68, 255, 0.35);
}

.fv4-address {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
  margin: 0;
}

.fv4-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 14px;
  font-weight: 600;
}

.fv4-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fv4-col a {
  color: var(--text-1);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.12s ease;
}
.fv4-col a:hover { color: var(--violet); }

.fv4-bottom {
  font-size: 0.82rem;
  color: var(--text-3);
  border-top: 1px solid rgba(160, 200, 255, 0.06);
  padding-top: 24px;
  line-height: 1.6;
}
.fv4-bottom a { color: var(--text-1); text-decoration: none; }
.fv4-bottom a:hover { color: var(--violet); }

/* ========== Demoted-tells / shipping-next pattern (locked 2026-05-01) ========== */

/* scrb hero card — full-width, dominant. Owner directive: «scrb главный наш флагман». */
.flagship-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 36px 40px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(110, 90, 255, 0.10) 0%, rgba(14, 22, 40, 0.50) 100%);
  border: 1px solid rgba(180, 160, 255, 0.22);
  box-shadow: 0 24px 80px -32px rgba(110, 90, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.flagship-hero:hover {
  transform: translateY(-3px);
  border-color: rgba(180, 160, 255, 0.55);
  box-shadow: 0 32px 96px -32px rgba(110, 90, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.flagship-icon-xl {
  width: 92px; height: 92px;
  font-size: 1.18rem;
  margin-bottom: 0;
}
.flagship-wordmark-xl {
  font-size: clamp(3.1rem, 9vw, 5.8rem);
  margin: 0;
  flex: 0 0 auto;
}
.flagship-hero-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.flagship-hero-row {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
}
.flagship-name-xl {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-0);
  margin: 0;
  line-height: 1;
}
.flagship-pitch-xl {
  font-size: 1.08rem;
  color: var(--text-1);
  line-height: 1.5;
  margin: 0;
}
.flagship-hero-badge {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b8a9ff;
  padding: 4px 12px;
  border: 1px solid rgba(184, 169, 255, 0.40);
  border-radius: 999px;
  background: rgba(184, 169, 255, 0.08);
  white-space: nowrap;
}
.flagship-hero-arrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 1.6rem;
  color: var(--text-3);
  transition: color 0.18s ease, transform 0.18s ease;
}
.flagship-hero:hover .flagship-hero-arrow {
  color: #b8a9ff;
  transform: translateX(4px);
}

/* Secondary flagships row (currently just rankd, leaves room for future) */
.flagship-grid-secondary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 18px;
}

/* Legacy 2-card grid kept for any old caches still referencing it */
.flagship-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 18px;
}

/* Single secondary tile, sits below the 2-card row */
.shipping-next-tile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 20px 24px;
  border-radius: 14px;
  background: rgba(14, 22, 40, 0.36);
  border: 1px dashed rgba(160, 200, 255, 0.16);
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.shipping-next-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(65, 224, 254, 0.45);
  background: rgba(14, 22, 40, 0.55);
}

.shipping-next-tile .flagship-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0;
  font-size: 0.78rem;
}

.shipping-next-body { display: flex; flex-direction: column; gap: 4px; }

.shipping-next-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.shipping-next-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-0);
  margin: 0;
}

.shipping-next-status {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #41e0fe;
  padding: 3px 10px;
  border: 1px solid rgba(65, 224, 254, 0.32);
  border-radius: 999px;
  background: rgba(65, 224, 254, 0.06);
}

.shipping-next-pitch {
  font-size: 0.92rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.5;
}

.shipping-next-arrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 1.2rem;
  color: var(--text-3);
  transition: color 0.16s ease, transform 0.16s ease;
}

.shipping-next-tile:hover .shipping-next-arrow {
  color: #41e0fe;
  transform: translateX(2px);
}

/* ========== Real-icon tile pattern (LOCKED 2026-05-02 evening) ==========
 * Owner directive: tiles "крайне бедно", scrb/rankd icons missing on apex,
 * tells icon never ordered. This block introduces:
 *  - .flagship-icon-img  → wraps real <img> (no text mark fallback)
 *  - .flagship-rich      → tile with badge row + feature ul + dotted bullets
 *  - .flagship-grid-equal → 2-col equal flex (rankd + tells side by side)
 *  - .flagship-badge-*   → coloured pill per product (rankd amber, tells cyan)
 */

.flagship-icon-img {
  background: rgba(8, 14, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px;
  overflow: hidden;
}
.flagship-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}
.flagship-icon-xl.flagship-icon-img { padding: 4px; }
.flagship-icon-xl.flagship-icon-img img { border-radius: 8px; }

/* Rich tile — header row with badge, then pitch, then 3-bullet feature list */
.flagship-rich {
  padding: 26px 24px 22px;
}
.flagship-rich-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.flagship-rich .flagship-name { margin: 0; }

.flagship-badge {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  font-weight: 500;
}
.flagship-badge-rankd { color: #ffcb7a; border-color: rgba(255, 184, 92, 0.40); }
.flagship-badge-tells { color: #41e0fe; border-color: rgba(65, 224, 254, 0.40); background: rgba(65, 224, 254, 0.05); }
.flagship-badge-scrb  { color: #f0a3c1; border-color: rgba(240, 163, 193, 0.40); background: rgba(240, 163, 193, 0.05); }

/* Feature list with subtle dot bullets */
.flagship-feat {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--text-2);
  letter-spacing: 0.005em;
  line-height: 1.4;
}
.flagship-feat li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ff-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-3);
  flex: 0 0 auto;
  display: inline-block;
}
.flagship-rankd  .ff-dot { background: #ffcb7a; }
.flagship-tells  .ff-dot { background: #41e0fe; }
.flagship-scrb   .ff-dot { background: #f0d5b8; }

/* Hero scrb pitch + feature list inside flagship-hero */
.flagship-hero .flagship-feat {
  margin-top: 16px;
  font-size: 0.82rem;
}

/* Equal 2-col grid for rankd + tells (replaces flagship-grid-secondary) */
.flagship-grid-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 880px) {
  .flagship-grid-equal { grid-template-columns: 1fr; }
}

/* tells tile — slight cyan glow on the icon to echo brand accent */
.flagship-tells .flagship-icon-img {
  border-color: rgba(65, 224, 254, 0.22);
  box-shadow: inset 0 0 0 1px rgba(65, 224, 254, 0.06);
}

/* ========== Header polish (LOCKED 2026-05-02 evening) ==========
 * Owner directive: «хедер и его ссылки можно и посимпатичнее сделать.
 * но в стиле портала не отходить от него». Subtle current-page underline
 * accent, smoother hover transition, sticky elevation when scrolled.
 */
.site-header .nav-link {
  position: relative;
  transition: color 0.16s ease;
}
.site-header .nav-link::after {
  content: '';
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -2px;
  height: 1px;
  background: var(--violet);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.site-header .nav-link:hover::after,
.site-header .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}
.site-header .nav-link:hover { background: transparent; }
.site-header .nav-link.active { color: var(--text-0); }

.site-header .nav-cta {
  border-radius: 8px;
  letter-spacing: 0.04em;
}

/* ========== Mobile ========== */

@media (max-width: 880px) {
  .flagship-grid { grid-template-columns: 1fr; }
  .flagship-grid-2 { grid-template-columns: 1fr; }
  .scrb-repair-grid { grid-template-columns: 1fr; }
  .urweb-branch-grid { grid-template-columns: 1fr; }
  .apex-fresh-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .apex-fresh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flagship-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 22px;
    text-align: left;
  }
  .flagship-icon-xl { width: 64px; height: 64px; font-size: 0.92rem; }
  .flagship-name-xl { font-size: 1.7rem; }
  .flagship-pitch-xl { font-size: 0.98rem; }
  .flagship-hero-arrow { display: none; }
  .shipping-next-tile { grid-template-columns: auto 1fr; }
  .shipping-next-tile .shipping-next-arrow { display: none; }
  .footer-v4-grid { grid-template-columns: 1fr 1fr; }
  .fv4-brand-col { grid-column: 1 / -1; }
  .apex-hero { padding: 80px 0 48px; }
  .apex-hero-row { grid-template-columns: 1fr; gap: 32px; }
  .apex-hero-row:has(.apex-hero-emblem) { grid-template-columns: 1fr; }
  .apex-hero-emblem { order: -1; }
  .apex-hero-emblem img { width: clamp(180px, 50vw, 240px); }
  .apex-fresh-card { min-height: 0; }
  .apex-portal-list a { min-width: 0; }
  .apex-portal-list li { flex-direction: column; gap: 4px; }
  .studio-tile-row { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 520px) {
  .scrb-repair-card,
  .scrb-repair-proof-panel {
    border-radius: 16px;
  }
  .scrb-repair-card {
    padding: 22px 20px 20px;
  }
  .scrb-repair-card h2 {
    max-width: none;
    font-size: 1.7rem;
  }
  .scrb-repair-actions a {
    width: 100%;
  }
  .apex-fresh-grid { grid-template-columns: 1fr; }
  .footer-v4-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
 * footer-v5 — owner refactor 2026-05-01
 * Spec: 7 stacked rows (brand · portals · flagships · extras · social ·
 * canon · bottom). Replaces 4-col grid because it "looked thin" and
 * users couldn't find subportals (games / wordpress / music / reddit).
 *
 * Architecture:
 *   row 1 brand   — wordmark + tagline
 *   row 2 portals — 4 subportals as big tiles (tools · ext · games · ai)
 *   row 3 flag    — scrb · rankd · tells (small chip nav)
 *   row 4 extras  — music · studio · blog · wp · about · team · contact
 *   row 5 social  — github · npm · reddit · linkedin · spotify · x
 *   row 6 canon   — exact studio signature line (locked text)
 *   row 7 bottom  — © + privacy + terms + dpa
 * ===================================================================== */

.footer-v5 {
  background: rgba(5, 9, 20, 0.85);
  border-top: 1px solid rgba(160, 200, 255, 0.10);
  padding: 64px 0 28px;
  margin-top: 80px;
  position: relative;
  z-index: 1;
}
.footer-v5 .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Row 1 — brand + tagline */
.fv5-row-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 6px;
}
.fv5-brand {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-0);
  text-decoration: none;
  display: inline-block;
}
.fv5-brand .void-o { color: var(--violet); }
.fv5-tagline {
  font-size: 0.96rem;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 60ch;
  margin: 0;
}

/* Row 2 — primary subportal tiles */
.fv5-row-portals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 14px 0 10px;
  border-top: 1px solid rgba(160, 200, 255, 0.08);
  border-bottom: 1px solid rgba(160, 200, 255, 0.08);
}
.fv5-portal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 14px;
  border-radius: 12px;
  background: rgba(20, 32, 56, 0.45);
  border: 1px solid rgba(160, 200, 255, 0.10);
  text-decoration: none;
  color: inherit;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.fv5-portal:hover {
  transform: translateY(-2px);
  border-color: rgba(136, 68, 255, 0.42);
  background: rgba(28, 42, 72, 0.65);
}
.fv5-portal-glyph {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 1.2rem;
  color: var(--cyan, #00f6d0);
  letter-spacing: -0.04em;
  margin-bottom: 2px;
}
.fv5-portal-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-0);
}
.fv5-portal-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
/* per-subportal accent on glyph */
.fv5-portal-tools      .fv5-portal-glyph { color: #00f6d0; }
.fv5-portal-extensions .fv5-portal-glyph { color: #ff7ab8; }
.fv5-portal-games      .fv5-portal-glyph { color: #ffcb7a; }
.fv5-portal-ai         .fv5-portal-glyph { color: #b8a9ff; }

/* Row 3 — flagship chips */
.fv5-row-flagships,
.fv5-row-extras {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 12px;
  font-size: 0.95rem;
}
.fv5-row-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-right: 6px;
}
.fv5-flagship {
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  color: var(--text-0);
  border-bottom: 1px solid transparent;
  transition: color .12s ease, border-color .12s ease;
}
.fv5-flagship:hover {
  color: var(--violet);
  border-bottom-color: var(--violet);
}
.fv5-flagship-scrb:hover  { color: #f0d5b8; border-bottom-color: #f0d5b8; }
.fv5-flagship-rankd:hover { color: #ffcb7a; border-bottom-color: #ffcb7a; }
.fv5-flagship-tells:hover { color: #41e0fe; border-bottom-color: #41e0fe; }

/* Row 4 — extras (smaller, lighter) */
.fv5-row-extras {
  font-size: 0.88rem;
}
.fv5-row-extras a {
  color: var(--text-2);
  text-decoration: none;
  transition: color .12s ease;
}
.fv5-row-extras a:hover { color: var(--text-0); }
.fv5-sep {
  color: var(--text-3);
  opacity: 0.5;
  user-select: none;
}

/* Row 5 — social */
.fv5-row-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
}
.fv5-soc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px 7px 9px;
  border-radius: 8px;
  border: 1px solid rgba(160, 200, 255, 0.10);
  color: var(--text-2);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: lowercase;
  transition: color .14s ease, border-color .14s ease;
}
.fv5-soc:hover {
  color: var(--violet);
  border-color: rgba(136, 68, 255, 0.42);
}
.fv5-soc svg { display: block; }

/* Row 6 — canon line */
.fv5-row-canon {
  border-top: 1px solid rgba(160, 200, 255, 0.06);
  padding-top: 18px;
}
.fv5-canon {
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 76ch;
  margin: 0;
}
.fv5-canon a {
  color: var(--text-0);
  text-decoration: none;
  border-bottom: 1px solid rgba(160, 200, 255, 0.30);
}
.fv5-canon a:hover {
  border-bottom-color: var(--violet);
  color: var(--violet);
}

/* Row 7 — © + privacy + terms */
.fv5-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.fv5-row-bottom a {
  color: var(--text-3);
  text-decoration: none;
  transition: color .12s ease;
}
.fv5-row-bottom a:hover { color: var(--text-0); }
.fv5-bot-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Mobile collapse */
@media (max-width: 880px) {
  .fv5-row-portals { grid-template-columns: repeat(2, 1fr); }
  .fv5-row-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .fv5-row-portals { grid-template-columns: 1fr; }
}

/* =====================================================================
 * apex-tool plates — owner directive 2026-05-01
 *
 * Old .pcard plates were generic — owner: "asked many times to fix all
 * the plates with huashu in tools and extensions". These match the apex
 * flagship-card craft level: editorial type hierarchy, per-product accent
 * color via .acc-* class, install command in <code> with copy button,
 * github link visible, restrained hover.
 *
 * Each plate emits:
 *   strip (1px accent rule)
 *   head: icon + name + meta + status pill
 *   pitch: tagline (1 line)
 *   install: $ npm i -g <pkg> + copy button
 *   foot: explore → / github →
 * ===================================================================== */

.apex-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.apex-tool {
  --acc: #00f6d0;
  --acc-soft: rgba(0, 246, 208, 0.10);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 18px;
  border-radius: 14px;
  background: var(--apex-card-bg);
  border: 1px solid var(--apex-card-border);
  box-shadow: var(--apex-shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.apex-tool:hover {
  transform: translateY(-2px);
  border-color: var(--acc);
  background: var(--apex-card-hover-bg);
  box-shadow: 0 14px 36px -8px rgba(0,0,0,0.45), 0 0 0 1px var(--acc-soft);
}

/* Per-product accent — matched to apex flagship palette */
.apex-tool.acc-cyan   { --acc: #00f6d0; --acc-soft: rgba(0, 246, 208, 0.12); }
.apex-tool.acc-violet { --acc: #b8a9ff; --acc-soft: rgba(184, 169, 255, 0.14); }
.apex-tool.acc-amber  { --acc: #ffcb7a; --acc-soft: rgba(255, 203, 122, 0.14); }
.apex-tool.acc-pink   { --acc: #ff7ab8; --acc-soft: rgba(255, 122, 184, 0.14); }
.apex-tool.acc-mint   { --acc: #7bd88f; --acc-soft: rgba(123, 216, 143, 0.14); }
.apex-tool.acc-coral  { --acc: #ff9b6a; --acc-soft: rgba(255, 155, 106, 0.14); }
.apex-tool.acc-blue   { --acc: #6ab8ff; --acc-soft: rgba(106, 184, 255, 0.14); }

/* Top accent strip — full width, very thin, brand color */
.apex-tool-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--acc) 0%, transparent 80%);
  opacity: 0.55;
}

.apex-tool-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.apex-tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: rgba(8, 14, 28, 0.80);
  border: 1px solid rgba(160, 200, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 48px;
  overflow: hidden;
}
.apex-tool-icon img {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 8px;
}
.apex-tool-icon.apex-icon-fallback::before {
  content: attr(data-glyph);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--acc);
  letter-spacing: -0.04em;
}

.apex-tool-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.apex-tool-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-0);
  margin: 0;
  line-height: 1.1;
}
.apex-tool-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-3);
}
.apex-tool-status {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--acc);
  background: var(--acc-soft);
  border: 1px solid var(--acc);
  padding: 3px 8px;
  border-radius: 999px;
  align-self: start;
}

.apex-tool-pitch {
  font-size: 0.92rem;
  color: var(--text-1);
  line-height: 1.55;
  margin: 0;
  flex: 1;
  min-height: 2.8em;
}

.apex-tool-install {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.40);
  border: 1px solid rgba(160, 200, 255, 0.10);
  overflow: hidden;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
}
.apex-tool-install code {
  flex: 1;
  padding: 9px 12px;
  font-family: inherit;
  color: var(--text-1);
  background: transparent;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}
.apex-tool-install code::-webkit-scrollbar { height: 4px; }
.apex-tool-install code::-webkit-scrollbar-thumb { background: rgba(160, 200, 255, 0.15); }
.apex-tool-prompt {
  color: var(--acc);
  margin-right: 6px;
  user-select: none;
}
.apex-tool-copy {
  flex: 0 0 auto;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.02);
  border: none;
  border-left: 1px solid rgba(160, 200, 255, 0.10);
  color: var(--text-3);
  font-family: inherit;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color .12s ease, background .12s ease;
}
.apex-tool-copy:hover { color: var(--acc); background: var(--acc-soft); }
.apex-tool-copy.copied { color: var(--acc); background: var(--acc-soft); }

.apex-tool-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}
.apex-tool-link {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color .12s ease;
}
.apex-tool-link-primary {
  color: var(--acc);
  font-weight: 600;
}
.apex-tool-link-primary:hover { text-decoration: underline; text-underline-offset: 4px; }
.apex-tool-link-ghost {
  color: var(--text-3);
}
.apex-tool-link-ghost:hover { color: var(--text-0); }

@media (max-width: 520px) {
  .apex-tool { padding: 18px 18px 16px; }
  .apex-tool-head { gap: 10px; }
  .apex-tool-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .apex-tool-icon img { width: 32px; height: 32px; }
  .apex-tool-status { font-size: 0.6rem; padding: 2px 6px; }
}
