/* ==========================================================================
   Code1001 - WordPress Development Service Page Stylesheet
   ========================================================================== */

/* ---------- PAGE ROOT & WRAPPER ---------- */
.wp-dev-page {
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* Section Spacing */
.wp-hero {
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
}

.wp-capabilities-sec,
.wp-craft-sec,
.wp-gutenberg-sec,
.wp-perf-sec,
.wp-services-sec,
.wp-cases-sec,
.wp-process-sec,
.wp-faq-sec {
  padding: 80px 0;
  position: relative;
}

/* Shared Section Subhead */
.sub-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ==========================================================================
   1. HERO SECTION & INTERACTIVE HUD STAGE
   ========================================================================== */
.wp-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  max-width: 100%;
}

.wp-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.wp-grid-lines {
  display: none !important;
}

.wp-hero-radial-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 100vw);
  max-width: 100%;
  height: 450px;
  background: radial-gradient(ellipse at center, rgba(128,128,128,0.08), transparent 70%);
  pointer-events: none;
}

.wp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.98fr);
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
}

.wp-hero-content,
.wp-hero-stage-wrap {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* Kicker Pill */
.wp-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--card-2);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.wp-pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* Hero Titles */
.wp-hero-title {
  font-size: clamp(30px, 4.8vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 22px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.wp-title-line {
  display: inline;
}

@media (max-width: 640px) {
  .wp-title-line {
    display: block;
  }
}

.wp-gradient-text {
  background: linear-gradient(135deg, var(--text) 30%, var(--text-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wp-hero-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 520px;
  width: 100%;
  margin-bottom: 34px;
}

.wp-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  width: 100%;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.wp-hero-btn.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* Hero Features Grid */
.wp-hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
  max-width: 520px;
  width: 100%;
}

/* ==========================================================================
   WORDPRESS HERO 3D ISOMETRIC ARCHITECTURE STAGE
   ========================================================================== */
.wp-hero-stage-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.wp-hero-stage-wrap .mockup-wrap,
.wp-mockup-wrap {
  overflow: visible !important;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wp-isometric-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 500px;
  margin: 0 auto;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}

/* WordPress Glowing Ambient Aura */
.wp-iso-glow-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(56, 88, 233, 0.22) 0%, rgba(6, 182, 212, 0.12) 40%, rgba(16, 185, 129, 0.04) 65%, transparent 75%);
  filter: blur(55px);
  pointer-events: none;
  z-index: 1;
  animation: wpIsoAuraPulse 8s ease-in-out infinite alternate;
}

html[data-theme="light"] .wp-iso-glow-aura {
  background: radial-gradient(circle, rgba(56, 88, 233, 0.15) 0%, rgba(6, 182, 212, 0.08) 45%, transparent 70%);
}

/* 3D Isometric Canvas Scene */
.wp-iso-scene-3d {
  --wp-iso-scale: 0.85;
  position: relative;
  width: 520px;
  height: 450px;
  transform-style: preserve-3d;
  transform-origin: center center;
  transform: scale(var(--wp-iso-scale, 0.85)) rotateX(20deg) rotateY(-16deg) rotateZ(6deg);
  animation: wpIsoSceneFloat 8s ease-in-out infinite alternate;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
  margin: 0 auto;
}

/* Top-Left: WordPress Engine Status Widget */
.wp-iso-core-widget {
  top: 0;
  left: 0;
  width: 215px;
  padding: 14px 16px;
  z-index: 3;
}

.wpic-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.wpic-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3858e9, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(56, 88, 233, 0.4);
  flex-shrink: 0;
}

.wpic-brand-icon svg {
  width: 17px;
  height: 17px;
}

.wpic-title-wrap {
  display: flex;
  flex-direction: column;
}

.wpic-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.wpic-sub {
  font-size: 9.5px;
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}

.wpic-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  display: inline-block;
}

.wpic-stack-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wpic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  white-space: nowrap;
  font-size: 10px;
}

.wpic-key {
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
}

html[data-theme="light"] .wpic-key {
  color: rgba(0, 0, 0, 0.55);
}

