/* ============================================================
   YutiFlow WMS — Landing Page Styles
   ============================================================ */

@import './global.css';

/* ── Landing Layout ── */
.landing-body {
  background: var(--bg-base);
  overflow-x: hidden;
}

/* ── Landing Nav ── */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: 0 var(--space-8);
  height: 70px;
  display: flex;
  align-items: center;
  gap: var(--space-8);
  transition: all 0.4s ease;
}

.landing-nav.scrolled {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .landing-nav.scrolled {
  background: rgba(248, 250, 252, 0.65);
  border-bottom: 1px solid var(--border);
}

/* Glassmorphic Nav Ghost Buttons Visibility Overrides */
.landing-nav .btn-ghost {
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.landing-nav .btn-ghost:hover {
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .landing-nav .btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: #0F1117;
  border-color: rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-theme="light"] .landing-nav .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #0F1117;
  border-color: rgba(15, 23, 42, 0.3);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav-logo {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 20px rgba(59,130,246,0.5);
}

.nav-brand-name {
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ── Hero Section ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 17, 23, 0.92) 0%, rgba(15, 17, 23, 0.88) 35%, rgba(15, 17, 23, 0.5) 65%, transparent 95%);
  z-index: 1;
  pointer-events: none;
  transition: background var(--transition-slow);
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.92) 0%, rgba(248, 250, 252, 0.88) 35%, rgba(248, 250, 252, 0.5) 65%, transparent 95%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px var(--space-8) var(--space-20);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  width: 100%;
}

.hero-text {}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: var(--primary-muted);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: var(--border-radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: var(--space-6);
}

.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}


.hero-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-10);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

.hero-stat-value {
  font-size: var(--text-3xl);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* Hero 3D Canvas Area */
.hero-visual {
  position: relative;
  height: 500px;
}

.hero-3d-wrapper {
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

#warehouse-3d {
  width: 100%; height: 100%;
}

/* Floating UI cards over the 3D scene */
.floating-card {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--border-radius-lg);
  padding: 12px 16px;
  animation: float 3s ease-in-out infinite;
  z-index: 10;
}

.floating-card-1 { top: 20px; left: -30px; animation-delay: 0s; }
.floating-card-2 { bottom: 60px; right: -20px; animation-delay: 1s; }
.floating-card-3 { top: 50%; right: -40px; transform: translateY(-50%); animation-delay: 0.5s; }

.fc-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 700; margin-bottom: 2px; }
.fc-value { font-size: var(--text-xl); font-weight: 900; color: var(--text-primary); letter-spacing: -0.03em; }
.fc-sub   { font-size: 10px; color: var(--success); font-weight: 600; }

/* ── Section Common ── */
.section {
  padding: var(--space-24) var(--space-8);
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: var(--space-12);
}

/* ── Features Section ── */
.features-section {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 50%, var(--bg-base) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-xl);
  padding: var(--space-8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--border-radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: var(--space-5);
  background: var(--primary-muted);
  border: 1px solid rgba(59,130,246,0.2);
}

.feature-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.feature-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Stats Counter Section ── */
.stats-section {
  background: linear-gradient(135deg, rgba(59,130,246,0.06) 0%, rgba(16,185,129,0.04) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat-number {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-number.blue   { color: var(--primary); }
.stat-number.green  { color: var(--success); }
.stat-number.amber  { color: var(--warning); }
.stat-number.purple { color: var(--purple); }

.stat-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}



/* ── RBAC Roles Section ── */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

.role-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-xl);
  padding: var(--space-6);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.role-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--border-radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: var(--space-4);
}

.role-card-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.role-card-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.role-permissions {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.role-perm {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.perm-check { color: var(--success); font-size: 11px; }
.perm-cross { color: var(--text-disabled); font-size: 11px; }

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-5);
}

.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-xl);
  padding: var(--space-8);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.testimonial-quote {
  font-size: 32px;
  color: var(--primary);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.testimonial-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: var(--border-radius);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-md);
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── How It Works ── */
.how-section { background: var(--bg-surface); }

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

