/* ==========================================================================
   HEMAMS INTERACTIVE EXPERIENCE LAB (/lab/interactive-experience)
   Engineered by Antigravity Cognitive Mesh + Context7 + 21st.dev Patterns
    Brand Alignment: همم للخدمات التسويقية والاستشارية (hemams.com & Hemams OS V3)
   ========================================================================== */

:root {
  /* Core Brand Tokens (Aligned with hemams.com + Hemams OS V3) */
  --navy: #0b253a;
  --navy-dark: #061523;
  --obsidian: #040b14;
  --blue: #087bb5;
  --blue-bright: #38bdf8;
  --mint: #10b981;
  --mint-bright: #34d399;
  --mint-dark: #059669;
  --gold: #f59e0b;
  --gold-bright: #fbbf24;
  --rose: #f43f5e;

  /* Spatial Dark Theme (Default) */
  --bg-primary: #040b14;
  --bg-secondary: #081525;
  --bg-elevated: rgba(11, 37, 58, 0.55);
  --bg-glass: rgba(10, 25, 43, 0.68);
  --bg-glass-strong: rgba(7, 19, 34, 0.88);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-accent: rgba(56, 189, 248, 0.28);
  --border-mint: rgba(16, 185, 129, 0.35);
  --card-surface: rgba(11, 31, 52, 0.62);
  --card-hover-surface: rgba(14, 40, 66, 0.78);
  --spotlight-color: rgba(16, 185, 129, 0.14);
  --spotlight-border: rgba(56, 189, 248, 0.55);
  --shadow-spatial: 0 24px 60px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-glow-mint: 0 14px 36px -6px rgba(16, 185, 129, 0.35);
  --shadow-glow-blue: 0 14px 36px -6px rgba(8, 123, 181, 0.38);

  /* Typography */
  --font-heading: 'Alexandria', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Apple Fluid Spring Timing */
  --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Executive Daylight Theme (Matches hemams.com Main Public Theme) */
html[data-theme="light"] {
  --bg-primary: #f4f9fc;
  --bg-secondary: #eaf3f8;
  --bg-elevated: rgba(255, 255, 255, 0.92);
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-strong: rgba(255, 255, 255, 0.96);
  --text-primary: #0b253a;
  --text-secondary: #1e3a52;
  --text-muted: #475569;
  --border-subtle: rgba(11, 37, 58, 0.10);
  --border-accent: rgba(8, 123, 181, 0.28);
  --border-mint: rgba(16, 185, 129, 0.38);
  --card-surface: rgba(255, 255, 255, 0.92);
  --card-hover-surface: #ffffff;
  --spotlight-color: rgba(8, 123, 181, 0.08);
  --spotlight-border: rgba(16, 185, 129, 0.6);
  --shadow-spatial: 0 20px 50px -12px rgba(11, 37, 58, 0.12), 0 0 0 1px rgba(11, 37, 58, 0.06);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(1100px 550px at 85% 5%, rgba(8, 123, 181, 0.16) 0%, transparent 65%),
    radial-gradient(900px 500px at 12% 28%, rgba(16, 185, 129, 0.12) 0%, transparent 65%),
    radial-gradient(1000px 600px at 50% 85%, rgba(8, 123, 181, 0.10) 0%, transparent 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s var(--ease-fluid), color 0.4s var(--ease-fluid);
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Scroll Progress Ribbon */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  right: 0;
  height: 3px;
  width: 100%;
  transform-origin: right center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold) 0%, var(--mint) 50%, var(--blue-bright) 100%);
  z-index: 9999;
  pointer-events: none;
}

/* Container */
.lab-container {
  width: min(1240px, calc(100% - 36px));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* Lab Status Top Ribbon */
.lab-top-ribbon {
  background: linear-gradient(90deg, rgba(4, 11, 20, 0.95) 0%, rgba(11, 37, 58, 0.95) 100%);
  color: #e2edf3;
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
  padding: 8px 0;
  font-size: 12.5px;
  position: relative;
  z-index: 120;
}

.lab-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lab-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11.5px;
}

.lab-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseMint 2s infinite;
}