.wpic-val {
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 9.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.wpic-val.badge-php {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.wpic-val.badge-redis {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.wpic-val.badge-zero {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Top-Right: Core Web Vitals & Speed Score Widget */
.wp-iso-vitals-widget {
  top: 8px;
  right: 0;
  width: 215px;
  padding: 14px 16px;
  z-index: 3;
}

.vitals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  white-space: nowrap;
  margin-bottom: 12px;
}

.vitals-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.vitals-status-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.vitals-gauge-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vitals-gauge-ring {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vitals-ring-fill {
  stroke: #10b981;
}

.vitals-score-num {
  position: absolute;
  font-size: 13px;
  font-weight: 900;
  color: #10b981;
}

.vitals-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.vml-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text);
}

.vml-lbl {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
}

html[data-theme="light"] .vml-lbl {
  color: rgba(0, 0, 0, 0.5);
}

.text-accent {
  color: #10b981;
  font-weight: 800;
}

/* Mid-Right: Custom Gutenberg Blocks Hierarchy Widget */
.wp-iso-blocks-widget {
  top: 180px;
  right: 0;
  width: 195px;
  padding: 12px 14px;
  z-index: 3;
}

.blocks-header {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] .blocks-header {
  color: rgba(0, 0, 0, 0.5);
}

.blocks-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.block-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}

html[data-theme="light"] .block-item {
  color: rgba(0, 0, 0, 0.75);
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.04);
}

.block-item:hover,
.block-item-active {
  background: rgba(56, 88, 233, 0.15);
  color: #ffffff;
  border-color: rgba(56, 88, 233, 0.35);
}

html[data-theme="light"] .block-item-active {
  color: #3858e9;
  background: rgba(56, 88, 233, 0.1);
}

.bi-icon {
  font-size: 11px;
  opacity: 0.8;
  flex-shrink: 0;
}

.bi-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10.5px;
}

.bi-tag {
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
}

html[data-theme="light"] .bi-tag {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.55);
}

/* Center: 3D Stacked Deck with Royal WordPress Hero Card */
.wp-iso-deck-stack {
  position: absolute;
  top: 75px;
  left: 150px;
  width: 235px;
  height: 165px;
  z-index: 6;
}

.wp-deck-top-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  color: #ffffff;
  padding: 16px 18px;
  z-index: 4;
  border: 1px solid rgba(56, 88, 233, 0.4);
  box-shadow: 0 20px 45px -6px rgba(0, 0, 0, 0.75), 0 0 24px rgba(56, 88, 233, 0.3);
  animation: mintCardHover 6s ease-in-out infinite alternate;
}

html[data-theme="light"] .wp-deck-top-card {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 42px -6px rgba(37, 99, 235, 0.4);
}

.wp-deck-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

html[data-theme="light"] .wp-deck-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.wp-deck-badge svg {
  width: 17px;
  height: 17px;
}

.wp-deck-speed-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 9.5px;
  font-weight: 700;
  color: #ffffff !important;
}

html[data-theme="light"] .wp-deck-top-card .wp-deck-speed-chip {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
}

.wp-deck-top-card,
html[data-theme="light"] .wp-deck-top-card,
.wp-deck-top-card .deck-body,
html[data-theme="light"] .wp-deck-top-card .deck-body {
  color: #ffffff !important;
}

.wp-deck-top-card .deck-body .deck-label,
html[data-theme="light"] .wp-deck-top-card .deck-body .deck-label,
html[data-theme="light"] .wp-iso-deck-stack .wp-deck-top-card .deck-body .deck-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-bottom: 2px;
}

.wp-deck-top-card .deck-body .deck-metric,
html[data-theme="light"] .wp-deck-top-card .deck-body .deck-metric,
html[data-theme="light"] .wp-iso-deck-stack .wp-deck-top-card .deck-body .deck-metric {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff !important;
  line-height: 1.1;
  margin-bottom: 4px;
}

.wp-deck-top-card .deck-body .deck-sub,
html[data-theme="light"] .wp-deck-top-card .deck-body .deck-sub,
html[data-theme="light"] .wp-iso-deck-stack .wp-deck-top-card .deck-body .deck-sub {
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Center-Bottom: Enterprise WooCommerce & Scalability Card */
.wp-iso-commerce-card {
  bottom: 24px;
  left: 180px;
  width: 215px;
  padding: 16px 18px;
  z-index: 5;
}

.commerce-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.commerce-icon-badge svg {
  width: 15px;
  height: 15px;
}

.commerce-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 2px;
}

html[data-theme="light"] .commerce-label {
  color: rgba(0, 0, 0, 0.5);
}

.commerce-amount {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 3px;
}