.how-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5%);
  right: calc(12.5%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--primary), var(--border), transparent);
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  position: relative;
}

.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--primary);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.how-step:hover .step-num {
  background: var(--primary-muted);
  border-color: var(--primary);
}

.step-title { font-size: var(--text-md); font-weight: 700; color: var(--text-primary); }
.step-desc  { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; }

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, rgba(59,130,246,0.12) 0%, rgba(16,185,129,0.06) 50%, rgba(139,92,246,0.08) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(139,92,246,0.08) 0%, transparent 60%);
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(var(--text-3xl), 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-4);
}

.cta-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-10);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.cta-trust {
  margin-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cta-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

.cta-trust-item .icon { color: var(--success); }

/* ── Footer ── */
.landing-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--space-16) var(--space-8) var(--space-8);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-8);
}

.footer-brand-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: var(--space-4);
  max-width: 280px;
}

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-bottom-left {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-powered {
  font-size: var(--text-xs);
  color: var(--text-disabled);
}

.footer-powered span { color: var(--primary); font-weight: 600; }

/* ── Scroll Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.5s; }
.reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.6s; }
.reveal-stagger.visible > *:nth-child(7) { opacity: 1; transform: none; transition-delay: 0.7s; }
.reveal-stagger.visible > *:nth-child(8) { opacity: 1; transform: none; transition-delay: 0.8s; }

/* ── Integrations Ticker ── */
.integrations-ticker {
  overflow: hidden;
  padding: var(--space-6) 0;
  position: relative;
}

.ticker-track {
  display: flex;
  gap: var(--space-8);
  animation: ticker 25s linear infinite;
  width: max-content;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.ticker-item:hover { border-color: var(--border-strong); color: var(--text-primary); }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Responsive Landing */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .how-steps::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .landing-nav { padding: 0 var(--space-5); }
  .nav-links { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ============================================================
   Landing Marketing Page Redesign Styles
   ============================================================ */

/* ── Partner Logo Bar ── */
.partner-bar-wrapper {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-6) 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.partner-logo-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--space-8);
  flex-wrap: wrap;
  max-width: 1280px;
  width: 100%;
  padding: 0 var(--space-8);
}

.partner-logo {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.35;
  transition: all var(--transition-slow);
  cursor: pointer;
}

.partner-logo svg {
  height: 100%;
  width: auto;
  display: block;
}

.partner-logo:hover {
  opacity: 1;
  transform: scale(1.06);
}

/* Brand Specific Colors on Hover */
.partner-logo.shopify:hover { color: #50B83C; filter: drop-shadow(0 0 6px rgba(80,184,60,0.15)); }
.partner-logo.sap:hover { color: #008FD3; filter: drop-shadow(0 0 6px rgba(0,143,211,0.15)); }
.partner-logo.delhivery:hover { color: #E21A22; filter: drop-shadow(0 0 6px rgba(226,26,34,0.15)); }
.partner-logo.tally:hover { color: #007FAD; filter: drop-shadow(0 0 6px rgba(0,127,173,0.15)); }
.partner-logo.woocommerce:hover { color: #96588A; filter: drop-shadow(0 0 6px rgba(150,88,138,0.15)); }
.partner-logo.fedex:hover { color: #FF6600; filter: drop-shadow(0 0 6px rgba(255,102,0,0.15)); }
.partner-logo.quickbooks:hover { color: #2CA01C; filter: drop-shadow(0 0 6px rgba(44,160,28,0.15)); }
.partner-logo.amazon:hover { color: #FF9900; filter: drop-shadow(0 0 6px rgba(255,153,0,0.15)); }

/* ── Tabbed Features Split Layout ── */
.features-tabs-horizontal {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

.features-tabs-horizontal .feature-tab-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 28px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-base);
}

.features-tabs-horizontal .feature-tab-btn .tab-num {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.features-tabs-horizontal .feature-tab-btn .tab-text {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-secondary);
}

.features-tabs-horizontal .feature-tab-btn:hover {
  border-color: var(--border-strong);
  background: transparent;
}

.features-tabs-horizontal .feature-tab-btn.active {
  border-color: var(--primary);
  background: transparent;
  box-shadow: none;
}

.features-tabs-horizontal .feature-tab-btn.active .tab-num {
  color: var(--primary);
}

.features-tabs-horizontal .feature-tab-btn.active .tab-text {
  color: var(--text-primary);
}

.features-split-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-16);
  align-items: center;
}

.features-split-left {
  display: flex;
  flex-direction: column;
}

.feature-tab-pane {
  display: none;
  flex-direction: column;
  gap: var(--space-6);
  animation: fadeIn 0.4s ease;
}

.feature-tab-pane.active {
  display: flex;
}

.benefit-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  transition: transform var(--transition-base);
}

.benefit-item:hover {
  transform: translateX(4px);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.03);
}

.benefit-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.benefit-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.features-split-right {
  position: relative;
}

.feature-tab-mockup {
  display: none;
  animation: fadeIn 0.5s ease-out;
}

.feature-tab-mockup.active {
  display: block;
}

/* Realistic Product UI Dashboard Mockup */
.mock-dashboard-view {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  font-family: var(--font-sans);
}

[data-theme="light"] .mock-dashboard-view {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.mock-db-header {
  background: #1e293b;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #334155;
}

[data-theme="light"] .mock-db-header {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.mock-db-title {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
}

[data-theme="light"] .mock-db-title {
  color: #0f172a;
}

.mock-db-status {
  font-size: 10px;
  font-weight: 600;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-beacon {
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
  animation: pulse 1.5s infinite alternate;
}

.mock-db-body {
  padding: 16px;
}

.mock-table-widget {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.mock-tw-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #1e293b;
  font-size: 11px;
  color: #94a3b8;
}

[data-theme="light"] .mock-tw-row {
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
}

.mock-tw-row.header {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  border-bottom: 2px solid #334155;
  color: #e2e8f0;
}

[data-theme="light"] .mock-tw-row.header {
  border-bottom: 2px solid #cbd5e1;
  color: #334155;
}

.mock-tw-row span.font-mono {
  font-family: var(--font-mono);
  color: #f1f5f9;
}

[data-theme="light"] .mock-tw-row span.font-mono {
  color: #0f172a;
}

.mock-alert-box {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid #334155;
  border-radius: var(--border-radius-lg);
  padding: 10px 14px;
}

[data-theme="light"] .mock-alert-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.mock-alert-title {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 4px;
}

[data-theme="light"] .mock-alert-title {
  color: var(--primary);
}

.mock-alert-text {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.5;
}

[data-theme="light"] .mock-alert-text {
  color: #475569;
}

/* ── Warehouse Floor Layout Section ── */
.warehouse-layout-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.layout-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-16);
  align-items: center;
}

.warehouse-console-container {
  position: relative;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: center;
  border-radius: var(--border-radius-2xl);
  border: 1px solid var(--border);
  background-color: rgba(15, 17, 23, 0.4);
  box-shadow: var(--shadow-xl);
  /* Allow horizontal scroll for SVG on small screens, but allow vertical expansion for cards */
  overflow: visible;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-6) var(--space-6) var(--space-4);
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

/* Wrap only the SVG in a scrollable container */
.warehouse-map-visual {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--space-4);
  border-radius: var(--border-radius-lg);
}

[data-theme="light"] .warehouse-console-container {
  background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-color: #F1F5F9;
  border-color: var(--border);
}

.warehouse-svg-map {
  width: 100%;
  min-width: 560px;
  height: auto;
  display: block;
  overflow: visible;
}

/* Order Flow Paths */
.warehouse-flow-track {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 2px;
  opacity: 0.25;
}

[data-theme="light"] .warehouse-flow-track {
  opacity: 0.45;
}

.warehouse-flow-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-dasharray: 8, 24;
  animation: flowDash 3s linear infinite;
  filter: drop-shadow(0 0 3px var(--primary-glow));
}

[data-theme="light"] .warehouse-flow-line {
  stroke-width: 2.5px;
}

.warehouse-svg-map circle[r="4"] {
  filter: drop-shadow(0 0 4px var(--primary));
}

/* 4-Column Card Grid Below SVG */
.warehouse-console-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-2);
  /* Ensure cards never overlap the SVG above */
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .warehouse-console-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .warehouse-console-cards {
    grid-template-columns: 1fr;
  }
}

/* Glassmorphic Floor Cards */
.floor-card {
  display: flex;
  flex-direction: column;
  /* Do NOT set fixed height so hover expansion works naturally */
  width: 100%;
  background: rgba(22, 27, 39, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-xl);
  padding: var(--space-4);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  /* overflow visible so hover expansion never bleeds clipped */
  overflow: visible;
  user-select: none;
}

[data-theme="light"] .floor-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.fc-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.fc-metric {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.fc-value {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
  line-height: 1.1;
}

.fc-status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 8px;
  border-radius: var(--border-radius-full);
  font-size: 10px;
  font-weight: 700;
  width: fit-content;
}

.fc-status-badge.active {
  background: var(--primary-muted);
  color: var(--primary);
}

.fc-status-badge.success {
  background: var(--success-muted);
  color: var(--success);
}

.fc-status-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.fc-status-badge.active .dot {
  animation: pulse 1.5s infinite alternate;
}

/* Aisle specific grid bars */
.fc-aisles-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.fc-aisle-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}

