/* ==========================================================================
   FACTORY TRACK PANEL - APPLE-STYLE MOTION & COMPONENT STYLES
   Designed for 60fps GPU acceleration (transform & opacity only)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. ROOT CONFIGURATION & EASING TOKENS
   -------------------------------------------------------------------------- */
:root {
  --apple-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --apple-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --apple-glass-bg: rgba(1, 8, 24, 0.72);
  --apple-glass-border: rgba(255, 255, 255, 0.08);
  --apple-accent: #0077ff;
  --apple-accent-glow: rgba(0, 119, 255, 0.4);
  --apple-cyan: #38bdf8;
}

/* Lenis Recommended Smooth Scroll Base */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   1. NAVBAR - FROSTED GLASS & SMART HIDE/SHOW
   -------------------------------------------------------------------------- */
.ftp-navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100% !important;
  padding: 18px 48px !important;
  z-index: 1000 !important;
  transition: transform 0.4s var(--apple-ease), 
              background-color 0.4s ease, 
              border-color 0.4s ease, 
              box-shadow 0.4s ease,
              padding 0.3s ease;
  will-change: transform;
}

/* When Scrolled Past 50px */
.ftp-navbar.scrolled {
  background: rgba(1, 8, 24, 0.78) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid var(--apple-glass-border) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* Hidden state when scrolling down */
.ftp-navbar.nav-hidden {
  transform: translateY(-100%);
}

/* --------------------------------------------------------------------------
   2. HERO SECTION & INTRO MOTION CONTAINERS
   -------------------------------------------------------------------------- */
.hero-scroll-wrapper {
  position: relative;
  width: 100%;
  overflow: visible;
}

.hero-pinned-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 48px 40px;
  overflow: hidden;
}

/* Hero Background Layer for Parallax & Ken Burns */
.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/ftp_welcome_bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  transform-origin: center center;
  will-change: transform;
}

/* Text Mask Wrapper for Apple-style slide up reveals */
.mask-reveal-wrap {
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
}

.mask-reveal-inner {
  display: inline-block;
  will-change: transform;
}

/* Pill Badge: Manage • Monitor • Grow (Apple / Linear Frosted Glass) */
.hero-pill-badge {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(10, 24, 52, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 16px 6px 8px;
  border-radius: 9999px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4),
              0 0 25px -4px rgba(56, 189, 248, 0.22),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: default;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  user-select: none;
}

/* Ambient glass sweep light sheen */
.hero-pill-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.24) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  animation: pillSheenSweep 5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
  pointer-events: none;
}

@keyframes pillSheenSweep {
  0%, 35% { left: -120%; }
  75%, 100% { left: 220%; }
}

.hero-pill-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.5);
  border-top-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
              0 0 35px rgba(56, 189, 248, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Micro-Gem illuminated icon orb */
.pill-sparkle-gem {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8 0%, #1677E8 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.82rem;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.75),
              inset 0 1px 1px rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.hero-pill-badge:hover .pill-sparkle-gem {
  transform: rotate(12deg) scale(1.08);
}

/* Manage • Monitor • Grow Word Splitting */
.hero-word {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 650;
  color: #f8fafc;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  will-change: transform, opacity, letter-spacing;
}

.hero-sep {
  display: inline-block;
  color: #38bdf8;
  font-size: 0.75rem;
  margin: 0 4px;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.85));
  opacity: 0.85;
}

/* Subtle trailing chevron arrow */
.pill-badge-arrow {
  color: #94a3b8;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s ease, color 0.25s ease;
  margin-left: 2px;
}

.hero-pill-badge:hover .pill-badge-arrow {
  transform: translateX(3px);
  color: #38bdf8;
}

/* Gradient Shimmer on "Factory Track Panel" */
.shimmer-text {
  background: linear-gradient(
    90deg, 
    #ffffff 0%, 
    #38bdf8 25%, 
    #ffffff 50%, 
    #0099ff 75%, 
    #ffffff 100%
  );
  background-size: 200% auto;
  color: #ffffff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.shimmer-active {
  animation: appleTextShimmer 2s var(--apple-ease) forwards;
}

