/*
Theme Name: Virtual Context Saazy
Theme URI: https://virtual-context.com
Author: Y. Kidwai
Description: Terminal-inspired developer theme for Virtual Context — dark-first with colorful accents.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 4.0.1
Template: twentytwentyfive
Text Domain: virtual-context-saazy
*/

/* ========================================
   0. VARIABLES — DARK-FIRST
   ======================================== */

:root {
  --vc-bg: #0c0f14;
  --vc-bg-soft: #12161e;
  --vc-panel: #171c26;
  --vc-border: #1e2636;
  --vc-text: #dce4f0;
  --vc-muted: #7a8599;
  --vc-accent: #2ba8e0;
  --vc-accent-2: #34d399;
  --vc-accent-3: #a78bfa;
  --vc-accent-4: #fb923c;
  --vc-cta: #e05a30;
  --vc-cta-hover: #f06a42;
  --vc-shadow: 0 0 40px rgba(43, 168, 224, 0.06);
  --vc-glow: 0 0 20px rgba(43, 168, 224, 0.15);
  --vc-radius: 12px;
  --vc-max: 1120px;
  --vc-font: "avenir-lt-pro", system-ui, sans-serif;
  --vc-mono: "ibm-plex-mono", "Fira Code", monospace;
  --vc-heading: "kiro", system-ui, sans-serif;
  --vc-brand: sharktooth, var(--vc-mono);
}

.vc-light-mode {
  --vc-bg: #f8fafc;
  --vc-bg-soft: #f1f5f9;
  --vc-panel: #ffffff;
  --vc-border: #e2e8f0;
  --vc-text: #0f172a;
  --vc-muted: #64748b;
  --vc-accent: #0284c7;
  --vc-accent-2: #059669;
  --vc-accent-3: #7c3aed;
  --vc-accent-4: #ea580c;
  --vc-cta: #f46033;
  --vc-cta-hover: #e35126;
  --vc-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --vc-glow: none;
}

/* ========================================
   1. BASE
   ======================================== */

body {
  background: var(--vc-bg);
  color: var(--vc-text);
  font-family: var(--vc-font);
  -webkit-font-smoothing: antialiased;
}

.wp-site-blocks { padding-left: 0 !important; padding-right: 0 !important; }
a { text-decoration-thickness: 1px; }
::selection { background: rgba(56, 189, 248, 0.3); color: #fff; }

/* ========================================
   2. HEADER
   ======================================== */

.vc-site-header-shell {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--vc-border);
  background: rgba(18, 22, 30, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.vc-header-row { min-height: 64px; }

.vc-header-row,
.vc-section {
  max-width: var(--vc-max);
  margin-left: auto; margin-right: auto;
  padding-left: 20px; padding-right: 20px;
}

.vc-header-row .wp-block-site-title {
  font-size: 1.3rem !important; letter-spacing: 0.06em;
  text-transform: lowercase; font-weight: 700;
  font-family: var(--vc-brand);
}

.vc-header-row .wp-block-site-title a {
  color: var(--vc-accent); text-decoration: none;
}

.vc-header-right { gap: 10px; }

.vc-header-right .wp-block-navigation-item__content {
  color: var(--vc-muted) !important; font-size: 0.88rem;
  font-family: var(--vc-font); letter-spacing: 0; font-weight: 500;
  text-decoration: none !important;
}
.vc-header-right .wp-block-navigation-item__content:hover { color: var(--vc-text) !important; }
/* Kill WP active/current link styling */
.vc-header-right .current-menu-item .wp-block-navigation-item__content,
.vc-header-right .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
  color: var(--vc-muted) !important; text-decoration: none !important;
}
/* Wider gap between nav items to match mockup */
.vc-header-right .wp-block-navigation__container { gap: 28px !important; }
.vc-header-right .wp-block-navigation { gap: 28px; }

/* Hide mobile-only Login link on desktop */
.vc-nav-login-mobile { display: none !important; }

/* More space between nav links and header buttons */
.vc-header-cta { margin-left: 16px !important; gap: 12px !important; }

/* Header buttons — mockup style: 8px radius, not pill-shaped */
.vc-header-login .wp-block-button__link {
  background: transparent !important;
  border: 1px solid var(--vc-border) !important;
  color: var(--vc-text) !important;
  border-radius: 8px !important;
  padding: 8px 18px !important;
  font-weight: 600; font-size: 0.85rem;
  font-family: var(--vc-font);
  box-shadow: none !important;
  transition: border-color 0.2s, background 0.2s;
}
.vc-header-login .wp-block-button__link:hover {
  border-color: var(--vc-accent) !important;
  background: rgba(43, 168, 224, 0.06) !important;
  transform: none;
}
.vc-header-signup .wp-block-button__link {
  background: var(--vc-cta) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 8px 20px !important;
  font-weight: 600; font-size: 0.85rem;
  font-family: var(--vc-font);
  border: none !important;
  box-shadow: none !important;
  transition: background 0.2s, transform 0.15s;
}
.vc-header-signup .wp-block-button__link:hover {
  background: var(--vc-cta-hover) !important;
  transform: translateY(-1px);
}
.vc-header-signup .wp-block-button__link:active {
  transform: translateY(0) scale(0.98);
}
@media (max-width: 780px) {
  .vc-nav-login-mobile { display: list-item !important; }
}

.vc-theme-toggle {
  border: 1px solid var(--vc-border); border-radius: 6px;
  background: var(--vc-panel); color: var(--vc-accent);
  cursor: pointer; padding: 6px 10px;
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 700;
  font-family: var(--vc-mono); transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
}
.vc-theme-toggle:hover { border-color: var(--vc-accent); box-shadow: var(--vc-glow); }
.vc-mobile-theme-btn {
  min-width: 72px; min-height: 44px;
  padding: 10px 16px; font-size: 0.78rem;
}

/* ========================================
   3. BUTTONS
   ======================================== */

.vc-header-cta .wp-block-button__link,
.vc-btn, .vc-btn .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.85rem; padding: 10px 16px;
  text-decoration: none; font-family: var(--vc-font);
  letter-spacing: 0.02em; transition: all 0.2s;
}

.vc-btn-primary { background: transparent !important; box-shadow: none !important; }
.vc-header-cta .wp-block-button:not(.is-style-outline):not(.vc-header-login) .wp-block-button__link,
.vc-btn-primary .wp-block-button__link, .vc-btn.vc-btn-primary {
  background: var(--vc-cta);
  color: #fff; box-shadow: none;
  border-radius: 8px;
}

.vc-header-cta .wp-block-button:not(.is-style-outline):not(.vc-header-login) .wp-block-button__link:hover,
.vc-btn-primary .wp-block-button__link:hover, .vc-btn-primary:hover, .vc-btn.vc-btn-primary:hover {
  background: var(--vc-cta-hover);
  transform: translateY(-1px); box-shadow: 0 8px 24px rgba(224, 90, 48, 0.25);
}

.vc-btn-secondary { background: transparent !important; box-shadow: none !important; border: none !important; }
.vc-header-cta .is-style-outline .wp-block-button__link,
.vc-btn-secondary .wp-block-button__link, .vc-btn.vc-btn-secondary {
  background: transparent; border: 1px solid var(--vc-border); color: var(--vc-text);
  border-radius: 8px;
}

.vc-header-cta .is-style-outline .wp-block-button__link:hover,
.vc-btn-secondary .wp-block-button__link:hover, .vc-btn.vc-btn-secondary:hover {
  border-color: var(--vc-accent); color: var(--vc-accent);
  background: rgba(56, 189, 248, 0.05); transform: translateY(-1px);
}

.vc-btn.vc-btn-danger { background: rgba(239, 68, 68, 0.1); color: #f87171; border-color: rgba(239, 68, 68, 0.3); }
.vc-btn.vc-btn-small { padding: 6px 10px; font-size: 0.78rem; }

/* ========================================
   4. HERO
   ======================================== */

.vc-hero {
  padding-top: 48px !important; padding-bottom: 56px !important;
  position: relative; overflow: hidden;
}
/* Bold gradient mesh — actually visible */
.vc-hero::before {
  content: ''; position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% 50%, rgba(56,189,248,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 30%, rgba(167,139,250,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 90%, rgba(52,211,153,0.10) 0%, transparent 50%);
  filter: blur(40px);
}
/* Dot grid texture overlay */
.vc-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.3;
  background-image: radial-gradient(circle, var(--vc-border) 1px, transparent 1px);
  background-size: 24px 24px;
}
.vc-hero > * { position: relative; z-index: 1; }

.vc-pill {
  font-family: var(--vc-mono); font-size: 0.82rem;
  color: var(--vc-accent); letter-spacing: 0.04em; margin-bottom: 16px !important;
}
.vc-pill::before { content: "$ "; opacity: 0.5; }

.vc-hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem) !important;
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.08 !important;
  font-family: var(--vc-heading);
  margin-bottom: 24px !important;
  color: var(--vc-text);
}