.fc-aisle-row .label {
  width: 40px;
  color: var(--text-muted);
  font-weight: 600;
}

.fc-aisle-row .bar-container {
  flex-grow: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

[data-theme="light"] .fc-aisle-row .bar-container {
  background: rgba(0, 0, 0, 0.05);
}

.fc-aisle-row .bar {
  height: 100%;
  border-radius: 3px;
}

.fc-aisle-row .bar.danger { background: var(--danger-light); }
.fc-aisle-row .bar.primary { background: var(--primary); }
.fc-aisle-row .bar.orange { background: var(--orange-light); }
.fc-aisle-row .bar.success { background: var(--success); }

.fc-aisle-row .percent {
  width: 25px;
  text-align: right;
  color: var(--text-secondary);
  font-weight: 700;
}

/* Hover Details Panel */
.fc-hover-details {
  max-height: 0;
  opacity: 0;
  /* overflow hidden for the reveal animation */
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, margin-top 0.35s ease, padding-top 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.floor-card:hover .fc-hover-details {
  max-height: 100px;
  opacity: 1;
  margin-top: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
}

.fch-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-secondary);
}

.fch-row span:last-child {
  font-weight: 700;
  color: var(--text-primary);
}

/* Specific Card Hover States */
.floor-card.dock-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
  transform: translateY(-5px);
}
.floor-card.storage-card:hover {
  border-color: var(--success);
  box-shadow: 0 12px 24px rgba(5, 150, 105, 0.15);
  transform: translateY(-5px);
}
.floor-card.pack-card:hover {
  border-color: var(--warning);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.15);
  transform: translateY(-5px);
}
.floor-card.ship-card:hover {
  border-color: var(--purple);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.15);
  transform: translateY(-5px);
}