@keyframes pulseMint {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Sticky Glass Navigation Header */
.lab-header {
  position: sticky;
  top: 0;
  z-index: 110;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s var(--ease-fluid);
}

.lab-header.is-scrolled {
  box-shadow: var(--shadow-spatial);
}

.lab-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: 46px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
  padding: 3px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.brand-tag {
  display: flex;
  flex-direction: column;
}

.brand-tag-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14.5px;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-tag-sub {
  font-size: 11.5px;
  color: var(--mint-bright);
  font-weight: 700;
}

.lab-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.lab-nav-links a {
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.22s var(--ease-fluid);
}

.lab-nav-links a:hover,
.lab-nav-links a.active {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.12);
}

.lab-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--card-surface);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s var(--ease-fluid);
}

.ctrl-icon-btn:hover {
  border-color: var(--blue-bright);
  transform: translateY(-1px);
}

.btn-magnetic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s var(--ease-fluid), box-shadow 0.25s var(--ease-fluid), background 0.25s var(--ease-fluid);
  will-change: transform;
}

.btn-magnetic:active {
  transform: scale(0.96) !important;
}

.btn-primary-mint {
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-dark) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-glow-mint);
}

.btn-primary-mint:hover {
  box-shadow: 0 18px 42px -6px rgba(16, 185, 129, 0.55);
}

.btn-secondary-glass {
  background: var(--card-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
  backdrop-filter: blur(12px);
}

.btn-secondary-glass:hover {
  border-color: var(--mint-bright);
  background: var(--card-hover-surface);
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--card-surface);
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   1. SPATIAL 3D HERO STAGE
   ========================================================================== */
.hero-spatial-section {
  position: relative;
  padding: 56px 0 80px;
  overflow: hidden;
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
}

#heroSpatialCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(8, 123, 181, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: var(--blue-bright);
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 18px;
}

html[data-theme="light"] .eyebrow-pill {
  color: var(--blue);
  background: rgba(8, 123, 181, 0.09);
}

.hero-title {
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 900;
  line-height: 1.28;
  margin: 0 0 18px;
  color: var(--text-primary);
}

.text-gradient-hemam {
  background: linear-gradient(135deg, #34d399 0%, #38bdf8 55%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .text-gradient-hemam {
  background: linear-gradient(135deg, #059669 0%, #087bb5 60%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(16px, 1.35vw, 18.5px);
  color: var(--text-secondary);
  line-height: 1.85;
  margin: 0 0 26px;
  max-width: 630px;
}

/* Interactive Track Switcher inside Hero */
.hero-track-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px;
  border-radius: 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  width: fit-content;
}

.track-switch-btn {
  padding: 9px 16px;
  border-radius: 13px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s var(--ease-fluid);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.track-switch-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(8, 123, 181, 0.25) 100%);
  color: var(--text-primary);
  border: 1px solid var(--border-mint);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.18);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 32px;
}

.hero-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

.trust-metric-box {
  display: flex;
  flex-direction: column;
}

.trust-metric-val {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  color: var(--mint-bright);
  line-height: 1.2;
}

html[data-theme="light"] .trust-metric-val {
  color: var(--mint-dark);
}

.trust-metric-lbl {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 700;
}

/* 3D Perspective Command Deck Stage */
.hero-stage-perspective {
  perspective: 1300px;
  position: relative;
}

.hero-command-deck {
  position: relative;
  transform-style: preserve-3d;
  border-radius: 28px;
  padding: 28px;
  background: var(--bg-glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-spatial);
  will-change: transform;
}

.deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  transform: translateZ(20px);
}

.deck-window-dots {
  display: flex;
  gap: 7px;
}

.deck-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.deck-status-tag {
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: var(--mint-bright);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.deck-active-track-card {
  background: rgba(4, 11, 20, 0.48);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 18px;
  transform: translateZ(34px);
  transition: all 0.35s var(--ease-fluid);
}

html[data-theme="light"] .deck-active-track-card {
  background: rgba(255, 255, 255, 0.92);
}

.deck-track-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.deck-track-title {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.deck-track-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0 0 16px;
  line-height: 1.65;
}

.deck-deliverables-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.deck-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--text-primary);
}

.deck-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  transform: translateZ(26px);
}