html[data-theme="light"] .commerce-amount {
  color: #111215;
}

.commerce-sub {
  font-size: 9.5px;
  font-weight: 500;
  color: #a78bfa;
}

/* Mid-Left: Architecture Filter Chips */
.wp-iso-chips-widget {
  top: 200px;
  left: 0;
  width: 120px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 3;
}

.wp-chip-item {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  transition: all 0.2s ease;
}

html[data-theme="light"] .wp-chip-item {
  color: rgba(0, 0, 0, 0.65);
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.05);
}

.wp-chip-item.wp-chip-active {
  background: rgba(56, 88, 233, 0.2);
  color: #93c5fd;
  border-color: rgba(56, 88, 233, 0.4);
  box-shadow: 0 0 12px rgba(56, 88, 233, 0.2);
}

html[data-theme="light"] .wp-chip-item.wp-chip-active {
  background: #3858e9;
  color: #ffffff;
  border-color: #3858e9;
}

/* Bottom-Left: User Contributors & Code Quality Card */
.wp-iso-avatars-card {
  bottom: 14px;
  left: 55px;
  width: 155px;
  padding: 12px 14px;
  z-index: 4;
}

/* Bottom-Left: Sparkline Latency Chart Card */
.wp-iso-chart-card {
  bottom: 0;
  left: 4px;
  width: 140px;
  padding: 10px 12px;
  z-index: 3;
}

/* Bottom-Right: WordPress Action Floating Quick Action */
.wp-iso-quick-action {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3858e9 0%, #1e40af 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 88, 233, 0.4);
  z-index: 6;
  cursor: pointer;
  transition: all 0.25s ease;
}

.wp-iso-quick-action:hover {
  transform: scale(1.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 28px rgba(56, 88, 233, 0.6);
}

.wp-iso-quick-action svg {
  width: 18px;
  height: 18px;
}

/* Keyframe Animations */
@keyframes wpIsoAuraPulse {
  0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

@keyframes wpIsoSceneFloat {
  0% {
    transform: scale(var(--wp-iso-scale, 0.85)) rotateX(20deg) rotateY(-16deg) rotateZ(6deg) translateY(0);
  }
  100% {
    transform: scale(var(--wp-iso-scale, 0.85)) rotateX(22deg) rotateY(-14deg) rotateZ(5deg) translateY(-14px);
  }
}


/* ==========================================================================
   2. WORDPRESS CAPABILITIES (ARCHITECTURAL BENTO GRID)
   ========================================================================= */
.wp-capabilities-sec {
  position: relative;
}

.sk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3858e9;
  box-shadow: 0 0 8px #3858e9;
  display: inline-block;
  margin-right: 6px;
  animation: skDotPulse 2s ease-in-out infinite;
}

@keyframes skDotPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
}

.wp-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.wp-bento-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 34px 30px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wp-bento-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: none;
}

.wp-bento-card.bento-wide {
  grid-column: span 2;
}

@media (max-width: 960px) {
  .wp-bento-grid {
    grid-template-columns: 1fr;
  }
  .wp-bento-card.bento-wide {
    grid-column: span 1;
  }
}

.bento-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.wp-bento-card:hover .bento-icon {
  transform: scale(1.08);
}

.bento-icon.icon-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.15);
}

.bento-icon.icon-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.15);
}

.bento-icon.icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.15);
}

.bento-icon.icon-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.15);
}

.bento-icon.icon-blue {
  background: rgba(56, 88, 233, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(56, 88, 233, 0.25);
  box-shadow: 0 0 16px rgba(56, 88, 233, 0.15);
}

.bento-icon.icon-rose {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.25);
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.15);
}

.bento-icon svg {
  width: 22px;
  height: 22px;
}

.bento-indicator {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  color: var(--text-dim);
}

.wp-bento-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.wp-bento-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-dim);
}

/* Visual Block Stack Preview */
.bento-block-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 18px 0;
}

.bbs-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11.5px;
  color: var(--text);
  transition: all 0.2s ease;
}

.bbs-layer:hover {
  background: var(--card-3);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateX(4px);
}

.bbs-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bbs-icon {
  color: #818cf8;
}

.bbs-badge {
  font-size: 10.5px;
  color: #10b981;
  font-weight: 700;
}

/* API Endpoint Preview */
.bento-api-preview {
  margin-top: 18px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  font-family: 'SFMono-Regular', Consolas, monospace;
}