.warehouse-svg-map text {
  font-family: var(--font-sans);
  user-select: none;
  pointer-events: none;
}

/* ──────────────────────────────────────────────────────────────── */
/* Warehouse Floor Laser Scanner & Zone Interaction Animations     */
/* ──────────────────────────────────────────────────────────────── */

/* Laser sweep line: animated pulse */
.warehouse-svg-map line[stroke="var(--success-light)"] {
  animation: laserSweepPulse 1.5s infinite ease-in-out;
  filter: drop-shadow(0 0 4px #10b981) drop-shadow(0 0 8px #10b98166);
}

@keyframes laserSweepPulse {
  0%   { opacity: 0.4; stroke-width: 1.5px; }
  40%  { opacity: 1;   stroke-width: 3px;   }
  70%  { opacity: 0.9; stroke-width: 2.5px; }
  100% { opacity: 0.4; stroke-width: 1.5px; }
}

/* Cargo box (scan-box) flashes green when laser sweeps over it */
.scan-box {
  animation: scanBoxFlash 1.5s infinite ease-in-out;
}

@keyframes scanBoxFlash {
  0%   { fill: #D97706; filter: none; }
  40%  { fill: #10b981; filter: drop-shadow(0 0 6px #10b981); }
  70%  { fill: #10b981; filter: drop-shadow(0 0 3px #10b981); }
  100% { fill: #D97706; filter: none; }
}

/* Laser light cone fades in/out with sweep */
.warehouse-svg-map polygon {
  animation: laserConePulse 1.5s infinite ease-in-out;
}

@keyframes laserConePulse {
  0%   { opacity: 0.1; }
  40%  { opacity: 0.4; }
  70%  { opacity: 0.3; }
  100% { opacity: 0.1; }
}

/* Status feedback badges: dock, scan, ship */
.dock-feedback {
  animation: badgePulseDock 5s 0s infinite ease-in-out;
}

.scan-feedback {
  animation: badgePulseScan 1.5s infinite ease-in-out;
}

.ship-feedback {
  animation: badgePulseShip 5s 3.8s infinite ease-in-out;
}

@keyframes badgePulseDock {
  0%, 100% { opacity: 0.6; }
  10%       { opacity: 1; filter: drop-shadow(0 0 4px var(--primary)); }
  20%       { opacity: 0.6; }
}

@keyframes badgePulseScan {
  0%   { opacity: 0.5; }
  40%  { opacity: 1;   filter: drop-shadow(0 0 5px var(--success)); }
  70%  { opacity: 0.9; }
  100% { opacity: 0.5; }
}

@keyframes badgePulseShip {
  0%, 100% { opacity: 0.6; }
  10%       { opacity: 1; filter: drop-shadow(0 0 4px var(--purple)); }
  20%       { opacity: 0.6; }
}

/* ── Zone SVG highlighting when floor cards are hovered (CSS :has) ── */
/* Dock card hover → highlight dock gate rects */
.warehouse-console-cards:has(.dock-card:hover) .warehouse-svg-map .zone-dock {
  filter: drop-shadow(0 0 5px var(--primary));
  stroke: var(--primary) !important;
  stroke-width: 2.5px !important;
  opacity: 1 !important;
}

/* Storage card hover → highlight storage zone outlines */
.warehouse-console-cards:has(.storage-card:hover) .warehouse-svg-map .zone-storage {
  filter: drop-shadow(0 0 5px var(--success));
  stroke: var(--success) !important;
  stroke-width: 2px !important;
  opacity: 1 !important;
}

/* Pack card hover → highlight packing station */
.warehouse-console-cards:has(.pack-card:hover) .warehouse-svg-map .zone-pack {
  filter: drop-shadow(0 0 5px var(--warning));
  stroke: var(--warning) !important;
  stroke-width: 2px !important;
  opacity: 1 !important;
}

/* Ship card hover → highlight shipping bay gate */
.warehouse-console-cards:has(.ship-card:hover) .warehouse-svg-map .zone-ship {
  filter: drop-shadow(0 0 5px var(--purple));
  stroke: var(--purple) !important;
  stroke-width: 2.5px !important;
  opacity: 1 !important;
}

/* Note: :has() selector only works relative to a shared ancestor.
   Since .warehouse-console-cards is a sibling of .warehouse-map-visual, 
   we need to use the parent container to reach the SVG. */
.warehouse-console-container:has(.dock-card:hover) .zone-dock {
  filter: drop-shadow(0 0 5px var(--primary));
  stroke: var(--primary) !important;
  stroke-width: 2.5px !important;
}

.warehouse-console-container:has(.storage-card:hover) .zone-storage {
  filter: drop-shadow(0 0 5px var(--success));
  stroke: var(--success) !important;
  stroke-width: 2px !important;
}

.warehouse-console-container:has(.pack-card:hover) .zone-pack {
  filter: drop-shadow(0 0 5px var(--warning));
  stroke: var(--warning) !important;
  stroke-width: 2px !important;
}

.warehouse-console-container:has(.ship-card:hover) .zone-ship {
  filter: drop-shadow(0 0 5px var(--purple));
  stroke: var(--purple) !important;
  stroke-width: 2.5px !important;
}

/* Smooth SVG zone element transitions */
.zone-dock, .zone-storage, .zone-pack, .zone-ship {
  transition: filter 0.3s ease, stroke-width 0.3s ease;
}

@media (max-width: 1024px) {
  .layout-split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ── Stats Section (Asymmetric Metric Showcase) ── */
.stats-asymmetric-split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-16);
  align-items: center;
}

.stats-editorial {
  display: flex;
  flex-direction: column;
}

.stats-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.stat-metric-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-2xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.stat-metric-block:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .stat-metric-block {
  background: #ffffff;
}

.metric-number {
  text-shadow: 0 0 20px rgba(59,130,246,0.15);
}

/* ── Timeline Tracker Onboarding Stepper ── */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-4) 0;
}

.timeline-track {
  position: absolute;
  left: 28px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: var(--border);
  z-index: 1;
}

.timeline-progress {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--success) 100%);
  transition: height 0.1s ease;
  box-shadow: 0 0 15px rgba(59,130,246,0.6);
}

