/* ==========================================================================
   Continyum Component Styles - Solar Amber & Titanium Obsidian Aesthetics
   Fully Responsive (Desktop, Tablet, Mobile)
   ========================================================================== */

/* Brand Logo Styling - Strictly bounded */
.brand-logo-img,
.nav-brand img,
.site-footer img,
.footer-brand-col img {
  height: 15px !important;
  max-height: 15px !important;
  width: auto !important;
  max-width: 115px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.3));
  transition: transform var(--transition-fast);
}

.brand-logo-img:hover {
  transform: scale(1.02);
}

/* ==========================================================================
   3D CONICAL VALUE REFINERY FUNNEL (Modern High-Tech Funnel Architecture)
   Exact match to 3D sliced conical funnel with orbiting ribbons & value orb
   ========================================================================== */
.funnel-showcase-container {
  background: #050608;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

.funnel-showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 5;
}

/* Left Column: 3D Conical Funnel Canvas & SVG */
.funnel-3d-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

#funnelConeCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.funnel-conical-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.8));
  position: relative;
  z-index: 2;
}

/* Funnel 3D Slice Elements */
.funnel-3d-slice {
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}

.funnel-3d-slice:hover,
.funnel-3d-slice.active {
  filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.85)) brightness(1.25);
}

.funnel-slice-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  fill: #ffffff;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.funnel-slice-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  fill: #FBBF24;
  pointer-events: none;
}

/* 3D Orbiting Ribbon Arrows */
.orbiting-ribbon {
  transition: all 0.3s ease;
  animation: ribbon-pulse 3s infinite ease-in-out;
}

@keyframes ribbon-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.9)); }
}

.ribbon-text {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  fill: #ffffff;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Value Orb at Bottom Tip */
.funnel-value-orb-group {
  cursor: pointer;
}

.value-orb-circle {
  transition: all 0.3s ease;
  animation: value-orb-glow 2.5s infinite ease-in-out;
}

@keyframes value-orb-glow {
  0%, 100% {
    filter: drop-shadow(0 0 18px rgba(245, 158, 11, 0.7));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 32px rgba(251, 191, 36, 1)) drop-shadow(0 0 12px rgba(52, 211, 153, 0.8));
    transform: scale(1.04);
  }
}

.value-orb-icon {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 38px;
  fill: #10B981;
  text-shadow: 0 0 16px rgba(16, 185, 129, 0.8);
}

/* Right Column: Stage Details Stack */
.funnel-details-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.funnel-info-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.funnel-info-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: all 0.2s ease;
}

.funnel-info-card:hover,
.funnel-info-card.active {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--border-amber);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.12);
}

.funnel-info-card.active::before {
  background: var(--accent-amber);
  box-shadow: 0 0 10px var(--accent-amber);
}

.funnel-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.funnel-info-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.funnel-info-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  font-weight: 600;
}

.badge-stage-1 {
  background: rgba(234, 88, 12, 0.18);
  color: #fb923c;
  border: 1px solid rgba(234, 88, 12, 0.4);
}

.badge-stage-2 {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.badge-stage-3 {
  background: rgba(251, 191, 36, 0.22);
  color: #FDE68A;
  border: 1px solid rgba(251, 191, 36, 0.55);
}

.badge-stage-4 {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.funnel-info-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 8px;
}

.funnel-info-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.funnel-info-tag {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-primary);
}

/* ==========================================================================
   3D Voxel Wave CTA Tunnel Banner
   ========================================================================== */
.cta-tunnel-banner {
  position: relative;
  min-height: 380px;
  background: #040507;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.9), 0 0 45px rgba(245, 158, 11, 0.1);
  padding: 24px;
}

#voxelWaveCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.cta-tunnel-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 660px;
  padding: 42px 28px;
  width: 100%;
  background: radial-gradient(ellipse at center, rgba(6, 7, 10, 0.92) 50%, rgba(6, 7, 10, 0.75) 85%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
}

.cta-pill-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: rgba(247, 168, 27, 0.12);
  border: 1px solid rgba(247, 168, 27, 0.35);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.cta-tunnel-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 12px;
}

.cta-tunnel-subtitle {
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 24px;
}

.cta-tunnel-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-enterprise-primary {
  background: var(--brand-primary);
  color: #060709 !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(247, 168, 27, 0.35);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-enterprise-primary:hover {
  background: var(--brand-secondary);
  box-shadow: 0 6px 26px rgba(247, 168, 27, 0.55);
  transform: translateY(-2px);
  color: #060709 !important;
}

.btn-enterprise-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff !important;
  border: 1px solid var(--border-medium);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-enterprise-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Custom Solutions 4-Grid Cards */
.custom-solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.custom-sol-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.custom-sol-card:hover {
  border-color: var(--border-amber);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(245, 158, 11, 0.15);
  transform: translateY(-2px);
}