@keyframes appleTextShimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* --------------------------------------------------------------------------
   3. BUTTON MICRO-INTERACTIONS
   -------------------------------------------------------------------------- */
.btn-access-main,
.btn-watch-demo,
.nav-access-pill {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--apple-ease), 
              box-shadow 0.3s var(--apple-ease), 
              background-color 0.3s ease !important;
}

.btn-access-main:hover,
.btn-watch-demo:hover,
.nav-access-pill:hover {
  transform: translateY(-2px) !important;
}

.btn-access-main:active,
.btn-watch-demo:active,
.nav-access-pill:active {
  transform: scale(0.97) translateY(0) !important;
}

/* Light Sweep Shine Effect on Primary Button */
.btn-access-main::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.35) 50%, 
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: transform 0.6s var(--apple-ease);
  pointer-events: none;
}

.btn-access-main:hover::after {
  transform: skewX(-20deg) translateX(320%);
}

/* --------------------------------------------------------------------------
   4. PRODUCT SHOWCASE PANEL (APPLE DEVICE REVEAL)
   -------------------------------------------------------------------------- */
.product-showcase-section {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 1240px;
  margin: -60px auto 100px;
  padding: 0 24px;
}

.product-showcase-frame {
  position: relative;
  width: 100%;
  background: linear-gradient(145deg, rgba(13, 27, 54, 0.95), rgba(4, 12, 28, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 40px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 
              0 0 50px rgba(0, 140, 255, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
  transform: scale(0.8);
  transform-origin: center top;
  will-change: transform, border-radius;
}

/* Window Chrome Top Bar */
.showcase-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(2, 8, 22, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.showcase-url-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.74rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.showcase-url-pill i {
  color: #38bdf8;
}

.showcase-live-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 3px 10px;
  border-radius: 12px;
}

/* Role Workspaces Toolbar inside Showcase */
.mock-roles-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(8, 18, 40, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow-x: auto;
  scrollbar-width: none;
}

.mock-roles-bar::-webkit-scrollbar {
  display: none;
}

.mock-roles-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  margin-right: 4px;
}

.mock-role-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mock-role-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.35);
}

.mock-role-btn.active {
  background: #1677E8;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 2px 10px rgba(22, 119, 232, 0.4);
}

