/* ========================================
   PatternLab |Website Styles
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #F7FAF0;
  --color-bg-alt: #EFF3E8;
  --color-surface: #ffffff;
  --color-surface-hover: #F0F0F0;
  --color-border: #E0E0E0;
  --color-border-light: #D0D0D0;
  --color-text: #1a1a1a;
  --color-text-secondary: #555555;
  --color-text-muted: #888888;
  --color-primary: #5189F3;
  --color-primary-light: #6B9DF5;
  --color-primary-dark: #3A6FD8;
  --color-primary-glow: rgba(81, 137, 243, 0.12);
  --color-accent: #5189F3;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 40px var(--color-primary-glow);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background: #F7FAF0;
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

.text-gradient {
  background: linear-gradient(135deg, #5189F3, #3A6FD8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; }

.btn-primary {
  background: #5189F3;
  color: #fff;
  box-shadow: 0 2px 12px rgba(81,137,243,0.25);
}
.btn-primary:hover {
  background: #3A6FD8;
  box-shadow: 0 4px 20px rgba(81,137,243,0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #1a1a1a;
  border: 1px solid #D0D0D0;
}
.btn-outline:hover {
  border-color: #5189F3;
  color: #5189F3;
  background: rgba(81,137,243,0.06);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(247, 250, 240, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-img {
  display: block;
  height: 38px;
  width: auto;
}

/* Navbar logo: invert white logo to black for light background */
.logo-img.logo-dark {
  filter: brightness(0);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--color-text); }
.nav-links .btn { color: #fff; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(90px, 12vw, 140px) 0 clamp(56px, 8vw, 80px);
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(81, 137, 243, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(81, 137, 243, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(81,137,243,0.08), transparent 70%);
  pointer-events: none;
}

/* Hero split layout */
.hero-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero-left {
  text-align: left;
}

.hero-right {
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(81, 137, 243, 0.08);
  border: 1px solid rgba(81, 137, 243, 0.2);
  border-radius: 100px;
  font-size: 0.825rem;
  font-weight: 600;
  color: #5189F3;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-headline {
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 0 32px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-metric {
  text-align: center;
}

.hero-metric-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.hero-metric-unit {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.hero-metric-label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.hero-metric-divider {
  width: 1px;
  height: 48px;
  background: var(--color-border);
}

/* --- Sections --- */
.section {
  padding: clamp(56px, 8vw, 100px) 0;
}

.section-dark {
  background: #EFF3E8;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(36px, 5vw, 64px);
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary-light);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  margin-top: 16px;
  line-height: 1.7;
}

/* --- Problem Section: Two Schedules --- */
.prob-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto;
}

.prob-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prob-card-erp {
  border-top: 3px solid #22c55e;
}

.prob-card-real {
  border-top: 3px solid #ef4444;
}

.prob-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.prob-card-erp .prob-card-label { color: #16a34a; }
.prob-card-real .prob-card-label { color: #dc2626; }

/* Mini Gantt rows */
.prob-gantt {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prob-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prob-row-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.03em;
}

.prob-bar {
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.prob-bar-erp {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.prob-bar-late {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.prob-bar-risk {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.prob-slip {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 8px;
  font-size: 0.7rem;
  font-weight: 800;
}

/* Verdict line */
.prob-card-verdict {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid var(--color-border);
}

.prob-verdict-ok { color: #16a34a; }
.prob-verdict-late { color: #dc2626; }

/* VS divider */
.prob-vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(12px, 2vw, 24px);
}

.prob-vs-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Aspirational close */
.prob-close {
  max-width: 680px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  text-align: center;
}

.prob-close-line {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  color: #6b7280;
  margin: 0 0 16px;
}

.prob-close-vision {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  color: #111827;
  font-weight: 700;
  margin: 0;
}

.prob-close-vision strong {
  color: var(--color-primary, #2563eb);
}

/* Mobile: stack the two cards */
@media (max-width: 760px) {
  .prob-vs {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .prob-vs-divider {
    padding: 16px 0;
  }
  .prob-card {
    padding: 22px 20px;
  }
}

/* --- Hero Interactive Demo --- */
.hero-demo-wrapper {
  position: relative;
}

.hero-demo {
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  border: 1px solid #E0E0E0;
  border-bottom: none;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06), 0 0 40px rgba(81,137,243,0.04);
  background: #fff;
}

.hero-demo-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #5189F3, #6B9DF5, #5189F3);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.2;
  filter: blur(2px);
}

.hero-demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #1a1a2e;
  color: #e0e7ff;
  font-size: 0.8rem;
  font-weight: 500;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-demo-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* Value Story Modal */
.vr-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.vr-modal-overlay.open { display: flex; }

.vr-modal {
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  animation: vrModalIn 0.3s ease;
}

@keyframes vrModalIn {
  from { opacity:0; transform:scale(0.95) translateY(20px); }
  to { opacity:1; transform:scale(1) translateY(0); }
}

.vr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #1a1a2e;
  color: #e0e7ff;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
}

.vr-modal-close {
  border: none;
  background: rgba(255,255,255,0.1);
  color: #c7d2fe;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.vr-modal-close:hover { background: rgba(255,255,255,0.2); color:#fff; }

.vr-modal .demo-gantt-wrapper {
  max-height: calc(90vh - 50px);
  overflow-y: auto;
}

.hero-product-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Value Realization Workflow --- */
.demo-gantt-wrapper {
  background: #fff;
  height: 480px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Stage */
.vr-stage {
  flex: 1;
  padding: 24px 28px;
  height: 390px;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.vr-stage.vr-transitioning {
  opacity: 0;
}

/* Scene layout */
.vr-scene-header {
  margin-bottom: 20px;
}

.vr-phase {
  display: inline-block;
  padding: 3px 12px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 100px;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
}

.vr-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
  line-height: 1.3;
}

.vr-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}

/* Chaos scene */
.vr-chaos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.vr-chaos-card {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
}

.vr-chaos-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.vr-chaos-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}

.vr-chaos-quote {
  font-size: 0.8rem;
  color: #6b7280;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
}

.vr-chaos-status {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
}

.vr-chaos-outcome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.vr-chaos-outcome-icon {
  flex-shrink: 0;
  display: flex;
}

/* Image scene layout */
.vr-image-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: start;
}

.vr-image-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.vr-image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.vr-image-caption {
  padding: 8px 14px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  font-size: 0.7rem;
  color: #9ca3af;
  font-family: 'Inter', sans-serif;
}

/* Metrics grid */
.vr-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.vr-metric {
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.vr-metric-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: #4f46e5;
  font-family: 'Inter', sans-serif;
  line-height: 1.2;
}

.vr-metric-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
  font-family: 'Inter', sans-serif;
}

/* Workflow steps */
.vr-workflow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vr-workflow-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  border-left: 3px solid #4f46e5;
}

.vr-workflow-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #4f46e5;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}

.vr-workflow-text {
  font-size: 0.8rem;
  color: #374151;
  line-height: 1.4;
  font-family: 'Inter', sans-serif;
}

/* Result scene */
.vr-results-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.vr-result-row {
  display: grid;
  grid-template-columns: 32px 1fr 120px 28px 120px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
}

.vr-result-icon {
  color: #4f46e5;
  display: flex;
}

.vr-result-metric {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
}

.vr-result-before {
  font-size: 0.85rem;
  color: #9ca3af;
  text-align: right;
  text-decoration: line-through;
  text-decoration-color: #ef4444;
}

.vr-result-arrow {
  display: flex;
  justify-content: center;
}

.vr-result-after {
  font-size: 0.9rem;
  font-weight: 700;
  color: #059669;
}

.vr-result-cta {
  text-align: center;
  padding-top: 8px;
}

.vr-cta-button {
  display: inline-block;
  padding: 12px 32px;
  background: #4f46e5;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
  transition: all 0.2s;
}

.vr-cta-button:hover {
  background: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.4);
}

/* Bottom bar: progress + controls */
.vr-bottom {
  padding: 12px 20px 14px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0 0 16px 16px;
}

.vr-progress-bar {
  margin-bottom: 10px;
}

.vr-progress-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4px;
  background: #e5e7eb;
  border-radius: 4px;
  padding: 0;
}

.vr-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  border-radius: 4px;
  transition: width 0.3s ease;
  z-index: 0;
}

.vr-progress-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  z-index: 1;
  transition: all 0.2s;
  padding: 0;
}