.bap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--card-3);
  border-bottom: 1px solid var(--border-soft);
  font-size: 11px;
}

.bap-method {
  font-weight: 800;
  color: #22d3ee;
  background: rgba(6, 182, 212, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
}

.bap-url {
  color: var(--text);
  font-weight: 600;
}

.bap-time {
  font-size: 10.5px;
  color: #10b981;
  font-weight: 700;
}

.bap-code {
  padding: 10px 12px;
  font-size: 11px;
  color: var(--text-dim);
  overflow-x: auto;
}

/* WooCommerce Metrics Row */
.bento-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.bmr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  border-radius: 10px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
}

.bmr-val {
  font-size: 15px;
  font-weight: 800;
  color: #34d399;
}

.bmr-lbl {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* Multisite Nodes Grid */
.bento-nodes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 600px) {
  .bento-nodes-grid {
    grid-template-columns: 1fr;
  }
}

.bn-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 9px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  font-size: 11.5px;
  color: var(--text-dim);
}

.bn-region {
  flex: 1;
}

.bn-ping {
  color: #c084fc;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.bn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 6px #a855f7;
  flex-shrink: 0;
}

/* Database Query Comparison Visual */
.bento-db-visual {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
  padding: 14px;
  border-radius: 12px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
}

.dbv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}

.dbv-name {
  width: 170px;
  color: var(--text-dim);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dbv-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--card-3);
  border-radius: 99px;
  overflow: hidden;
}

.dbv-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.dbv-bar-slow { background: #f43f5e; }
.dbv-bar-fast { background: #3858e9; }
.dbv-bar-cached { background: #10b981; }

.dbv-time {
  width: 46px;
  text-align: right;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-weight: 700;
  font-size: 11px;
}

.text-slow { color: #f43f5e; }
.text-fast { color: #60a5fa; }
.text-cached { color: #10b981; }

/* Security Checklist */
.bento-security-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 18px;
}

@media (max-width: 480px) {
  .bento-security-list {
    grid-template-columns: 1fr;
  }
}

.bsl-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
}

.bsl-check {
  color: #10b981;
  font-weight: 800;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.bento-tags span {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
}


/* ==========================================================================
   3. CUSTOM THEMES & BESPOKE PLUGINS (CODE STANDARDS)
   ========================================================================= */
.wp-split-craft {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.craft-left h2 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.craft-left > p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.craft-checklist {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.c-check-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.c-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--card-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.c-check-item strong {
  font-size: 14px;
  color: var(--text);
  display: block;
  margin-bottom: 3px;
}

.c-check-item p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

/* Tree IDE Preview */
.tree-ide-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px -15px rgba(0,0,0,0.3);
}

.tree-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--card-2);
  border-bottom: 1px solid var(--border-soft);
}

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

.tree-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.tree-dot.red { background: #ef4444; }
.tree-dot.yellow { background: #f59e0b; }
.tree-dot.green { background: #10b981; }

.tree-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-left: 6px;
}

.tree-status {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.tree-content {
  padding: 20px 24px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-dim);
}

.tree-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tree-row.indent-1 { padding-left: 20px; }
.tree-row.indent-2 { padding-left: 40px; }
.tree-row .comment { color: var(--text-faint); margin-left: 10px; font-style: italic; font-size: 11px; }

.badge-mini {
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--card-3);
  color: var(--text-faint);
  margin-left: 6px;
}

.tree-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: var(--card-2);
  border-top: 1px solid var(--border-soft);
  font-size: 10.5px;
  color: var(--text-faint);
}


/* ==========================================================================
   4. GUTENBERG & ACF PRO WORKFLOW STUDIO
   ========================================================================= */
.gutenberg-interactive-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.gi-controls-panel {
  padding: 28px;
  background: var(--card-2);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.gi-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}

.gi-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
}

.gi-field-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.gi-pill-toggles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gi-toggle-opt {
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--card-3);
  border: 1px solid var(--border-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.gi-toggle-opt:hover {
  color: var(--text);
  border-color: var(--border);
}

.gi-toggle-opt.active {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}

.gi-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 12px;
  color: var(--text-dim);
}

.switch-badge.on {
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-size: 10px;
  font-weight: 800;
}

.gi-canvas-output {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gi-output-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-faint);
  margin-bottom: 24px;
}

.gi-tag {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-dim);
}

.gi-mock-block {
  padding: 36px;
  background: var(--card-2);
  border: 1px dashed var(--border);
  border-radius: 18px;
  text-align: left;
  transition: all 0.3s ease;
}

.mb-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--card-3);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.gi-mock-block h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.gi-mock-block p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.mb-btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mb-btn-demo:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.5);
  color: #7dd3fc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.22);
}