.sol-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.sol-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.sol-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.sol-impact-bar {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-gold);
}

/* ==========================================================================
   LanceMart-Style Pinned Scroll Kinetic Stack Animation
   ========================================================================== */
.verbs-scroll-section {
  position: relative;
  height: 220vh;
  background: var(--bg-main);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: 0;
  padding: 0;
}

.verbs-sticky-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 75px 16px 25px 16px;
  box-sizing: border-box;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.03) 0%, transparent 70%);
}

.verbs-header-row {
  text-align: left;
  z-index: 10;
  width: 100%;
}

.verbs-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 4px;
}

.verbs-subtitle {
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.45;
}

.verbs-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verb-item-line {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transform-origin: center center;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
  will-change: transform, opacity, filter;
  user-select: none;
}

.verb-item-line:hover {
  opacity: 1 !important;
  filter: drop-shadow(0 0 25px rgba(245, 158, 11, 0.7)) !important;
}

.verb-bold {
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--text-pure);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.verb-item-line.active .verb-bold {
  color: #ffffff;
  text-shadow: 0 0 35px rgba(245, 158, 11, 0.85), 0 0 15px rgba(251, 191, 36, 0.5);
}

.verb-sub {
  font-family: var(--font-mono);
  font-size: clamp(11.5px, 1.3vw, 16px);
  color: var(--text-dim);
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.verb-item-line.active .verb-sub {
  color: #FBBF24;
}

.verb-final-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}

.verb-final-text {
  font-family: var(--font-display);
  font-size: clamp(48px, 13vw, 160px);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--accent-amber);
  text-shadow: 0 0 90px rgba(245, 158, 11, 0.85), 0 0 30px rgba(251, 191, 36, 0.6);
  line-height: 1;
}

.verb-final-sub {
  font-family: var(--font-mono);
  font-size: clamp(10.5px, 1.4vw, 16px);
  color: #F4F5F7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
  text-align: center;
}

.verbs-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  width: 100%;
}

.verbs-footer-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.verbs-progress-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.verb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 4px;
  background-clip: content-box;
}

.verb-dot.active {
  background: var(--accent-amber);
  transform: scale(1.4);
  box-shadow: 0 0 8px var(--accent-amber);
  background-clip: content-box;
}

.verb-dot.dot-final.active {
  background: var(--accent-gold);
  box-shadow: 0 0 12px var(--accent-gold);
  background-clip: content-box;
}

/* ==========================================================================
   3D Holographic Employee Badge Card (Dynamic Height & Zero Clipping)
   ========================================================================== */
.badge-card-container {
  perspective: 1400px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.conic-beam-wrap {
  position: relative;
  width: 100%;
  max-width: 370px;
  height: auto;
  border-radius: var(--radius-md);
  padding: 3px;
  background: conic-gradient(
    from var(--beam-angle, 0deg),
    transparent 0%,
    transparent 55%,
    rgba(245, 158, 11, 0.95) 70%,
    rgba(251, 191, 36, 0.9) 75%,
    transparent 85%
  );
  animation: conic-beam-spin 3.2s linear infinite;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.85);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.badge-card-inner {
  position: relative;
  width: 100%;
  height: auto;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius-md) - 3px);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.badge-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.badge-hire-pill {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.badge-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2px 0;
}

.badge-avatar-orb {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(245, 158, 11, 0.6) 0%, rgba(0, 0, 0, 0.8) 70%);
  border: 1px solid var(--border-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}

.badge-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.badge-meta-lbl {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.62rem;
}

.badge-meta-val {
  color: var(--text-primary);
  margin-top: 2px;
  font-weight: 600;
  line-height: 1.3;
}

.badge-kpi-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
}

.badge-kpi-lbl {
  font-size: 0.66rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.badge-kpi-val {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
}

.badge-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* Playfair Display Serif Italic Accent */
.font-playfair-italic {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
  color: #F4F5F7;
}

/* 9-Department Matrix & Live Workflow Viewer */
.dept-matrix-wrap {
  display: grid;
  grid-template-columns: 250px 1fr;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
}

.dept-tabs-nav {
  background: var(--bg-surface-elevated);
  border-right: 1px solid var(--border-medium);
  display: flex;
  flex-direction: column;
}

.dept-tab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.dept-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.dept-tab-btn.active {
  background: var(--bg-surface);
  color: #fff;
  font-weight: 600;
}

.dept-tab-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-amber);
  box-shadow: 0 0 10px var(--accent-amber);
}

.dept-badge-speed {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 2px 5px;
  border-radius: var(--radius-xs);
  background: rgba(245, 158, 11, 0.12);
  color: #FBBF24;
}

.dept-flow-viewer {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
}

.flow-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.flow-step-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 12px 10px;
  position: relative;
  transition: all var(--transition-fast);
}

.flow-step-card:hover {
  border-color: var(--border-amber);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}