.vr-progress-dot.completed {
  background: #4f46e5;
  border-color: #4f46e5;
}

.vr-progress-dot.active {
  border-color: #4f46e5;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
  transform: scale(1.2);
}

.vr-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.vr-ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
}

.vr-ctrl-btn:hover {
  border-color: #4f46e5;
  color: #4f46e5;
}

.vr-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

.vr-play-btn:hover {
  background: #4338ca;
  color: #fff;
}

.vr-scene-counter {
  font-size: 0.75rem;
  color: #9ca3af;
  font-family: 'Inter', sans-serif;
  min-width: 40px;
}

/* Animations */
.vr-anim-up {
  opacity: 0;
  transform: translateY(16px);
  animation: vrSlideUp 0.5s ease forwards;
}

@keyframes vrSlideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
  .vr-image-layout { grid-template-columns: 1fr; }
  .vr-chaos-grid { grid-template-columns: 1fr; }
  .vr-result-row { grid-template-columns: 28px 1fr; gap: 8px; }
  .vr-result-before, .vr-result-arrow, .vr-result-after { display: none; }
  .vr-stage { padding: 16px; min-height: 280px; }
}

@media (max-width: 768px) {
  .vr-metrics-grid { grid-template-columns: 1fr; }
  .vr-title { font-size: 1.1rem; }
  .hero-demo { border-radius: var(--radius-lg); }
}

/* --- Product Showcase --- */
.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.showcase-tab {
  padding: 10px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  color: var(--color-text-secondary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.showcase-tab:hover {
  border-color: var(--color-border-light);
  color: var(--color-text);
}

.showcase-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 20px var(--color-primary-glow);
}

.showcase-panel {
  display: none;
}

.showcase-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.showcase-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.showcase-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-lg);
}

.showcase-image img {
  width: 100%;
  height: auto;
  display: block;
}

.showcase-info h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.showcase-info > p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.showcase-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-features li {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.showcase-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary-glow);
  border: 2px solid var(--color-primary-light);
}

@media (max-width: 768px) {
  .showcase-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .showcase-tabs {
    gap: 6px;
  }
  .showcase-tab {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* --- Steps (How It Works) --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.step-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
}

.step-card:hover {
  border-color: #5189F3;
  box-shadow: 0 4px 20px rgba(81,137,243,0.1);
  transform: translateY(-2px);
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(81, 137, 243, 0.08);
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
}

.step-icon {
  color: var(--color-primary-light);
  margin-bottom: 20px;
}

.step-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.step-card p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* --- Platform: Value Chain (single frame) --- */
.vc-frame {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 48px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.vc-chain {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* Individual stage */
.vc-stage {
  flex: 1;
  text-align: center;
  padding: 0 clamp(8px, 1.5vw, 20px);
}

.vc-stage-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.vc-stage-pulse .vc-stage-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.vc-stage-brain .vc-stage-icon {
  background: rgba(81, 137, 243, 0.1);
  color: #5189F3;
}

.vc-stage-payoff .vc-stage-icon {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.vc-stage-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 6px;
}

.vc-stage-title {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 800;
  color: #111827;
  margin: 0 0 10px;
  line-height: 1.3;
}

.vc-stage-body {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 18px;
}

/* Metric chip at bottom of each stage */
.vc-stage-metric {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #f9fafb;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 18px;
  gap: 2px;
}

.vc-metric-highlight {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.vc-metric-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
}

.vc-metric-highlight .vc-metric-num {
  color: #15803d;
}

.vc-metric-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vc-metric-highlight .vc-metric-label {
  color: #16a34a;
}

/* Arrows between stages */
.vc-arrow {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 28px;
  color: #cbd5e1;
}

.vc-arrow-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  white-space: nowrap;
}

/* Mobile: stack vertically */
@media (max-width: 760px) {
  .vc-chain {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .vc-stage {
    padding: 16px 0;
    max-width: 340px;
  }
  .vc-arrow {
    padding-top: 0;
    transform: rotate(90deg);
  }
  .vc-arrow-label {
    transform: rotate(-90deg);
  }
  .vc-frame {
    padding: 28px 20px;
  }
}

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2vw, 20px);
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: var(--transition);
}

.feature-item:hover {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(81, 137, 243, 0.08);
  color: #5189F3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item h4 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.feature-item p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Industries --- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.industry-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: var(--transition);
}

.industry-card:hover {
  border-color: #5189F3;
  box-shadow: 0 4px 20px rgba(81,137,243,0.1);
  transform: translateY(-2px);
}

.industry-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(81, 137, 243, 0.08);
  color: #5189F3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.industry-card h4 {
  margin-bottom: 8px;
}