.deck-kpi-mini {
  background: var(--card-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deck-kpi-num {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  color: var(--mint-bright);
}

.deck-floating-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: linear-gradient(135deg, #0b253a 0%, #061523 100%);
  color: #ffffff;
  border: 1px solid var(--border-mint);
  border-radius: 18px;
  padding: 12px 18px;
  box-shadow: var(--shadow-spatial);
  transform: translateZ(52px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
}

/* ==========================================================================
   2. PINNED SCROLL-SCRUBBED ARCHITECTURE DISSECTION (GSAP ScrollTrigger)
   ========================================================================== */
.section-block {
  padding: 90px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 54px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 14px;
}

.section-head p {
  font-size: 16.5px;
  color: var(--text-secondary);
  margin: 0;
}

.dissection-stage-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

/* Isometric 3D Stack Visual */
.isometric-stack-viewport {
  position: relative;
  min-height: 470px;
  display: flex;
   flex-direction: column;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  border-radius: 28px;
  border: 1px solid var(--border-subtle);
  padding: 32px 24px;
}

.iso-layer-plate {
  width: min(440px, 92%);
  padding: 18px 22px;
  border-radius: 20px;
  background: var(--bg-glass-strong);
  border: 1.5px solid var(--border-subtle);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
  margin: -10px 0;
  transition: all 0.45s var(--ease-fluid);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.iso-layer-plate.is-active {
  border-color: var(--mint-bright);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(8, 123, 181, 0.22) 100%);
  box-shadow: 0 24px 48px rgba(16, 185, 129, 0.28);
  transform: scale(1.05) translateY(-6px);
  z-index: 5;
}

.iso-layer-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--blue-bright);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.iso-layer-plate.is-active .iso-layer-num {
  background: var(--mint);
  color: #ffffff;
}

.iso-layer-info {
  flex: 1;
}

.iso-layer-info h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 3px;
  color: var(--text-primary);
}

.iso-layer-info p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

.iso-layer-status {
  font-size: 11.5px;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--mint-bright);
  white-space: nowrap;
}

/* Dissection Detail Cards & Step Selector */
.dissection-steps-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.step-nav-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--card-surface);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s var(--ease-fluid);
}

.step-nav-pill.is-active {
  background: var(--mint);
  color: #ffffff;
  border-color: var(--mint);
  box-shadow: var(--shadow-glow-mint);
}

.dissection-detail-panel {
  background: var(--card-surface);
  border: 1px solid var(--border-accent);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-spatial);
}

.dissection-panel-eyebrow {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: var(--mint-bright);
  margin-bottom: 8px;
  display: block;
}

.dissection-panel-title {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 12px;
}

.dissection-panel-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0 0 20px;
}

.dissection-deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.dissection-deliv-item {
  background: rgba(8, 123, 181, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dissection-os-bridge {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px dashed var(--border-mint);
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.dissection-os-bridge code {
  font-family: Consolas, monospace;
  color: var(--mint-bright);
  font-weight: 700;
  direction: ltr;
}

/* ==========================================================================
   3. 21ST.DEV SPOTLIGHT BENTO GRID (9 AUTHENTIC HEMAM SERVICES)
   ========================================================================== */
.bento-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.bento-filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--card-surface);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s var(--ease-fluid);
}

.bento-filter-btn:hover {
  border-color: var(--blue-bright);
  color: var(--text-primary);
}

.bento-filter-btn.active {
  background: linear-gradient(135deg, var(--blue) 0%, var(--mint) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-glow-blue);
}

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

.spotlight-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: relative;
  border-radius: 24px;
  background: var(--card-surface);
  border: 1px solid var(--border-subtle);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.28s var(--ease-fluid), border-color 0.28s var(--ease-fluid), box-shadow 0.28s var(--ease-fluid);
  will-change: transform;
}

/* 21st.dev Radial Pointer Glow Overlay */
.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    520px circle at var(--mouse-x) var(--mouse-y),
    var(--spotlight-color),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card:hover {
  border-color: var(--spotlight-border);
  box-shadow: var(--shadow-spatial);
}

.spotlight-card.is-hidden {
  display: none !important;
}

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

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

.bento-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--blue-bright);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.bento-track-pill {
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}