.timeline-step {
  display: flex;
  gap: var(--space-8);
  position: relative;
  z-index: 2;
  margin-bottom: var(--space-12);
  transform: translateY(15px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step:last-child {
  margin-bottom: 0;
}

/* Opacity applied to text and number individually to keep the circle base fully opaque! */
.timeline-step .step-content {
  flex-grow: 1;
  padding: 10px 0;
  opacity: 0.25;
  transition: all 0.4s ease;
}

.timeline-step .step-num-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  font-family: var(--font-mono);
  color: var(--text-muted);
  opacity: 0.35;
  z-index: 2;
  transition: all 0.4s ease;
}

.timeline-step.passed {
  transform: translateY(0);
}

.timeline-step.passed .step-content {
  opacity: 1;
}

.timeline-step.passed .step-num-badge {
  opacity: 1;
  color: var(--primary);
}

.step-marker {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  z-index: 3;
}

.marker-dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg-surface); /* Solid background blocks the vertical track line! */
  border: 2px dashed var(--border);
  z-index: 1;
  transition: border-color var(--transition-base), border-style var(--transition-base);
}

[data-theme="light"] .marker-dot {
  background: #ffffff;
}

.timeline-step.passed .marker-dot {
  border-color: var(--primary);
  border-style: dashed;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.timeline-step.passed .step-content h4 {
  color: var(--text-primary);
}

.timeline-step.passed .step-content p {
  color: var(--text-secondary);
}

/* ── Interactive Role Console Explorer ── */
.role-explorer {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: var(--space-8);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.role-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.role-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--border-radius-xl);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-base);
}