.step-card-num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.step-card-desc {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Interactive REPL Terminal Window */
.live-repl-window {
  background: var(--bg-code);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.term-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.term-feed {
  padding: 16px;
  height: 260px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.terminal-line {
  display: flex;
  gap: 8px;
  word-break: break-word;
}

.term-prefix {
  color: var(--accent-amber);
  flex-shrink: 0;
}

.term-text {
  color: var(--text-primary);
}

.term-user .term-text {
  color: #FBBF24;
  font-weight: 600;
}

.term-highlight .term-text {
  color: #FDE68A;
}

.term-error .term-text {
  color: #ff6b6b;
}

.term-dim .term-text {
  color: var(--text-muted);
}

.term-input-form {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.015);
}

.term-prompt {
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: bold;
  margin-right: 8px;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 16px;
  color: #fff;
}

.term-input::placeholder {
  color: var(--text-dim);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
  animation: status-pulse 2s infinite ease-in-out;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Glassmorphism Cards */
.card-glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-slow);
}

.card-glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-card-top);
}

.card-glass:hover {
  border-color: var(--border-amber);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 24px rgba(0, 0, 0, 0.5);
}

/* Custom Range Slider */
.custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-amber);
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent-amber);
}

/* ==========================================================================
   Mobile & Tablet Breakdown Rules
   ========================================================================== */
@media (max-width: 1024px) {
  .funnel-showcase-grid { grid-template-columns: 1fr; gap: 24px; }
  .funnel-3d-wrapper { max-width: 420px; }
  .custom-solutions-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Funnel Showcase Mobile View */
  .funnel-showcase-container {
    padding: 20px 14px;
  }
  .funnel-3d-wrapper {
    max-width: 340px;
  }
  .funnel-info-card {
    padding: 14px 12px;
  }
  .funnel-info-title {
    font-size: 0.88rem;
  }
  .funnel-info-desc {
    font-size: 0.76rem;
  }
  .funnel-info-tag {
    font-size: 0.62rem;
  }

  /* Kinetic Section on Mobile: Compact, Zero Empty Trailing Space */
  .verbs-scroll-section {
    height: auto !important;
    min-height: auto !important;
    padding: 45px 0 25px 0 !important;
    margin: 0 !important;
  }
  
  .verbs-sticky-viewport {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: auto !important;
    padding: 0 16px !important;
    justify-content: flex-start !important;
    gap: 16px !important;
  }
  
  .verbs-stage {
    height: 200px !important;
    margin: 10px auto !important;
  }
  
  .verb-item-line {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    padding: 0 10px;
  }
  
  .verb-bold {
    font-size: clamp(28px, 8vw, 42px);
    line-height: 1;
    text-align: center;
  }
  
  .verb-sub {
    font-size: clamp(10.5px, 3.2vw, 13px);
    white-space: normal;
    text-align: center;
    max-width: 280px;
    padding: 0;
    line-height: 1.35;
  }
  
  .verb-final-text {
    font-size: clamp(38px, 11vw, 64px);
    text-align: center;
  }

  .verbs-footer-row {
    padding-top: 10px;
  }

  /* Employee Badge: Dynamic Auto-Height, Zero Cut-off */
  .badge-card-container {
    margin-top: 24px;
    width: 100%;
  }
  .conic-beam-wrap {
    max-width: 340px;
    height: auto;
    min-height: auto;
  }
  .badge-card-inner {
    padding: 18px 16px;
    gap: 12px;
  }

  /* 9-Department Matrix */
  .dept-matrix-wrap {
    grid-template-columns: 1fr;
  }
  .dept-tabs-nav {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-right: none;
    border-bottom: 1px solid var(--border-medium);
  }
  .dept-tab-btn {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 0.78rem;
    border-bottom: none;
    border-right: 1px solid var(--border-subtle);
  }
  .dept-tab-btn.active::before {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    height: 3px;
  }
  .flow-step-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Terminal Sandbox */
  .live-repl-window {
    margin-top: 16px;
  }
  .term-feed {
    height: 220px;
  }

  /* CTA Tunnel Banner on Mobile */
  .cta-tunnel-banner {
    min-height: 340px;
    padding: 16px 10px;
  }
  .cta-tunnel-content {
    padding: 26px 14px;
  }
}

@media (max-width: 480px) {
  .funnel-3d-wrapper {
    max-width: 300px;
  }
  .flow-step-grid {
    grid-template-columns: 1fr;
  }
  .conic-beam-wrap {
    max-width: 310px;
    height: auto;
    min-height: auto;
  }
  .badge-meta-grid {
    gap: 6px 10px;
    font-size: 0.65rem;
  }
  .badge-kpi-row {
    padding: 3px 0;
  }
  .badge-kpi-lbl {
    font-size: 0.62rem;
  }
  .badge-kpi-val {
    font-size: 0.78rem;
  }
}