.pill-planning {
  background: rgba(56, 189, 248, 0.14);
  color: var(--blue-bright);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.pill-branding {
  background: rgba(16, 185, 129, 0.14);
  color: var(--mint-bright);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pill-marketing {
  background: rgba(245, 158, 11, 0.14);
  color: var(--gold-bright);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

html[data-theme="light"] .pill-planning { color: var(--blue); }
html[data-theme="light"] .pill-branding { color: var(--mint-dark); }
html[data-theme="light"] .pill-marketing { color: #d97706; }

.spotlight-card h3 {
  font-size: 19.5px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text-primary);
}

.spotlight-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 18px;
  line-height: 1.7;
  flex: 1;
}

.bento-deliv-preview {
  list-style: none;
  padding: 14px 16px;
  margin: 0 0 18px;
  border-radius: 14px;
  background: rgba(4, 11, 20, 0.32);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

html[data-theme="light"] .bento-deliv-preview {
  background: rgba(11, 37, 58, 0.03);
}

.bento-deliv-preview li {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bento-deliv-preview li::before {
  content: "✓";
  color: var(--mint-bright);
  font-weight: 900;
}

.bento-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.bento-time-tag {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}

.bento-sim-add-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-mint);
  background: rgba(16, 185, 129, 0.12);
  color: var(--mint-bright);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s var(--ease-fluid);
}

html[data-theme="light"] .bento-sim-add-btn {
  color: var(--mint-dark);
}

.bento-sim-add-btn:hover,
.bento-sim-add-btn.is-selected {
  background: var(--mint);
  color: #ffffff;
}

/* ==========================================================================
   4. INTERACTIVE BEFORE / AFTER TRANSFORMATION SLIDER
   ========================================================================== */
.comparison-split-wrapper {
  max-width: 1040px;
  margin: 0 auto;
}

.comparison-quick-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.comparison-viewport {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-spatial);
  min-height: 410px;
  user-select: none;
  touch-action: pan-y;
}

.comparison-pane {
  padding: 36px 34px;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pane-after-hemam {
  background: linear-gradient(135deg, #062135 0%, #041322 100%);
  color: #f8fafc;
}

.pane-before-traditional {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1f1726 0%, #111827 100%);
  color: #e2e8f0;
  clip-path: inset(0 0 0 50%);
  z-index: 2;
}

.pane-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 16px;
}

.badge-after {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-before {
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.comparison-grid-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.comp-point-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.comp-point-card h4 {
  font-size: 15.5px;
  font-weight: 800;
  margin: 0 0 6px;
}

.comp-point-card p {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.6;
}

.comparison-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, var(--blue-bright), var(--mint-bright));
  z-index: 5;
  transform: translateX(-50%);
  cursor: ew-resize;
}

.comparison-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint) 0%, var(--blue) 100%);
  color: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
}

/* ==========================================================================
   5. INTERACTIVE PROJECT, BUDGET & IMPACT SIMULATOR
   ========================================================================== */
.simulator-shell {
  background: var(--card-surface);
  border: 1px solid var(--border-accent);
  border-radius: 28px;
  padding: 38px 34px;
  box-shadow: var(--shadow-spatial);
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 36px;
  align-items: start;
}

.sim-group {
  margin-bottom: 24px;
}

.sim-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.sim-Tier-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sim-tier-btn {
  padding: 16px 14px;
  border-radius: 18px;
  border: 1.5px solid var(--border-subtle);
  background: rgba(4, 11, 20, 0.35);
  color: var(--text-primary);
  text-align: right;
  cursor: pointer;
  transition: all 0.24s var(--ease-fluid);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

html[data-theme="light"] .sim-tier-btn {
  background: #ffffff;
}

.sim-tier-btn:hover {
  border-color: var(--blue-bright);
}

.sim-tier-btn.active {
  border-color: var(--mint);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(8, 123, 181, 0.14) 100%);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.18);
}

.sim-tier-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 900;
}

.sim-tier-price {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: var(--mint-bright);
}

html[data-theme="light"] .sim-tier-price {
  color: var(--mint-dark);
}

.sim-tier-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