.role-menu-item:hover {
  background: var(--bg-elevated);
}

.role-menu-item.active {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

.role-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.role-menu-info {
  display: flex;
  flex-direction: column;
}

.role-menu-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
}

.role-menu-subtitle {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.role-details-panel {
  border-left: 1px solid var(--border);
  padding-left: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.role-details-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}

.role-details-title-row h3 {
  font-size: var(--text-2xl);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.role-details-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.role-details-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: flex-start;
}

.role-permissions-list h4,
.role-preview-console h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.perm-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
}

.perm-name {
  color: var(--text-secondary);
}

.perm-toggle-switch {
  width: 32px;
  height: 18px;
  border-radius: 9px;
  background: var(--bg-hover);
  position: relative;
  transition: background 0.3s ease;
  border: 1px solid var(--border);
}

.perm-toggle-switch.active {
  background: var(--success);
  border-color: var(--success);
}

.toggle-slider {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-secondary);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.perm-toggle-switch.active .toggle-slider {
  transform: translateX(14px);
  background: #fff;
}

/* Mock Console UI screens */
.mock-ui-frame {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--border-radius-xl);
  padding: var(--space-4);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-inset);
  animation: fadeIn 0.3s ease;
}

.mock-admin {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-admin-header {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.mock-admin-header .mock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-light);
  animation: pulse 1s infinite alternate;
}