/* Distinct Role Badges */
.mock-badge-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.mock-badge-role.admin {
  background: rgba(22, 119, 232, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.mock-badge-role.manager {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.mock-badge-role.hr {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.mock-badge-role.contractor {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Dashboard Mockup Interior Body */
.showcase-content {
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  min-height: 440px;
}

/* Mockup Sidebar */
.mock-sidebar {
  background: rgba(16, 45, 85, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

.mock-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #1677E8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.75rem;
}

.mock-brand-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.mock-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.mock-nav-item.active {
  background: #1677E8;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(22, 119, 232, 0.4);
}

/* Mockup Dashboard Main Panel */
.mock-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mock-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mock-kpi-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-kpi-card h5 {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.mock-kpi-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.mock-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.mock-kpi-icon.blue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.mock-kpi-icon.green { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.mock-kpi-icon.amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.mock-table-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  flex: 1;
}

.mock-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mock-table-header h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.mock-table-row {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1.3fr 1.4fr;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  align-items: center;
  border-radius: 8px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.mock-table-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.mock-table-row.row-highlight {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
}

.mock-table-row:last-child {
  border-bottom: none;
}

.mock-badge-live {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-block;
  width: fit-content;
}

/* --------------------------------------------------------------------------
   5. BIG NUMBER STATS SECTION (COUNT-UP)
   -------------------------------------------------------------------------- */
.stats-section {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 60px auto 100px;
  padding: 0 24px;
}

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

.stat-item-box {
  background: rgba(10, 20, 42, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--apple-ease), border-color 0.3s ease;
}

.stat-item-box:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
}

.stat-number {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.88rem;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* --------------------------------------------------------------------------
   6. STICKY TEXT-SWAP SECTION (APPLE FEATURE WALKTHROUGH)
   -------------------------------------------------------------------------- */
.sticky-walkthrough-section {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 60px auto 120px;
  padding: 0 24px;
}

.section-eyebrow {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #38bdf8;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
}

.section-heading-lg {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 50px;
}

.sticky-walkthrough-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
  position: relative;
}

/* Left Pinned Visual Frame */
.walkthrough-pinned-wrapper {
  position: sticky;
  top: 120px;
  width: 100%;
}

.sticky-visual-container {
  position: relative;
  width: 100%;
  height: 480px;
  background: linear-gradient(135deg, rgba(14, 28, 56, 0.95), rgba(6, 15, 33, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 140, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.walkthrough-visual-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--apple-ease), transform 0.4s var(--apple-ease), visibility 0.4s;
  transform: translateY(20px) scale(0.96);
}

.walkthrough-visual-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  width: fit-content;
}

.slide-badge.cyan { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.slide-badge.green { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.slide-badge.purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }

.slide-mockup-body {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
}

.slide-mockup-body h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.slide-mockup-body p {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 16px;
}

.slide-metrics-mini {
  display: flex;
  gap: 16px;
}

.mini-metric {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-radius: 10px;
  flex: 1;
}

.mini-metric span {
  font-size: 0.7rem;
  color: #94a3b8;
  display: block;
}

.mini-metric strong {
  font-size: 1.05rem;
  color: #ffffff;
}

/* Right Scrolling Text Steps */
.sticky-steps-column {
  display: flex;
  flex-direction: column;
  gap: 140px;
  padding: 40px 0 100px;
}

.walkthrough-step-block {
  opacity: 0.25;
  transform: translateY(20px);
  transition: opacity 0.5s var(--apple-ease), transform 0.5s var(--apple-ease);
}

.walkthrough-step-block.is-active {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.step-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.4px;
}

.step-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7. HORIZONTAL SCROLL GALLERY
   -------------------------------------------------------------------------- */
.gallery-section-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 60px 0 100px;
}

.gallery-track-container {
  display: flex;
  gap: 32px;
  padding: 0 48px;
  width: fit-content;
  will-change: transform;
}

.gallery-card {
  width: 520px;
  height: 380px;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(14, 28, 56, 0.85), rgba(6, 15, 33, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 140, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s var(--apple-ease), border-color 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.6);
}

.gallery-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.gallery-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.gallery-card-icon.blue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.gallery-card-icon.green { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.gallery-card-icon.purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.gallery-card-icon.amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.gallery-card-number {
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.12);
}

.gallery-card-content h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.gallery-card-content p {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

.gallery-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #38bdf8;
}

.gallery-card-footer i {
  transition: transform 0.25s ease;
}

.gallery-card:hover .gallery-card-footer i {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   8. WATCH DEMO MODAL - APPLE ZOOM IN/OUT
   -------------------------------------------------------------------------- */
.demo-modal-overlay {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 6, 18, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--apple-ease), visibility 0.35s;
}

.demo-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.demo-fancybox-card {
  transform: scale(0.92);
  transition: transform 0.35s var(--apple-ease);
  will-change: transform;
}

.demo-modal-overlay.active .demo-fancybox-card {
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   8b. RESPONSIVE HELPERS & INTERACTIVE MOBILE ENHANCEMENTS
   -------------------------------------------------------------------------- */
.walkthrough-mobile-tabs {
  display: none;
}

.gallery-swipe-hint {
  display: none;
}

.mock-table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.mock-table-scroll-wrap::-webkit-scrollbar {
  height: 4px;
}

.mock-table-scroll-wrap::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE BREAKPOINTS (TABLET & MOBILE ARCHITECTURE)
   Apple-grade responsiveness for iOS, iPadOS, Android & touch tablets
   -------------------------------------------------------------------------- */

/* TABLET LANDSCAPE & DESKTOP MEDIUM (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .ftp-navbar {
    padding: 16px 36px !important;
  }
  .hero-pinned-section {
    padding: 105px 36px 35px;
  }
  .product-showcase-section {
    margin: 20px auto 70px;
    padding: 0 24px;
  }
  .showcase-content {
    grid-template-columns: 200px 1fr;
    gap: 16px;
    padding: 18px;
  }
  .gallery-card {
    width: 440px;
    height: 350px;
    padding: 26px;
  }
}

/* TABLET PORTRAIT & MEDIUM SCREENS (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .ftp-navbar {
    padding: 14px 24px !important;
  }
  .brand-group {
    gap: 12px;
  }
  .brand-logo-badge {
    width: 48px;
    height: 48px;
  }
  .brand-title {
    font-size: 1.3rem;
  }
  .brand-tagline {
    font-size: 0.76rem;
  }
  .nav-access-pill {
    padding: 8px 18px;
    font-size: 0.84rem;
  }
  .hero-pinned-section {
    padding: 95px 24px 30px !important;
    min-height: auto;
  }
  .hero-content-area {
    max-width: 620px;
  }
  .hero-headline {
    font-size: clamp(2.35rem, 4.6vw, 3.1rem);
    letter-spacing: -1px;
    margin-bottom: 18px;
  }
  .product-showcase-section {
    margin: 20px auto 55px;
    padding: 0 20px;
  }
  .product-showcase-frame {
    border-radius: 24px !important;
    transform: none !important;
  }
  .showcase-content {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 16px;
  }
  .mock-sidebar {
    display: none;
  }
  .mock-kpi-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .mock-kpi-card {
    padding: 12px 14px;
  }
  .mock-kpi-card h3 {
    font-size: 1.15rem;
  }
  .stats-section {
    padding: 30px 20px 50px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    padding: 0 !important;
  }
  .stat-item-box {
    padding: 24px 20px;
  }
  .stat-number {
    font-size: 2.7rem;
  }
  .sticky-walkthrough-section {
    padding: 30px 20px 50px;
    margin: 30px auto 50px;
  }
  .sticky-walkthrough-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
  }
  .walkthrough-pinned-wrapper {
    position: sticky;
    top: 75px;
    z-index: 15;
    width: 100%;
    background: #010818;
    padding: 6px 0 10px;
  }
  .walkthrough-mobile-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .walkthrough-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }
  .walkthrough-tab-btn.active {
    background: #1677E8;
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 2px 10px rgba(22, 119, 232, 0.4);
  }
  .sticky-visual-container {
    position: relative !important;
    top: 0 !important;
    z-index: 1;
    height: 260px !important;
    min-height: 260px !important;
    border-radius: 20px;
    margin-bottom: 0;
    background: rgba(8, 20, 44, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 25px rgba(0, 140, 255, 0.2);
    overflow: hidden;
  }
  .walkthrough-visual-slide {
    padding: 16px 18px;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .sticky-steps-column {
    gap: 30px;
    padding: 10px 0 30px;
  }
  .walkthrough-step-block {
    padding: 20px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  .gallery-section-wrapper {
    padding: 30px 0 50px;
  }
  .gallery-header-row {
    padding: 0 20px 18px !important;
  }
  .gallery-track-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 8px 20px 20px;
    width: 100%;
    scrollbar-width: none;
    transform: none !important;
  }
  .gallery-card {
    width: 360px;
    min-height: 300px;
    height: auto;
    scroll-snap-align: start;
    flex-shrink: 0;
    padding: 22px;
    border-radius: 20px;
  }
  .feature-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
    padding: 0;
  }
  .bottom-section {
    padding: 0 20px 40px;
  }
  .fancybox-content-grid {
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 30px;
  }
  .demo-fancybox-card {
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* MOBILE LARGE & STANDARD (< 768px) */
@media (max-width: 767px) {
  .ftp-navbar {
    padding: 8px 12px !important;
    min-height: 52px;
    background: rgba(1, 8, 24, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  .brand-group {
    gap: 8px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
  }
  .brand-logo-badge {
    width: 36px !important;
    height: 36px !important;
    padding: 2px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
  }
  .brand-details {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  .brand-title {
    font-size: clamp(0.92rem, 3.8vw, 1.08rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.3px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: none !important;
  }
  .brand-tagline {
    display: none !important;
  }
  .nav-access-pill {
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    border-radius: 9999px !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* Hero Section */
  .hero-pinned-section {
    padding: 72px 14px 18px !important;
    min-height: auto;
    justify-content: flex-start;
  }
  .hero-content-area {
    max-width: 100%;
    transform: none !important;
    opacity: 1 !important;
    padding: 8px 0 0;
  }
  .hero-pill-badge {
    padding: 4px 12px 4px 6px;
    gap: 6px;
    margin-bottom: 14px;
  }
  .pill-sparkle-gem {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }
  .hero-word {
    font-size: 0.76rem;
    letter-spacing: 0.02em;
  }
  .hero-sep {
    font-size: 0.68rem;
    margin: 0 1px;
  }
  .hero-headline {
    font-size: clamp(2.05rem, 7.8vw, 2.65rem);
    line-height: 1.14;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
  }
  .hero-welcome-line {
    font-size: clamp(1.25rem, 4.8vw, 1.55rem);
    color: #94a3b8;
  }
  .hero-description {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin-bottom: 20px;
  }
  .hero-actions-deck {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
  }
  .btn-access-main,
  .btn-watch-demo {
    flex: 1 1 0;
    min-width: 0;
    min-height: 46px;
    justify-content: center;
    padding: 11px 14px;
    font-size: 0.88rem;
    white-space: nowrap;
    border-radius: 9999px;
  }
  .btn-arrow-circle {
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
  }

  /* Product Showcase Frame */
  .product-showcase-section {
    margin: 14px auto 35px;
    padding: 0 6px;
  }
  .product-showcase-frame {
    transform: none !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 140, 255, 0.2) !important;
  }
  .showcase-window-bar {
    padding: 8px 10px;
    gap: 6px;
  }
  .window-dot {
    width: 8px;
    height: 8px;
  }
  .showcase-window-dots {
    gap: 4px;
  }
  .showcase-url-pill {
    font-size: 0.65rem;
    padding: 3px 8px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .showcase-live-chip {
    font-size: 0.58rem;
    padding: 2px 6px;
    gap: 4px;
  }
  .mock-roles-bar {
    padding: 6px 8px;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .mock-roles-bar::-webkit-scrollbar {
    display: none;
  }
  .mock-roles-label {
    display: none;
  }
  .mock-role-btn {
    font-size: 0.72rem;
    padding: 5px 10px;
    flex-shrink: 0;
    border-radius: 8px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .showcase-content {
    grid-template-columns: 1fr;
    padding: 12px 10px;
    gap: 12px;
    min-height: auto;
  }
  .mock-sidebar {
    display: none;
  }
  /* Mobile-Optimized KPI Cards Grid */
  .mock-kpi-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding-bottom: 2px !important;
    overflow-x: visible !important;
  }
  .mock-kpi-card {
    flex: unset !important;
    max-width: none !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    min-width: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .mock-kpi-card:nth-child(3) {
    grid-column: span 2 !important;
  }
  .mock-kpi-card h5 {
    font-size: 0.65rem !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .mock-kpi-card h3 {
    font-size: 1.05rem !important;
    letter-spacing: -0.3px !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }
  .mock-kpi-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
  }

  /* Active Workforce Stream Table - Modern Mobile Card UI */
  .mock-table-card {
    padding: 12px 10px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
  }
  .mock-table-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }
  .mock-table-header h4 {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.2px !important;
    margin: 0 !important;
    line-height: 1.25 !important;
  }
  .mock-table-header .mock-badge-live {
    font-size: 0.64rem !important;
    padding: 3px 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .mock-table-scroll-wrap {
    overflow-x: visible !important;
    width: 100% !important;
  }
  /* Hide the cramped desktop 4-column header row on mobile */
  .mock-table-scroll-wrap > .mock-table-row:first-child {
    display: none !important;
  }
  /* Format each employee row as a clean 2x2 responsive card on mobile */
  .mock-table-row {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
    gap: 5px 10px !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.025) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
  }
  .mock-table-row:last-child {
    margin-bottom: 0 !important;
  }
  /* Col 1: Employee / Entity Name */
  .mock-table-row > div:nth-child(1) {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    align-self: center !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 195px !important;
  }
  /* Col 2: Role Badge */
  .mock-table-row > div:nth-child(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
  }
  /* Col 3: Department / Unit */
  .mock-table-row > div:nth-child(3) {
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    align-self: center !important;
    font-size: 0.73rem !important;
    color: #94a3b8 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 195px !important;
  }
  /* Col 4: Live Status Badge */
  .mock-table-row > div:nth-child(4) {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: end !important;
    align-self: center !important;
  }
  /* Polish badges on mobile */
  .mock-badge-role {
    font-size: 0.66rem !important;
    padding: 2.5px 8px !important;
    border-radius: 6px !important;
    letter-spacing: 0.2px !important;
    gap: 4px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }
  .mock-badge-live {
    font-size: 0.64rem !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }
  .mock-table-row.row-highlight {
    background: rgba(56, 189, 248, 0.1) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.18) !important;
  }

  /* Big Number Stats Section - 2x2 Apple Grid on Mobile */
  .stats-section {
    padding: 20px 12px 35px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 !important;
  }
  .stat-item-box {
    padding: 16px 10px;
    border-radius: 14px;
    text-align: center;
  }
  .stat-number {
    font-size: clamp(1.75rem, 5.8vw, 2.2rem) !important;
    margin-bottom: 2px;
  }
  .stat-label {
    font-size: 0.74rem;
    line-height: 1.35;
    color: #94a3b8;
  }

  /* Sticky Walkthrough Section */
  .sticky-walkthrough-section {
    padding: 20px 12px 35px;
    margin: 20px auto 35px;
  }
  .section-eyebrow {
    font-size: 0.72rem;
    padding: 3px 10px;
    margin-bottom: 6px;
  }
  .section-heading-lg {
    font-size: clamp(1.6rem, 5.5vw, 2rem);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    line-height: 1.2;
  }
  .sticky-walkthrough-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
  }
  .walkthrough-pinned-wrapper {
    position: sticky;
    top: 54px;
    z-index: 15;
    width: 100%;
    background: #010818;
    padding: 6px 0 10px;
  }
  .walkthrough-mobile-tabs {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
  }
  .walkthrough-mobile-tabs::-webkit-scrollbar {
    display: none;
  }
  .walkthrough-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    min-height: 32px;
  }
  .walkthrough-tab-btn.active {
    background: #1677E8;
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 2px 10px rgba(22, 119, 232, 0.4);
  }
  .sticky-visual-container {
    position: relative !important;
    top: 0 !important;
    z-index: 1;
    height: 240px !important;
    min-height: 240px !important;
    border-radius: 18px;
    padding: 12px;
    margin-bottom: 0;
    background: rgba(8, 20, 44, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 140, 255, 0.25);
    overflow: hidden;
  }
  .walkthrough-visual-slide {
    padding: 14px 16px;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .slide-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    margin-bottom: 6px;
    align-self: flex-start;
  }
  .slide-mockup-body {
    padding: 10px 12px;
    border-radius: 10px;
  }
  .slide-mockup-body h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
  }
  .slide-mockup-body p {
    font-size: 0.76rem;
    line-height: 1.35;
    margin-bottom: 6px;
  }
  .slide-metrics-mini {
    gap: 8px;
    margin-top: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .mini-metric {
    padding: 5px 8px;
    border-radius: 6px;
  }
  .mini-metric span {
    font-size: 0.62rem;
  }
  .mini-metric strong {
    font-size: 0.88rem;
  }
  .sticky-steps-column {
    gap: 16px;
    padding: 6px 0;
  }
  .walkthrough-step-block {
    padding: 14px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  .step-number {
    font-size: 0.7rem;
    margin-bottom: 4px;
  }
  .step-title {
    font-size: 1.05rem;
    margin-bottom: 4px;
  }
  .step-desc {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  /* Horizontal Scroll Gallery (Touch Swipe on Mobile) */
  .gallery-section-wrapper {
    padding: 20px 0 35px;
    overflow: hidden;
  }
  .gallery-header-row {
    padding: 0 14px 10px !important;
  }
  .gallery-swipe-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: #38bdf8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 4px;
  }
  .gallery-track-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 6px 14px 16px;
    width: 100%;
    scrollbar-width: none;
    transform: none !important;
  }
  .gallery-track-container::-webkit-scrollbar {
    display: none;
  }
  .gallery-card {
    width: 82vw;
    max-width: 290px;
    min-height: 260px;
    height: auto;
    scroll-snap-align: center;
    flex-shrink: 0;
    padding: 16px 14px;
    border-radius: 16px;
  }
  .gallery-card-top {
    margin-bottom: 12px;
  }
  .gallery-card-content h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
  }
  .gallery-card-content p {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  /* Bottom Feature Cards Grid & Footer */
  .bottom-section {
    padding: 0 12px 25px;
    margin: 15px auto;
  }
  .feature-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-bottom: 18px;
    padding: 0 !important;
  }
  .feature-glass-card {
    padding: 12px 14px;
    border-radius: 12px;
    gap: 10px;
  }
  .card-icon-box {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }
  .card-title {
    font-size: 0.9rem;
  }
  .card-sub {
    font-size: 0.72rem;
  }
  .footer-divider-row {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .footer-line {
    display: none;
  }
  .footer-text {
    font-size: 0.7rem;
    line-height: 1.4;
    text-align: center;
  }

  /* YouTube Demo Video Modal */
  .demo-modal-overlay {
    padding: 10px 8px;
    align-items: center;
    justify-content: center;
  }
  .demo-fancybox-card {
    margin: auto;
    max-height: 94vh;
    width: 95vw;
    border-radius: 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .fancybox-content-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 38px 12px 16px;
  }
  .phone-showcase-bezel {
    max-width: 200px;
    margin: 0 auto;
    padding: 5px;
    border-radius: 18px;
  }
  .phone-notch-bar {
    width: 50px;
    height: 4px;
  }
  .phone-screen-frame {
    border-radius: 14px;
    aspect-ratio: 9 / 16;
  }
  .btn-fancybox-close {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
  }
  .fancybox-title {
    font-size: 1.2rem;
  }
  .fancybox-subtitle {
    font-size: 0.76rem;
    margin-bottom: 8px;
  }
  .fancybox-desc {
    font-size: 0.78rem;
    line-height: 1.4;
    margin-bottom: 12px;
  }
  .fancybox-features-deck {
    gap: 8px;
    margin-bottom: 14px;
  }
  .fancy-feature-row {
    gap: 8px;
  }
  .feature-bubble {
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
  }
  .feature-text-block strong {
    font-size: 0.78rem;
  }
  .feature-text-block p {
    font-size: 0.72rem;
  }
  .fancybox-cta-row {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .btn-fancy-action-primary,
  .btn-fancy-action-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 10px 14px;
    font-size: 0.84rem;
    border-radius: 9999px;
  }
}

/* ULTRA-NARROW COMPACT PHONES (< 480px) */
@media (max-width: 480px) {
  .hero-actions-deck {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .hero-actions-deck .btn-access-main,
  .hero-actions-deck .btn-watch-demo {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 18px !important;
    font-size: 0.9rem !important;
  }
  .brand-tagline {
    display: none !important;
  }
  .brand-title {
    font-size: clamp(0.85rem, 3.6vw, 0.98rem) !important;
    max-width: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .brand-logo-badge {
    width: 34px !important;
    height: 34px !important;
  }
  .showcase-url-pill {
    max-width: 125px !important;
  }
  .stat-number {
    font-size: 1.9rem !important;
  }
  .hero-headline {
    font-size: 1.95rem !important;
  }
}

/* --------------------------------------------------------------------------
   10. PREFERS-REDUCED-MOTION (ACCESSIBILITY COMPLIANCE)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .mask-reveal-wrap {
    overflow: visible !important;
  }
  .mask-reveal-inner,
  .hero-word,
  .hero-welcome-line,
  .hero-description,
  .btn-access-main,
  .btn-watch-demo,
  .product-showcase-frame {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .shimmer-text {
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
  }
  .walkthrough-visual-slide {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    margin-bottom: 20px;
  }
  .walkthrough-step-block {
    opacity: 1 !important;
    transform: none !important;
  }
  .gallery-track-container {
    transform: none !important;
  }
}