.sim-addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.sim-addon-toggle {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: rgba(4, 11, 20, 0.25);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s var(--ease-fluid);
}

html[data-theme="light"] .sim-addon-toggle {
  background: #ffffff;
}

.sim-addon-toggle.active {
  border-color: var(--blue-bright);
  background: rgba(56, 189, 248, 0.15);
}

.sim-range-input {
  width: 100%;
  accent-color: var(--mint);
  height: 7px;
  border-radius: 99px;
  cursor: pointer;
}

/* Simulator Live Telemetry Output Card */
.sim-output-panel {
  background: linear-gradient(155deg, #092236 0%, #04101c 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 28px 26px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  position: sticky;
  top: 96px;
}

.sim-gauge-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sim-gauge-svg {
  width: 84px;
  height: 84px;
  transform: rotate(-90deg);
  flex-shrink: 0;
}

.sim-price-total {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 900;
  color: #34d399;
  line-height: 1;
}

.sim-breakdown-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
}

.sim-breakdown-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* Footer */
.lab-footer {
  background: #030911;
  color: #94a3b8;
  padding: 54px 0 32px;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
}

.lab-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.hero-grid > *,
.dissection-stage-grid > *,
.spotlight-bento-grid > *,
.simulator-shell > *,
.lab-footer-grid > * {
  min-width: 0;
  max-width: 100%;
}

/* ==========================================================================
   TRI-TIER RESPONSIVE SYSTEM & REDUCED MOTION
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .dissection-stage-grid,
  .simulator-shell {
    grid-template-columns: 1fr;
  }
  .spotlight-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sim-output-panel {
    position: static;
  }
}

@media (max-width: 767px) {
  .lab-top-ribbon {
    display: none;
  }
  .lab-container {
    width: 100%;
    max-width: 100%;
    padding-inline: 16px;
  }
  .lab-nav {
    min-height: 64px;
    gap: 8px;
  }
  .brand-lockup {
    gap: 8px;
    min-width: 0;
  }
  .brand-logo-img {
    height: 36px;
    padding: 2px 6px;
  }
  .brand-tag-title {
    font-size: 13px;
    white-space: nowrap;
  }
  .brand-tag-sub {
    display: none;
  }
  .lab-nav-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .lab-nav-actions .btn-magnetic {
    display: none;
  }
  .ctrl-icon-btn {
    padding: 7px 10px;
  }
  .ctrl-icon-btn .ctrl-label {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
    width: 38px;
    height: 38px;
  }
  .lab-nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 12px;
    left: 12px;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-accent);
    border-radius: 18px;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-spatial);
  }
  .lab-nav-links.is-open {
    display: flex;
  }
  .hero-spatial-section {
    padding: 28px 0 48px;
    min-height: auto;
  }
  .eyebrow-pill {
    font-size: 11px;
    padding: 5px 12px;
    max-width: 100%;
    white-space: normal;
  }
  .hero-title {
    font-size: clamp(23px, 6.2vw, 30px);
    line-height: 1.35;
  }
  .hero-lead {
    font-size: 14.5px;
    line-height: 1.72;
  }
  .hero-track-switcher {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
  }
  .track-switch-btn {
    width: 100%;
    justify-content: flex-start;
    font-size: 12.5px;
    padding: 10px 14px;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-row .btn-magnetic {
    width: 100%;
  }
  .hero-command-deck {
    padding: 18px 16px;
    border-radius: 20px;
  }
  .deck-kpi-row {
    grid-template-columns: 1fr;
  }
  .spotlight-bento-grid,
  .sim-Tier-cards,
  .sim-addons-grid,
  .comparison-grid-points,
  .dissection-deliverables-grid,
  .lab-footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-trust-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .deck-floating-badge {
    position: static;
    margin-top: 14px;
    transform: none;
  }
  .isometric-stack-viewport {
    padding: 18px 12px;
    min-height: auto;
  }
  .iso-layer-plate {
    width: 100%;
    margin: 6px 0;
    padding: 14px;
    flex-wrap: wrap;
  }
  .dissection-detail-panel {
    padding: 20px 16px;
  }
  .comparison-pane {
    padding: 24px 16px;
  }
  .simulator-shell {
    padding: 22px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