.mock-admin-log {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.mock-manager-title {
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.mock-manager-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12px;
}

.mock-manager-row span {
  width: 90px;
  color: var(--text-secondary);
}

.mock-progress-bar-container {
  flex-grow: 1;
  height: 6px;
  background: var(--bg-hover);
  border-radius: 3px;
  overflow: hidden;
}

.mock-progress-bar {
  height: 100%;
  border-radius: 3px;
}

.mock-progress-bar.bg-blue { background: var(--primary); }
.mock-progress-bar.bg-green { background: var(--success-light); }
.mock-progress-bar.bg-amber { background: var(--warning-light); }

.mock-val {
  font-weight: 600;
  color: var(--text-primary);
}

.mock-card-task {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: 12px;
}

.mock-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-icon-wrap.bg-teal { background: var(--teal-muted); color: var(--teal-light); }

.mock-receiver .mock-title { font-weight: 700; font-size: 13px; }
.mock-receiver .mock-sub { font-size: 11px; color: var(--text-muted); }

.mock-qc-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.mock-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-header-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 4px;
}

.highlight-blink {
  color: var(--danger-light);
  font-weight: 700;
  animation: pulse 1s infinite alternate;
}

.mock-picker-bin { font-weight: 700; font-size: 14px; }
.mock-picker-desc { font-size: var(--text-sm); color: var(--text-secondary); }

.mock-picker-scan-btn {
  background: var(--primary);
  color: #fff;
  border-radius: var(--border-radius);
  padding: 8px 12px;
  font-size: var(--text-xs);
  text-align: center;
  margin-top: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-packer-header { font-weight: 700; font-size: var(--text-sm); margin-bottom: 8px; }
.mock-packer-checklist { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.mock-packer-checklist .check-item { color: var(--text-secondary); }
.mock-packer-checklist .checked { color: var(--success-light); font-weight: bold; margin-right: 6px; }
.mock-box-suggestion { font-size: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

.mock-shipper-header { font-weight: 700; font-size: var(--text-sm); margin-bottom: 8px; }
.mock-shipper-manifest { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 6px; }
.mock-shipper-tracking { font-size: 11px; color: var(--text-muted); }
.mock-shipper-dock { font-size: 12px; margin-top: 6px; font-weight: 600; }

.mock-auditor-title { font-weight: 700; font-size: var(--text-sm); margin-bottom: 8px; }
.mock-auditor-table { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.mock-auditor-table .mock-row { display: flex; justify-content: space-between; align-items: center; }

/* ── Symmetrical Testimonials Grid ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-2xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

[data-theme="light"] .testimonial-card {
  background: #ffffff;
}

.testimonial-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-name {
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  font-size: var(--text-sm);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── FAQ Accordion ── */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-header {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.faq-header:hover {
  color: var(--primary);
}

.faq-icon {
  color: var(--text-muted);
  transition: transform var(--transition-base);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  transition: all var(--transition-base) cubic-bezier(0, 1, 0, 1);
}

.faq-content p {
  padding-bottom: 20px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.active {
  border-color: var(--border-strong);
}

.faq-item.active .faq-header {
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item.active .faq-content {
  max-height: 500px;
  transition: all var(--transition-slow) cubic-bezier(1, 0, 1, 0);
}

/* Fade in keyframe */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Custom Landing Media Queries ── */
@media (max-width: 1024px) {
  .features-split-panel,
  .ecosystem-split,
  .stats-asymmetric-split,
  .role-explorer {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .stats-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .role-details-panel {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: var(--space-6);
  }
}

@media (max-width: 768px) {
  .timeline-track {
    left: 20px;
  }
  .timeline-step {
    gap: var(--space-4);
  }
  .step-marker {
    width: 44px;
    height: 44px;
  }
  .step-content {
    padding: var(--space-2) 0;
  }
  .role-details-split {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .stats-metrics-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