.mb-btn-demo .mb-btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.mb-btn-demo:hover .mb-btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   GUTENBERG BLOCK INTERACTIVE DEMO POPUP MODAL
   ========================================================================== */
.gb-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gb-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.gb-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: rgba(5, 7, 13, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html[data-theme="light"] .gb-modal-backdrop {
  background: rgba(15, 23, 42, 0.82);
}

.gb-modal-container {
  position: relative !important;
  z-index: 2 !important;
  width: 100%;
  max-width: 1140px;
  height: 88vh;
  max-height: 850px;
  margin: auto;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.1);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gb-modal-overlay.is-active .gb-modal-container {
  transform: scale(1) translateY(0);
}

/* Lock document scrolling when block demo popup is open */
html.gb-modal-open,
body.gb-modal-open {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none;
}

/* Modal Header */
.gb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--card-2);
  flex-shrink: 0;
}

.gb-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gb-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gb-header-icon svg {
  width: 20px;
  height: 20px;
}

.gb-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.gb-pill-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--card-3);
  color: var(--text-dim);
  border: 1px solid var(--border-soft);
}

.gb-pill-tag.tag-green {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

.gb-header-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

.gb-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Viewport Switcher */
.gb-viewport-switch {
  display: inline-flex;
  align-items: center;
  background: var(--card-3);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.gb-vp-btn {
  width: 32px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--text-faint);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gb-vp-btn svg {
  width: 16px;
  height: 16px;
}

.gb-vp-btn:hover {
  color: var(--text);
}

.gb-vp-btn.active {
  background: var(--card);
  color: #38bdf8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.gb-modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--card-3);
  border: 1px solid var(--border-soft);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gb-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
  transform: rotate(90deg);
}

.gb-modal-close-btn svg {
  width: 18px;
  height: 18px;
}

/* Modal Body */
.gb-modal-body {
  display: grid;
  grid-template-columns: 310px 1fr;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

/* Left Inspector Panel */
.gb-sidebar-panel {
  background: var(--card-2);
  border-right: 1px solid var(--border-soft);
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gb-sb-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.gb-block-id {
  font-family: monospace;
  font-size: 11px;
  color: var(--text-faint);
}

.gb-field-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gb-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.gb-preset-select {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gb-preset-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.gb-preset-btn .preset-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.gb-preset-btn .preset-sub {
  font-size: 11px;
  color: var(--text-faint);
}

.gb-preset-btn:hover {
  border-color: var(--border);
  background: var(--card-3);
}

.gb-preset-btn.active {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
}

.gb-preset-btn.active .preset-name {
  color: #38bdf8;
}

/* Color Swatches */
.gb-color-swatches {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gb-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gb-swatch:hover {
  transform: scale(1.15);
}

.gb-swatch.active {
  border-color: var(--text);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.gb-input {
  width: 100%;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text);
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.2s ease;
}

.gb-input:focus {
  border-color: #38bdf8;
}

/* Checkbox Toggle Row */
.gb-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  cursor: pointer;
}

.gb-toggle-row .toggle-text {
  font-size: 12px;
  color: var(--text-dim);
}

.gb-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-switch {
  position: relative;
  width: 34px;
  height: 18px;
  background: var(--card-3);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: transform 0.2s ease, background 0.2s ease;
}

.gb-checkbox:checked + .toggle-switch {
  background: #0284c7;
  border-color: #0284c7;
}

.gb-checkbox:checked + .toggle-switch::after {
  transform: translateX(16px);
  background: #ffffff;
}

/* Right / Center Canvas */
.gb-canvas-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}

.gb-canvas-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--card-2);
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.gb-canvas-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.status-dot.pulse {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: gbDotPulse 2s infinite;
}

@keyframes gbDotPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.gb-canvas-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 3px;
}

.gb-tab-btn {
  padding: 4px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gb-tab-btn.active {
  background: var(--card-2);
  color: #38bdf8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Viewport Frame with Smooth Transition */
.gb-canvas-viewport-frame {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 28px;
  margin: 0 auto;
  width: 100%;
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  display: flex;
  flex-direction: column;
}

.gb-canvas-viewport-frame.desktop {
  max-width: 100%;
}

.gb-canvas-viewport-frame.tablet {
  max-width: 768px;
  padding: 24px 16px;
  border-left: 1px dashed var(--border-soft);
  border-right: 1px dashed var(--border-soft);
}

.gb-canvas-viewport-frame.mobile {
  max-width: 420px;
  padding: 20px 12px;
  border-left: 1px dashed var(--border-soft);
  border-right: 1px dashed var(--border-soft);
}

.gb-tab-pane {
  display: none;
  width: 100%;
}

.gb-tab-pane.active {
  display: block;
}

/* Live Custom Gutenberg Block Element */
.demo-live-block {
  --demo-accent: #0284c7;
  --demo-accent-glow: rgba(2, 132, 199, 0.14);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.demo-live-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--demo-accent), transparent);
}

.dlb-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--demo-accent-glow);
  border: 1px solid var(--demo-accent);
  color: var(--demo-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
  transition: all 0.25s ease;
}

.dlb-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.dlb-lead {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: 24px;
}

/* Dynamic Grid */
.dlb-dynamic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.gb-canvas-viewport-frame.mobile .dlb-dynamic-grid {
  grid-template-columns: 1fr !important;
}

.dlb-feature-card {
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

.dlb-feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border);
}