.industry-card p {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* --- CTA / Contact --- */
.section-cta {
  padding: 100px 0;
  background: linear-gradient(180deg, #F7FAF0 0%, #EFF3E8 100%);
}

.cta-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 20px;
}

.cta-content > p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cta-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.cta-checklist li svg {
  color: var(--color-success);
  flex-shrink: 0;
}

.cta-form {
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.cta-form h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  background: #EFF3E8;
  border: 1px solid #E0E0E0;
  border-radius: var(--radius-md);
  color: #1a1a1a;
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: #EFF3E8;
  border: 1px solid #E0E0E0;
  border-radius: var(--radius-md);
  color: #1a1a1a;
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #999; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #5189F3;
  box-shadow: 0 0 0 3px rgba(81,137,243,0.12);
}

.source-btn-group {
  display: flex;
  gap: 10px;
}

.source-btn {
  flex: 1;
  padding: 10px 14px;
  background: #EFF3E8;
  border: 1px solid #E0E0E0;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  transition: var(--transition);
}

.source-btn:hover {
  border-color: #5189F3;
  background: rgba(81,137,243,0.06);
}

.source-btn.active {
  border-color: #5189F3;
  background: rgba(81,137,243,0.12);
  color: #5189F3;
  box-shadow: 0 0 0 3px rgba(81,137,243,0.12);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.cta-form .btn {
  margin-top: 8px;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* --- Footer --- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid #E0E0E0;
  background: #1a1a2e;
  color: #ccc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(32px, 4vw, 48px);
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: #888;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-contact-info {
  margin-top: 16px;
}

.footer-contact-info p {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.6;
  margin: 4px 0;
}

.footer-contact-info a {
  color: #5189F3;
  transition: var(--transition);
}

.footer-contact-info a:hover {
  color: #fff;
}

.footer-social {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

.footer-social a {
  color: #888;
  transition: var(--transition);
}

.footer-social a:hover {
  color: #5189F3;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: #888;
  padding: 6px 0;
  transition: var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #666;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: #666;
  transition: var(--transition);
}
.footer-legal a:hover { color: #fff; }

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a2e;
  color: #ccc;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 10000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.cookie-banner p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.cookie-banner a {
  color: #5189F3;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner .btn-cookie-accept {
  padding: 10px 24px;
  background: #5189F3;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-banner .btn-cookie-accept:hover {
  background: #3A6FD8;
}

.cookie-banner .btn-cookie-decline {
  padding: 10px 24px;
  background: transparent;
  color: #888;
  border: 1px solid #444;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-banner .btn-cookie-decline:hover {
  border-color: #888;
  color: #ccc;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }
}

/* --- Product Tour --- */
.pt-root { font-family: 'Inter', sans-serif; }

/* Step bar */
.pt-steps { display:flex; align-items:center; justify-content:center; gap:0; margin-bottom:24px; flex-wrap:wrap; }
.pt-step-item { display:flex; flex-direction:column; align-items:center; gap:4px; cursor:default; min-width:70px; }
.pt-step-num { width:30px; height:30px; border-radius:50%; border:2px solid var(--color-border-light); background:var(--color-surface); color:var(--color-text-muted); display:flex; align-items:center; justify-content:center; font-size:0.75rem; font-weight:700; transition:all 0.2s; }
.pt-step-label { font-size:0.65rem; color:var(--color-text-muted); font-weight:500; text-align:center; }
.pt-step-item.active .pt-step-num { border-color:#4f46e5; background:#4f46e5; color:#fff; box-shadow:0 0 0 4px rgba(79,70,229,0.15); }
.pt-step-item.active .pt-step-label { color:var(--color-primary-light); font-weight:600; }
.pt-step-item.done .pt-step-num { border-color:#10b981; background:#10b981; color:#fff; }
.pt-step-item.done .pt-step-label { color:#10b981; }
.pt-step-line { width:32px; height:2px; background:var(--color-border); margin:0 2px 18px; flex-shrink:0; }

/* Instruction banner */
.pt-instruction { display:flex; align-items:flex-start; gap:10px; padding:12px 18px; background:rgba(79,70,229,0.08); border:1px solid rgba(79,70,229,0.18); border-radius:10px; margin-bottom:20px; }
.pt-inst-icon { color:#6366f1; flex-shrink:0; margin-top:1px; }
.pt-inst-text { font-size:0.88rem; color:var(--color-text); line-height:1.5; }

/* Navigation */
.pt-nav { display:flex; justify-content:space-between; align-items:center; margin-top:20px; }
.pt-nav-btn { padding:10px 24px; border:none; border-radius:8px; font-family:'Inter',sans-serif; font-size:0.85rem; font-weight:600; cursor:pointer; transition:all 0.2s; }
.pt-nav-back { background:var(--color-surface); border:1px solid var(--color-border); color:var(--color-text-secondary); }
.pt-nav-back:hover { border-color:var(--color-primary-light); color:var(--color-primary-light); }
.pt-nav-next { background:#4f46e5; color:#fff; box-shadow:0 2px 10px rgba(79,70,229,0.3); }
.pt-nav-next:hover { background:#4338ca; transform:translateY(-1px); }
.pt-nav-restart { background:var(--color-surface); border:1px solid var(--color-border); color:var(--color-text-secondary); }
.pt-nav-restart:hover { border-color:#4f46e5; color:#4f46e5; }

/* Industry grid */
.pt-ind-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.pt-ind-card { display:flex; flex-direction:column; align-items:center; text-align:center; padding:24px 16px; border:2px solid var(--color-border); border-radius:14px; background:var(--color-surface); cursor:pointer; transition:all 0.2s; }
.pt-ind-card:hover { border-color:#4f46e5; background:rgba(79,70,229,0.06); transform:translateY(-2px); box-shadow:0 4px 20px rgba(79,70,229,0.12); }
.pt-ind-icon { width:50px; height:50px; border-radius:12px; background:rgba(79,70,229,0.08); color:#6366f1; display:flex; align-items:center; justify-content:center; margin-bottom:12px; }
.pt-ind-name { font-size:0.92rem; font-weight:700; color:var(--color-text); margin-bottom:4px; }
.pt-ind-desc { font-size:0.75rem; color:var(--color-text-secondary); margin-bottom:8px; line-height:1.3; }
.pt-ind-meta { font-size:0.65rem; color:var(--color-text-muted); }

/* Shared */
.pt-dot { display:inline-block; width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.pt-pri { display:inline-block; padding:1px 8px; background:rgba(99,102,241,0.1); color:#6366f1; font-size:0.7rem; font-weight:600; border-radius:100px; }
.pt-route { font-size:0.7rem; color:var(--color-text-muted); }
.pt-status { display:inline-block; padding:2px 10px; font-size:0.68rem; font-weight:600; border-radius:100px; text-transform:uppercase; letter-spacing:0.04em; }
.pt-status-pending { background:rgba(234,179,8,0.12); color:#ca8a04; }
.pt-status-mps { background:rgba(79,70,229,0.12); color:#4f46e5; }
.pt-red { color:#dc2626; font-weight:700; }

/* Jobs table */
.pt-jobs-wrap { overflow-x:auto; border:1px solid var(--color-border); border-radius:10px; }
.pt-jobs-tbl { width:100%; border-collapse:collapse; font-size:0.8rem; }
.pt-jobs-tbl th { text-align:left; padding:8px 12px; background:var(--color-surface); color:var(--color-text-muted); font-weight:500; font-size:0.7rem; text-transform:uppercase; letter-spacing:0.04em; border-bottom:1px solid var(--color-border); }
.pt-jobs-tbl td { padding:8px 12px; color:var(--color-text); border-bottom:1px solid rgba(255,255,255,0.04); white-space:nowrap; }
.pt-jobs-tbl tbody tr:hover { background:rgba(255,255,255,0.03); }
.pt-cell-id { font-weight:600; }

/* Check cards */
.pt-checks-wrap { display:flex; flex-direction:column; gap:10px; }
.pt-check-card { border:1px solid var(--color-border); border-radius:10px; padding:14px 18px; background:var(--color-surface); }
.pt-check-header { display:flex; align-items:center; gap:10px; margin-bottom:10px; flex-wrap:wrap; font-size:0.85rem; color:var(--color-text); }
.pt-check-meta { font-size:0.75rem; color:var(--color-text-muted); margin-left:auto; }
.pt-check-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.pt-check-col { min-height:42px; }
.pt-check-btn { width:100%; padding:10px 16px; border:1.5px solid var(--color-border-light); border-radius:8px; background:transparent; color:var(--color-text); font-family:'Inter',sans-serif; font-size:0.8rem; font-weight:600; cursor:pointer; transition:all 0.2s; }
.pt-btn-rm:hover { border-color:#10b981; color:#10b981; background:rgba(16,185,129,0.06); }
.pt-btn-cap:hover { border-color:#06b6d4; color:#06b6d4; background:rgba(6,182,212,0.06); }
.pt-check-result { padding:10px 14px; border-radius:8px; }
.pt-check-pass { background:rgba(16,185,129,0.08); border:1px solid rgba(16,185,129,0.2); }
.pt-check-fail { background:rgba(239,68,68,0.06); border:1px solid rgba(239,68,68,0.18); }
.pt-check-badge { font-size:0.78rem; font-weight:700; margin-bottom:4px; }
.pt-check-pass .pt-check-badge { color:#059669; }
.pt-check-fail .pt-check-badge { color:#dc2626; }
.pt-check-detail { font-size:0.72rem; color:var(--color-text-secondary); line-height:1.5; }
.pt-check-all-row { text-align:center; margin-top:12px; }
.pt-check-all-btn { padding:8px 24px; border:1.5px solid var(--color-primary-light); border-radius:8px; background:transparent; color:var(--color-primary-light); font-family:'Inter',sans-serif; font-size:0.8rem; font-weight:600; cursor:pointer; transition:all 0.2s; }
.pt-check-all-btn:hover { background:rgba(79,70,229,0.08); }
.pt-anim-in { animation:ptFadeIn 0.4s ease; }
@keyframes ptFadeIn { from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:translateY(0);} }

/* MPS */
.pt-mps-wrap { display:flex; flex-direction:column; gap:16px; }
.pt-mps-group { border:1px solid var(--color-border); border-radius:10px; overflow:hidden; }
.pt-mps-group-title { padding:8px 16px; font-size:0.78rem; font-weight:700; }
.pt-mps-pass-title { background:rgba(16,185,129,0.08); color:#059669; border-bottom:1px solid rgba(16,185,129,0.15); }
.pt-mps-fail-title { background:rgba(239,68,68,0.06); color:#dc2626; border-bottom:1px solid rgba(239,68,68,0.12); }
.pt-mps-row { display:flex; align-items:center; gap:10px; padding:10px 16px; border-bottom:1px solid rgba(255,255,255,0.04); font-size:0.82rem; }
.pt-mps-row:last-child { border-bottom:none; }
.pt-mps-row-fail { opacity:0.75; }
.pt-mps-id { font-weight:600; color:var(--color-text); min-width:65px; }
.pt-mps-sku { color:var(--color-text-secondary); flex:1; }
.pt-mps-qty { color:var(--color-text-muted); font-size:0.75rem; min-width:70px; }
.pt-mps-due { color:var(--color-text-muted); font-size:0.75rem; }
.pt-mps-reason { color:#ef4444; font-size:0.72rem; font-weight:500; }
.pt-mps-btn { padding:5px 14px; border:1.5px solid #4f46e5; border-radius:6px; background:transparent; color:#4f46e5; font-family:'Inter',sans-serif; font-size:0.75rem; font-weight:600; cursor:pointer; transition:all 0.15s; white-space:nowrap; }
.pt-mps-btn:hover { background:#4f46e5; color:#fff; }
.pt-rush-btn { padding:5px 14px; border:1.5px solid #f59e0b; border-radius:6px; background:transparent; color:#f59e0b; font-family:'Inter',sans-serif; font-size:0.75rem; font-weight:600; cursor:pointer; transition:all 0.15s; white-space:nowrap; }
.pt-rush-btn:hover { background:#f59e0b; color:#fff; }
.pt-mps-all-btn { display:block; width:100%; padding:8px; border:none; background:rgba(79,70,229,0.06); color:#4f46e5; font-family:'Inter',sans-serif; font-size:0.8rem; font-weight:600; cursor:pointer; transition:all 0.15s; }
.pt-mps-all-btn:hover { background:rgba(79,70,229,0.12); }

/* Schedule panel */
.pt-sched-panel { max-width:500px; margin:0 auto; text-align:center; padding:40px 0; }
.pt-sched-info { font-size:0.95rem; color:var(--color-text); margin-bottom:20px; }
.pt-sched-controls { display:flex; flex-direction:column; gap:10px; align-items:center; }
.pt-sched-label { font-size:0.72rem; font-weight:600; color:var(--color-text-muted); text-transform:uppercase; letter-spacing:0.05em; }
.pt-sched-select { padding:8px 14px; border:1px solid var(--color-border-light); border-radius:8px; background:var(--color-surface); color:var(--color-text); font-family:'Inter',sans-serif; font-size:0.85rem; width:260px; outline:none; }
.pt-sched-select:focus { border-color:#4f46e5; }
.pt-sched-run { display:flex; align-items:center; justify-content:center; gap:8px; padding:12px 32px; border:none; border-radius:10px; background:linear-gradient(135deg,#4f46e5,#6366f1); color:#fff; font-family:'Inter',sans-serif; font-size:0.95rem; font-weight:700; cursor:pointer; box-shadow:0 4px 16px rgba(79,70,229,0.3); transition:all 0.2s; margin-top:6px; }
.pt-sched-run:hover { transform:translateY(-2px); box-shadow:0 6px 24px rgba(79,70,229,0.4); }

/* Gantt panel */
.pt-gantt-wrap {}
.pt-gantt-metrics { display:flex; gap:20px; margin-bottom:12px; justify-content:center; flex-wrap:wrap; }
.pt-gm { display:flex; align-items:baseline; gap:5px; }
.pt-gm-v { font-size:1.1rem; font-weight:700; }
.pt-gm-l { font-size:0.7rem; color:var(--color-text-muted); }
.pt-gantt-controls { display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:10px; }
.pt-sched-rerun { padding:6px 16px; border:1px solid var(--color-border-light); border-radius:6px; background:transparent; color:var(--color-text-secondary); font-family:'Inter',sans-serif; font-size:0.78rem; font-weight:600; cursor:pointer; }
.pt-sched-rerun:hover { border-color:#4f46e5; color:#4f46e5; }
.pt-gantt-legend { display:flex; gap:10px; margin-bottom:8px; justify-content:center; flex-wrap:wrap; }
.pt-gl-item { display:flex; align-items:center; gap:5px; font-size:0.72rem; font-weight:500; color:var(--color-text-secondary); }
.pt-gantt-svg-wrap { border:1px solid var(--color-border); border-radius:8px; overflow-x:auto; background:#fff; }
.pt-gantt-svg { display:block; }
.pt-gantt-empty { padding:40px; text-align:center; color:#9ca3af; font-size:0.85rem; }

@media (max-width:900px) { .pt-ind-grid{grid-template-columns:repeat(2,1fr);} .pt-check-actions{grid-template-columns:1fr;} }
@media (max-width:600px) { .pt-ind-grid{grid-template-columns:1fr;} .pt-steps{gap:0;} .pt-step-label{font-size:0.55rem;} .pt-mps-row{flex-wrap:wrap;} }

/* --- Adaptive Loop Footer (deprecated |progress now lives inside the panel) --- */
.ap-loop-footer { display: none; }

/* --- Adaptive Loop (hero tab) --- */
.ap-loop-root {
  padding: 14px 16px 10px;
  background: #080810;
  height: 600px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  position: relative;
}

.apl-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.apl-top-left { flex:1; min-width:0; }

.apl-phase-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.apl-title {
  font-size: 1rem;
  font-weight: 800;
  color: #e4e4ed;
  margin-bottom: 4px;
  line-height: 1.3;
}

.apl-narrative {
  font-size: 0.8rem;
  color: #8888a0;
  line-height: 1.45;
}

.apl-confidence {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.apl-conf-label {
  font-size: 0.6rem;
  color: #4a4a60;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-align: right;
}

.apl-conf-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  text-align: right;
}

.apl-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid;
  border-radius: 8px;
  margin-bottom: 10px;
  animation: aplAlertPulse 1.5s ease infinite;
}

@keyframes aplAlertPulse {
  0%,100% { opacity:1; }
  50% { opacity:0.7; }
}

.apl-alert-icon { font-size: 1.1rem; }
.apl-alert-text { font-size: 0.78rem; font-weight: 600; }

.apl-visual {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.apl-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* BOM cards */
.apl-bom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.apl-bom-card {
  background: #111120;
  border-radius: 10px;
  padding: 14px 16px;
  border-left: 3px solid;
}

.apl-bom-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.apl-bom-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.apl-bom-header strong {
  font-size: 0.85rem;
  color: #e4e4ed;
}

.apl-bom-sku {
  font-size: 0.75rem;
  color: #7878a0;
}

.apl-bom-qty {
  font-size: 0.68rem;
  color: #5a5a78;
  margin-left: auto;
}

.apl-bom-section {
  margin-bottom: 8px;
}

.apl-bom-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: #5a5a78;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.apl-bom-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.apl-bom-item {
  font-size: 0.7rem;
  color: #9898b0;
  line-height: 1.4;
}

.apl-bom-route {
  font-size: 0.72rem;
  color: #a0a0c0;
  font-weight: 500;
}

.apl-anim-in {
  opacity: 0;
  transform: translateY(10px);
  animation: aplSlideIn 0.5s ease forwards;
}

@keyframes aplSlideIn {
  to { opacity:1; transform:translateY(0); }
}

/* Timeline */
.apl-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 4px;
}

.apl-tl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 50px;
}

.apl-tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #2a2a3a;
  background: #111;
  transition: all 0.3s;
}

.apl-tl-item.done .apl-tl-dot { background:#10b981; border-color:#10b981; }
.apl-tl-item.active .apl-tl-dot { border-color:#6366f1; background:#6366f1; box-shadow:0 0 0 3px rgba(99,102,241,0.2); }

.apl-tl-lbl {
  font-size: 0.58rem;
  color: #3a3a50;
  font-weight: 500;
}

.apl-tl-item.active .apl-tl-lbl { color:#818cf8; font-weight:600; }
.apl-tl-item.done .apl-tl-lbl { color:#10b981; }

.apl-tl-line {
  width: 24px;
  height: 2px;
  background: #1e1e30;
  margin-bottom: 16px;
}

/* Industry bar */
.apl-ind-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.apl-ind-btn {
  padding: 5px 14px;
  border: 1px solid #2a2a3a;
  border-radius: 100px;
  background: transparent;
  color: #7878a0;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.apl-ind-btn:hover { border-color: #5189F3; color: #a0a0c0; }
.apl-ind-btn.active {
  border-color: #5189F3;
  background: rgba(81,137,243,0.15);
  color: #8db4f7;
  font-weight: 600;
}

/* BOM material rows with stock bars */
.apl-bom-mat {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.apl-bom-mat-name { font-size:0.68rem; color:#9898b0; min-width:0; flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.apl-bom-mat-qty { font-size:0.65rem; color:#6868880; flex-shrink:0; min-width:60px; text-align:right; }
.apl-bom-stock-bar { width:40px; height:4px; background:#1e1e30; border-radius:2px; flex-shrink:0; overflow:hidden; }
.apl-bom-stock-fill { height:100%; border-radius:2px; transition:width 0.5s ease; }
.apl-bom-stock-pct { font-size:0.6rem; font-weight:600; flex-shrink:0; min-width:28px; text-align:right; }
.apl-bom-urgent { padding:1px 7px; background:rgba(239,68,68,0.15); color:#ef4444; font-size:0.55rem; font-weight:700; border-radius:100px; letter-spacing:0.04em; }
.apl-bom-due { font-size:0.62rem; color:#5a5a78; margin-left:auto; }

/* Rush order card */
.apl-rush-card {
  max-width: 500px;
  margin: 0 auto;
  border: 2px solid rgba(239,68,68,0.3);
  border-radius: 12px;
  overflow: hidden;
  background: #111120;
}
.apl-rush-flash {
  padding: 8px 16px;
  background: linear-gradient(90deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  text-align: center;
  letter-spacing: 0.05em;
  animation: aplRushPulse 1s ease infinite;
}
@keyframes aplRushPulse { 0%,100%{opacity:1;}50%{opacity:0.75;} }
.apl-rush-body { padding: 14px 18px; }
.apl-rush-header { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:10px; font-size:0.85rem; color:#e4e4ed; }
.apl-rush-header strong { color:#ef4444; }
.apl-rush-qty { font-size:0.75rem; color:#7878a0; }
.apl-rush-deadline { margin-left:auto; padding:2px 10px; background:rgba(239,68,68,0.1); color:#ef4444; font-size:0.7rem; font-weight:700; border-radius:100px; }

/* Before/After metrics comparison */
.apl-metrics-compare {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-top: 10px;
  justify-content: center;
}
.apl-mc-col {
  padding: 10px 16px;
  border-radius: 8px;
  min-width: 160px;
}
.apl-mc-before { background: rgba(239,68,68,0.04); border: 1px solid rgba(239,68,68,0.12); }
.apl-mc-after { background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.15); }
.apl-mc-label { font-size:0.62rem; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; margin-bottom:6px; }
.apl-mc-before .apl-mc-label { color:#ef4444; }
.apl-mc-after .apl-mc-label { color:#10b981; }
.apl-mc-row { display:flex; justify-content:space-between; gap:12px; font-size:0.75rem; padding:2px 0; }
.apl-mc-row span { color:#6b6b80; }
.apl-mc-row strong { color:#d0d0e0; }
.apl-mc-arrow { display:flex; align-items:center; font-size:1.3rem; color:#3a3a50; }

/* --- Step rail (instructional progress at top of demo panel) --- */
.apl-step-rail {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 0 12px;
  margin-bottom: 10px;
}
.apl-step-rail-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.apl-step-counter {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #818cf8;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 2px 9px;
  border-radius: 100px;
  flex-shrink: 0;
}
.apl-step-current-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #c8c8e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.apl-step-dots {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.apl-step-dots::-webkit-scrollbar { display: none; }
.apl-sd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 48px;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.apl-sd-item.done,
.apl-sd-item.active { opacity: 1; }
.apl-sd-line {
  flex: 1;
  height: 1px;
  background: #1e1e30;
  align-self: center;
  margin-bottom: 18px;
  min-width: 8px;
}
.apl-sd-item.done + .apl-sd-line {
  background: #10b981;
  opacity: 0.55;
}
.apl-sd-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #252538;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #4a4a68;
  background: #0d0d18;
  transition: all 0.25s;
}
.apl-sd-item.done .apl-sd-circle {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
  font-size: 0.7rem;
}
.apl-sd-item.active .apl-sd-circle {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.22);
}
.apl-sd-lbl {
  font-size: 0.54rem;
  color: #3a3a58;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}
.apl-sd-item.done .apl-sd-lbl { color: #059669; }
.apl-sd-item.active .apl-sd-lbl { color: #818cf8; font-weight: 600; }
.apl-step-expl {
  font-size: 0.78rem;
  color: #8a8ab0;
  line-height: 1.5;
  margin-top: 8px;
  min-height: 2.25em;
}

@media (max-width:768px) {
  .apl-bom-grid { grid-template-columns: 1fr; }
  .apl-top { flex-direction: column; }
  .apl-confidence { align-self: flex-start; }
  .apl-metrics-compare { flex-direction:column; align-items:center; }
  .apl-mc-arrow { transform:rotate(90deg); }
  .apl-ind-bar { justify-content:center; }
  .ap-loop-root { height: 700px; }
  .demo-gantt-wrapper { height: 420px; }
  .vr-stage { height: 340px; }
}

.sd-tooltip {
  position: fixed;
  display: none;
  padding: 10px 14px;
  background: #1f2937;
  color: #e5e7eb;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  pointer-events: none;
  z-index: 10000;
  max-width: 280px;
}

/* --- Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

/* Tablet-wide: stack hero before it gets cramped */
@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-left { text-align: center; }
  .hero-sub { margin: 0 auto 28px; max-width: 560px; }
  .hero-ctas { justify-content: center; }
  .hero-metrics { justify-content: center; }
  .hero-right { max-width: 600px; margin: 0 auto; width: 100%; }
}

@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(247, 250, 240, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: flex; }
  .logo-img { height: 30px !important; }

  /* Hero */
  .hero { padding: 80px 0 36px; min-height: auto; }
  .hero-headline { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .hero-sub { font-size: 1rem; max-width: 100%; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 320px; justify-content: center; }
  .hero-metrics { gap: 16px; }
  .hero-metric-value { font-size: 1.8rem; }
  .hero-metric-unit { font-size: 1.1rem; }
  .hero-metric-divider { display: none; }

  /* Adaptive loop */
  .ap-loop-root { height: 560px; padding: 10px 10px 8px; }
  .apl-top { flex-direction: column; gap: 8px; }
  .apl-title { font-size: 0.85rem; }
  .apl-narrative { font-size: 0.72rem; }
  .apl-confidence { flex-direction: row; align-self: flex-start; }
  .apl-conf-value { font-size: 1.3rem; }
  .apl-bom-grid { grid-template-columns: 1fr; gap: 8px; }
  .apl-bom-card { padding: 10px 12px; }
  .apl-ind-bar { gap: 4px; justify-content: center; }
  .apl-ind-btn { padding: 4px 10px; font-size: 0.65rem; }
  .apl-alert { padding: 6px 10px; font-size: 0.7rem; }
  .apl-metrics-compare { flex-direction: column; gap: 8px; }
  .apl-mc-arrow { transform: rotate(90deg); }
  .apl-mc-col { min-width: auto; }
  /* Compact step rail on tablet/phone |hide labels, keep explanation */
  .apl-step-rail { padding-bottom: 10px; margin-bottom: 8px; }
  .apl-sd-item { min-width: 36px; }
  .apl-sd-lbl { display: none; }
  .apl-sd-circle { width: 18px; height: 18px; font-size: 0.55rem; }
  .apl-sd-line { margin-bottom: 9px; }
  .apl-step-expl { font-size: 0.72rem; margin-top: 6px; min-height: 0; }
  .apl-step-current-name { font-size: 0.72rem; }
  .hero-demo-header { padding: 8px 10px; font-size: 0.7rem; }

  /* Rush card */
  .apl-rush-card { max-width: 100%; }

  /* Sections */
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: clamp(1.4rem, 5vw, 2rem); }

  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }

  /* CTA */
  .cta-wrapper { grid-template-columns: 1fr; gap: 32px; }
  .cta-form { padding: 24px 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Modal */
  .vr-modal { border-radius: 12px; max-height: 85vh; }
  .vr-modal-overlay { padding: 12px; }
  .demo-gantt-wrapper { height: 380px; }
  .vr-stage { height: 300px; padding: 16px; }
}

/* Extra small screens */
@media (max-width: 400px) {
  .hero { padding: 72px 0 28px; }
  .hero-headline { font-size: 1.45rem; }
  .hero-badge { font-size: 0.7rem; }
  .hero-metrics { gap: 12px; }
  .hero-metric-value { font-size: 1.5rem; }
  .ap-loop-root { height: 500px; padding: 8px; }
  .apl-ind-btn { font-size: 0.58rem; padding: 3px 7px; }
  .apl-title { font-size: 0.78rem; }
  .apl-step-expl { display: none; }
  .apl-step-counter { font-size: 0.55rem; padding: 2px 7px; }
  .apl-step-current-name { font-size: 0.68rem; }
  .section-header h2 { font-size: 1.3rem; }
}

/* --- Skip Navigation --- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 10px 20px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 9999;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-nav:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ========================================
   VALUE CALCULATOR (Your Upside section)
   ======================================== */
.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(20px, 3vw, 40px);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  max-width: 1080px;
  margin: 0 auto;
}

/* Wizard variant overrides the 2-column grid above */
.calc-wrapper.calc-wizard {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  padding: clamp(22px, 3vw, 36px) clamp(22px, 3vw, 44px) clamp(20px, 2.5vw, 32px);
}

/* --- Currency picker --- */
.calc-currency-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E0E0E0;
}

.calc-currency-picker label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.calc-currency-btns {
  display: flex;
  gap: 6px;
}

.calc-currency-btn {
  padding: 6px 14px;
  background: #f5f5f5;
  border: 1px solid #E0E0E0;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: var(--transition);
}

.calc-currency-btn:hover {
  border-color: #5189F3;
  color: #5189F3;
}

.calc-currency-btn.active {
  background: rgba(81,137,243,0.1);
  border-color: #5189F3;
  color: #5189F3;
  font-weight: 600;
}

/* --- Wizard progress header --- */
.calc-wiz-progress {
  position: relative;
  margin-bottom: clamp(22px, 3vw, 32px);
  padding: 4px 8px 0;
}

.calc-wiz-progress-track {
  position: absolute;
  top: 22px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: #e5e7eb;
  border-radius: 100px;
  z-index: 1;
}

.calc-wiz-progress-fill {
  height: 100%;
  background: linear-gradient(to right, #5189F3, #10b981);
  border-radius: 100px;
  transition: width 0.35s ease;
}

.calc-wiz-dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.calc-wiz-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.2s;
  font-family: inherit;
}

.calc-wiz-dot:hover { color: #5189F3; }

.calc-wiz-dot-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: inherit;
  transition: all 0.25s ease;
}

.calc-wiz-dot.active .calc-wiz-dot-num {
  border-color: #5189F3;
  color: #5189F3;
  box-shadow: 0 0 0 5px rgba(81, 137, 243, 0.14);
  transform: scale(1.06);
}

.calc-wiz-dot.done .calc-wiz-dot-num {
  border-color: #10b981;
  background: #10b981;
  color: #ffffff;
}

.calc-wiz-dot.active,
.calc-wiz-dot.done { color: #1f2937; }

.calc-wiz-dot-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* --- Wizard stage --- */
.calc-wiz-stage {
  position: relative;
  min-height: 360px;
}

.calc-wiz-step {
  display: none;
  animation: calcWizFade 0.35s ease both;
}

.calc-wiz-step.calc-wiz-active { display: block; }

@keyframes calcWizFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.calc-wiz-step-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #5189F3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.calc-wiz-title {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 800;
  color: #0b0c12;
  line-height: 1.22;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.calc-wiz-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 22px;
  max-width: 62ch;
}

.calc-wiz-body strong { color: #111827; }
.calc-wiz-body em { color: #374151; font-style: italic; }

.calc-wiz-control {
  background: #fafafa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px 20px;
  margin-bottom: 18px;
}

.calc-wiz-control .calc-input-wrap {
  margin-top: 8px;
  background: #ffffff;
}

/* --- Outcome pill (end-of-step result strip) --- */
.calc-wiz-outcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(81, 137, 243, 0.06), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(81, 137, 243, 0.18);
  border-radius: var(--radius-md);
}

.calc-wiz-outcome-warn {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(245, 158, 11, 0.08));
  border-color: rgba(220, 38, 38, 0.18);
}

.calc-wiz-outcome-good {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.14));
  border-color: rgba(16, 185, 129, 0.28);
}

.calc-wiz-outcome-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calc-wiz-outcome-warn .calc-wiz-outcome-label { color: #b45309; }
.calc-wiz-outcome-good .calc-wiz-outcome-label { color: #047857; }

.calc-wiz-outcome-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0b0c12;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.calc-wiz-outcome-warn .calc-wiz-outcome-val { color: #dc2626; }
.calc-wiz-outcome-good .calc-wiz-outcome-val { color: #10b981; }

.calc-wiz-outcome-inline { flex: 1; }

/* --- Bleed cards (step 3) --- */
.calc-wiz-bleed-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.calc-wiz-bleed {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-wiz-bleed-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-wiz-bleed-tag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.calc-wiz-bleed h4 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #111827;
}

.calc-wiz-bleed p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #6b7280;
}

.calc-wiz-bleed-calc {
  margin-top: auto;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px dashed #e5e7eb;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #374151;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.calc-wiz-bleed-calc strong {
  color: #dc2626;
  font-weight: 800;
  font-size: 0.9rem;
  margin-left: 2px;
}

/* --- Delta row (step 4) --- */
.calc-wiz-delta-row {
  display: flex;
  gap: 14px;
  align-items: stretch;
  flex-wrap: wrap;
}

.calc-wiz-delta-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(81, 137, 243, 0.08), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(81, 137, 243, 0.22);
  border-radius: var(--radius-md);
  min-width: 160px;
}

.calc-wiz-delta-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #5189F3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calc-wiz-delta-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #10b981;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* --- Navigation --- */
.calc-wiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: clamp(22px, 3vw, 34px);
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}

.calc-wiz-nav-right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.calc-wiz-back:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.calc-wiz-restart { display: none; }
.calc-wiz-cta { display: none; }

/* Final-step state: hide Next, show Restart + CTA */
.calc-wizard.is-final .calc-wiz-next { display: none; }
.calc-wizard.is-final .calc-wiz-restart { display: inline-flex; }
.calc-wizard.is-final .calc-wiz-cta { display: inline-flex; }

/* --- Inputs column --- */
.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
}

.calc-input-wrap {
  display: flex;
  align-items: center;
  background: #fafafa;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2px 14px;
  transition: border-color 0.2s, background 0.2s;
}

.calc-input-wrap:focus-within {
  border-color: #5189F3;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(81, 137, 243, 0.12);
}

.calc-input-prefix {
  font-size: 1.2rem;
  font-weight: 700;
  color: #6b7280;
  margin-right: 4px;
}

.calc-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  font-family: inherit;
  padding: 12px 0;
  outline: none;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.calc-input-suffix {
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 500;
  white-space: nowrap;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.calc-slider-value {
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.calc-slider-value-current { color: #dc2626; }
.calc-slider-value-target { color: #10b981; }

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 100px;
  outline: none;
  margin: 6px 0 2px;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border: 3px solid #dc2626;
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s;
}
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.calc-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.15); }

.calc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #ffffff;
  border: 3px solid #dc2626;
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.calc-slider-target::-webkit-slider-thumb { border-color: #10b981; }
.calc-slider-target::-moz-range-thumb { border-color: #10b981; }

.calc-slider:focus-visible {
  box-shadow: 0 0 0 3px rgba(81, 137, 243, 0.25);
}

.calc-slider-hint {
  font-size: 0.7rem;
  color: #9ca3af;
  line-height: 1.4;
}

.calc-delta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(81, 137, 243, 0.08), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(81, 137, 243, 0.2);
  border-radius: var(--radius-md);
  margin-top: 2px;
}

.calc-delta-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #5189F3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calc-delta-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #10b981;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* --- Outputs column --- */
.calc-outputs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc-total {
  position: relative;
  padding: 26px 28px;
  background: linear-gradient(135deg, #0b0c12, #1a1d2e);
  border-radius: var(--radius-md);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.calc-total::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #5189F3, #10b981);
}

.calc-total-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.calc-total-value {
  font-size: clamp(2.5rem, 5.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.calc-total-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 10px;
}

.calc-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-metric {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: #fafafa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, background 0.2s;
}

.calc-metric:hover {
  border-color: rgba(81, 137, 243, 0.3);
  background: #ffffff;
}

.calc-metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(81, 137, 243, 0.1);
  color: #5189F3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.calc-metric-body {
  min-width: 0;
}

.calc-metric-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
}

.calc-metric-note {
  font-size: 0.7rem;
  color: #6b7280;
  line-height: 1.45;
}

.calc-metric-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #10b981;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.calc-assumptions {
  font-size: 0.72rem;
  color: #6b7280;
  text-align: center;
  padding: 4px 12px;
  line-height: 1.5;
}

.calc-assumptions strong { color: #374151; }

@media (max-width: 860px) {
  .calc-wrapper { grid-template-columns: 1fr; }
  .calc-metric { grid-template-columns: 36px 1fr; }
  .calc-metric-value {
    grid-column: 2;
    margin-top: 4px;
    font-size: 1.2rem;
  }
  .calc-wiz-bleed-cards { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .calc-wrapper.calc-wizard { padding: 22px 18px 20px; }
  .calc-wiz-progress-track { left: 10%; right: 10%; top: 18px; }
  .calc-wiz-dot-num { width: 36px; height: 36px; font-size: 0.85rem; }
  .calc-wiz-dot-lbl { display: none; }
  .calc-wiz-stage { min-height: 320px; }
  .calc-wiz-outcome {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .calc-wiz-delta-row { flex-direction: column; }
  .calc-wiz-delta-pill { width: 100%; }
  .calc-wiz-nav {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }
  .calc-wiz-nav-right {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .calc-wiz-nav-right .btn { width: 100%; }
  .calc-wiz-back { width: 100%; }
}

@media (max-width: 480px) {
  .calc-input { font-size: 1.15rem; }
  .calc-slider-value { font-size: 1.2rem; }
  .calc-total { padding: 22px 20px; }
}

/* --- ERP Differentiation Callout (Platform section) --- */
.erp-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(81, 137, 243, 0.06);
  border: 1px solid rgba(81, 137, 243, 0.18);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  margin-bottom: 40px;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  flex-shrink: 0;
}
.erp-callout svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}
.erp-callout strong {
  color: var(--color-text);
}

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

  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-product-dot {
    animation: none;
  }

  .vr-modal {
    animation: none;
  }
}