.vc-hero-copy { font-size: 1.1rem; color: var(--vc-muted); line-height: 1.65; max-width: 480px; }
.vc-hero-centered .vc-hero-copy { max-width: 640px; margin-left: auto; margin-right: auto; }
.vc-hero-centered { text-align: center; }
.vc-hero-centered .vc-pill {
  display: inline-block; width: auto;
  border: 1px solid var(--vc-border); border-radius: 20px;
  padding: 6px 18px; background: var(--vc-panel);
}
.vc-button-row { gap: 12px; margin-top: 28px !important; }
.vc-button-row-center { justify-content: center; }

/* Code card */
.vc-code-card {
  background: var(--vc-panel); border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius); padding: 24px !important; box-shadow: var(--vc-shadow);
}

.vc-code-title {
  font-family: var(--vc-mono); font-size: 0.82rem;
  color: var(--vc-accent-2); letter-spacing: 0.04em;
  margin-bottom: 16px !important; font-weight: 600;
}

.vc-code-card .wp-block-code {
  background: #0a0f1a; border: 1px solid #1a2235;
  border-radius: 8px; padding: 20px; margin-bottom: 16px;
}

.vc-code-card .wp-block-code code {
  font-family: var(--vc-mono); font-size: 0.82rem; color: #e2e8f0; line-height: 1.7;
}

.vc-code-foot { font-size: 0.88rem; color: var(--vc-muted); }

/* ========================================
   5. STATS ROW
   ======================================== */

.vc-stat-row { margin-top: 36px !important; gap: 20px !important; }