.dlb-fc-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--demo-accent-glow);
  color: var(--demo-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: all 0.25s ease;
}

.dlb-fc-icon svg {
  width: 16px;
  height: 16px;
}

.dlb-feature-card h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.dlb-feature-card p {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 0;
}

.dlb-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.dlb-stat-change {
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
}

.dlb-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

.dlb-cta-btn {
  padding: 9px 18px;
  font-size: 13px;
}

.dlb-perf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-faint);
}

/* Code Viewer */
.gb-code-viewer {
  background: #090d16;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.gb-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.gb-file-name {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
}

.gb-file-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-faint);
}

.gb-pre {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #cbd5e1;
  overflow-x: auto;
}

/* Footer Bottom Bar */
.gb-canvas-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--card-2);
  border-top: 1px solid var(--border-soft);
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 12px;
}

.gb-foot-tags {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  color: var(--text-faint);
}

.gb-foot-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

/* Modal Responsiveness */
@media (max-width: 900px) {
  .gb-modal-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .gb-sidebar-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
  }
}

@media (max-width: 600px) {
  .gb-modal-overlay {
    padding: 10px;
  }
  .dlb-dynamic-grid {
    grid-template-columns: 1fr;
  }
  .gb-viewport-switch {
    display: none;
  }
  .gb-foot-tags {
    display: none;
  }
}


/* ==========================================================================
   5. PERFORMANCE & CORE WEB VITALS BENCHMARKS
   ========================================================================= */
.wp-bench-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bench-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.25s ease;
}

.bench-card:hover {
  border-color: var(--border);
}

.bc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bc-header h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.bc-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  color: var(--text-faint);
}

.bc-scores {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
}

.score-side {
  display: flex;
  flex-direction: column;
}

.score-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-faint);
  letter-spacing: -0.02em;
}

.score-val.highlight {
  color: #10b981;
}

.score-label {
  font-size: 10.5px;
  color: var(--text-faint);
  margin-top: 2px;
}

.score-arrow {
  color: var(--text-faint);
  font-size: 14px;
}

.bc-bar-wrap {
  height: 5px;
  background: var(--card-3);
  border-radius: 99px;
  overflow: hidden;
}

.bc-bar-fill.highlight {
  height: 100%;
  background: #10b981;
  border-radius: 99px;
}


/* ==========================================================================
   6. MIGRATION & ENTERPRISE MAINTENANCE
   ========================================================================= */
.wp-dual-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service-block {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 42px 38px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease;
}

.service-block:hover {
  border-color: var(--border);
}

.sb-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--card-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  margin-bottom: 20px;
}

.sb-icon svg {
  width: 24px;
  height: 24px;
}

.sb-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  margin-bottom: 12px;
  width: fit-content;
}

.service-block h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.service-block p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: 24px;
}

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

.sb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
}

.sb-check {
  color: #10b981;
  font-weight: 800;
}