.vc-mini-stat {
  text-align: center; padding: 20px 12px;
  border: 1px solid var(--vc-border); border-radius: var(--vc-radius);
  background: var(--vc-panel); transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.vc-mini-stat:hover { border-color: var(--vc-accent); box-shadow: 0 0 30px rgba(56,189,248,0.15); }
.vc-mini-stat strong { color: var(--vc-text); }
.vc-mini-stat span { color: var(--vc-muted); }

.vc-mini-stat strong {
  display: block; font-family: var(--vc-mono);
  font-size: 1.8rem; font-weight: 800; margin-bottom: 6px;
  color: var(--vc-text);
}
.vc-mini-stat span { display: block; font-size: 0.85rem; color: var(--vc-muted); line-height: 1.4; }

/* Color variants per stat */
.vc-stat-row .wp-block-column:nth-child(2) .vc-mini-stat strong {
  background: linear-gradient(135deg, var(--vc-accent-2), #6ee7b7);
  -webkit-background-clip: text; background-clip: text;
}
.vc-stat-row .wp-block-column:nth-child(3) .vc-mini-stat strong {
  background: linear-gradient(135deg, var(--vc-accent-3), #c4b5fd);
  -webkit-background-clip: text; background-clip: text;
}
.vc-stat-row .wp-block-column:nth-child(4) .vc-mini-stat strong {
  background: linear-gradient(135deg, var(--vc-accent-4), #fbbf24);
  -webkit-background-clip: text; background-clip: text;
}

/* ========================================
   6. SECTIONS
   ======================================== */

.vc-section { padding-top: 48px !important; padding-bottom: 24px !important; }

/* Alternate section backgrounds for visual rhythm */
.vc-section-tinted {
  background: linear-gradient(180deg, #0d1225 0%, #111a30 50%, #0d1225 100%);
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  padding-left: calc(50vw - 50% + 20px) !important;
  padding-right: calc(50vw - 50% + 20px) !important;
  max-width: none !important;
  border-top: 1px solid rgba(56,189,248,0.1);
  border-bottom: 1px solid rgba(56,189,248,0.1);
  position: relative;
}
.vc-light-mode .vc-section-tinted {
  background: linear-gradient(180deg, #eef2f7 0%, #e8edf5 50%, #eef2f7 100%);
  border-top-color: rgba(0,0,0,0.06);
  border-bottom-color: rgba(0,0,0,0.06);
}

.vc-section-title {
  font-size: 2rem !important; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 24px !important; color: var(--vc-text);
  text-align: center; font-family: var(--vc-heading);
}
/* Dramatic heading for key sections */
.vc-section-title-lg {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem) !important;
  letter-spacing: -0.02em;
  font-weight: 700; font-family: var(--vc-heading);
}
.vc-section-title-sm {
  font-size: 1.3rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vc-muted);
  opacity: 0.7;
}

.vc-section-sub {
  font-size: 1.05rem; color: var(--vc-muted); line-height: 1.6;
  max-width: 640px; margin: 0 auto 24px !important; text-align: center;
}
.vc-section-subtitle {
  max-width: 720px; margin: -16px auto 24px !important;
  font-size: 1.05rem; line-height: 1.65; color: var(--vc-muted);
}
.vc-section-subtitle strong { color: var(--vc-text); font-weight: 600; }

/* "Operates inside" section */
.vc-inline-section { padding-top: 32px !important; padding-bottom: 32px !important; }
.vc-inline-copy {
  font-size: 1.1rem; color: var(--vc-muted); line-height: 1.75;
  max-width: 720px; text-align: center;
}
/* Force WP constrained layout to center this block */
.vc-inline-section > .vc-inline-copy {
  margin-left: auto !important; margin-right: auto !important;
}
.vc-inline-copy strong { color: var(--vc-text); font-weight: 600; }

/* Standalone code card (outside hero) */
.vc-code-card-standalone {
  max-width: 560px; margin: 0 auto 32px;
}

/* Merged integration layout */
.vc-integrate-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start;
}
.vc-integrate-layout .vc-code-card {
  overflow: hidden;
}
.vc-integrate-layout .vc-code-card pre {
  overflow-x: auto; max-width: 100%;
}
.vc-integrate-paths { display: flex; flex-direction: column; gap: 16px; }
.vc-integrate-paths .vc-integ-card { padding: 20px; }
.vc-integrate-paths .vc-integ-card h3 { font-size: 0.95rem; }
.vc-integrate-paths .vc-integ-card p { font-size: 0.84rem; }
@media (max-width: 780px) {
  .vc-integrate-layout { grid-template-columns: 1fr; }
  .vc-integrate-layout .vc-code-card { position: static; }
}

/* Inline copy flush with heading */
.vc-inline-copy {
  padding-left: 0 !important; margin-left: 0 !important;
}

/* ========================================
   6a. CODE TABS (hero card)
   ======================================== */

.vc-tab-bar {
  display: flex; gap: 0; border-bottom: 1px solid var(--vc-border);
  margin-bottom: 16px;
}
.vc-tab-bar button {
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 8px 14px; font-family: var(--vc-mono); font-size: 0.78rem;
  color: var(--vc-muted); cursor: pointer; font-weight: 600;
  letter-spacing: 0.02em; transition: all 0.2s;
}
.vc-tab-bar button:hover { color: var(--vc-text); }
.vc-tab-bar button.is-active {
  color: var(--vc-accent); border-bottom-color: var(--vc-accent);
}
.vc-tab-panel { display: none; }
.vc-tab-panel.is-active { display: block; }
.vc-tab-panel pre {
  background: #0a0f1a; border: 1px solid #1a2235;
  border-radius: 8px; padding: 20px; margin: 0; overflow-x: auto;
}
.vc-tab-panel code {
  font-family: var(--vc-mono); font-size: 0.82rem; color: #e2e8f0; line-height: 1.7;
}

/* Syntax highlight tokens */
.vc-c-comment { color: #64748b; font-style: italic; }
.vc-c-kw { color: var(--vc-accent-3); }
.vc-c-str { color: var(--vc-accent-2); }

/* ========================================
   6b. SNAKE DIAGRAM (How It Works)
   ======================================== */

.vc-snake { max-width: 1120px; margin: 0 auto; padding: 0 0 20px; }

/* Rows */
.vc-snake-row { display: flex; align-items: stretch; gap: 0; }

/* Cards */
.vc-s-card {
  background: var(--vc-panel); border: 1px solid var(--vc-border); border-radius: 16px;
  padding: 28px 28px 24px; position: relative; overflow: hidden;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.vc-s-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 16px 16px 0 0; opacity: .8;
}
.vc-s-card:hover {
  border-color: rgba(56,189,248,.3);
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
  transform: translateY(-2px);
}
.vc-light-mode .vc-s-card:hover {
  box-shadow: 0 8px 30px rgba(15,23,42,.1);
}

.vc-s-num {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 6px;
}
.vc-s-title {
  font-size: 20px; font-weight: 700; letter-spacing: -.3px;
  margin-bottom: 8px; line-height: 1.3; color: var(--vc-text);
}
.vc-s-body {
  font-size: 13.5px; color: var(--vc-muted); line-height: 1.7; font-weight: 300;
}
.vc-s-body strong { color: var(--vc-text); font-weight: 500; }

/* Tags inside cards */
.vc-s-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.vc-s-tag {
  font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 6px;
  letter-spacing: .3px; border: 1px solid;
}

/* Mini flow inside cards */
.vc-s-mini-flow { display: flex; align-items: center; gap: 4px; margin-top: 14px; flex-wrap: wrap; }
.vc-s-mini-node {
  font-size: 9px; font-weight: 600; padding: 5px 10px; border-radius: 6px;
  background: rgba(255,255,255,.04); border: 1px solid var(--vc-border);
  color: var(--vc-text); white-space: nowrap;
}
.vc-light-mode .vc-s-mini-node { background: rgba(0,0,0,.03); }
.vc-s-mini-node.vc-s-accent { border-color: rgba(155,109,255,.3); color: var(--vc-accent-3); }
.vc-s-mini-arrow { color: var(--vc-muted); font-size: 12px; }

/* Fat horizontal arrow */
.vc-s-fat-h {
  width: 88px; min-width: 88px;
  display: flex; align-items: center; justify-content: center;
}

/* Fat vertical arrow */
.vc-s-fat-v {
  display: flex; justify-content: center; align-items: center; height: 80px;
}
.vc-s-fat-v.vc-s-align-right {
  display: grid; grid-template-columns: 1fr 88px 1fr;
}
.vc-s-fat-v.vc-s-align-right svg { grid-column: 3; justify-self: center; }
.vc-s-fat-v.vc-s-align-left {
  display: grid; grid-template-columns: 1fr 88px 1fr;
}
.vc-s-fat-v.vc-s-align-left svg { grid-column: 1; justify-self: center; }

/* Color themes */
.vc-s-green .vc-s-card::before { background: linear-gradient(90deg, var(--vc-accent-2), #22d3ee); }
.vc-s-green .vc-s-num { color: var(--vc-accent-2); }
.vc-s-green .vc-s-tag { color: var(--vc-accent-2); border-color: rgba(52,211,153,.25); background: rgba(52,211,153,.08); }

.vc-s-blue .vc-s-card::before { background: linear-gradient(90deg, var(--vc-accent), var(--vc-accent-3)); }
.vc-s-blue .vc-s-num { color: var(--vc-accent); }
.vc-s-blue .vc-s-tag { color: var(--vc-accent); border-color: rgba(56,189,248,.25); background: rgba(56,189,248,.08); }

.vc-s-purple .vc-s-card::before { background: linear-gradient(90deg, var(--vc-accent-3), #e45faa); }
.vc-s-purple .vc-s-num { color: var(--vc-accent-3); }
.vc-s-purple .vc-s-tag { color: var(--vc-accent-3); border-color: rgba(167,139,250,.25); background: rgba(167,139,250,.08); }

.vc-s-orange .vc-s-card::before { background: linear-gradient(90deg, var(--vc-accent-4), #ef4444); }
.vc-s-orange .vc-s-num { color: var(--vc-accent-4); }
.vc-s-orange .vc-s-tag { color: var(--vc-accent-4); border-color: rgba(245,158,11,.25); background: rgba(245,158,11,.08); }

.vc-s-cyan .vc-s-card::before { background: linear-gradient(90deg, #22d3ee, var(--vc-accent)); }
.vc-s-cyan .vc-s-num { color: #22d3ee; }
.vc-s-cyan .vc-s-tag { color: #22d3ee; border-color: rgba(34,211,238,.25); background: rgba(34,211,238,.08); }

.vc-s-pink .vc-s-card::before { background: linear-gradient(90deg, #e45faa, var(--vc-accent-3)); }
.vc-s-pink .vc-s-num { color: #e45faa; }
.vc-s-pink .vc-s-tag { color: #e45faa; border-color: rgba(228,95,170,.25); background: rgba(228,95,170,.08); }

/* Loop callout */
.vc-s-loop-callout {
  max-width: 700px; margin: 24px auto 30px; text-align: center;
  background: linear-gradient(135deg, rgba(228,95,170,.06), rgba(155,109,255,.06));
  border: 1px solid rgba(228,95,170,.2); border-radius: 16px; padding: 28px 36px;
}
.vc-light-mode .vc-s-loop-callout {
  background: linear-gradient(135deg, rgba(228,95,170,.04), rgba(155,109,255,.04));
}
.vc-s-loop-icon { font-size: 40px; margin-bottom: 8px; }
.vc-s-loop-callout h3 { font-size: 17px; font-weight: 700; color: #e45faa; margin-bottom: 6px; }
.vc-s-loop-callout p { font-size: 13px; color: var(--vc-muted); line-height: 1.7; font-weight: 300; margin: 0; }
.vc-s-loop-callout p strong { color: var(--vc-text); font-weight: 500; }

/* Result cards */
.vc-s-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.vc-s-result-card {
  background: var(--vc-panel); border: 1px solid var(--vc-border); border-radius: 14px;
  padding: 24px; text-align: center; transition: border-color .3s, transform .3s;
}
.vc-s-result-card:hover { border-color: rgba(56,189,248,.25); transform: translateY(-2px); }
.vc-s-result-icon { font-size: 32px; margin-bottom: 10px; }
.vc-s-result-card h4 { font-size: 15px; font-weight: 700; color: var(--vc-text); margin-bottom: 6px; }
.vc-s-result-card p { font-size: 12px; color: var(--vc-muted); line-height: 1.6; font-weight: 300; margin: 0; }

/* Result cards (punchline section) */
.vc-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vc-result-card {
  background: var(--vc-panel); border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius); padding: 32px; text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.vc-result-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.vc-result-card:nth-child(1)::before { background: linear-gradient(90deg, var(--vc-accent), var(--vc-accent-2)); }
.vc-result-card:nth-child(2)::before { background: linear-gradient(90deg, var(--vc-accent-2), var(--vc-accent-3)); }
.vc-result-card:nth-child(3)::before { background: linear-gradient(90deg, var(--vc-accent-4), var(--vc-cta)); }
.vc-result-card:hover { border-color: var(--vc-accent); box-shadow: var(--vc-glow); transform: translateY(-2px); }
.vc-result-stat {
  font-size: 1.5rem; font-weight: 800; font-family: var(--vc-mono);
  background: linear-gradient(135deg, var(--vc-accent), var(--vc-accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 8px;
}
.vc-result-card:nth-child(2) .vc-result-stat {
  background: linear-gradient(135deg, var(--vc-accent-2), var(--vc-accent-3));
  -webkit-background-clip: text; background-clip: text;
}
.vc-result-card:nth-child(3) .vc-result-stat {
  background: linear-gradient(135deg, var(--vc-accent-4), var(--vc-cta));
  -webkit-background-clip: text; background-clip: text;
}
.vc-result-card h3 {
  font-size: 0.95rem; font-weight: 700; color: var(--vc-text); margin: 0 0 12px;
}
.vc-result-card p { font-size: 0.88rem; color: var(--vc-muted); line-height: 1.55; margin: 0; }

/* Scroll reveal animations (kidw.ai style) */
.vc-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 1, 0.65, 1),
              transform 0.7s cubic-bezier(0.4, 1, 0.65, 1);
}
.vc-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children inside snake rows */
.vc-snake-row .vc-s-theme:nth-child(1) { transition-delay: 0ms; }
.vc-snake-row .vc-s-fat-h { transition-delay: 150ms; opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4,1,0.65,1) 150ms, transform 0.7s cubic-bezier(0.4,1,0.65,1) 150ms; }
.vc-snake-row .vc-s-theme:nth-child(3) { transition-delay: 300ms; }
.vc-snake-row.is-visible .vc-s-fat-h { opacity: 1; transform: translateY(0); }
.vc-snake-row.is-visible .vc-s-theme:nth-child(1) { transition-delay: 0ms; }
.vc-snake-row.is-visible .vc-s-theme:nth-child(3) { transition-delay: 300ms; }
/* Result cards stagger */
.vc-s-result-grid .vc-s-result-card:nth-child(1) { transition-delay: 0ms; }
.vc-s-result-grid .vc-s-result-card:nth-child(2) { transition-delay: 150ms; }
.vc-s-result-grid .vc-s-result-card:nth-child(3) { transition-delay: 300ms; }

/* Responsive */
@media (max-width: 768px) {
  .vc-snake-row { flex-direction: column !important; }
  /* Reversed row: reorder so Step 3 appears before Step 4 on mobile */
  .vc-snake-row-reverse { flex-direction: column-reverse !important; }
  /* In column-reverse: DOM child 3 (Step 3) is first, arrow middle, DOM child 1 (Step 4) last — correct order */
  .vc-s-fat-h { width: 100%; min-width: 0; height: 70px; }
  /* All horizontal arrows become downward arrows on mobile */
  .vc-s-fat-h svg { transform: rotate(90deg); }
  /* Reversed row arrow: was left-pointing, rotate to point down (not up) */
  .vc-snake-row-reverse .vc-s-fat-h svg { transform: rotate(-90deg); }
  .vc-s-fat-v.vc-s-align-right,
  .vc-s-fat-v.vc-s-align-left { display: flex; justify-content: center; }
  .vc-s-result-grid { grid-template-columns: 1fr; }
}

/* ========================================
   6d. COMPARISON TABLE (full)
   ======================================== */

/* Compare tabs — hidden on desktop, shown on mobile */
.vc-compare-tabs { display: none; }

.vc-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vc-compare-table-full {
  min-width: 100%; border-collapse: collapse; font-size: 0.84rem;
  border: 1px solid var(--vc-border); border-radius: var(--vc-radius);
}
.vc-compare-table-full th,
.vc-compare-table-full td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--vc-border);
  word-wrap: break-word; overflow-wrap: break-word;
}
.vc-compare-table-full thead th {
  background: var(--vc-bg-soft); color: var(--vc-muted);
  font-family: var(--vc-mono); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.vc-compare-table-full tbody td { color: var(--vc-muted); font-size: 0.82rem; line-height: 1.5; }
.vc-compare-table-full .vc-row-label {
  font-weight: 700; color: var(--vc-text); white-space: normal;
  width: 13%; font-size: 0.8rem;
}
/* Column widths: label 13%, three middle 18% each, VC highlight 33% */
.vc-compare-table-full th:nth-child(1),
.vc-compare-table-full td:nth-child(1) { width: 13%; }
.vc-compare-table-full th:nth-child(2),
.vc-compare-table-full td:nth-child(2),
.vc-compare-table-full th:nth-child(3),
.vc-compare-table-full td:nth-child(3),
.vc-compare-table-full th:nth-child(4),
.vc-compare-table-full td:nth-child(4) { width: 18%; }
.vc-compare-table-full th:nth-child(5),
.vc-compare-table-full td:nth-child(5) { width: 33%; }
.vc-compare-table-full .vc-col-highlight {
  background: rgba(56,189,248,0.12); color: var(--vc-text); font-weight: 500;
  border-left: 2px solid rgba(56,189,248,0.3);
}
.vc-compare-table-full thead .vc-col-highlight {
  color: var(--vc-accent); font-weight: 700;
  background: rgba(56,189,248,0.18);
  border-left: 2px solid var(--vc-accent);
}
/* Row striping for scannability */
.vc-compare-table-full tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.03);
}
.vc-compare-table-full tbody tr:nth-child(even) .vc-col-highlight {
  background: rgba(56,189,248,0.16);
}
.vc-light-mode .vc-compare-table-full .vc-col-highlight {
  background: rgba(2,132,199,0.08);
  border-left-color: rgba(2,132,199,0.3);
}
.vc-light-mode .vc-compare-table-full thead .vc-col-highlight {
  background: rgba(2,132,199,0.12);
  border-left-color: var(--vc-accent);
}
.vc-light-mode .vc-compare-table-full tbody tr:nth-child(even) td {
  background: rgba(0,0,0,0.03);
}
.vc-light-mode .vc-compare-table-full tbody tr:nth-child(even) .vc-col-highlight {
  background: rgba(2,132,199,0.10);
}
.vc-compare-table-full code {
  font-family: var(--vc-mono); font-size: 0.8rem; color: var(--vc-accent);
  background: rgba(56,189,248,0.1); padding: 1px 5px; border-radius: 3px;
}
.vc-compare-table-full tbody tr:last-child td { border-bottom: none; }

/* ========================================
   6e. INSTALL GRID
   ======================================== */

.vc-install-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.vc-install-card {
  background: var(--vc-panel); border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius); padding: 28px; transition: all 0.3s;
}
.vc-install-card:hover { border-color: var(--vc-accent); box-shadow: var(--vc-glow); }
.vc-install-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--vc-text); margin: 0 0 16px; }
.vc-install-card pre {
  background: #0a0f1a; border: 1px solid #1a2235;
  border-radius: 8px; padding: 16px; margin: 0 0 16px; overflow-x: auto;
}
.vc-install-card code {
  font-family: var(--vc-mono); font-size: 0.82rem; color: #e2e8f0; line-height: 1.7;
}
.vc-install-card p { font-size: 0.88rem; color: var(--vc-muted); line-height: 1.5; margin: 0; }
.vc-extras-note {
  margin-top: 24px !important; font-size: 0.85rem; color: var(--vc-muted); line-height: 1.6;
}
.vc-extras-note code {
  font-family: var(--vc-mono); font-size: 0.8rem; color: var(--vc-accent);
  background: rgba(56,189,248,0.1); padding: 1px 5px; border-radius: 3px;
}

/* ========================================
   6f. INTEGRATION GRID (homepage)
   ======================================== */

.vc-integration-grid-home {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.vc-integ-card {
  background: var(--vc-panel); border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius); padding: 24px; transition: all 0.3s;
  border-left: 3px solid transparent;
}
.vc-integ-card:nth-child(1) { border-left-color: var(--vc-accent); }
.vc-integ-card:nth-child(2) { border-left-color: var(--vc-accent-2); }
.vc-integ-card:nth-child(3) { border-left-color: var(--vc-accent-3); }
.vc-integ-card:nth-child(4) { border-left-color: var(--vc-accent-4); }
.vc-integ-card:hover { border-color: var(--vc-accent-2); box-shadow: 0 0 20px rgba(52,211,153,0.1); }
.vc-integ-icon { font-size: 1.5rem; margin-bottom: 12px; }
.vc-integ-card h3 { font-size: 1rem; font-weight: 700; color: var(--vc-text); margin: 0 0 8px; }
.vc-integ-card p { font-size: 0.88rem; color: var(--vc-muted); line-height: 1.55; margin: 0; }
.vc-integ-card code {
  font-family: var(--vc-mono); font-size: 0.8rem; color: var(--vc-accent);
  background: rgba(56,189,248,0.1); padding: 1px 5px; border-radius: 3px;
}

/* ========================================
   6g. OPEN SOURCE BANNER
   ======================================== */

.vc-opensource-banner {
  background: var(--vc-panel); border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius); padding: 48px 40px;
  display: flex; align-items: flex-start; gap: 48px;
  position: relative; overflow: hidden;
}
.vc-opensource-banner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.15;
  background-image: radial-gradient(circle, var(--vc-border) 1px, transparent 1px);
  background-size: 20px 20px;
}
.vc-opensource-banner > * { position: relative; z-index: 1; }
.vc-os-content { flex: 1; }
.vc-os-content h2 {
  font-size: 1.6rem; font-weight: 800; color: var(--vc-text);
  margin: 0 0 12px; letter-spacing: -0.02em;
}
.vc-os-content p { font-size: 0.95rem; color: var(--vc-muted); line-height: 1.6; margin: 0 0 20px; }
.vc-os-links { display: flex; gap: 12px; }
.vc-os-stats {
  display: flex; flex-direction: column; gap: 16px; min-width: 160px;
}
.vc-os-stat { text-align: center; }
.vc-os-stat strong {
  display: block; font-family: var(--vc-mono); font-size: 1rem;
  font-weight: 700; color: var(--vc-accent-2);
}
.vc-os-stat span { font-size: 0.78rem; color: var(--vc-muted); }

/* ========================================
   6h. BENCHMARK GRID
   ======================================== */

.vc-benchmark-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.vc-bench-card {
  background: var(--vc-panel); border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius); padding: 28px; text-align: center;
  transition: all 0.3s;
}
.vc-bench-card:hover { border-color: var(--vc-accent); box-shadow: var(--vc-glow); }
.vc-bench-card h3 {
  font-family: var(--vc-mono); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--vc-muted); margin: 0 0 16px;
}
.vc-bench-stat {
  font-size: 3rem; font-weight: 800; font-family: var(--vc-mono);
  background: linear-gradient(135deg, var(--vc-accent), var(--vc-accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 12px;
}
.vc-bench-card p { font-size: 0.88rem; color: var(--vc-muted); line-height: 1.6; margin: 0; }
/* Warm top accent per bench card */
.vc-bench-card:nth-child(1) { border-top: 3px solid var(--vc-accent); }
.vc-bench-card:nth-child(2) { border-top: 3px solid var(--vc-accent-2); }
.vc-bench-card:nth-child(3) { border-top: 3px solid var(--vc-accent-3); }
.vc-bench-card:nth-child(1) .vc-bench-stat {
  background: linear-gradient(135deg, var(--vc-accent), #67e8f9);
  -webkit-background-clip: text; background-clip: text;
}
.vc-bench-card:nth-child(2) .vc-bench-stat {
  background: linear-gradient(135deg, var(--vc-accent-2), #6ee7b7);
  -webkit-background-clip: text; background-clip: text;
}
.vc-bench-card:nth-child(3) .vc-bench-stat {
  background: linear-gradient(135deg, var(--vc-accent-3), #c4b5fd);
  -webkit-background-clip: text; background-clip: text;
}

/* Counter animation for benchmark numbers */
.vc-bench-stat[data-count] {
  font-variant-numeric: tabular-nums;
}

/* ========================================
   7. STEPS / HOW IT WORKS
   ======================================== */

.vc-process-grid { gap: 24px !important; }

.vc-step {
  background: var(--vc-panel); border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius); padding: 28px; height: 100%; transition: all 0.3s;
}
.vc-step:hover { border-color: var(--vc-accent); box-shadow: var(--vc-glow); transform: translateY(-2px); }

.vc-step-num {
  font-family: var(--vc-mono); font-size: 0.75rem; font-weight: 700;
  color: #0a0f1a; background: var(--vc-accent);
  width: 28px; height: 28px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px !important;
}

.vc-step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px !important; color: var(--vc-text); }
.vc-step p:not(.vc-step-num) { font-size: 0.92rem; color: var(--vc-muted); line-height: 1.55; }
.vc-step code { font-family: var(--vc-mono); color: var(--vc-accent); background: rgba(56,189,248,0.1); padding: 2px 6px; border-radius: 4px; font-size: 0.85rem; }

/* ========================================
   8. PROVIDER PILLS
   ======================================== */

.vc-provider-grid { gap: 16px !important; margin-bottom: 16px !important; }

.vc-provider-pill {
  background: var(--vc-panel); border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius); padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: all 0.3s;
}
.vc-provider-pill:hover { border-color: var(--vc-accent-2); box-shadow: 0 0 20px rgba(52, 211, 153, 0.1); }
.vc-provider-pill strong { font-size: 0.95rem; font-weight: 700; color: var(--vc-text); white-space: nowrap; }
.vc-provider-pill span { font-family: var(--vc-mono); font-size: 0.78rem; color: var(--vc-accent-2); opacity: 0.8; overflow: hidden; text-overflow: ellipsis; }

/* Provider brand accent borders */
.vc-provider-pill.vc-provider-anthropic { border-left: 3px solid #d4a27f !important; }
.vc-provider-pill.vc-provider-openai { border-left: 3px solid #10a37f !important; }
.vc-provider-pill.vc-provider-gemini { border-left: 3px solid #4285f4 !important; }
.vc-provider-pill.vc-provider-groq { border-left: 3px solid #f55036 !important; }
.vc-provider-pill.vc-provider-mistral { border-left: 3px solid #ff7000 !important; }
.vc-provider-pill.vc-provider-together { border-left: 3px solid #6366f1 !important; }

/* ========================================
   9. COMPARISON CARDS
   ======================================== */

.vc-vs-grid { gap: 24px !important; }

.vc-card {
  background: var(--vc-panel); border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius); padding: 32px; height: 100%;
}
.vc-card h3 { font-size: 1.2rem; margin-bottom: 20px !important; color: var(--vc-text); }

.vc-card-highlight {
  border-color: var(--vc-accent); box-shadow: var(--vc-glow); position: relative;
}
.vc-card-highlight::before {
  content: "RECOMMENDED"; position: absolute; top: -10px; left: 24px;
  font-family: var(--vc-mono); font-size: 0.65rem; font-weight: 700;
  color: #0a0f1a; background: var(--vc-accent);
  padding: 3px 10px; border-radius: 4px; letter-spacing: 0.08em;
}

.vc-checklist { list-style: none; padding: 0; margin: 0; }
.vc-checklist li {
  position: relative; padding-left: 24px; margin-bottom: 14px;
  font-size: 0.92rem; color: var(--vc-muted); line-height: 1.5;
}
.vc-checklist li::before {
  content: ">"; position: absolute; left: 4px;
  color: var(--vc-accent-2); font-weight: 700; font-family: var(--vc-mono);
}
.vc-card-highlight .vc-checklist li::before { content: "~"; color: var(--vc-accent); }

/* ========================================
   10. FINAL CTA
   ======================================== */

.vc-final-cta {
  text-align: center; padding: 60px 20px;
  border: 1px solid var(--vc-border); border-radius: var(--vc-radius);
  background: var(--vc-panel); box-shadow: var(--vc-shadow);
  position: relative; overflow: hidden;
}
.vc-final-cta::before {
  content: ''; position: absolute; inset: -40%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 30% 50%, rgba(244,96,51,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 70% 50%, rgba(56,189,248,0.06) 0%, transparent 60%);
  filter: blur(30px);
}
.vc-final-cta > * { position: relative; z-index: 1; }
.vc-final-cta h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px !important; }
.vc-final-cta p { color: var(--vc-muted); font-size: 1.05rem; margin-bottom: 28px !important; }
.vc-final-cta .wp-block-buttons { justify-content: center; gap: 12px; }
.vc-footer-note { margin-top: 24px !important; font-size: 0.85rem; color: var(--vc-muted); }
.vc-footer-note a { color: var(--vc-accent); }

/* ========================================
   11. FOOTER
   ======================================== */

.vc-site-footer {
  padding: 80px 20px 40px;
  border-top: 1px solid var(--vc-border); background: var(--vc-bg-soft);
}

.vc-footer-brand .wp-block-site-title__link {
  font-size: 0.88rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 800; text-decoration: none; color: var(--vc-accent);
  font-family: var(--vc-mono);
}

.vc-footer-tagline { font-size: 0.9rem; color: var(--vc-muted); line-height: 1.6; margin-top: 12px; }

.vc-site-footer h4 {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 700; color: var(--vc-muted); margin-bottom: 20px; font-family: var(--vc-mono);
}

.vc-site-footer .wp-block-navigation-item__content {
  font-size: 0.88rem; color: var(--vc-muted); text-decoration: none; transition: color 0.2s;
}
.vc-site-footer .wp-block-navigation-item__content:hover { color: var(--vc-accent); }

.vc-footer-separator { margin: 48px 0 32px; opacity: 0.2; border-color: var(--vc-border); }
.vc-copyright { color: var(--vc-muted); font-family: var(--vc-mono); font-size: 0.8rem !important; }

.vc-footer-status {
  display: flex; align-items: center; gap: 8px;
  color: var(--vc-muted); font-family: var(--vc-mono); font-size: 0.8rem !important;
}

.vc-status-indicator {
  width: 8px; height: 8px; background: var(--vc-accent-2);
  border-radius: 50%; display: inline-block;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(52, 211, 153, 0.5); }
  50% { box-shadow: 0 0 16px rgba(52, 211, 153, 0.8); }
}

/* ========================================
   12. RESPONSIVE
   ======================================== */

@media (max-width: 780px) {
  .vc-hero { padding-top: 20px !important; }
  .vc-site-footer .wp-block-columns { gap: 40px; }
  .vc-stat-row .wp-block-column { flex-basis: 48% !important; }
  .vc-capability-grid { grid-template-columns: 1fr; }
  .vc-install-grid { grid-template-columns: 1fr; }
  .vc-integration-grid-home { grid-template-columns: 1fr; }
  .vc-benchmark-grid { grid-template-columns: 1fr; }
  .vc-result-grid { grid-template-columns: 1fr; }
  .vc-opensource-banner { flex-direction: column; padding: 32px 20px; gap: 32px; overflow: hidden; }
  .vc-os-content { overflow: hidden; }
  .vc-os-content h2 { font-size: 1.3rem; }
  .vc-os-content p { font-size: 0.88rem; }
  .vc-os-links { flex-wrap: wrap; }
  .vc-os-stats { flex-direction: row; gap: 24px; flex-wrap: wrap; }
  .vc-provider-pill { padding: 16px 16px; }
  .vc-provider-pill span { font-size: 0.68rem; }

  /* — Header mobile fixes — */
  /* Hide Dark toggle and Log In button on mobile — they go in the overlay menu */
  .vc-theme-toggle { display: none !important; }
  .vc-mobile-theme-btn { display: inline-block !important; }
  .vc-header-cta { display: none !important; }

  /* Ensure WP nav overlay isn't clipped by header shell */
  .vc-site-header-shell { overflow: visible !important; }
  .vc-header-row { overflow: visible !important; }
  .vc-header-right { overflow: visible !important; }

  /* WP navigation overlay — full viewport with close button */
  .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    z-index: 9999 !important;
    background: var(--vc-bg) !important;
    padding: 0 !important;
  }

  /* Close button — top right */
  .wp-block-navigation__responsive-container-close {
    position: absolute !important;
    top: 16px !important; right: 24px !important;
    z-index: 10000 !important;
    background: none !important;
    border: 1px solid var(--vc-border) !important;
    border-radius: 8px !important;
    color: var(--vc-text) !important;
    font-size: 1.4rem !important;
    width: 40px !important; height: 40px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    cursor: pointer !important;
  }

  /* Nav items — right aligned, below close button */
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    padding: 80px 40px 24px !important;
    gap: 0 !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    justify-content: flex-end !important;
    text-align: right !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    color: var(--vc-text) !important;
    font-size: 1.15rem !important;
    padding: 10px 0 !important;
  }

  /* — Comparison table mobile — */
  /* Break out of WP constrained layout — full viewport width */
  .vc-compare-wrap {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 0 !important;
    overflow-x: hidden;
  }

  /* Pill tabs — visible on mobile */
  .vc-compare-tabs {
    display: flex !important;
    gap: 6px;
    padding: 0 12px 10px;
    justify-content: center;
  }
  .vc-compare-pill {
    background: var(--vc-panel); border: 1px solid var(--vc-border);
    border-radius: 20px; padding: 5px 12px;
    font-size: 0.68rem; font-family: var(--vc-mono); font-weight: 600;
    color: var(--vc-muted); cursor: pointer; transition: all 0.2s;
    white-space: nowrap;
  }
  .vc-compare-pill.is-active {
    border-color: var(--vc-accent); color: var(--vc-accent);
    background: rgba(56,189,248,0.08);
  }

  /* Hide competitor columns by default; show only active one */
  .vc-compare-table-full th:nth-child(2),
  .vc-compare-table-full td:nth-child(2),
  .vc-compare-table-full th:nth-child(3),
  .vc-compare-table-full td:nth-child(3),
  .vc-compare-table-full th:nth-child(4),
  .vc-compare-table-full td:nth-child(4) { display: none; }

  /* JS adds .vc-col-visible to the active column */
  .vc-compare-table-full th.vc-col-visible,
  .vc-compare-table-full td.vc-col-visible { display: table-cell !important; }

  .vc-compare-table-full {
    font-size: 0.78rem; width: 100% !important;
    border-left: none; border-right: none; border-radius: 0;
  }
  .vc-compare-table-full th,
  .vc-compare-table-full td { padding: 10px 10px; line-height: 1.45; }
  .vc-compare-table-full thead th { font-size: 0.62rem; letter-spacing: 0.02em; }
  .vc-compare-table-full .vc-row-label { font-size: 0.72rem; }

  /* 3-column layout: label | competitor | VC */
  .vc-compare-table-full th:nth-child(1),
  .vc-compare-table-full td:nth-child(1) { width: 22%; }
  .vc-compare-table-full th.vc-col-visible,
  .vc-compare-table-full td.vc-col-visible { width: 33%; }
  .vc-compare-table-full th:nth-child(5),
  .vc-compare-table-full td:nth-child(5) { width: 45%; }
}

/* ========================================
   R1. REDESIGN — HERO SPLIT LAYOUT
   ======================================== */

.vc-hero-split {
  position: relative;
  overflow: hidden;
  padding: 70px 0 50px;
  /* Break out of WP constrained layout */
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  max-width: none !important;
}
/* Gradient mesh behind hero */
.vc-hero-split::before {
  content: ''; position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% 50%, rgba(56,189,248,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 30%, rgba(167,139,250,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 90%, rgba(52,211,153,0.06) 0%, transparent 50%);
  filter: blur(40px);
}
.vc-hero-split > * { position: relative; z-index: 1; }

.vc-hero-split-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  max-width: var(--vc-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero background video — masked to cut out donut area */
.vc-hero-video {
  position: absolute; inset: -40px -24px;
  overflow: hidden; opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}
.vc-hero-video video {
  width: 100%; height: 100%; object-fit: cover;
  /* mask-image set dynamically by JS to track gauge position on resize */
}
.vc-light-mode .vc-hero-video { opacity: 0.12; }

/* Hero content (left side) */
.vc-hero-content { max-width: 500px; position: relative; z-index: 2; }

.vc-hero-badge {
  display: inline-block;
  font-family: var(--vc-mono); font-size: 0.72rem; font-weight: 600;
  color: var(--vc-accent); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.06);
  margin-bottom: 24px;
}
.vc-light-mode .vc-hero-badge {
  border-color: rgba(2,132,199,0.25);
  background: rgba(2,132,199,0.06);
}

.vc-hero-title-split {
  font-family: var(--vc-heading) !important;
  font-size: clamp(2.2rem, 4vw, 3.2rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.08 !important;
  margin-bottom: 16px !important;
  color: var(--vc-text);
  white-space: nowrap;
}
.vc-hero-title-split em {
  font-style: normal;
  color: var(--vc-accent);
}

.vc-hero-copy-split {
  font-size: 1.05rem;
  color: var(--vc-muted);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 24px;
}

.vc-hero-buttons { display: flex; gap: 12px; align-items: center; }

.vc-btn-cta {
  display: inline-flex; align-items: center;
  background: var(--vc-cta);
  color: #fff !important;
  padding: 12px 28px; border-radius: 10px;
  font-weight: 600; font-size: 0.92rem;
  text-decoration: none; border: none; cursor: pointer;
  font-family: var(--vc-font);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.vc-btn-cta:hover {
  background: var(--vc-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(244, 96, 51, 0.25);
}
.vc-btn-cta:active { transform: translateY(0) scale(0.98); }

.vc-btn-ghost {
  display: inline-flex; align-items: center;
  color: var(--vc-muted); font-size: 0.92rem; font-weight: 500;
  text-decoration: none; padding: 12px 20px;
  font-family: var(--vc-font);
  transition: color 0.2s;
}
.vc-btn-ghost:hover { color: var(--vc-text); }

/* Hero visual — dual-ring context gauge */
.vc-hero-visual {
  display: flex; align-items: center; justify-content: center;
}
.vc-hero-gauge-wrap {
  position: relative; width: 340px; height: 340px;
}
.vc-hero-gauge-svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.vc-hero-gauge-svg circle {
  fill: none; stroke-linecap: round;
}
/* Baseline ring (outer) */
.vc-gauge-baseline-track {
  stroke: rgba(255,255,255,0.04); stroke-width: 18;
}
.vc-gauge-baseline-fill {
  stroke: rgba(56, 189, 248, 0.2); stroke-width: 18;
  transition: stroke-dasharray 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}
/* VC ring (inner) */
.vc-gauge-vc-track {
  stroke: rgba(255,255,255,0.03); stroke-width: 24;
}
.vc-gauge-vc-fill {
  stroke: #34d399; stroke-width: 24;
  transition: stroke-dasharray 2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.vc-gauge-zero { stroke-dasharray: 0 9999; }
/* Light mode gauge tracks */
.vc-light-mode .vc-gauge-baseline-track { stroke: rgba(0,0,0,0.06); }
.vc-light-mode .vc-gauge-baseline-fill { stroke: rgba(2,132,199,0.25); }
.vc-light-mode .vc-gauge-vc-track { stroke: rgba(0,0,0,0.04); }
.vc-light-mode .vc-gauge-vc-fill { stroke: #059669; }

/* Center labels */
.vc-hero-gauge-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2; text-align: center;
}
.vc-hero-gauge-pct {
  font-family: var(--vc-mono);
  font-size: 2.6rem; font-weight: 700;
  color: #34d399;
}
.vc-light-mode .vc-hero-gauge-pct { color: #059669; }
.vc-hero-gauge-sub {
  font-size: 0.82rem; color: var(--vc-muted);
  font-family: var(--vc-mono);
}
.vc-hero-gauge-sub-baseline {
  font-size: 0.72rem; color: var(--vc-muted);
  font-family: var(--vc-mono); opacity: 0.6;
  margin-top: 2px;
}

/* ========================================
   R2. REDESIGN — STATS STRIP
   ======================================== */

.vc-stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--vc-border);
  border-radius: 14px; overflow: hidden;
  margin: 0 auto 50px;
  max-width: var(--vc-max);
}
.vc-stat-item {
  background: var(--vc-bg-soft);
  padding: 28px 24px;
  text-align: center;
}
.vc-stat-value {
  font-family: var(--vc-mono);
  font-size: 1.8rem; font-weight: 700;
  color: var(--vc-text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.vc-stat-value span { color: var(--vc-accent); }
.vc-stat-label {
  font-size: 0.78rem; color: var(--vc-muted);
  margin-top: 4px;
}

/* ========================================
   R3. REDESIGN — SECTION LABELS
   ======================================== */

.vc-section-label {
  font-family: var(--vc-mono);
  font-size: 0.68rem; font-weight: 700;
  color: var(--vc-accent); text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  text-align: center;
}

/* ========================================
   R4. REDESIGN — BENTO BENCHMARK GRID
   ======================================== */

.vc-bench-bento {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  padding: 20px 0;
}
.vc-bench-bento-card {
  background: var(--vc-panel);
  border: 1px solid var(--vc-border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.2s;
}
.vc-bench-bento-card:hover { border-color: rgba(56, 189, 248, 0.2); }
.vc-bench-bento-card.vc-bench-tall { grid-row: span 2; }
.vc-bench-big-num {
  font-family: var(--vc-mono);
  font-size: 3.2rem; font-weight: 700;
  color: var(--vc-accent);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.vc-bench-bento-card h3 {
  font-family: var(--vc-heading);
  font-size: 1rem; font-weight: 700;
  margin-bottom: 8px;
  color: var(--vc-text);
}
.vc-bench-bento-card p {
  color: var(--vc-muted); font-size: 0.85rem; line-height: 1.6;
  margin: 0;
}
/* Breakdown table inside tall card */
.vc-bench-breakdown {
  width: 100%; border-collapse: collapse;
  margin-top: 16px; font-size: 0.78rem;
  font-family: var(--vc-mono);
}
.vc-bench-breakdown th {
  text-align: left; padding: 6px 8px;
  color: var(--vc-muted); font-weight: 600;
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--vc-border);
}
.vc-bench-breakdown td {
  padding: 6px 8px; color: var(--vc-muted);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.vc-light-mode .vc-bench-breakdown td {
  border-bottom-color: rgba(0,0,0,0.04);
}
.vc-bench-breakdown tbody tr:last-child td { border-bottom: none; }
.vc-bench-breakdown .vc-bench-vc-val {
  color: #34d399; font-weight: 700;
}
.vc-light-mode .vc-bench-breakdown .vc-bench-vc-val { color: #059669; }
.vc-bench-breakdown .vc-bench-delta-val {
  color: var(--vc-accent); font-weight: 600;
}

/* ========================================
   R5. REDESIGN — ADDITIONAL REVEAL ANIMATIONS
   ======================================== */

.vc-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.vc-reveal-left.is-visible {
  opacity: 1; transform: translateX(0);
}
.vc-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.vc-reveal-right.is-visible {
  opacity: 1; transform: translateX(0);
}
.vc-reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.vc-reveal-scale.is-visible {
  opacity: 1; transform: scale(1);
}
.vc-delay-1 { transition-delay: 0.1s; }
.vc-delay-2 { transition-delay: 0.2s; }
.vc-delay-3 { transition-delay: 0.3s; }

/* ========================================
   R6. REDESIGN — RESPONSIVE OVERRIDES
   ======================================== */

/* Tablet: donut stays full size, text shrinks */
@media (max-width: 1024px) {
  .vc-hero-split-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .vc-hero-title-split {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem) !important;
    white-space: normal !important;
  }
  .vc-hero-copy-split { font-size: 0.95rem; }
}

/* Mobile */
@media (max-width: 768px) {
  .vc-hero-split { padding: 50px 0 30px; }
  .vc-hero-split-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .vc-hero-content { max-width: none; }
  .vc-hero-title-split {
    white-space: normal !important;
    font-size: 2rem !important;
  }
  .vc-hero-copy-split { max-width: none; }
  .vc-hero-buttons { justify-content: center; }
  .vc-hero-visual {
    order: -1;
    margin-bottom: 20px;
  }
  .vc-hero-gauge-wrap { width: 200px !important; height: 200px !important; margin: 0 auto; }
  .vc-hero-gauge-pct { font-size: 1.6rem !important; }
  .vc-hero-gauge-sub { font-size: 0.68rem; }
  .vc-hero-video { display: none; }

  .vc-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .vc-bench-bento { grid-template-columns: 1fr; }
  .vc-bench-bento-card.vc-bench-tall { grid-row: auto; }
}

@media (max-width: 480px) {
  .vc-hero-gauge-wrap { width: 160px !important; height: 160px !important; }
  .vc-hero-gauge-pct { font-size: 1.3rem !important; }
  .vc-stats-strip { grid-template-columns: 1fr; }
}

/* ========================================
   R7. PAPER PAGE
   ======================================== */

/* --- Layout --- */
/* Zero out WP global padding on paper page */
.wp-site-blocks:has(.vc-paper-layout) {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.vc-paper-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
  background: #141820;
  position: relative;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

/* --- Sidebar Navigation --- */
.vc-paper-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: #111520;
  border-right: 1px solid var(--vc-border);
  padding: 32px 0 48px;
  z-index: 10;
  scrollbar-width: thin;
  scrollbar-color: var(--vc-border) transparent;
}

.vc-paper-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vc-paper-nav-link {
  display: block;
  padding: 8px 20px 8px 24px;
  font-family: var(--vc-mono);
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--vc-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.vc-paper-nav-link:hover {
  color: var(--vc-text);
  background: rgba(43, 168, 224, 0.04);
}

.vc-paper-nav-link.vc-paper-nav-active {
  color: var(--vc-accent);
  border-left-color: var(--vc-accent);
  background: rgba(43, 168, 224, 0.06);
}

/* --- Article Content Area --- */
.vc-paper-content {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 40px 120px;
  color: var(--vc-text);
  font-family: var(--vc-font);
  font-size: 1rem;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.8;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* --- Paper toolbar (theme toggle) --- */
.vc-paper-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}
.vc-paper-theme-toggle {
  background: transparent;
  border: 1px solid var(--vc-border);
  color: var(--vc-muted);
  font-family: var(--vc-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.vc-paper-theme-toggle:hover {
  border-color: var(--vc-accent);
  color: var(--vc-text);
}

/* --- Paper light mode (scoped to .vc-paper-light) --- */
.vc-paper-light {
  background: #eef0f4;
}
.vc-paper-light .vc-paper-content {
  background: #eef0f4;
  color: #1a1a2e;
}
.vc-paper-light .vc-paper-content h1 { color: #0c4a6e; }
.vc-paper-light .vc-paper-content h2 { color: #1a1a2e; border-top-color: #e2e8f0; }
.vc-paper-light .vc-paper-content h3 { color: #1e293b; }
.vc-paper-light .vc-paper-content h4 { color: #334155; }
.vc-paper-light .vc-paper-content p { color: #374151; }
.vc-paper-light .vc-paper-content li { color: #374151; }
.vc-paper-light .vc-paper-content em { color: #4b5563; }
.vc-paper-light .vc-paper-content strong { color: #111827; }
.vc-paper-light .vc-paper-content hr { border-color: #e5e7eb; }
.vc-paper-light .vc-paper-content code {
  background: #f1f5f9;
  color: #0369a1;
  border-color: #e2e8f0;
}
.vc-paper-light .vc-paper-content pre {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.vc-paper-light .vc-paper-content pre code {
  color: #1e293b;
}
.vc-paper-light .vc-paper-content table {
  border-color: #e2e8f0;
}
.vc-paper-light .vc-paper-content thead {
  background: #f1f5f9;
  border-bottom-color: #cbd5e1;
}
.vc-paper-light .vc-paper-content th {
  color: #475569;
  border-color: #e2e8f0;
}
.vc-paper-light .vc-paper-content td {
  color: #374151;
  border-color: #f1f5f9;
}
.vc-paper-light .vc-paper-content tbody tr:hover {
  background: #f8fafc;
}
.vc-paper-light .vc-paper-content blockquote {
  border-left-color: #0284c7;
  background: #f0f9ff;
  color: #374151;
}
.vc-paper-light .vc-paper-theme-toggle {
  border-color: #d1d5db;
  color: #6b7280;
}
.vc-paper-light .vc-paper-theme-toggle:hover {
  border-color: #0284c7;
  color: #1e293b;
}
/* Light mode sidebar */
.vc-paper-light .vc-paper-nav {
  background: #f1f5f9;
  border-right-color: #e2e8f0;
}
.vc-paper-light .vc-paper-nav-link {
  color: #6b7280;
}
.vc-paper-light .vc-paper-nav-link:hover {
  color: #1e293b;
  background: rgba(2, 132, 199, 0.06);
}
.vc-paper-light .vc-paper-nav-link.vc-paper-nav-active {
  color: #0284c7;
  border-left-color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
}

/* --- Paper data downloads --- */
.vc-paper-downloads {
  display: flex; flex-direction: column; gap: 12px; margin: 24px 0 40px;
}
.vc-paper-downloads h3 {
  font-family: var(--vc-heading); font-size: 1.15rem; color: var(--vc-text); margin: 0 0 4px;
}
.vc-paper-dl {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--vc-mono); font-size: 0.78rem; font-weight: 600;
  color: var(--vc-accent); text-decoration: none;
  border: 1px solid var(--vc-border); border-radius: 6px;
  padding: 8px 14px; transition: all 0.2s;
}
.vc-paper-dl:hover { border-color: var(--vc-accent); background: rgba(43,168,224,0.06); }
.vc-paper-dl span { font-weight: 400; color: var(--vc-muted); font-size: 0.72rem; }
.vc-paper-light .vc-paper-dl { color: #0284c7; border-color: #d1d5db; }
.vc-paper-light .vc-paper-dl:hover { border-color: #0284c7; background: rgba(2,132,199,0.06); }
.vc-paper-light .vc-paper-dl span { color: #6b7280; }

/* --- Paper Title (h1) --- */
.vc-paper-content h1 {
  font-family: var(--vc-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--vc-accent);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

/* --- Author / metadata line --- */
.vc-paper-content > section > p:first-of-type {
  font-family: var(--vc-mono);
  font-size: 0.85rem;
  color: var(--vc-muted);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

/* --- Section headings (h2) --- */
.vc-paper-content h2 {
  font-family: var(--vc-heading);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--vc-text);
  margin: 56px 0 20px;
  padding-top: 32px;
  border-top: 1px solid var(--vc-border);
  letter-spacing: -0.01em;
}

/* First h2 (Abstract) needs no top border */
.vc-paper-content section:first-of-type > section:first-of-type > h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 24px;
}

/* --- Subsection headings (h3) --- */
.vc-paper-content h3 {
  font-family: var(--vc-heading);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--vc-text);
  margin: 40px 0 14px;
}

/* --- Subsubsection headings (h4) --- */
.vc-paper-content h4 {
  font-family: var(--vc-heading);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--vc-muted);
  margin: 32px 0 10px;
}

/* --- Paragraphs --- */
.vc-paper-content p {
  margin: 0 0 18px;
  text-align: left;
}

/* --- Horizontal rules (section separators) --- */
.vc-paper-content hr {
  border: none;
  border-top: 1px solid var(--vc-border);
  margin: 40px 0;
}

/* --- Lists --- */
.vc-paper-content ul,
.vc-paper-content ol {
  margin: 0 0 18px;
  padding-left: 28px;
}

.vc-paper-content li {
  margin-bottom: 8px;
}

.vc-paper-content li p {
  margin-bottom: 8px;
}

/* --- Inline code --- */
.vc-paper-content code {
  font-family: var(--vc-mono);
  font-size: 0.88em;
  background: var(--vc-panel);
  color: var(--vc-accent);
  padding: 2px 6px;
  border-radius: 4px;
}

/* --- Code blocks --- */
.vc-paper-content pre {
  background: var(--vc-panel);
  border: 1px solid var(--vc-border);
  border-radius: 8px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 0 0 24px;
  line-height: 1.5;
}

.vc-paper-content pre code {
  background: none;
  padding: 0;
  font-size: 0.82rem;
  color: var(--vc-text);
}

/* Pandoc sourceCode styling */
.vc-paper-content .sourceCode {
  background: var(--vc-panel);
  border: 1px solid var(--vc-border);
  border-radius: 8px;
  overflow-x: auto;
}

.vc-paper-content .sourceCode pre {
  border: none;
  margin: 0;
}

.vc-paper-content .sourceCode .dt { color: var(--vc-accent); }
.vc-paper-content .sourceCode .st { color: var(--vc-accent-2); }
.vc-paper-content .sourceCode .fu { color: var(--vc-text); }
.vc-paper-content .sourceCode .ot { color: var(--vc-muted); }

/* --- Tables --- */
.vc-paper-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 0.88rem;
  line-height: 1.5;
  display: block;
  overflow-x: auto;
}

.vc-paper-content thead {
  border-bottom: 2px solid var(--vc-border);
}

.vc-paper-content th {
  font-family: var(--vc-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vc-muted);
  text-align: left;
  padding: 10px 12px;
}

.vc-paper-content td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--vc-border);
  color: var(--vc-text);
}

.vc-paper-content tbody tr:hover {
  background: rgba(43, 168, 224, 0.03);
}

/* --- Blockquotes --- */
.vc-paper-content blockquote {
  border-left: 3px solid var(--vc-accent);
  margin: 0 0 24px;
  padding: 12px 20px;
  background: var(--vc-bg-soft);
  border-radius: 0 8px 8px 0;
  color: var(--vc-text);
}

.vc-paper-content blockquote p:last-child {
  margin-bottom: 0;
}

/* --- Emphasis / Strong --- */
.vc-paper-content em {
  font-style: italic;
}

.vc-paper-content strong {
  font-weight: 600;
  color: var(--vc-text);
}

/* --- Links --- */
.vc-paper-content a {
  color: var(--vc-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.vc-paper-content a:hover {
  border-bottom-color: var(--vc-accent);
}

/* --- Figures & Images --- */
.vc-paper-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.vc-paper-content figure {
  margin: 24px 0;
}

.vc-paper-content figcaption {
  font-size: 0.85rem;
  color: var(--vc-muted);
  margin-top: 8px;
  font-style: italic;
}

/* --- Light mode overrides --- */
.vc-light-mode .vc-paper-nav {
  background: var(--vc-bg-soft);
  border-right-color: var(--vc-border);
}

.vc-light-mode .vc-paper-nav-link:hover {
  background: rgba(2, 132, 199, 0.04);
}

.vc-light-mode .vc-paper-nav-link.vc-paper-nav-active {
  color: var(--vc-accent);
  border-left-color: var(--vc-accent);
  background: rgba(2, 132, 199, 0.06);
}

.vc-light-mode .vc-paper-content code {
  background: var(--vc-bg-soft);
  color: var(--vc-accent);
}

.vc-light-mode .vc-paper-content pre {
  background: var(--vc-panel);
  border-color: var(--vc-border);
}

.vc-light-mode .vc-paper-content pre code {
  color: var(--vc-text);
}

.vc-light-mode .vc-paper-content tbody tr:hover {
  background: rgba(2, 132, 199, 0.03);
}

/* --- Responsive: tablet and below --- */
@media (max-width: 1024px) {
  .vc-paper-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .vc-paper-nav {
    position: sticky;
    top: 0;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: none;
    border-bottom: 1px solid var(--vc-border);
    padding: 0;
    -webkit-overflow-scrolling: touch;
  }

  .vc-paper-nav-inner {
    flex-direction: row;
    gap: 0;
    padding: 0 16px;
    white-space: nowrap;
  }

  .vc-paper-nav-link {
    padding: 12px 14px;
    border-left: none;
    border-bottom: 2px solid transparent;
    font-size: 0.7rem;
    flex-shrink: 0;
  }

  .vc-paper-nav-link.vc-paper-nav-active {
    border-left-color: transparent;
    border-bottom-color: var(--vc-accent);
  }

  .vc-paper-content {
    padding: 40px 24px 80px;
  }
}

@media (max-width: 600px) {
  .vc-paper-content {
    padding: 32px 16px 60px;
  }

  .vc-paper-content h1 {
    font-size: 1.3rem;
    word-break: break-word;
    hyphens: auto;
  }

  .vc-paper-content h2 {
    font-size: 1.25rem;
    margin-top: 40px;
    padding-top: 24px;
  }

  .vc-paper-content h3 {
    font-size: 1.05rem;
  }

  .vc-paper-content table {
    font-size: 0.8rem;
    display: block;
    overflow-x: auto;
  }

  .vc-paper-content pre {
    padding: 14px 16px;
  }

  .vc-paper-content pre code {
    font-size: 0.76rem;
  }
}