/* ==========================================================================
   7. CASE STUDIES
   ========================================================================= */
.wp-cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.case-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.case-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
}

.case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.case-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.case-metric {
  font-size: 13.5px;
  font-weight: 800;
  color: #10b981;
}

.case-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.case-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.case-stats-row {
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  margin-bottom: 20px;
}

.csr-item {
  font-size: 11.5px;
  color: var(--text-faint);
}
.csr-item strong {
  color: var(--text);
  margin-left: 4px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.case-tags span {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
}


/* ==========================================================================
   8. 4-STEP TECHNICAL ROADMAP
   ========================================================================= */
.wp-process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.wp-step-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.wp-step-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
}

.wps-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.wps-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-faint);
  font-family: 'Inter', monospace, sans-serif;
}

.wps-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  color: var(--text-dim);
}

.wp-step-card h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}

.wp-step-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}


/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .wp-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 100%;
  }
  .wp-hero-content,
  .wp-hero-stage-wrap {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .wp-hero-stage-wrap .mockup-wrap,
  .wp-mockup-wrap {
    overflow: visible !important;
  }
  .wp-isometric-stage {
    max-width: 100%;
    overflow: visible !important;
    height: 440px;
  }
  .wp-iso-scene-3d {
    --wp-iso-scale: 0.74;
    transform-origin: center center;
    margin: 0 auto;
  }
  .wp-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wp-bento-card.bento-wide {
    grid-column: span 2;
  }
  .wp-split-craft {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .gutenberg-interactive-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .gi-controls-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
  }
  .wp-bench-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .wp-process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .wp-hero {
    padding: 50px 0 40px;
    overflow: hidden;
  }
  .wp-dev-page .wrap {
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .wp-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    width: 100%;
    max-width: 100%;
  }
  .wp-hero-content,
  .wp-hero-stage-wrap {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .wp-hero-title {
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.14;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
  }
  .wp-hero-lead {
    font-size: 15px;
    margin-bottom: 24px;
    max-width: 100% !important;
    width: 100% !important;
  }
  .wp-hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    gap: 12px;
  }
  .wp-hero-actions .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    padding: 13px 20px;
    box-sizing: border-box;
  }
  .wp-hero-features {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 28px;
    width: 100% !important;
    max-width: 100% !important;
  }
  .wp-hero-features .hf-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .wp-hero-stage-wrap .mockup-wrap,
  .wp-mockup-wrap {
    overflow: visible !important;
  }
  .wp-isometric-stage {
    max-width: 100%;
    overflow: visible !important;
    height: auto;
    min-height: 360px;
  }
  .wp-iso-scene-3d {
    width: 520px;
    max-width: none;
    --wp-iso-scale: 0.60;
    transform-origin: center center;
    margin: 0 auto;
  }
  .wp-iso-core-widget {
    left: 0;
  }
  .wp-iso-vitals-widget {
    right: 0;
  }
  .wp-bento-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .wp-bento-card.bento-wide {
    grid-column: span 1;
  }
  .wp-dual-services,
  .wp-cases-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .wp-process-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .gutenberg-interactive-card {
    border-radius: 16px;
  }
  .gi-canvas-output {
    padding: 24px 18px;
  }
  .gi-mock-block {
    padding: 22px 18px;
  }
  .gi-output-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .faq-left-col {
    position: static;
  }
  .case-card {
    padding: 26px 20px;
  }
  .case-stats-row {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .wp-dev-page .wrap {
    padding: 0 20px;
  }
  .wp-hero-title {
    font-size: clamp(22px, 6vw, 26px);
    line-height: 1.16;
  }
  .wp-hero-lead {
    font-size: 14px;
  }
  .wp-isometric-stage {
    min-height: 290px;
    height: 290px;
    overflow: visible !important;
  }
  .wp-iso-scene-3d {
    --wp-iso-scale: 0.50;
    transform-origin: center center;
    margin: 0 auto;
  }
  .service-block,
  .case-card,
  .gi-canvas-output {
    padding: 20px 16px;
  }
  .cta-pill-btn {
    width: 100%;
    max-width: 100%;
    text-align: center;
    justify-content: center;
    padding: 13px 20px;
  }
}

@media (max-width: 380px) {
  .wp-isometric-stage {
    min-height: 250px;
    height: 250px;
  }
  .wp-iso-scene-3d {
    --wp-iso-scale: 0.43;
  }
}
