/* ==========================================================================
   JUSTUP — SITE STYLES
   ========================================================================== */

/* ---------- DESIGN SYSTEM ---------- */

:root {
  /* Brand palette */
  --color-green: #05FFAD;
  --color-green-dk: #0B7A3F;
  --color-green-pale: #D6FFF0;
  --color-violet: #AD05FF;
  --color-violet-dk: #2F1E86;
  --color-violet-pale: #F0E0FF;
  --color-orange: #FF6B3D;
  --color-coral: #FF4A1E;
  --color-teal: #04C6C5;
  --color-yellow: #FFC400;
  --color-pink: #FFC4C9;
  --color-cream: #FFF4D6;
  --color-sand: #F3E9C6;
  --color-ink: #0A0A0A;
  --color-dark-bg: #060F0D;

  /* Radii */
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  /* Typography — Sora everywhere, our identity */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-heading: 'Sora', system-ui, sans-serif;
  --font-body: 'Sora', system-ui, sans-serif;

  /* Shadows (minimal, Maxima-like) */
  --shadow-card: 0 24px 60px rgba(0,0,0,.08);
  --shadow-card-dark: 0 24px 60px rgba(0,0,0,.25);

  /* Stroke defaults for SVG illustrations */
  --stroke-illustration: 3;
  --stroke-icon: 1.5;
}

/* Typography utilities */
.text-display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.text-display-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 7rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.text-h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.text-body {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.6;
}

.text-uppercase { text-transform: uppercase; }

/* ---------- COMPONENT CLASSES ---------- */

/* Pill buttons (Maxima-like) */
.btn-pill-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  background: var(--color-orange);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.btn-pill-primary:hover {
  background: var(--color-coral);
  transform: translateY(-2px);
}

.btn-pill-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.25s;
}

.btn-pill-ghost:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Chapter label (section tag, Maxima-like) */
.chapter-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.1));
}

.chapter-label-green {
  background: var(--color-green);
  color: var(--color-ink);
}

.chapter-label-orange {
  background: var(--color-orange);
  color: #fff;
}

.chapter-label-violet {
  background: var(--color-violet);
  color: #fff;
}

/* Icon round (journey/feature icons) */
.icon-round {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-round svg {
  width: 32px;
  height: 32px;
}

.icon-round-green { background: var(--color-green-pale); }
.icon-round-orange { background: rgba(255,107,61,.12); }
.icon-round-violet { background: var(--color-violet-pale); }
.icon-round-pink { background: rgba(255,196,201,.3); }
.icon-round-teal { background: rgba(4,198,197,.12); }

/* Cloud decoration (Maxima-like) */
.cloud-decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
}

[data-theme="light"] .cloud-decor { opacity: 0.9; }

/* ---------- THEME VARIABLES ---------- */

/* Light theme — aligned with JustUp front app design system */
[data-theme="light"] {
  --bg-primary: #f3f7f8;
  --bg-secondary: #f3f7f8;
  --bg-elevated: #ffffff;
  --bg-hero: #f3f7f8;
  --text-primary: #1d252c;
  --text-secondary: #476373;
  --text-muted: #6d92a3;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-hover: rgba(255, 255, 255, 0.95);
  --surface-solid: #ffffff;
  --border: rgba(157, 184, 195, 0.3);
  --border-hover: rgba(157, 184, 195, 0.5);
  --primary: #05FFAD;
  --primary-text: #077A3F;
  --orange-text: #B04C00;
  --primary-dim: rgba(5, 255, 173, 0.12);
  --primary-glow: rgba(5, 255, 173, 0.25);
  --secondary: #C535FF;
  --secondary-dim: rgba(197, 53, 255, 0.10);
  --tertiary: #FF919D;
  --card-shadow: 0 4px 24px rgba(29, 37, 44, 0.06);
  --card-shadow-hover: 0 12px 40px rgba(29, 37, 44, 0.12);
  --nav-bg: rgba(255, 255, 255, 0.9);
  --dialog-bg: #ffffff;
  --input-bg: #f3f7f8;
  --input-border: #c5d5dc;
  --slider-track: #e0eaed;
  --code-bg: #f3f7f8;
}

/* Dark theme — aligned with JustUp front app design system */
[data-theme="dark"] {
  --bg-primary: #1d252c;
  --bg-secondary: #323d47;
  --bg-elevated: #3e5360;
  --bg-hero: #1d252c;
  --text-primary: #f3f7f8;
  --text-secondary: #9db8c3;
  --text-muted: #6d92a3;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --surface-solid: #323d47;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --primary: #05FFAD;
  --primary-text: #05FFAD;
  --orange-text: #F96900;
  --primary-dim: rgba(5, 255, 173, 0.10);
  --primary-glow: rgba(5, 255, 173, 0.20);
  --secondary: #C535FF;
  --secondary-dim: rgba(197, 53, 255, 0.10);
  --tertiary: #FF919D;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.45);
  --nav-bg: rgba(29, 37, 44, 0.85);
  --dialog-bg: #323d47;
  --input-bg: #394851;
  --input-border: rgba(255, 255, 255, 0.12);
  --slider-track: rgba(255, 255, 255, 0.12);
  --code-bg: #323d47;
}

/* ---------- RESET & BASE ---------- */

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

html {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  overflow-x: clip;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: color 0.4s ease;
}

[data-theme="dark"] body {
  background: #080c12;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
input, textarea, select { font-size: 16px; /* prevents iOS zoom on focus */ }

::selection {
  background: rgba(5, 255, 173, 0.25);
  color: var(--text-primary);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---------- TYPOGRAPHY ---------- */

h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% 200%;
  background-position: var(--gx, 0%) var(--gy, 0%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-text);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* ---------- LAYOUT ---------- */

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  padding-left: max(32px, env(safe-area-inset-left));
  padding-right: max(32px, env(safe-area-inset-right));
}

section {
  padding: 100px 0;
  position: relative;
  background: var(--bg-primary);
}

/* Colored chapter backgrounds */
.chapter-cream { background: #FFF4D6; color: var(--color-ink); }
.chapter-green { background: #E8FFF4; color: var(--color-ink); }
.chapter-violet { background: #F0E6FF; color: var(--color-ink); }
.chapter-orange { background: #FFF0EB; color: var(--color-ink); }
.chapter-dark { background: var(--bg-secondary); }

[data-theme="dark"] .chapter-cream { background: #1A1708; color: var(--text-primary); }
[data-theme="dark"] .chapter-green { background: #0A1A12; color: var(--text-primary); }
[data-theme="dark"] .chapter-violet { background: #110A1A; color: var(--text-primary); }
[data-theme="dark"] .chapter-orange { background: #1A0F0A; color: var(--text-primary); }

/* Smooth transitions between chapters */
.chapter-cream, .chapter-green, .chapter-violet, .chapter-orange, .chapter-dark {
  transition: background-color 0.4s ease;
}

/* Override text colors inside light chapters */
.chapter-cream h2, .chapter-cream h3,
.chapter-green h2, .chapter-green h3,
.chapter-violet h2, .chapter-violet h3,
.chapter-orange h2, .chapter-orange h3 {
  color: var(--color-ink);
}

[data-theme="dark"] .chapter-cream h2, [data-theme="dark"] .chapter-cream h3,
[data-theme="dark"] .chapter-green h2, [data-theme="dark"] .chapter-green h3,
[data-theme="dark"] .chapter-violet h2, [data-theme="dark"] .chapter-violet h3,
[data-theme="dark"] .chapter-orange h2, [data-theme="dark"] .chapter-orange h3 {
  color: var(--text-primary);
}

/* ---------- BUTTONS ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 99px;
  background: var(--primary);
  color: #0A0E13;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 0 20px var(--primary-glow), 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--primary-glow), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover::before { opacity: 1; }


.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 99px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 99px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

/* ---------- GLASS CARD ---------- */

.glass-card {
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}

/* ---------- NAVBAR (floating pill, Maxima-like) ---------- */

.navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 1100px;
  padding: 8px 8px 8px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1), padding 0.3s, opacity 0.3s;
}

[data-theme="dark"] .navbar {
  background: rgba(15, 18, 24, 0.8);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.navbar.nav-hidden {
  transform: translateX(-50%) translateY(-120%);
}

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

.nav-logo {
  height: 26px;
  width: auto;
  flex-shrink: 0;
}

.nav-logo .logo-text { fill: var(--text-primary); transition: fill 0.3s; }
.nav-logo .logo-accent { fill: var(--color-green); }

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}

.nav-links a::after { display: none; }

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--surface);
}

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

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.25s ease;
  flex-shrink: 0;
  font-size: 18px;
}

.theme-toggle:hover {
  background: var(--surface-hover);
  color: var(--primary-text);
  border-color: var(--primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.theme-toggle:hover svg { transform: rotate(15deg); }

.nav-cta {
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #0A0E13;
  box-shadow: none;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: #00E69B;
  transform: translateY(-1px);
  box-shadow: 0 0 20px var(--primary-glow);
}

/* Mobile nav */
.nav-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.nav-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  position: relative;
  transition: all 0.3s;
}

.nav-mobile-toggle span::before,
.nav-mobile-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-mobile-toggle span::before { top: -6px; }
.nav-mobile-toggle span::after { bottom: -6px; }

/* ========== HERO TOP (inside v3-wrap) ========== */

.v3-hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
  z-index: 2;
  min-height: 100vh;
  justify-content: center;
  will-change: transform, opacity;
}

/* Scroll indicator — bouncing chevron at bottom of hero */
.v3-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: v3ScrollBounce 2s ease-in-out infinite;
  opacity: .5;
  transition: opacity .3s;
  z-index: 3;
}
.v3-scroll-hint span {
  font: 500 10px Sora, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.v3-scroll-hint svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255,255,255,.4);
  stroke-width: 2;
  fill: none;
}
[data-theme="light"] .v3-scroll-hint span { color: rgba(29,37,44,.3); }
[data-theme="light"] .v3-scroll-hint svg { stroke: rgba(29,37,44,.3); }

@keyframes v3ScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.v3-hero-title {
  font: 800 clamp(40px, 7vw, 72px)/1.05 Sora, sans-serif;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 20px;
  min-height: 2.2em; /* prevent CLS during typewriter */
}

[data-theme="light"] .v3-hero-title { color: #1D252C; }

/* Typewriter word reveal */
.tw-word {
  display: inline-block;
  will-change: transform, opacity;
}
.tw-cursor {
  display: inline-block;
  font-weight: 300;
  margin-left: 2px;
  color: var(--primary, #05FFAD);
  animation: twBlink 0.6s step-end infinite;
}
@keyframes twBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* Grain texture */
.hb-grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/></svg>");
  mix-blend-mode: overlay;
}

/* Animated blobs */
.hb-blob {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(120px); will-change: transform;
  transition: transform .3s ease-out;
}
.hb-blob--1 {
  width: 600px; height: 600px;
  background: var(--primary);
  opacity: .07;
  top: 10%; left: 15%;
}
.hb-blob--2 {
  width: 500px; height: 500px;
  background: var(--secondary);
  opacity: .06;
  top: 40%; right: 10%;
}
.hb-blob--3 {
  width: 450px; height: 450px;
  background: var(--ju-orange);
  opacity: .04;
  bottom: 10%; left: 40%;
}

[data-theme="light"] .hb-blob--1 { opacity: .12; }
[data-theme="light"] .hb-blob--2 { opacity: .10; }
[data-theme="light"] .hb-blob--3 { opacity: .08; }

/* ========== HERO V3 — Editorial Magazine ========== */

.v3-wrap {
  position: relative;
  padding: 0 0 100px;
  overflow: hidden;
  transition: background .9s ease;
  background: #080c12;
}

[data-theme="light"] .v3-wrap {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #f0e6ff 40%, #e8d5ff 70%, var(--bg-primary) 100%);
}

/* ── Firefly particles ── */
.firefly-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.firefly {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
@keyframes fireflyDrift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(var(--drift-x), calc(var(--drift-y) * -1)); }
  50%  { transform: translate(calc(var(--drift-x) * -0.5), var(--drift-y)); }
  75%  { transform: translate(calc(var(--drift-x) * -1), calc(var(--drift-y) * -0.5)); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .firefly { animation: none !important; }
  .tw-cursor { animation: none !important; }
}

/* ═══ V3 LIGHT MODE OVERRIDES ═══ */

/* Hero badge & subtitle (inside v3-wrap > v3-hero-top) */
[data-theme="light"] .v3-wrap .hero-badge {
  background: rgba(0, 150, 101, .1);
  border-color: rgba(0, 150, 101, .2);
  color: #076045;
}
[data-theme="light"] .v3-wrap .hero-badge::before {
  background: #009665;
}
[data-theme="light"] .v3-wrap .hero-subtitle {
  color: #476373;
}
[data-theme="light"] .v3-wrap .gradient-text {
  background: linear-gradient(135deg, #076045, #AD05FF);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Giant number — stroke visible on light bg */
[data-theme="light"] .v3-giant-num {
  -webkit-text-stroke-color: rgba(29, 37, 44, .18);
}

/* Kicker label */
[data-theme="light"] .v3-kicker {
  color: #009665;
}

/* Main heading */
[data-theme="light"] .v3-h1 {
  color: #1D252C;
}

/* Description text */
[data-theme="light"] .v3-desc {
  color: #476373;
}

/* Brand tagline */
[data-theme="light"] .v3-brand-tagline {
  color: #1D252C;
}

/* Brand copy border */
[data-theme="light"] .v3-brand-copy {
  border-top-color: rgba(29, 37, 44, .12);
}

/* CTA buttons */
[data-theme="light"] .v3-primary {
  background: #009665;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 150, 101, .25);
  animation: v3PulseGlowLight 2.8s ease-in-out infinite;
}
[data-theme="light"] .v3-primary:hover {
  background: #076045;
  box-shadow: 0 6px 24px rgba(0, 150, 101, .35);
  animation: none;
}
[data-theme="light"] .v3-primary:active {
  box-shadow: 0 0 12px rgba(0, 150, 101, .2);
}
[data-theme="light"] .v3-secondary {
  color: #1D252C;
  border-color: rgba(29, 37, 44, .2);
}
[data-theme="light"] .v3-secondary:hover {
  background: rgba(29, 37, 44, .05);
  border-color: rgba(29, 37, 44, .35);
  box-shadow: 0 0 16px rgba(29, 37, 44, .08), 0 0 32px rgba(29, 37, 44, .04);
}

/* Pill (header strip) */
[data-theme="light"] .v3-pill {
  background: rgba(29, 37, 44, .04);
  border-color: rgba(29, 37, 44, .12);
  color: #476373;
}

/* Chapter label */
[data-theme="light"] .v3-chapter-label {
  color: #6D92A3;
}

/* Play button */
[data-theme="light"] .v3-play-btn {
  color: #476373;
  background: rgba(29, 37, 44, .04);
  border-color: rgba(29, 37, 44, .12);
}
[data-theme="light"] .v3-play-btn:hover {
  background: rgba(29, 37, 44, .08);
  border-color: rgba(29, 37, 44, .2);
  box-shadow: 0 2px 12px rgba(29, 37, 44, .08);
}

/* Scene tag */
[data-theme="light"] .v3-tag {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(29, 37, 44, .1);
  color: #1D252C;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

/* Scene frame shadow (softer on light) */
[data-theme="light"] .v3s-frame {
  box-shadow: 0 30px 80px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .06);
}

/* Rail dots + labels */
[data-theme="light"] .v3-rail-dot {
  border-color: rgba(29, 37, 44, .2);
}
[data-theme="light"] .v3-rail-btn:hover .v3-rail-dot {
  border-color: rgba(29, 37, 44, .45);
}
[data-theme="light"] .v3-rail-label {
  color: #476373;
}
[data-theme="light"] .v3-rail-num {
  color: #6D92A3;
}

/* Progress bar track */
[data-theme="light"] .v3-progress-track {
  background: rgba(29, 37, 44, .15);
}

/* Progress step labels */
[data-theme="light"] .v3-progress-step {
  color: rgba(29, 37, 44, .5);
}
[data-theme="light"] .v3-progress-step:hover {
  color: rgba(29, 37, 44, .75);
}
[data-theme="light"] .v3-progress-step--active {
  color: #1D252C;
}
[data-theme="light"] .v3-progress-step--active .v3-progress-num {
  box-shadow: 0 0 10px rgba(29, 37, 44, .25);
}

/* Scene halo — subtle on light */
[data-theme="light"] .v3-scene-halo {
  opacity: .4;
}

/* ═══ END V3 LIGHT MODE OVERRIDES ═══ */

/* grain moved to .hb-grain on backdrop */
.v3-grain { display: none; }

/* Header strip */
.v3-header {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 4px 80px 24px 56px; margin-bottom: 32px;
}
.v3-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px; font: 500 11px Sora,sans-serif; color: rgba(255,255,255,.7);
  transition: border-color .8s ease, box-shadow .8s ease;
}
.v3-pill-dot { width: 5px; height: 5px; border-radius: 50%; transition: background .8s ease, box-shadow .8s ease; }
.v3-header-right { display: flex; align-items: center; gap: 16px; }
.v3-chapter-label { font: 500 11px Sora,sans-serif; color: rgba(255,255,255,.5); letter-spacing: .15em; }
.v3-play-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11px Sora,sans-serif; color: rgba(255,255,255,.8);
  padding: 7px 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px; cursor: pointer;
  transition: all .25s ease;
}
.v3-play-btn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); transform: translateY(-1px); box-shadow: 0 2px 12px rgba(255,255,255,.06); }
.v3-play-btn--playing { animation: v3PlayPulse 2s ease-in-out infinite; }
.v3-play-btn--playing:hover { animation: none; }

/* Main grid */
.v3-main {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 60px; align-items: center;
  max-width: 1380px; margin: 0 auto;
  min-height: 640px;
  padding: 0 80px 0 56px;
}
.v3-left-col { position: relative; }

.v3-giant-num {
  font: 800 clamp(140px,14vw,200px)/1 Sora,sans-serif;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px;
  margin: 0 0 4px -6px;
  transition: color .8s ease, text-shadow .8s ease;
  text-shadow: 0 0 40px rgba(255,255,255,.15);
}
.v3-anim { animation: v3TextIn .5s cubic-bezier(.2,.7,.3,1) both; }
.v3-giant-num.v3-anim { animation: v3NumIn .7s cubic-bezier(.2,.7,.3,1); }

.v3-kicker {
  font: 700 12px Sora,sans-serif;
  letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 14px; transition: color .8s ease;
}
.v3-h1 {
  font: 800 clamp(56px,7vw,88px)/.92 Sora,sans-serif;
  letter-spacing: -0.04em; color: #fff;
  margin: 0 0 24px;
}
.v3-h1.v3-anim { animation-delay: .05s; }
.v3-desc {
  font: 500 18px/1.55 Sora,sans-serif;
  color: rgba(255,255,255,.8);
  max-width: 480px; margin: 0 0 48px;
}
.v3-desc.v3-anim { animation-delay: .1s; }

.v3-brand-copy {
  padding: 32px 0 0; border-top: 1px solid rgba(255,255,255,.08); max-width: 560px;
}
.v3-brand-tagline { font: 700 22px/1.3 Sora,sans-serif; color: #fff; letter-spacing: -0.02em; }
.v3-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.v3-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 14px Sora,sans-serif; padding: 12px 22px; border-radius: 999px;
  background: #05FFAD; color: #003726; border: none; cursor: pointer;
  box-shadow: 0 0 24px rgba(5,255,173,.35);
  transition: transform .2s, box-shadow .2s;
  animation: v3PulseGlow 2.8s ease-in-out infinite;
}
.v3-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 32px rgba(5,255,173,.5); animation: none; }
.v3-primary:active { transform: translateY(0) scale(.97); box-shadow: 0 0 16px rgba(5,255,173,.3); transition-duration: .1s; animation: none; }
.v3-secondary {
  font: 600 14px Sora,sans-serif; padding: 12px 20px; border-radius: 999px;
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.15); cursor: pointer;
  transition: all .3s ease;
}
.v3-secondary:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.35); transform: translateY(-1px); box-shadow: 0 0 20px rgba(255,255,255,.08), 0 0 40px rgba(255,255,255,.04); }
.v3-secondary:active { transform: translateY(0) scale(.97); transition-duration: .1s; }

/* Right column — scene */
.v3-right-col { position: relative; aspect-ratio: 16 / 11; width: 100%; max-width: 700px; margin: 0 auto; }
.v3-scene-halo { position: absolute; inset: -60px; pointer-events: none; transition: background .8s ease; }
.v3-scene-box { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 12px; }
.v3-scene { height: 100%; animation: v3SceneIn .6s cubic-bezier(.16,.7,.3,1); }
.v3-scene-exit { animation: v3SceneOut .35s cubic-bezier(.4,0,1,1) forwards; pointer-events: none; }

.v3-tag {
  position: absolute; top: -16px; right: 24px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(10,14,20,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid;
  font: 600 10px Sora,sans-serif; letter-spacing: .1em; text-transform: uppercase;
  z-index: 2; transition: all .8s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  animation: v3TagFloat 3.5s ease-in-out infinite;
}
.v3-tag-dot { width: 6px; height: 6px; border-radius: 50%; transition: background .8s ease; box-shadow: 0 0 8px currentColor; }

/* Vertical rail (far right dots) */
.v3-rail {
  position: absolute; top: 50%; right: 20px;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 16px;
  z-index: 10;
}
.v3-rail-btn {
  position: relative; display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; padding: 0; background: transparent; border: none; cursor: pointer;
}
.v3-rail-label {
  font: 600 12px Sora,sans-serif; white-space: nowrap;
  transition: opacity .3s ease, transform .3s ease, color .8s ease;
  opacity: 0; transform: translateX(6px); pointer-events: none;
}
.v3-rail-btn:hover .v3-rail-label { opacity: 1; transform: translateX(0); }
.v3-rail-btn:hover .v3-rail-dot { transform: scale(1.3); border-color: rgba(255,255,255,.5); }
.v3-rail-num { font: 700 10px Sora,sans-serif; opacity: .6; letter-spacing: .1em; margin-right: 8px; }
.v3-rail-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25);
  transition: all .4s cubic-bezier(.2,.7,.3,1);
}

/* Bottom progress bar */
.v3-progress-container { position: absolute; left: 56px; right: 80px; bottom: 28px; z-index: 5; }

/* Step progress (which step out of 9) */
.v3-progress-track { height: 2px; background: rgba(255,255,255,.06); border-radius: 1px; position: relative; margin-bottom: 4px; }
.v3-progress-bar {
  position: absolute; left: 0; top: 0;
  height: 2px; border-radius: 1px;
  transition: width .6s cubic-bezier(.2,.7,.3,1), background .6s ease;
}

/* Timer countdown bar (fills over STEP_DURATION then resets) */
.v3-timer-bar { height: 2px; background: rgba(255,255,255,.04); border-radius: 1px; position: relative; overflow: hidden; }
.v3-timer-fill { height: 100%; width: 0%; border-radius: 1px; background: rgba(255,255,255,.2); }
[data-theme="light"] .v3-timer-bar { background: rgba(29,37,44,.1); }
[data-theme="light"] .v3-timer-fill { background: rgba(29,37,44,.25); }
.v3-progress-labels {
  display: flex; justify-content: space-between;
  margin-top: 12px; font-variant-numeric: tabular-nums;
}
.v3-progress-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 4px 2px;
  transition: color .3s, transform .25s ease, opacity .25s ease;
  color: rgba(255,255,255,.3);
  opacity: .7;
}
.v3-progress-step:hover { color: rgba(255,255,255,.6); transform: translateY(-2px) scale(1.08); opacity: 1; }
.v3-progress-step--active { color: #fff; opacity: 1; }
.v3-progress-step--active:hover { transform: none; }
.v3-progress-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  font: 700 10px Sora,sans-serif; letter-spacing: .05em;
  transition: background .4s cubic-bezier(.2,.7,.3,1), color .4s, transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s;
}
.v3-progress-step--active .v3-progress-num { transform: scale(1.15); box-shadow: 0 0 12px currentColor; }
.v3-progress-title {
  font: 500 11px Sora,sans-serif; white-space: nowrap;
  transition: color .3s, font-weight .3s;
}
.v3-progress-step--active .v3-progress-title { font-weight: 700; }

/* Keyframes */
@keyframes v3NumIn {
  from { opacity: 0; transform: translateY(24px) scale(.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes v3TextIn {
  from { opacity: 0; transform: translateY(10px); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes v3SceneIn {
  from { opacity: 0; transform: translateX(12px) translateY(6px) scale(.97); }
  to   { opacity: 1; transform: translateX(0) translateY(0)      scale(1); }
}
@keyframes v3SceneOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to   { opacity: 0; transform: translateX(-18px) scale(.97); }
}
@keyframes v3Float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes v3TagFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  33%      { transform: translateY(-4px) translateX(2px); }
  66%      { transform: translateY(2px) translateX(-1px); }
}
@keyframes v3PulseGlow {
  0%, 100% { box-shadow: 0 0 24px rgba(5,255,173,.35); }
  50%      { box-shadow: 0 0 36px rgba(5,255,173,.55), 0 0 60px rgba(5,255,173,.2); }
}
@keyframes v3PlayPulse {
  0%, 100% { background: rgba(255,255,255,.04); }
  50%      { background: rgba(255,255,255,.09); }
}
@keyframes v3PulseGlowLight {
  0%, 100% { box-shadow: 0 4px 16px rgba(0, 150, 101, .25); }
  50%      { box-shadow: 0 4px 28px rgba(0, 150, 101, .4), 0 0 48px rgba(0, 150, 101, .15); }
}

@media (prefers-reduced-motion: reduce) {
  .v3s-frame,
  .v3-tag,
  .v3-primary,
  [data-theme="light"] .v3-primary,
  .v3-play-btn--playing { animation: none !important; }
}

/* ═══ V3 Scene component styles ═══ */
/* UI frame (miniature app screenshot) */
.v3s-frame {
  position: relative; width: 100%; height: 100%;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06) inset, 0 1px 0 rgba(255,255,255,.08) inset;
  animation: v3Float 3s ease-in-out infinite;
}
.v3s-frame--dark { background: rgba(11,18,24,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.10); }
.v3s-frame--light { background: #F4F6F8; border: 1px solid rgba(0,0,0,.06); box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06) inset, 0 1px 0 rgba(255,255,255,.5) inset; }

/* Chrome bar (dark theme scenes) */
.v3s-chrome {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: rgba(0,0,0,.3); border-bottom: 1px solid rgba(255,255,255,.05);
}
.v3s-dot { width: 8px; height: 8px; border-radius: 50%; }
.v3s-breadcrumb { margin-left: auto; font: 500 11px Sora,sans-serif; color: rgba(255,255,255,.45); }
.v3s-breadcrumb b { color: #fff; opacity: .9; }

/* Light theme topbar */
.v3s-topbar {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: #fff; border-bottom: 1px solid rgba(0,0,0,.06);
}
.v3s-logo { font: 700 12px Sora,sans-serif; color: #11171F; letter-spacing: -0.02em; }
.v3s-logo-svg { height: 14px; width: auto; flex-shrink: 0; }
.v3s-search {
  flex: 1; font: 500 10px Sora,sans-serif; color: #8A94A6;
  padding: 5px 10px; background: #F4F6F8; border: 1px solid rgba(0,0,0,.05); border-radius: 6px;
}
.v3s-tenant { font: 500 10px Sora,sans-serif; color: #11171F; padding: 5px 10px; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 6px; }
.v3s-avatar {
  width: 26px; height: 26px; border-radius: 50%; background: #05C98D; color: #fff;
  font: 700 9px Sora,sans-serif; display: flex; align-items: center; justify-content: center;
}

/* Scene body */
.v3s-body { padding: 10px 14px; height: calc(100% - 44px); overflow: hidden; }

/* Shared mini-UI pieces */
.v3s-pill-row { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.v3s-pill { font: 500 9px Sora,sans-serif; color: #11171F; padding: 3px 9px; border: 1px solid rgba(0,0,0,.12); border-radius: 999px; background: #fff; display: inline-flex; align-items: center; gap: 4px; }
.v3s-pill--green { font-weight: 600; color: #fff; background: #05C98D; border-color: #05C98D; }
.v3s-pill--green-sm { font: 700 8px Sora,sans-serif; color: #05C98D; padding: 3px 8px; background: #E8F7EF; border: 1px solid rgba(5,201,141,.3); border-radius: 999px; display: inline-flex; align-items: center; gap: 3px; }
.v3s-pill--dark { font: 500 10px Sora,sans-serif; color: rgba(255,255,255,.7); padding: 4px 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 6px; }
.v3s-pill--violet { font: 700 7px Sora,sans-serif; color: #fff; padding: 3px 6px; background: #C535FF; border-radius: 4px; border: none; }

.v3s-tabs { display: flex; gap: 4px; border-bottom: 1px solid rgba(0,0,0,.08); margin-bottom: 10px; }
.v3s-tab { font: 500 9px Sora,sans-serif; color: #8A94A6; padding: 6px 9px; border-bottom: 2px solid transparent; }
.v3s-tab--active { font-weight: 700; color: #05C98D; border-bottom-color: #05C98D; }

.v3s-badge {
  font: 700 7px Sora,sans-serif; padding: 1px 5px; border-radius: 3px; letter-spacing: .05em;
  border: 1px solid; display: inline-flex; align-items: center; gap: 2px;
}
.v3s-chip { font: 600 8px Sora,sans-serif; color: #11171F; padding: 2px 6px; border: 1px solid rgba(0,0,0,.08); border-radius: 4px; margin-left: 4px; }

.v3s-dot-color { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── Configurer scene ── */
.v3s-config-grid { display: grid; grid-template-columns: 1fr 120px; gap: 10px; height: calc(100% - 80px); }
.v3s-config-list { background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 10px; padding: 10px; overflow: hidden; }
.v3s-config-header { font: 500 9px Sora,sans-serif; color: #8A94A6; margin-bottom: 8px; }
.v3s-step-row {
  display: flex; align-items: center; gap: 6px; padding: 5px 8px;
  border: 1px solid rgba(0,0,0,.08); border-radius: 5px; margin-bottom: 3px; background: #fff;
  font: 500 9px Sora,sans-serif; color: #11171F;
}
.v3s-step-row--expanded { border-radius: 6px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.v3s-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 4px;
  background: #11171F; color: #fff; font: 700 8px Sora,sans-serif; flex-shrink: 0;
}
.v3s-step-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3s-chevron { color: #8A94A6; font-size: 9px; }

.v3s-product-card-dark {
  background: #11171F; border-radius: 10px; padding: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15); border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}
.v3s-product-img { width: 100%; height: 58px; border-radius: 5px; display: flex; align-items: center; justify-content: center; }
.v3s-product-name { margin-top: 6px; font: 700 8px Sora,sans-serif; color: #fff; line-height: 1.2; }
.v3s-product-code { font: 500 6px Sora,sans-serif; color: rgba(255,255,255,.4); margin-top: 2px; }

/* ── Planifier scene (gantt) ── */
.v3s-gantt-toolbar {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: rgba(255,255,255,.02); border-bottom: 1px solid rgba(255,255,255,.05);
}
.v3s-day-toggle {
  display: flex; border-radius: 6px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); margin-left: 8px;
}
.v3s-day-toggle span { font: 600 10px Sora,sans-serif; padding: 4px 10px; color: rgba(255,255,255,.6); }
.v3s-day-toggle--active { color: #003726 !important; background: #05FFAD; }

.v3s-gantt { padding: 0 14px 10px; overflow: hidden; }
.v3s-gantt-header {
  display: grid; grid-template-columns: 100px 1fr 1fr; gap: 0;
  font: 600 10px Sora,sans-serif; color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.05); padding: 8px 0;
}
.v3s-gantt-header span { text-align: center; }
.v3s-gantt-corner { text-align: left; font: 600 9px Sora,sans-serif; color: rgba(255,255,255,.55); letter-spacing: .1em; }
.v3s-gantt-row { display: grid; grid-template-columns: 100px 1fr; border-bottom: 1px solid rgba(255,255,255,.04); }
.v3s-gantt-line {
  font: 600 9px Sora,sans-serif; color: rgba(255,255,255,.75);
  padding: 8px 0; line-height: 1.15; display: flex; align-items: center;
}
.v3s-gantt-cells {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; padding: 4px 0;
  position: relative;
}
.v3s-gantt-bar {
  background: #0b1218; border: 1px solid rgba(255,255,255,.18);
  border-left: 3px solid; border-radius: 5px; padding: 3px 6px; overflow: hidden;
  min-height: 32px; display: flex; flex-direction: column; justify-content: center;
  cursor: pointer; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.v3s-gantt-bar:hover {
  transform: scale(1.045);
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 0 12px rgba(197,53,255,.35), 0 2px 8px rgba(0,0,0,.3);
  z-index: 3;
}
.v3s-gantt-bar-name { font: 600 7px Sora,sans-serif; color: #fff; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3s-gantt-bar-of { font: 500 6px Sora,sans-serif; color: rgba(255,255,255,.55); }

.v3s-gantt-now {
  position: absolute; top: 0; bottom: 0; width: 2px; background: #C535FF;
  box-shadow: 0 0 8px rgba(197,53,255,.6); z-index: 2;
}
.v3s-gantt-now-label {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font: 700 9px Sora,sans-serif; color: #fff; padding: 2px 7px; border-radius: 3px;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.v3s-gantt-now-label:hover {
  transform: translateX(-50%) scale(1.12);
  box-shadow: 0 0 14px rgba(197,53,255,.6);
}

/* ── Recevoir scene (modal) ── */
.v3s-modal-backdrop { position: relative; display: flex; align-items: center; justify-content: center; }
.v3s-modal {
  background: #fff; border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.35);
  overflow: hidden; width: 100%; max-width: 100%;
}
.v3s-modal--wide { max-width: 100%; }
.v3s-modal-header { font: 700 12px Sora,sans-serif; color: #11171F; padding: 10px 14px; letter-spacing: -0.01em; }

.v3s-stepper { display: flex; gap: 8px; padding: 2px 14px 10px; font: 600 9px Sora,sans-serif; }
.v3s-stepper-step { color: #8A94A6; display: flex; align-items: center; gap: 4px; }
.v3s-stepper-step--done { color: #11171F; }
.v3s-stepper-step--active { color: #05C98D; font-weight: 700; }

.v3s-info-banner {
  margin: 0 14px 10px; padding: 7px 10px; background: #E8F7EF;
  border: 1px solid rgba(5,201,141,.25); border-radius: 6px;
  font: 500 8px Sora,sans-serif; color: #11171F;
}

.v3s-reception-row {
  display: flex; align-items: center; gap: 8px; margin: 0 14px 10px; padding: 8px 10px;
  background: #F0FAF4; border: 1px solid #05C98D; border-left: 3px solid #05C98D; border-radius: 6px;
}
.v3s-reception-article { flex: 1; font: 700 9px Sora,sans-serif; color: #11171F; }
.v3s-reception-qty { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.v3s-qty-box { padding: 4px 8px; background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 4px; font: 700 11px Sora,sans-serif; color: #11171F; min-width: 28px; text-align: center; }
.v3s-reception-qty span { font: 500 6px Sora,sans-serif; color: #8A94A6; }
.v3s-reception-actions { display: flex; flex-direction: column; gap: 3px; }

/* ── Produire scene ── */
.v3s-of-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.v3s-of-title { font: 700 12px Sora,sans-serif; color: #11171F; letter-spacing: -0.01em; }

.v3s-controls-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-bottom: 8px; }
.v3s-ctrl-chip {
  display: flex; align-items: center; gap: 4px; padding: 4px 6px;
  background: #E8F7EF; border: 1px solid rgba(5,201,141,.3); border-radius: 5px;
  font: 700 6.5px Sora,sans-serif; color: #11171F; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v3s-ctrl-chip--dark { background: #05C98D; border-color: #05C98D; color: #fff; }

.v3s-recurrent-grid { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 6px; padding: 6px 8px; overflow: hidden; }
.v3s-recurrent-header { display: grid; grid-template-columns: 150px repeat(9, 1fr); gap: 2px; margin-bottom: 4px; }
.v3s-recurrent-header span { font: 500 5.5px Sora,sans-serif; color: #8A94A6; text-align: center; }
.v3s-recurrent-row { display: grid; grid-template-columns: 150px repeat(9, 1fr); gap: 2px; align-items: center; margin-bottom: 2px; }
.v3s-recurrent-row > span:first-child { font: 600 6px Sora,sans-serif; color: #11171F; }
.v3s-ctrl-dot { width: 14px; height: 14px; border-radius: 50%; background: #CDD5DE; margin: 0 auto; }
.v3s-ctrl-dot--ok { background: #05C98D; }
.v3s-ctrl-dot--alert { background: #D946A0; }

/* ── Controler scene (matrix) ── */
.v3s-matrix-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.v3s-matrix-header > span:first-child { font: 600 12px Sora,sans-serif; color: #fff; }

.v3s-matrix { font: 500 10px Sora,sans-serif; }
.v3s-matrix-row { display: grid; grid-template-columns: 200px repeat(6, 1fr); gap: 3px; align-items: center; }
.v3s-matrix-row--header { margin-bottom: 4px; }
.v3s-matrix-row--header span { text-align: center; color: rgba(255,255,255,.4); font-weight: 500; padding: 4px 0; }
.v3s-matrix-now { color: #fff !important; font-weight: 700 !important; background: rgba(75,63,255,.22); border-radius: 4px; }
.v3s-matrix-label { color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 6px; padding: 7px 0; }
.v3s-matrix-cell { display: flex; justify-content: center; align-items: center; height: 28px; }

.v3s-flag { font: 700 8px Sora,sans-serif; padding: 1px 5px; border-radius: 3px; letter-spacing: .05em; border: 1px solid; }
.v3s-flag--ccp { color: #E85D2C; background: rgba(232,93,44,.15); border-color: rgba(232,93,44,.4); }
.v3s-flag--prpo { color: #FFD36E; background: rgba(255,211,110,.12); border-color: rgba(255,211,110,.35); }

.v3s-mx-done { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #05FFAD; color: #003726; font: 700 12px Sora; }
.v3s-mx-pending { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #4B3FFF; color: #4B3FFF; font: 700 10px Sora; }
.v3s-mx-warn { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #E85D2C; color: #fff; font: 800 12px Sora; }

/* ── Controler scene — interactive matrix cells ── */
.v3s-matrix-cell {
  cursor: pointer;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
  border-radius: 6px;
}
.v3s-matrix-cell:hover {
  transform: scale(1.18);
  box-shadow: 0 0 12px rgba(75,63,255,.35);
  z-index: 2;
}
.v3s-matrix-cell--empty {
  border: 1.5px dashed rgba(255,255,255,.18);
  border-radius: 6px;
}
.v3s-matrix-cell--empty:hover {
  border-color: rgba(75,63,255,.5);
  background: rgba(75,63,255,.08);
}

/* ── Control popup (conforme / non-conforme) ── */
.v3-control-popup {
  position: absolute;
  z-index: 100;
  display: flex;
  gap: 5px;
  padding: 6px 8px;
  background: rgba(17,23,31,.95);
  border: 1px solid rgba(75,63,255,.4);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 0 1px rgba(75,63,255,.15);
  white-space: nowrap;
  animation: v3PopIn .2s ease-out;
  pointer-events: auto;
}
.v3-control-popup::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(17,23,31,.95);
  border-top: 1px solid rgba(75,63,255,.4);
  border-left: 1px solid rgba(75,63,255,.4);
  transform: translateX(-50%) rotate(45deg);
}
.v3-control-popup button {
  font: 600 9px/1 Sora, sans-serif;
  padding: 6px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.v3-control-popup button:hover {
  transform: scale(1.06);
}
.v3-popup-conforme {
  background: #05FFAD;
  color: #003726;
}
.v3-popup-conforme:hover {
  box-shadow: 0 0 10px rgba(5,255,173,.4);
}
.v3-popup-nonconforme {
  background: #E85D2C;
  color: #fff;
}
.v3-popup-nonconforme:hover {
  box-shadow: 0 0 10px rgba(232,93,44,.4);
}
@keyframes v3PopIn {
  from { opacity: 0; transform: translateY(4px) scale(.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes v3CellConfetti {
  0%   { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--cx), var(--cy)) scale(0); }
}

/* ── Tracer scene (sankey) ── */
.v3s-sankey-svg { width: 100%; height: auto; margin-bottom: 10px; }
.v3s-trace-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.v3s-trace-chip { padding: 4px 10px; background: rgba(255,255,255,.04); border-radius: 5px; font: 500 9px Sora,sans-serif; }

/* ── Expedier scene ── */
.v3s-kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 5px; margin-bottom: 6px; }
.v3s-kpi { border: 1px solid; border-radius: 6px; padding: 6px 7px; }
.v3s-kpi-label { font: 700 6px Sora,sans-serif; color: #11171F; letter-spacing: .04em; line-height: 1.1; margin-bottom: 2px; }
.v3s-kpi-value { font: 700 10px Sora,sans-serif; color: #11171F; font-variant-numeric: tabular-nums; }
.v3s-kpi-delta { font: 700 8px Sora,sans-serif; font-variant-numeric: tabular-nums; }
.v3s-kpi--stats .v3s-kpi-label { margin-bottom: 1px; }

.v3s-colis-panel {
  background: #0C1B24; border-radius: 8px; padding: 10px 11px; color: #fff; overflow: hidden;
}
.v3s-colis-header { font: 700 9px Sora,sans-serif; color: #fff; margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.v3s-progress-bar { position: relative; height: 5px; background: rgba(255,255,255,.08); border-radius: 3px; margin-bottom: 8px; overflow: hidden; }
.v3s-progress-fill { height: 100%; border-radius: 3px; }
.v3s-item-list { display: flex; flex-direction: column; gap: 2px; }
.v3s-item-row { display: flex; align-items: center; gap: 6px; padding: 3px 6px; background: rgba(255,255,255,.02); border-radius: 4px; }
.v3s-item-name { font: 600 7.5px Sora,sans-serif; color: #05C98D; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3s-item-lot { font: 500 7px Sora,sans-serif; color: #fff; }
.v3s-item-qty { font: 700 8px Sora,sans-serif; color: #fff; text-align: right; min-width: 30px; }

/* ── Analyser scene ── */
.v3s-cost-row {
  display: flex; align-items: center; gap: 6px; padding: 5px 8px;
  background: #F0FAF4; border: 1px solid rgba(5,201,141,.2); border-radius: 6px;
  font: 600 9px Sora,sans-serif; color: #11171F;
}

/* ── Simuler scene ── */
.v3s-sliders-block { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 6px; padding: 7px 9px; }
.v3s-sliders-header { font: 700 9px Sora,sans-serif; color: #11171F; margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.v3s-slider-row { display: grid; grid-template-columns: 72px 1fr 40px; gap: 6px; align-items: center; margin-bottom: 4px; }
.v3s-slider-label { font: 600 7.5px Sora,sans-serif; color: #11171F; }
.v3s-slider-track { position: relative; height: 4px; background: #E4E9EE; border-radius: 2px; }
.v3s-slider-center { position: absolute; left: 50%; top: -2px; width: 1px; height: 8px; background: #CDD5DE; }
.v3s-slider-fill { position: absolute; height: 100%; border-radius: 2px; }
.v3s-slider-thumb {
  position: absolute; top: -3px; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid; transform: translateX(-50%);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.v3s-slider-val { font: 700 8px Sora,sans-serif; text-align: right; font-variant-numeric: tabular-nums; }

/* ── V3 Easter-egg hover states ── */
.v3s-step-row,
.v3s-product-card-dark,
.v3s-reception-row,
.v3s-qty-box,
.v3s-item-row,
.v3s-kpi,
.v3s-slider-track,
.v3s-slider-row {
  cursor: pointer;
}
.v3s-step-row {
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.v3s-step-row:hover {
  transform: scale(1.015);
  box-shadow: 0 2px 8px rgba(197,53,255,.12);
  background: #f8f4ff;
}
.v3s-product-card-dark {
  transition: transform .15s ease, box-shadow .15s ease;
}
.v3s-product-card-dark:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(249,105,0,.2);
}
.v3s-reception-row {
  transition: transform .15s ease, box-shadow .15s ease;
}
.v3s-reception-row:hover {
  transform: scale(1.01);
  box-shadow: 0 2px 10px rgba(5,201,141,.15);
}
.v3s-qty-box {
  transition: transform .12s ease, box-shadow .12s ease;
  cursor: pointer;
}
.v3s-qty-box:hover {
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(5,201,141,.18);
}
.v3s-sankey-svg g[data-node-type] {
  cursor: pointer;
  transition: filter .15s ease;
}
.v3s-sankey-svg g[data-node-type]:hover rect {
  filter: drop-shadow(0 0 6px currentColor);
}
.v3s-sankey-svg g[data-node-type="supplier"]:hover rect { filter: drop-shadow(0 0 8px #05ffad); }
.v3s-sankey-svg g[data-node-type="lot"]:hover rect { filter: drop-shadow(0 0 8px #5b72ff); }
.v3s-sankey-svg g[data-node-type="of"]:hover rect { filter: drop-shadow(0 0 8px #9b39e3); }
.v3s-sankey-svg g[data-node-type="product"]:hover rect { filter: drop-shadow(0 0 8px #FFD36E); }
.v3s-item-row {
  transition: transform .12s ease, background .12s ease;
}
.v3s-item-row:hover {
  transform: scale(1.015);
  background: rgba(255,255,255,.08);
}
.v3s-kpi {
  transition: transform .15s ease, box-shadow .15s ease;
}
.v3s-kpi:hover {
  transform: scale(1.04);
  box-shadow: 0 3px 12px rgba(0,0,0,.1);
}
.v3s-slider-track {
  transition: transform .12s ease;
}
.v3s-slider-track:hover {
  transform: scaleY(1.6);
}
.v3s-slider-row:hover .v3s-slider-thumb {
  transform: translateX(-50%) scale(1.3);
  box-shadow: 0 0 8px rgba(233,30,91,.3);
}

/* ═══ V3 Hero responsive ═══ */
@media screen and (max-width: 1024px) {
  .v3-header { padding-left: 32px; padding-right: 40px; }
  .v3-main { grid-template-columns: 1fr; gap: 40px; min-height: auto; padding: 0 40px 0 32px; }
  .v3-right-col { max-width: 600px; }
  .v3-giant-num { font-size: clamp(80px, 12vw, 140px); margin-bottom: 0; }
  .v3-h1 { font-size: clamp(40px, 6vw, 64px); }
  .v3-progress-title { display: none; }
  .v3-progress-container { left: 32px; right: 40px; }
  .v3-hero-top { padding: 60px 24px 40px; min-height: 60vh; }
  .v3-hero-top .hero-subtitle { font-size: 15px; margin-bottom: 8px; }
  .v3-hero-top .hero-buttons { gap: 12px; margin-top: 12px; }
}
@media screen and (max-width: 640px) {
  .v3-wrap { max-width: 100vw; }
  .v3-hero-top { padding: 40px 16px 32px; min-height: 100svh; gap: 16px; }
  .v3-hero-top .hero-badge { font-size: 11px; padding: 6px 12px; }
  .v3-hero-title { font-size: clamp(32px, 8vw, 44px) !important; min-height: auto; word-break: break-word; }
  .v3-hero-top .hero-subtitle { font-size: 14px; }
  .v3-hero-top .hero-buttons { flex-direction: column; width: 100%; }
  .v3-hero-top .hero-buttons .btn-primary,
  .v3-hero-top .hero-buttons .btn-secondary { width: 100%; justify-content: center; }
  .v3-header { padding-left: 16px; padding-right: 16px; flex-direction: column; gap: 8px; align-items: flex-start; }
  .v3-main { padding: 0 16px; }
  .v3-giant-num { font-size: 64px; margin: 0 0 4px 0; }
  .v3-kicker { margin-bottom: 4px; }
  .v3-h1 { font-size: 36px; }
  .v3-desc { font-size: 15px; }
  .v3-brand-tagline { font-size: 18px; }
  .v3-right-col { aspect-ratio: auto; max-height: 50vh; }
  .v3-scene-box { height: auto; max-height: 50vh; }
  .v3s-frame { height: auto; max-height: 50vh; }
  .v3-progress-container { left: 16px; right: 16px; overflow: hidden; }
  .v3-progress-title { display: none; }
  .v3-progress-labels { overflow-x: auto; gap: 0; }
  .v3s-config-grid { grid-template-columns: 1fr; }
  .v3s-controls-grid { grid-template-columns: repeat(2, 1fr); }
  .v3s-matrix-row { grid-template-columns: 120px repeat(6, 1fr); }
  .v3s-matrix-label { font-size: 8px; }
}

/* ========== OLD HERO (legacy — hidden, kept for JS compat) ========== */

.hero { display: none; }

[data-theme="light"] .hero .hero-badge { background: rgba(5,255,173,.1); border-color: rgba(5,255,173,.2); color: #076045; }
[data-theme="light"] .hero .gradient-text { background: linear-gradient(135deg, #076045, #AD05FF); -webkit-background-clip: text; background-clip: text; }

/* Light mode: sankey nodes need darker strokes/fills */
[data-theme="light"] .hs-link--yellow { stroke: #cc9a00; }
[data-theme="light"] .hs-link--green { stroke: #009665; }
[data-theme="light"] .hs-link--orange { stroke: #cc4d02; }
[data-theme="light"] .hs-node text { fill: var(--text-primary); }
[data-theme="light"] .hs-event rect { filter: drop-shadow(0 2px 8px rgba(0,0,0,.1)); }

/* Light mode: general fixes */
[data-theme="light"] .btn-primary { background: #009665; color: #fff; box-shadow: 0 4px 12px rgba(0,150,101,.2); }
[data-theme="light"] .btn-primary:hover { background: #076045; box-shadow: 0 8px 20px rgba(0,150,101,.3); }
[data-theme="light"] .nav-cta { background: #009665; color: #fff; }
[data-theme="light"] .nav-cta:hover { background: #076045; }
.stat-number--green { color: var(--primary-text); }
.stat-number--orange { color: var(--orange-text); }
[data-theme="light"] .scroll-nav__dot.is-active { background: #009665; box-shadow: 0 0 6px rgba(0,150,101,.3); }
[data-theme="light"] .scroll-nav__dot.is-active::before { color: #009665; }
[data-theme="light"] .about-note-content mark { color: #076045; text-decoration-color: #009665; }
[data-theme="light"] .section-label { color: #009665; }
[data-theme="light"] .section-label::before { background: #009665; box-shadow: 0 0 8px rgba(0,150,101,.3); }

/* Old hero blobs — disabled */
.hero__before__unused {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.08;
  filter: blur(150px);
  top: -200px;
  right: -100px;
  animation: heroBlob1 20s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--secondary);
  opacity: 0.06;
  filter: blur(150px);
  bottom: -200px;
  left: -100px;
  animation: heroBlob2 25s ease-in-out infinite;
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-inner-full {
  grid-template-columns: 1fr;
  text-align: center;
  gap: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-content-center {
  align-items: center;
}

.hero-content-center .hero-subtitle {
  margin: 0 auto;
}

.hero-content-center .hero-buttons {
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--primary-dim);
  border: 1px solid rgba(5, 255, 173, 0.15);
  color: var(--primary-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  width: fit-content;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ========== WHEEL CAROUSEL — TRUE PETAL ROTOR ========== */
.wheel-section {
  position: relative;
  height: 200vh; /* taller to create scroll runway */
  padding: 0;
  background: transparent !important;
}

.wheel-section-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.wheel-section-title {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
}

/* gradient is now on body with background-attachment:fixed */

.wheel-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Horizontal slider */
.wheel-rotor {
  display: flex;
  width: 400%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.wheel-scene {
  width: 25%;
  height: 100%;
  flex-shrink: 0;
}

.wheel-scene-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 5% 120px;
  overflow: hidden;
}

.wheel-sankey {
  width: 100%;
  max-width: 1100px;
  height: auto;
  max-height: 80%;
  flex-shrink: 0;
}

.wheel-scene-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 24px;
}

.wheel-scene-label { z-index: 2; }
.wheel-scene-body { z-index: 2; max-width: 500px; }

/* Title card — FIXED in front of the wheel */
.wheel-title-card {
  position: absolute;
  left: 50%;
  bottom: 8svh;
  transform: translateX(-50%);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  padding: 24px 44px;
  border-radius: 20px;
  text-align: center;
  z-index: 20;
  border: 1px solid rgba(255,255,255,.1);
  min-width: 280px;
}

.wheel-title-card [data-label] {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .8;
  transition: opacity .28s, transform .28s;
}

.wheel-title-card [data-title] {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
  margin-top: 8px;
  transition: opacity .28s, transform .28s;
}

.wheel-title-card.is-swapping [data-label],
.wheel-title-card.is-swapping [data-title] {
  opacity: 0;
  transform: translateY(10px);
}

/* Controls — big white pills */
.wheel-controls {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(8svh + 9rem);
  display: flex;
  gap: 24px;
  z-index: 25;
}

.wheel-arrow {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #fff;
  border: none;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.35);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .25s;
}

.wheel-arrow svg { width: 24px; height: 24px; stroke: #4B3FFF; stroke-width: 3; fill: none; transition: transform .2s; }
.wheel-arrow:hover { transform: scale(1.1); }
#wheelPrev:hover svg { transform: translateX(-3px); }
#wheelNext:hover svg { transform: translateX(3px); }

/* Dots — under the title card */
.wheel-dots {
  position: absolute;
  bottom: 3svh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 25;
}

.wheel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: all .3s;
}

.wheel-dot--active {
  width: 28px;
  background: #fff;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wheel-rotor { transition: none; }
}

@media screen and (max-width: 768px) {
  .wheel-section { height: 80svh; }
  .wheel-rotor { height: 280svh; }
  .wheel-scene-inner { padding: 0 20px 20%; }
  .wheel-title-card { padding: 20px 28px; bottom: 5svh; min-width: 220px; }
  .wheel-title-card [data-title] { font-size: 20px; }
  .wheel-controls { bottom: calc(5svh + 7rem); gap: 16px; }
  .wheel-arrow { width: 52px; height: 52px; }
  .wheel-dots { bottom: 2svh; }
}

/* ========== CAROUSEL SCENE CARDS ========== */
.cs-card { background:var(--surface-solid); border-radius:20px; padding:20px; width:90%; max-width:700px; max-height:85%; overflow:auto; box-shadow:0 16px 48px rgba(0,0,0,.2); border:1px solid var(--border); }
.cs-header { font-size:16px; font-weight:700; margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.cs-badge { font-size:10px; font-weight:600; padding:3px 8px; border-radius:6px; }
.cs-badge-green { background:rgba(5,255,173,.12); color:var(--primary-text); }

/* Dashboard scene */
.cs-dash-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.cs-dash-wide { grid-column:1/-1; }
.cs-dash-widget { background:var(--bg-primary); border:1px solid var(--border); border-radius:12px; padding:12px; }
.cs-wh { font-size:11px; font-weight:600; margin-bottom:8px; }
.cs-wmeta { font-size:10px; color:var(--text-muted); margin-left:4px; }
.cs-activity { display:flex; gap:6px; overflow-x:auto; }
.cs-act-col { min-width:90px; display:flex; flex-direction:column; gap:3px; }
.cs-act-date { font-size:8px; font-weight:600; color:var(--text-muted); }
.cs-act-chip { font-size:8px; font-weight:600; color:#fff; padding:4px 8px; border-radius:5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cs-list { display:flex; flex-direction:column; gap:4px; }
.cs-list-row { font-size:10px; font-weight:500; padding:5px 8px; background:var(--surface); border-radius:6px; display:flex; justify-content:space-between; align-items:center; }
.cs-tag { font-size:8px; font-weight:600; padding:2px 6px; border-radius:4px; }
.cs-tag-green { background:rgba(11,174,90,.12); color:#0bae5a; }
.cs-tag-orange { background:rgba(249,105,0,.12); color:#f96900; }
.cs-donut-row { display:flex; align-items:center; gap:10px; }
.cs-donut-legend { display:flex; flex-direction:column; gap:3px; }
.cs-donut-legend span { font-size:9px; color:var(--text-secondary); display:flex; align-items:center; gap:4px; }
.cs-donut-legend i { width:8px; height:8px; border-radius:2px; display:inline-block; }

/* Supervision scene */
.cs-week-nav { display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:14px; }
.cs-week-btn { width:28px; height:28px; border-radius:8px; background:var(--surface); border:1px solid var(--border); font-size:12px; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .2s; }
.cs-week-btn:hover { background:var(--primary); color:#003726; }
.cs-week-label { font-size:13px; font-weight:600; }
.cs-team-grid { width:100%; }
.cs-team-header { display:grid; grid-template-columns:120px repeat(5,1fr); gap:4px; font-size:9px; font-weight:600; color:var(--text-muted); text-align:center; margin-bottom:6px; }
.cs-team-row { display:grid; grid-template-columns:120px repeat(5,1fr); gap:4px; align-items:center; padding:8px 0; border-bottom:1px solid var(--border); }
.cs-team-name { display:flex; align-items:center; gap:8px; font-size:12px; font-weight:600; }
.cs-avatar { width:28px; height:28px; border-radius:50%; flex-shrink:0; }
.cs-pct { font-size:13px; font-weight:700; text-align:center; padding:4px 8px; border-radius:8px; cursor:pointer; transition:transform .2s; }
.cs-pct:hover { transform:scale(1.15); }
.cs-pct-green { color:#0bae5a; background:rgba(11,174,90,.08); }
.cs-pct-orange { color:#f96900; background:rgba(249,105,0,.08); }

/* Planning scene */
.cs-gantt { width:100%; }
.cs-gantt-header { display:grid; grid-template-columns:90px repeat(5,1fr); gap:2px; font-size:9px; font-weight:600; color:var(--text-muted); text-align:center; margin-bottom:4px; }
.cs-gantt-line-h { text-align:left; }
.cs-gantt-row { display:grid; grid-template-columns:90px 1fr; gap:2px; margin-bottom:4px; align-items:center; }
.cs-gantt-line { font-size:10px; font-weight:600; }
.cs-gantt-cells { display:grid; grid-template-columns:repeat(5,1fr); gap:2px; }
.cs-gantt-bar { border-radius:6px; padding:6px 8px; font-size:8px; font-weight:600; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; transition:transform .15s, box-shadow .15s; }
.cs-gantt-bar:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,.2); }

/* Mobile carousel scenes */
@media screen and (max-width: 768px) {
  .cs-card { width:95%; padding:14px; max-width:none; }
  .cs-dash-grid { grid-template-columns:1fr; }
  .cs-team-header, .cs-team-row { grid-template-columns:80px repeat(5,1fr); }
  .cs-team-name { font-size:10px; }
  .cs-pct { font-size:11px; padding:3px 4px; }
}

/* Hero scene (back to standalone) */
.hero-scene {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-sankey {
  width: 100%;
  height: auto;
  max-height: 50vh;
}

.hs-link {
  fill: none;
  stroke-width: 3;
  opacity: 0;
}

.hs-link--yellow { stroke: #FFD36E; }
.hs-link--green { stroke: #05FFAD; }
.hs-link--orange { stroke: #F96900; }

.hs-particles { opacity: 0; }

.hs-node { opacity: 0; }

.hs-event { opacity: 0; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 2;
}

.scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

/* ---------- STATS ---------- */

.stats-section {
  padding: 80px 0;
  background: var(--bg-primary);
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 700px;
  margin-inline: auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-unit {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 160px;
}

/* ---------- VIDEO ---------- */

.video-section {
  padding: 80px 0;
}

.video-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

.video-wrapper video {
  width: 100%;
  display: block;
}

/* ---------- ABOUT (sticky note) ---------- */

.about-section { padding: 80px 0; overflow: hidden; }

.about-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.cloud-about-1 { top: -30px; left: -80px; }
.cloud-about-2 { bottom: -20px; right: -60px; }

.about-note {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  transform: rotate(-1.5deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
}

[data-theme="dark"] .about-note {
  background: var(--bg-elevated);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.about-note-icon { flex-shrink: 0; width: 56px; height: 56px; }

.about-note-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-ink);
}

[data-theme="dark"] .about-note-content { color: var(--text-primary); }

.about-note-content mark {
  background: none;
  color: var(--color-green-dk);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--color-green);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

[data-theme="dark"] .about-note-content mark {
  color: var(--color-green);
}

/* ---------- WORKFLOW CARD STACK ---------- */

.wf-stack {
  position: relative;
  height: calc(3.5 * 100vh);
}

.wf-stack__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wf-stack__deck {
  position: relative;
  width: calc(100% - 48px);
  max-width: 1200px;
  height: 70vh;
  min-height: 480px;
}

.wf-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 12px 40px -12px rgba(0,0,0,.3);
  will-change: transform;
  width: clamp(220px, 26vw, 300px);
  aspect-ratio: 1 / 1.2;
  overflow: hidden;
}

.wf-card__title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.wf-card__svg {
  flex: 1;
  width: 80%;
  max-height: 55%;
}

/* Produire animation stage */
.wf-produire-stage { flex:1; width:100%; position:relative; overflow:hidden; display:flex; align-items:center; }
.wf-produire-belt { position:absolute; top:55%; left:5%; width:90%; height:4px; border-radius:2px; background:rgba(255,255,255,.25); }
.wf-produire-shape { position:absolute; width:24px; height:24px; border-radius:50%; background:#FFD36E; top:calc(55% - 26px); left:-30px; }
.wf-produire-cap { position:absolute; width:18px; height:7px; border-radius:3px; background:#fff; opacity:0; top:calc(55% - 35px); left:-30px; margin-left:3px; pointer-events:none; }
.wf-produire-label { position:absolute; top:calc(55% + 12px); width:100%; text-align:center; font-size:8px; font-weight:600; color:rgba(255,255,255,.4); font-family:var(--font-heading); }

.wf-card__desc {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.4;
  color: rgba(0,0,0,.55);
  margin-top: 8px;
}

/* Progress bar — hidden */
.wf-stack__progress {
  display: none;
}

.wf-stack__bar {
  width: 200px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.15);
  overflow: hidden;
}

[data-theme="light"] .wf-stack__bar { background: rgba(0,0,0,.1); }

.wf-stack__bar-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: var(--color-green);
  transition: width 0.3s ease;
}

.wf-stack__label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Decorative blobs */
.wf-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.12;
}

.wf-blob--1 { width: 400px; height: 400px; background: #C535FF; top: -100px; left: -150px; }
.wf-blob--2 { width: 350px; height: 350px; background: #05FFAD; bottom: -100px; right: -100px; }
.wf-blob--3 { width: 250px; height: 250px; background: #F96900; top: 50%; left: 60%; }

.wf-blob { transition: transform 0.8s cubic-bezier(.23,1,.32,1); }

/* Paused animations when card not active */
.wf-card svg * { animation-play-state: paused; }
.wf-card.is-active svg * { animation-play-state: running; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wf-card svg * { animation: none !important; }
  .wf-blob { animation: none !important; }
  .wf-stack { height: auto; }
  .wf-stack__sticky { position: static; height: auto; flex-direction: column; padding: 60px 0; }
  .wf-stack__deck { position: static; display: flex; flex-direction: column; gap: 24px; width: 100%; }
  .wf-card { position: static; transform: none !important; opacity: 1 !important; }
}

@media screen and (max-width: 768px) {
  .wf-stack { height: auto !important; }
  .wf-stack__sticky { position: static; height: auto; flex-direction: column; padding: 48px 16px; }
  .wf-stack__deck { position: static; width: 100%; height: auto; min-height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .wf-card {
    position: static !important;
    left: auto !important; top: auto !important;
    width: 100% !important; height: auto !important;
    transform: none !important;
    opacity: 1 !important;
    aspect-ratio: auto;
    padding: 18px 14px;
  }
  .wf-card__title { font-size: 13px; }
  .wf-card__desc { font-size: 10px; }
  .wf-card__svg { max-height: 80px; }
  .wf-stack__progress { display: none; }
  .wf-blob { display: none; }
}

/* ---------- WORKFLOW JOURNEY (old, hidden) ---------- */

.journey-section { padding: 100px 0; }
.journey-header { text-align: center; margin-bottom: 60px; }
.journey-subtitle { font-size: 17px; color: var(--text-secondary); margin-top: 16px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6; }

.journey-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.journey-steps { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }

.journey-step { display: flex; gap: 20px; align-items: flex-start; padding: 16px; border-radius: 16px; transition: background 0.3s, box-shadow 0.3s; opacity: 0; transform: translateX(-20px); }

.journey-step.visible { opacity: 1; transform: translateX(0); }

.journey-step:hover { background: rgba(0,0,0,.03); }
[data-theme="dark"] .journey-step:hover { background: rgba(255,255,255,.03); }
.journey-step.js-active { background: rgba(5,255,173,.06); border-radius: 16px; }
[data-theme="dark"] .journey-step.js-active { background: rgba(5,255,173,.04); }

/* Right sticky visual panel */
.journey-visual {
  position: sticky;
  top: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.journey-card {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.journey-card svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.journey-card-active {
  display: flex;
  animation: demoFadeIn 0.4s ease;
}

.journey-card-label {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.1));
}

/* Journey icons now use .icon-round from design system */

.js-content h4 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.js-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

@media screen and (min-width: 768px) {
  .journey-layout { grid-template-columns: 1fr; }
  .journey-visual { display: none; }
}

@media screen and (max-width: 640px) {
  .journey-step { padding: 12px; gap: 14px; }
  .icon-round { width: 48px; height: 48px; }
  .icon-round svg { width: 24px; height: 24px; }
  .js-content h4 { font-size: 15px; }
  .js-content p { font-size: 13px; }
  .journey-line { left: 22px; }
}

/* ---------- FEATURES ---------- */

.features-section {
  padding: 100px 0;
}

.features-header {
  text-align: center;
  margin-bottom: 60px;
}

.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

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

.feature-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  text-align: left;
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-btn:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: var(--card-shadow);
}

.feature-btn.active {
  border-color: var(--secondary);
  background: var(--secondary-dim);
}

.feature-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.feature-btn.active .feature-btn-icon {
  background: var(--secondary-dim);
}

.feature-btn-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-btn-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.feature-btn-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.feature-btn.active .feature-btn-title { color: var(--secondary); }

/* ---------- DEMO CONTAINER ---------- */
.demo-container { position: sticky; top: 120px; border-radius: 20px; overflow: hidden; background: var(--surface-solid); border: 1px solid var(--border); min-height: 380px; }
.demo-panel { display: none; padding: 20px; position: relative; min-height: 380px; }
.demo-panel.active { display: block; animation: demoFadeIn 0.4s ease; }
@keyframes demoFadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* -- Control Matrix (dark app style) -- */
.demo-matrix { position:relative; background:#1a2230; border-radius:12px; padding:10px; overflow:hidden; }
.mx-title { font-size:13px; font-weight:700; color:#e0e6ed; margin-bottom:8px; }
.mx-grid { display:grid; grid-template-columns:140px repeat(5,1fr); gap:1px; }
.mx-corner { font-size:10px; font-weight:600; color:#7a8a9e; padding:6px 4px; border-bottom:1px solid #2a3545; }
.mx-time { text-align:center; font-size:10px; font-weight:600; color:#7a8a9e; padding:6px 0; border-bottom:1px solid #2a3545; position:relative; }
.mx-time-now { color:var(--primary-text); }
.mx-now-label { position:absolute; top:-14px; left:50%; transform:translateX(-50%); font-size:9px; font-weight:700; color:#0A0E13; background:var(--primary); padding:1px 6px; border-radius:4px; white-space:nowrap; }
.mx-label { font-size:10px; font-weight:500; color:#9aa8b8; padding:4px; display:flex; align-items:center; gap:6px; border-bottom:1px solid #1f2d3d; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mx-num { font-size:9px; font-weight:700; color:#5a6a7e; min-width:14px; }
.mx-cell { display:flex; align-items:center; justify-content:center; padding:4px; min-height:32px; border-bottom:1px solid #1f2d3d; }
.mx-dot { width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; }
.mx-done { background:#0bae5a; color:#fff; box-shadow:0 0 8px rgba(11,174,90,.3); }
.mx-dot-badge { font-size:10px; background:#0bae5a; position:relative; }
.mx-pending { width:26px; height:26px; border-radius:50%; background:rgba(197,53,255,.25); border:2px solid #c535ff; animation:chipPulse 1.7s ease-in-out infinite; }
@keyframes chipPulse { 0%,100%{opacity:.5;box-shadow:0 0 0 0 rgba(197,53,255,.3)} 50%{opacity:1;box-shadow:0 0 12px rgba(197,53,255,.4)} }
.matrix-cell-interactive { cursor:pointer; border-radius:6px; transition:background .2s; }
.matrix-cell-interactive:hover { background:rgba(197,53,255,.1); }
.mx-timebar { position:absolute; top:28px; bottom:10px; width:2px; background:var(--primary); opacity:.4; left:calc(140px + 2 * (100% - 140px) / 5 + (100% - 140px) / 10 + 8px); box-shadow:0 0 8px var(--primary-glow); pointer-events:none; }
/* Chips used in other demos */
.chip { display:inline-flex; align-items:center; justify-content:center; padding:2px 10px; border-radius:6px; font-size:12px; font-weight:700; }
.chip-valid { background:#d9ffea; color:#0bae5a; }
[data-theme="dark"] .chip-valid { background:rgba(11,174,90,0.15); color:#2ddc7a; }
.chip-warn { background:#fff0d3; color:#f96900; }
[data-theme="dark"] .chip-warn { background:rgba(249,105,0,0.15); color:#ff9a40; }
.control-popup { display:none; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); background:var(--dialog-bg); border:1px solid var(--border); border-radius:16px; padding:20px; box-shadow:0 16px 48px rgba(0,0,0,.3); z-index:10; min-width:250px; }
.control-popup.visible { display:block; animation:popupIn .3s ease; }
@keyframes popupIn { from{opacity:0;transform:translate(-50%,-50%) scale(.9)} to{opacity:1;transform:translate(-50%,-50%) scale(1)} }
.popup-header { display:flex; justify-content:space-between; align-items:center; font-size:14px; font-weight:600; margin-bottom:8px; }
.popup-close { width:28px; height:28px; border-radius:8px; background:var(--surface); border:1px solid var(--border); font-size:16px; color:var(--text-secondary); display:flex; align-items:center; justify-content:center; }
.popup-desc { font-size:13px; color:var(--text-secondary); margin-bottom:16px; }
.popup-actions { display:flex; gap:8px; }
.popup-btn { flex:1; padding:10px 12px; border-radius:10px; font-size:13px; font-weight:600; cursor:pointer; transition:all .2s; border:2px solid transparent; }
.popup-btn-valid { background:#d9ffea; color:#0bae5a; border-color:#0bae5a; }
.popup-btn-valid:hover { background:#0bae5a; color:#fff; }
.popup-btn-warn { background:#fff0d3; color:#f96900; border-color:#f96900; }
.popup-btn-warn:hover { background:#f96900; color:#fff; }
[data-theme="dark"] .popup-btn-valid { background:rgba(11,174,90,.1); }
[data-theme="dark"] .popup-btn-warn { background:rgba(249,105,0,.1); }
.matrix-hint { text-align:center; font-size:12px; color:var(--text-muted); margin-top:12px; }

/* -- Sankey Graph -- */
.sankey-svg { width:100%; height:auto; }
.sankey-link { fill:none; stroke-width:3; opacity:.45; transition:opacity .3s; }
.link-reception { stroke:#4d6aff; }
.link-production { stroke:#0bae5a; }
.link-expedition { stroke:#f96900; }
.dot-reception { fill:#4d6aff; opacity:.8; }
.dot-production { fill:#0bae5a; opacity:.8; }
.dot-expedition { fill:#f96900; opacity:.8; }
.sankey-node rect { stroke-width:1.5; cursor:pointer; transition:all .3s; }
.node-tiers rect { fill:rgba(77,106,255,.12); stroke:#4d6aff; }
.node-lot rect { fill:rgba(5,255,173,.08); stroke:#05FFAD; }
.node-of rect { fill:rgba(197,53,255,.08); stroke:#c535ff; }
.sankey-node text { font-size:10px; font-weight:600; fill:var(--text-primary); pointer-events:none; font-family:'Sora',sans-serif; }
.sankey-node:hover rect { stroke-width:2.5; }
.node-tiers:hover rect { filter:drop-shadow(0 0 6px rgba(77,106,255,.5)); }
.node-lot:hover rect { filter:drop-shadow(0 0 6px rgba(5,255,173,.5)); }
.node-of:hover rect { filter:drop-shadow(0 0 6px rgba(197,53,255,.5)); }
.sankey-svg.highlight .sankey-link { opacity:.06; }
.sankey-svg.highlight .sankey-link.highlighted { opacity:.85; stroke-width:4; }
.sankey-svg.highlight .sankey-node rect { opacity:.25; }
.sankey-svg.highlight .sankey-node.highlighted rect { opacity:1; }
.sankey-legend-text { font-size:10px; fill:var(--text-muted); font-family:'Sora',sans-serif; }
.sankey-hint { text-align:center; font-size:12px; color:var(--text-muted); margin-top:8px; }

/* -- Process / Poste Starter -- */
.process-starter { border-left:3px solid #c535ff; padding-left:12px; }
.ps-header { display:flex; align-items:center; gap:8px; margin-bottom:14px; }
.ps-step-num { width:22px; height:22px; border-radius:50%; background:var(--primary); color:#0A0E13; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.ps-icon-warn { color:#f96900; font-size:16px; }
.ps-title { font-size:15px; font-weight:700; }
.ps-controls { display:flex; flex-direction:column; gap:6px; }
.ps-chip { display:flex; align-items:center; gap:8px; padding:10px 16px; border-radius:10px; font-size:12px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; border:1.5px solid transparent; transition:all .2s; cursor:default; }
.ps-chip-warn { background:rgba(249,105,0,.08); color:#f96900; border-color:rgba(249,105,0,.2); }
.ps-chip-valid { background:rgba(11,174,90,.08); color:#0bae5a; border-color:rgba(11,174,90,.2); }
.ps-chip-active { border-color:#f96900; background:rgba(249,105,0,.15); box-shadow:0 0 0 2px rgba(249,105,0,.15); }
[data-theme="dark"] .ps-chip-warn { background:rgba(249,105,0,.06); }
[data-theme="dark"] .ps-chip-valid { background:rgba(11,174,90,.06); }
[data-theme="dark"] .ps-chip-active { background:rgba(249,105,0,.12); }
.ps-expanded { background:var(--bg-primary); border:1px solid var(--border); border-radius:12px; padding:16px; margin:4px 0; animation:demoFadeIn .3s ease; }
.ps-expanded-title { font-size:14px; font-weight:700; text-transform:uppercase; letter-spacing:.02em; margin-bottom:6px; }
.ps-expanded-desc { font-size:12px; color:var(--text-secondary); background:var(--surface); padding:8px 12px; border-radius:8px; margin-bottom:12px; }
.ps-sub-check { display:flex; gap:10px; align-items:flex-start; padding:10px 12px; background:var(--surface); border:1px solid var(--border); border-radius:10px; margin-bottom:12px; }
.ps-sub-icon { width:22px; height:22px; border-radius:50%; background:var(--primary-dim); color:var(--primary-text); display:flex; align-items:center; justify-content:center; font-size:12px; flex-shrink:0; border:1px solid rgba(5,255,173,.2); }
.ps-sub-title { font-size:12px; font-weight:700; text-transform:uppercase; }
.ps-sub-desc { font-size:11px; color:var(--text-secondary); margin-top:2px; }
.ps-completed-by { display:flex; align-items:center; gap:8px; font-size:11px; color:var(--text-muted); justify-content:flex-end; }
.ps-user { display:flex; align-items:center; gap:8px; }
.ps-avatar { width:28px; height:28px; border-radius:50%; background:linear-gradient(135deg,var(--primary),var(--secondary)); flex-shrink:0; }
.ps-user strong { font-size:12px; color:var(--text-primary); }
.ps-date { font-size:10px; color:var(--primary-text); }
.ps-edit-btn { font-size:11px; font-weight:600; color:var(--secondary); background:var(--secondary-dim); border:1px solid rgba(197,53,255,.2); padding:4px 12px; border-radius:8px; cursor:pointer; margin-left:auto; transition:all .2s; }
.ps-edit-btn:hover { background:var(--secondary); color:#fff; }

/* CTA chips — secondary glow to call to action */
.ps-chip-cta { background:rgba(197,53,255,.1); color:#C535FF; border-color:rgba(197,53,255,.3); animation:psGlow 2s ease-in-out infinite; }
@keyframes psGlow { 0%,100%{box-shadow:0 0 0 0 rgba(197,53,255,.15)} 50%{box-shadow:0 0 12px rgba(197,53,255,.25)} }
.ps-clickable { cursor:pointer; }

/* Expand panels */
.ps-panel { background:var(--bg-primary); border:1px solid var(--border); border-radius:12px; padding:14px; margin:4px 0; animation:demoFadeIn .3s ease; }

/* Action buttons row */
.ps-action-row { display:flex; gap:8px; margin-top:12px; }
.ps-action-btn { flex:1; padding:10px 12px; border-radius:10px; font-size:13px; font-weight:600; cursor:pointer; border:2px solid transparent; transition:all .2s; }
.ps-action-c { background:rgba(11,174,90,.1); color:#0bae5a; border-color:#0bae5a; }
.ps-action-c:hover { background:#0bae5a; color:#fff; }
.ps-action-nc { background:rgba(249,105,0,.1); color:#f96900; border-color:#f96900; }
.ps-action-nc:hover { background:#f96900; color:#fff; }
[data-theme="dark"] .ps-action-c { background:rgba(11,174,90,.08); }
[data-theme="dark"] .ps-action-nc { background:rgba(249,105,0,.08); }

/* -- Guided Preview -- */
.tablet-frame { max-width:300px; margin:0 auto; background:var(--bg-elevated); border:2px solid var(--border); border-radius:20px; padding:10px; }
.tablet-notch { width:40px; height:4px; background:var(--border); border-radius:2px; margin:0 auto 10px; }
.tablet-screen { background:var(--bg-primary); border-radius:12px; padding:14px; position:relative; overflow:hidden; }
.guide-header { font-size:14px; font-weight:600; margin-bottom:14px; padding-bottom:6px; border-bottom:1px solid var(--border); }
.guide-field { padding:8px 0; }
.guide-label { font-size:11px; font-weight:500; color:var(--text-secondary); display:block; margin-bottom:4px; }
.guide-input-row { display:flex; justify-content:space-between; align-items:center; }
.guide-input-val { font-size:20px; font-weight:700; color:var(--primary-text); }
.guide-range { font-size:10px; color:var(--text-muted); }
.guide-bar { height:5px; background:var(--slider-track); border-radius:3px; margin-top:6px; position:relative; }
.guide-bar-fill { width:65%; height:100%; background:var(--primary); border-radius:3px; }
.guide-bar-marker { position:absolute; left:65%; top:-4px; width:13px; height:13px; background:var(--primary); border-radius:50%; box-shadow:0 0 8px var(--primary-glow); transform:translateX(-50%); }
.guide-choice { display:flex; gap:6px; }
.guide-opt { flex:1; padding:7px 10px; border-radius:8px; font-size:12px; font-weight:600; text-align:center; border:1px solid var(--border); color:var(--text-secondary); }
.guide-opt-active { background:rgba(11,174,90,.1); border-color:#0bae5a; color:#0bae5a; }
.guide-submit { width:100%; padding:9px; border-radius:10px; background:var(--primary); color:#0A0E13; font-size:13px; font-weight:600; border:none; cursor:default; }
.guide-pointer { position:absolute; width:22px; height:22px; border-radius:50%; border:2px solid var(--primary); box-shadow:0 0 10px var(--primary-glow); pointer-events:none; opacity:0; }
.demo-panel.active .guide-pointer { animation:guidePoint 5s ease-in-out infinite; }
@keyframes guidePoint { 0%,100%{top:62px;left:130px;opacity:0;transform:scale(.7)} 8%{opacity:1;transform:scale(1)} 28%{top:62px;left:130px;opacity:1} 33%{opacity:0} 38%{top:120px;left:50px;opacity:0;transform:scale(.7)} 46%{opacity:1;transform:scale(1)} 62%{top:120px;left:50px;opacity:1} 67%{opacity:0} 72%{top:175px;left:130px;opacity:0} 78%{opacity:1;transform:scale(1)} 92%{top:175px;left:130px;opacity:1} }
.guide-caption { text-align:center; font-size:13px; color:var(--text-secondary); margin-top:14px; }
.guide-caption strong { color:var(--primary-text); }

/* -- Dashboard Demo -- */
.dash-demo { }
.dash-topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.dash-title { font-size:15px; font-weight:700; }
.dash-customize { font-size:11px; color:var(--primary-text); font-weight:600; padding:4px 10px; border-radius:8px; background:var(--primary-dim); border:1px solid rgba(5,255,173,.15); cursor:default; }
.dash-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.dash-widget { padding:12px; border-radius:12px; background:var(--bg-primary); border:1px solid var(--border); overflow:hidden; }
.dash-widget-wide { grid-column:1/-1; }
.dash-wh { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.dash-wt { font-size:12px; font-weight:600; }
.dash-wval { font-size:14px; font-weight:700; color:var(--primary-text); }
.dash-wbadge { font-size:10px; color:var(--text-muted); }
/* Activity */
.dash-activity { display:flex; gap:8px; overflow-x:auto; padding-bottom:4px; }
.dash-act-col { min-width:110px; display:flex; flex-direction:column; gap:4px; }
.dash-act-date { font-size:9px; font-weight:600; color:var(--text-muted); margin-bottom:2px; }
.dash-act-card { font-size:9px; font-weight:600; padding:5px 8px; border-radius:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#fff; }
.dash-act-green { background:#0bae5a; }
.dash-act-orange { background:#f96900; }
.dash-act-purple { background:#c535ff; }
.dash-act-pink { background:#FF919D; color:#1D252C; }
/* Tabs */
.dash-tabs { display:flex; gap:4px; margin-bottom:8px; }
.dash-tab { font-size:10px; font-weight:600; padding:3px 8px; border-radius:6px; color:var(--text-muted); cursor:default; }
.dash-tab-active { background:var(--primary-dim); color:var(--primary-text); }
/* List */
.dash-list { display:flex; flex-direction:column; gap:4px; }
.dash-list-item { font-size:11px; font-weight:500; padding:6px 8px; border-radius:6px; background:var(--surface); display:flex; justify-content:space-between; align-items:center; }
.dash-list-tag { font-size:9px; font-weight:600; padding:2px 6px; border-radius:4px; }
.dash-tag-green { background:rgba(11,174,90,.12); color:#0bae5a; }
.dash-tag-orange { background:rgba(249,105,0,.12); color:#f96900; }
/* Donuts */
.dash-donut-wrap { display:flex; align-items:center; gap:10px; }
.dash-donut { width:70px; height:70px; flex-shrink:0; transform:rotate(-90deg); }
.donut-seg { transition:stroke-dasharray .8s ease; }
.dash-donut-legend { display:flex; flex-direction:column; gap:3px; }
.dash-donut-legend span { font-size:9px; color:var(--text-secondary); display:flex; align-items:center; gap:5px; }
.dash-donut-legend i { width:8px; height:8px; border-radius:2px; display:inline-block; }

/* -- Cost Analysis -- */
.cost-analysis { font-size:12px; }
.ca-product { display:flex; justify-content:space-between; align-items:center; padding:10px 14px; border-radius:10px; background:var(--bg-primary); border:1px solid var(--border); border-left:3px solid var(--primary); margin-bottom:12px; }
.ca-product-name { font-size:13px; font-weight:700; display:block; }
.ca-product-ref { font-size:10px; color:var(--text-muted); }
.ca-product-qty { font-size:12px; color:var(--text-secondary); text-align:right; }
.ca-product-qty strong { font-size:16px; color:var(--text-primary); }
.ca-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:12px; }
.ca-card { padding:10px; border-radius:10px; background:var(--bg-primary); border:1px solid var(--border); }
.ca-card-alert { border-color:rgba(249,105,0,.25); }
.ca-card-head { display:flex; align-items:center; gap:5px; font-size:11px; font-weight:600; margin-bottom:6px; }
.ca-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.ca-dot-green { background:#0bae5a; }
.ca-dot-pink { background:#f96900; }
.ca-badge { font-size:10px; font-weight:700; padding:1px 6px; border-radius:4px; margin-left:auto; }
.ca-badge-ok { background:rgba(11,174,90,.12); color:#0bae5a; }
.ca-badge-bad { background:rgba(249,105,0,.12); color:#f96900; }
.ca-card-row { display:flex; justify-content:space-between; font-size:11px; color:var(--text-secondary); padding:2px 0; }
.ca-card-row span:last-child { font-weight:600; color:var(--text-primary); }
.ca-card-label { color:var(--text-muted); }
.ca-tree { padding:12px; border-radius:10px; background:var(--bg-primary); border:1px solid var(--border); margin-bottom:12px; }
.ca-tree-title { font-size:11px; font-weight:600; color:var(--text-muted); margin-bottom:10px; }
.ca-tree-bubbles { display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:10px; flex-wrap:wrap; }
.ca-bubble { padding:8px 12px; border-radius:12px; text-align:center; min-width:80px; }
.ca-bubble-green { background:rgba(5,255,173,.08); border:1px solid rgba(5,255,173,.2); }
.ca-bubble-pink { background:rgba(249,105,0,.06); border:1px solid rgba(249,105,0,.2); }
.ca-bubble-total { background:rgba(5,255,173,.12); border:1.5px solid var(--primary); }
.ca-bubble-label { font-size:9px; font-weight:600; color:var(--text-muted); text-transform:uppercase; }
.ca-bubble-val { font-size:13px; font-weight:700; color:var(--text-primary); }
.ca-bubble-pct { font-size:10px; color:var(--text-muted); }
.ca-tree-plus, .ca-tree-eq { font-size:14px; font-weight:700; color:var(--text-muted); }
.ca-bar-container { display:flex; height:8px; border-radius:4px; overflow:hidden; margin-bottom:4px; }
.ca-bar-fill { height:100%; transition:width 1s ease; }
.ca-bar-green { background:var(--primary); }
.ca-bar-pink { background:#f96900; }
.ca-bar-legend { display:flex; justify-content:space-between; font-size:10px; color:var(--text-muted); }
.ca-table { padding:10px; border-radius:10px; background:var(--bg-primary); border:1px solid var(--border); }
.ca-table-title { font-size:11px; font-weight:600; color:var(--text-muted); margin-bottom:8px; }
.ca-table-head { display:grid; grid-template-columns:1.4fr 1fr 1fr 0.7fr 0.8fr; gap:4px; font-size:10px; font-weight:600; color:var(--text-muted); text-transform:uppercase; padding:4px 0; border-bottom:1px solid var(--border); margin-bottom:4px; }
.ca-table-row { display:grid; grid-template-columns:1.4fr 1fr 1fr 0.7fr 0.8fr; gap:4px; font-size:11px; padding:5px 0; border-bottom:1px solid var(--border); align-items:center; }
.ca-ecart { font-weight:600; font-size:10px; }
.ca-ecart-ok { color:#0bae5a; }
.ca-ecart-warn { color:#f96900; }
.ca-table-row:last-child { border-bottom:none; }
.ca-art { display:flex; align-items:center; gap:6px; font-weight:600; }
.ca-art-dot { width:6px; height:6px; border-radius:50%; background:var(--primary); flex-shrink:0; }

/* -- Toast -- */
.toast-container { position:fixed; bottom:24px; right:24px; z-index:9000; display:flex; flex-direction:column; gap:12px; max-width:380px; }
.toast { display:flex; gap:12px; padding:16px 20px; background:var(--dialog-bg); border:1px solid var(--border); border-radius:16px; box-shadow:0 16px 48px rgba(0,0,0,.3); animation:toastSlideIn .4s ease; align-items:flex-start; }
.toast-success { border-color:#0bae5a; }
.toast-warn { border-color:#f96900; }
@keyframes toastSlideIn { from{opacity:0;transform:translateX(40px)} to{opacity:1;transform:translateX(0)} }
.toast-icon { font-size:20px; flex-shrink:0; }
.toast-body { flex:1; }
.toast-message { font-size:13px; font-weight:500; margin-bottom:8px; line-height:1.4; }
.toast-close { width:24px; height:24px; border-radius:6px; background:var(--surface); border:1px solid var(--border); font-size:14px; color:var(--text-secondary); cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.toast .btn-primary { padding:8px 16px; font-size:12px; }

/* ---------- ERP SECTION ---------- */

.erp-section {
  padding: 80px 0;
}

.erp-card {
  border-radius: 24px;
  padding: 48px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

.erp-card h3 {
  margin-bottom: 8px;
}

.erp-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
}

.erp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.erp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.erp-item:hover {
  border-color: var(--primary);
  background: var(--primary-dim);
}

.erp-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

/* ---------- SERVICES ---------- */

.services-section {
  padding: 100px 0;
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.service-main {
  border-radius: 24px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(5, 255, 173, 0.08), rgba(5, 255, 173, 0.02));
  border: 1px solid rgba(5, 255, 173, 0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-main-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-text);
}

.service-main h3 {
  color: var(--text-primary);
}

.service-main p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.service-main-img {
  margin-top: auto;
  max-width: 300px;
  align-self: center;
}

.services-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-card {
  flex: 1;
  border-radius: 20px;
  padding: 32px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: var(--card-shadow);
  transform: translateY(-2px);
}

.service-card h4 {
  font-size: 18px;
  font-weight: 600;
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- WHY JUSTUP ---------- */

.why-section {
  padding: 100px 0;
}

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

.why-left h2 {
  margin-bottom: 16px;
}

.why-left p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.why-card {
  border-radius: 24px;
  padding: 36px;
  background: var(--primary);
  color: #0A0E13;
}

.why-card-label {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 20px;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-list li {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  padding-left: 20px;
  position: relative;
}

.why-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0A0E13;
  opacity: 0.5;
}

/* ---------- PRICING ---------- */

.pricing-section {
  padding: 100px 0;
}

.pricing-header {
  text-align: center;
  margin-bottom: 60px;
}

.pricing-header p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Variable pricing explanation */
.pricing-explainer, .roi-gains {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.explainer-card, .roi-gain-card {
  border-radius: 20px;
  padding: 28px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.explainer-card:hover, .roi-gain-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
}

.explainer-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.explainer-card h4, .roi-gain-card h4 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.explainer-card p, .roi-gain-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Pricing simulator */
.simulator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.simulator-controls {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.slider-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-text);
  min-width: 60px;
  text-align: right;
}

/* Custom range input */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--slider-track);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 12px var(--primary-glow), 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px var(--primary-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 12px var(--primary-glow), 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Simulator result card */
.simulator-result {
  border-radius: 24px;
  padding: 40px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  position: sticky;
  top: 120px;
}

.result-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.result-total {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 32px;
}

.result-amount {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--primary-text);
  line-height: 1;
  transition: all 0.3s ease;
}

.result-currency {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
}

.result-period {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
}

.result-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.breakdown-label {
  color: var(--text-secondary);
}

.breakdown-value {
  font-weight: 600;
  color: var(--text-primary);
}

.breakdown-row.total-row {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.breakdown-row.total-row .breakdown-label,
.breakdown-row.total-row .breakdown-value {
  font-weight: 700;
  font-size: 16px;
  color: var(--primary-text);
}

.simulator-cta {
  margin-top: 24px;
  width: 100%;
}

/* Base pricing card */
.base-pricing {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.base-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.base-price-row .label {
  color: var(--text-secondary);
}

.base-price-row .value {
  font-weight: 600;
}

.base-price-row .value.primary { color: var(--primary-text); }

/* ---------- CTA SECTION ---------- */

.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 255, 173, 0.05), rgba(173, 5, 255, 0.05));
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-content h2 {
  max-width: 600px;
}

.cta-content p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */

.site-footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .nav-logo { height: 24px; }

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--primary-text); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.25s;
  cursor: pointer;
}

.back-to-top:hover {
  background: var(--primary);
  color: #0A0E13;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ---------- CONTACT DIALOG ---------- */

.dialog-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s;
}

.dialog-overlay.active {
  display: block;
  opacity: 1;
}

.dialog-panel {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 9999;
  width: 90%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--dialog-bg);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  opacity: 0;
  transition: all 0.3s ease;
}

.dialog-panel.active {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.dialog-header h2 {
  font-size: 28px;
  text-align: left;
}

.dialog-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.dialog-close:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.dialog-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 400;
  transition: all 0.2s;
  outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  margin-top: 8px;
}

/* ---------- SCROLL REVEAL ANIMATIONS ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.4s; }
.stagger-children.revealed > *:nth-child(7) { transition-delay: 0.48s; }

.stagger-children.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- KEYFRAMES ---------- */

@keyframes heroBlob1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(50px, -50px); }
  66% { transform: translate(-30px, 30px); }
}

@keyframes heroBlob2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-40px, 40px); }
  66% { transform: translate(60px, -20px); }
}

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

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
  50% { box-shadow: 0 0 40px var(--primary-glow), 0 0 60px rgba(5, 255, 173, 0.1); }
}

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

@keyframes confettiBurst {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-50px) translateX(var(--dx, 10px)) scale(0.3); }
}

/* ---------- RESPONSIVE ---------- */

/* -- Tablet (max 1024px) -- */
@media screen and (max-width: 1024px) {
  .container { padding: 0 20px; }
  section { padding: 70px 0; }

  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-inner, .hero-inner-full { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-content, .hero-content-center { align-items: center; }
  .hero-badge { margin: 0 auto; }
  .hero-subtitle { margin: 0 auto; }
  .hero-buttons { justify-content: center; }
  .hero-scene { max-width: 100%; overflow: hidden; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-number { font-size: 36px; }

  .features-layout { grid-template-columns: 1fr; gap: 24px; }
  .demo-container { position: static; min-height: auto; }
  .demo-panel { min-height: auto; padding: 16px; }

  .pricing-explainer, .roi-gains { grid-template-columns: repeat(2, 1fr); }
  .simulator-container { grid-template-columns: 1fr; }
  .simulator-result { position: static; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }

  .about-note { padding: 28px; flex-direction: column; transform: rotate(-0.5deg); }

  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-links { gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    padding-top: 80px;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 999;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links.nav-open a {
    font-size: 20px;
    font-weight: 600;
    padding: 12px 24px;
  }

  .nav-mobile-toggle {
    display: flex;
    z-index: 1000;
  }

  .nav-mobile-toggle.is-open span { background: transparent; }
  .nav-mobile-toggle.is-open span::before { transform: rotate(45deg); top: 0; }
  .nav-mobile-toggle.is-open span::after { transform: rotate(-45deg); bottom: 0; }
}

/* -- Mobile (max 640px) -- */
@media screen and (max-width: 640px) {
  .container { padding: 0 16px; }
  section { padding: 48px 0; }

  h1 { font-size: 32px; line-height: 1.1; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }

  .hero { padding: 90px 0 40px; }
  .hero-subtitle { font-size: 15px; }
  .hero-badge { font-size: 11px; }

  /* Buttons: full width, proper touch targets */
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary { width: 100%; justify-content: center; min-height: 48px; }
  .btn-primary, .btn-secondary, .btn-dark { min-height: 48px; font-size: 15px; }

  /* Nav — compact on mobile */
  .navbar { top: 8px; width: calc(100% - 24px); max-width: calc(100vw - 24px); padding: 6px 6px 6px 14px; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }
  .nav-logo { height: 22px; }
  .theme-toggle { width: 34px; height: 34px; }
  .nav-actions { gap: 6px; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-number { font-size: 32px; }
  .stat-label { font-size: 12px; }

  /* Hero scene: full width bleed on mobile */
  .hero-scene { margin: 0 -16px; max-width: none; }

  /* About */
  .about-note { padding: 20px; }
  .about-texts { font-size: 15px; }

  /* Features / demos */
  .feature-btn { padding: 14px 16px; }
  .feature-btn-title { font-size: 14px; }
  .feature-btn-desc { font-size: 12px; }
  .feature-btn-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }

  /* Control matrix: reduce columns for mobile */
  .mx-grid { grid-template-columns: 70px repeat(5, 1fr); gap: 1px; }
  .mx-label { font-size: 8px; padding: 2px; }
  .mx-time { font-size: 8px; }
  .mx-dot { width: 22px; height: 22px; font-size: 10px; }
  .mx-cell { min-height: 28px; }
  .mx-title { font-size: 11px; }
  .control-popup { min-width: 220px; padding: 16px; }

  /* Sankey: allow horizontal scroll */
  .demo-panel[data-demo="1"] { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sankey-svg { min-width: 550px; }

  /* Process starter */
  .ps-chip { padding: 8px 12px; font-size: 11px; }

  /* Cost analysis */
  .ca-cards { grid-template-columns: 1fr; gap: 6px; }
  .ca-tree-bubbles { gap: 6px; }
  .ca-bubble { min-width: 70px; padding: 6px 8px; }
  .ca-bubble-val { font-size: 12px; }
  .ca-table-head, .ca-table-row { grid-template-columns: 1.2fr 0.8fr 0.8fr 0.6fr 0.7fr; font-size: 9px; }

  /* Dashboard */
  .dash-grid { grid-template-columns: 1fr; }
  .dash-widget-wide { grid-column: auto; }
  .dash-act-col { min-width: 90px; }

  /* Pricing */
  .pricing-explainer, .roi-gains { grid-template-columns: 1fr; gap: 12px; }
  .result-amount { font-size: 40px; }
  .slider-value { font-size: 20px; }
  .base-pricing { padding: 14px; }

  /* ERP */
  .erp-grid { grid-template-columns: 1fr; }
  .erp-card { padding: 28px 20px; }

  /* Services */
  .service-main { padding: 28px; }
  .service-card { padding: 24px; }

  /* Why */
  .why-card { padding: 24px; }
  .why-list li { font-size: 15px; }

  /* Dialog */
  .dialog-panel { padding: 20px; width: 95%; }
  .dialog-header h2 { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }

  /* Footer */
  .footer-links { flex-direction: column; gap: 20px; }
  .footer-tagline { font-size: 13px; }

  /* Toast */
  .toast-container { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .toast { padding: 12px 16px; }

  /* Scroll indicator */
  .scroll-indicator { display: none; }
}

/* ---------- SCROLL NAV SIDEBAR ---------- */

.scroll-nav {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 900;
}

.scroll-nav__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
}

.scroll-nav__dot:hover {
  opacity: 0.7;
  transform: scale(1.3);
}

.scroll-nav__dot.is-active {
  opacity: 1;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Label always visible */
.scroll-nav__dot::before {
  content: attr(data-label);
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font-heading);
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.3s;
}

.scroll-nav__dot.is-active::before {
  color: var(--primary-text);
  font-weight: 600;
}

@media screen and (max-width: 768px) {
  .scroll-nav { display: none; }
}

/* ---------- LANGUAGE SWITCHER ---------- */

.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.lang-switcher-btn:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--primary);
}

[data-theme="light"] .lang-switcher-btn:hover {
  background: rgba(0,0,0,.04);
}

.lang-flag {
  font-size: 15px;
  line-height: 1;
}

.lang-code {
  letter-spacing: 0.5px;
}

.lang-caret {
  opacity: 0.5;
  transition: transform 0.2s;
}

.lang-switcher-btn--open .lang-caret {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  padding: 4px;
  background: var(--bg-card, #14161A);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
  z-index: 1000;
}

[data-theme="light"] .lang-dropdown {
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

.lang-dropdown--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
}

.lang-option:hover {
  background: rgba(5,255,173,.08);
}

.lang-option--active {
  background: rgba(5,255,173,.12);
  color: var(--primary-text);
  font-weight: 600;
}

.lang-option-label {
  flex: 1;
}

.lang-option-code {
  font-size: 11px;
  opacity: 0.4;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@media screen and (max-width: 768px) {
  .lang-switcher-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
  .lang-flag { font-size: 13px; }
  .lang-code { display: none; }
  .lang-caret { display: none; }
  .lang-dropdown {
    right: -8px;
    min-width: 140px;
  }
}

/* ---------- CUSTOM CURSOR ---------- */

/* Hide default cursor when custom cursor is active */
.ju-custom-cursor,
.ju-custom-cursor * {
  cursor: none !important;
}

.ju-cursor-dot,
.ju-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  will-change: transform, opacity;
  transition: opacity 0.2s ease;
}

.ju-cursor-dot {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: rgba(5, 255, 173, 0.7);
}

.ju-cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(5, 255, 173, 0.25);
  background: rgba(5, 255, 173, 0.04);
  transition: border-color 0.3s ease, background 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* Hover state */
.ju-cursor-ring.is-hovering {
  border-color: rgba(5, 255, 173, 0.45);
  background: rgba(5, 255, 173, 0.08);
}

.ju-cursor-dot.is-hovering {
  background: rgba(5, 255, 173, 0.9);
}

/* Click squeeze — uses scale not transform to avoid overriding translate position */
.ju-cursor-dot.is-clicking {
  scale: 0.6;
  transition: scale 0.08s ease;
}
.ju-cursor-dot:not(.is-clicking) {
  scale: 1;
  transition: scale 0.15s ease;
}

/* Hide on touch / mobile */
@media (hover: none), (pointer: coarse) {
  .ju-cursor-dot,
  .ju-cursor-ring {
    display: none !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ju-cursor-dot,
  .ju-cursor-ring {
    display: none !important;
  }
  .ju-custom-cursor,
  .ju-custom-cursor * {
    cursor: auto !important;
  }
}

/* ---------- THEME TRANSITION OVERLAY ---------- */

.theme-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  will-change: clip-path;
}

/* ---------- SCROLL PROGRESS BAR ---------- */

.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #05FFAD, #C535FF);
  z-index: 100000;
  pointer-events: none;
  transition: width 80ms linear;
  will-change: width;
}

/* ==========================================================================
   EASTER EGGS
   ========================================================================== */

/* --- Confetti --- */

.ee-confetti-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 100000;
}

.ee-confetti {
  position: absolute;
  top: -20px;
  left: var(--ee-left);
  width: var(--ee-size);
  height: var(--ee-size);
  background: var(--ee-color);
  border-radius: 2px;
  opacity: 0;
  animation: eeConfettiFall var(--ee-duration) ease-out var(--ee-delay) forwards;
}

/* Alternate shapes: every 3rd particle is a circle */
.ee-confetti:nth-child(3n) {
  border-radius: 50%;
}
/* Every 5th particle is a thin rectangle (streamer) */
.ee-confetti:nth-child(5n) {
  width: calc(var(--ee-size) * 0.4);
  height: calc(var(--ee-size) * 2);
  border-radius: 1px;
}

@keyframes eeConfettiFall {
  0% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) translateX(var(--ee-drift)) rotate(var(--ee-rotation));
  }
}

/* --- Rainbow border glow --- */

body.ee-rainbow-border {
  animation: eeRainbowGlow 2s ease-in-out forwards;
}

@keyframes eeRainbowGlow {
  0% {
    box-shadow:
      inset 0 0 40px 10px rgba(5, 255, 173, 0.5),
      inset 0 0 80px 20px rgba(197, 53, 255, 0.3);
  }
  25% {
    box-shadow:
      inset 0 0 40px 10px rgba(197, 53, 255, 0.5),
      inset 0 0 80px 20px rgba(249, 105, 0, 0.3);
  }
  50% {
    box-shadow:
      inset 0 0 40px 10px rgba(249, 105, 0, 0.5),
      inset 0 0 80px 20px rgba(255, 211, 110, 0.3);
  }
  75% {
    box-shadow:
      inset 0 0 40px 10px rgba(255, 211, 110, 0.5),
      inset 0 0 80px 20px rgba(5, 255, 173, 0.3);
  }
  100% {
    box-shadow:
      inset 0 0 0 0 transparent,
      inset 0 0 0 0 transparent;
  }
}

/* --- Logo bounce --- */

.ee-logo-bounce {
  animation: eeLogoBounce 0.8s ease-in-out;
  transform-origin: center center;
}

@keyframes eeLogoBounce {
  0%   { transform: scale(1) rotate(0deg); }
  15%  { transform: scale(1.2) rotate(-10deg); }
  30%  { transform: scale(0.9) rotate(5deg); }
  45%  { transform: scale(1.15) rotate(-5deg); }
  60%  { transform: scale(0.95) rotate(2deg); }
  75%  { transform: scale(1.05) rotate(-1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* --- Matrix mode --- */

body.ee-matrix-dimmed > *:not(.ee-matrix-canvas):not(.toast-container):not(#toastContainer) {
  filter: brightness(0.3);
  transition: filter 0.5s ease;
}

.ee-matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
}

/* ---------- 3D TILT SHINE OVERLAY ---------- */

.tilt-shine {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  z-index: 10;
  mix-blend-mode: soft-light;
  transition: opacity 0.3s;
}

.v3-scene-box {
  transition: transform 0.05s linear;
}

/* ---------- FLIP COUNTER ---------- */

/* Rolling digit counters */
.roll-counter {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}

.roll-digit {
  display: inline-block;
  height: 1.1em;
  overflow: hidden;
  position: relative;
  width: 0.65em;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: inherit;
  line-height: 1.1;
}

.roll-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.roll-num {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.1em;
  flex-shrink: 0;
}

/* Reduced motion: no tilt, no flip animation */
@media (prefers-reduced-motion: reduce) {
  .tilt-shine { display: none; }
  .v3-scene-box { transform: none !important; }
  .flip-digit__flap--flip { animation: none; }
}

/* ==========================================================================
   TESTIMONIALS + AUDIT TIMELINE
   ========================================================================== */

/* ---------- TESTIMONIALS SECTION ---------- */

.testimonials-section {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.testimonials-title {
  text-align: center;
  margin-bottom: 48px;
}

/* Carousel */
.testimonials-carousel {
  position: relative;
  max-width: 720px;
  margin: 0 auto 48px;
}

.testimonial-cards {
  position: relative;
  min-height: 260px;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 32px 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.testimonial-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-green);
  opacity: 0.3;
  position: absolute;
  top: 12px;
  left: 28px;
}

.testimonial-text {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 24px;
  color: var(--text-primary);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.testimonial-company-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: rgba(5, 255, 173, 0.1);
  border: 1px solid rgba(5, 255, 173, 0.2);
  color: var(--color-green);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

[data-theme="light"] .testimonial-company-badge {
  background: rgba(11, 122, 63, 0.08);
  border-color: rgba(11, 122, 63, 0.15);
  color: var(--color-green-dk);
}

/* Dots */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--text-secondary);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.testimonial-dot:hover {
  border-color: var(--color-green);
  transform: scale(1.2);
}

.testimonial-dot.active {
  background: var(--color-green);
  border-color: var(--color-green);
}

/* Company logo badges */
.testimonials-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
}

.logo-badge {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: border-color 0.3s, color 0.3s;
}

.logo-badge:hover {
  border-color: var(--color-green);
  color: var(--text-primary);
}

/* ---------- AUDIT TIMELINE ---------- */

.audit-timeline-section {
  padding-top: 40px;
}

.audit-timeline-title {
  text-align: center;
  margin-bottom: 48px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.audit-timelines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.audit-timeline {
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

.audit-timeline--classic {
  background: rgba(255, 75, 75, 0.06);
  border: 1px solid rgba(255, 75, 75, 0.15);
}

.audit-timeline--justup {
  background: rgba(5, 255, 173, 0.06);
  border: 1px solid rgba(5, 255, 173, 0.15);
}

[data-theme="light"] .audit-timeline--classic {
  background: rgba(220, 38, 38, 0.05);
  border-color: rgba(220, 38, 38, 0.12);
}

[data-theme="light"] .audit-timeline--justup {
  background: rgba(11, 122, 63, 0.05);
  border-color: rgba(11, 122, 63, 0.12);
}

/* Header */
.audit-timeline__header {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.audit-timeline__header--red {
  color: #ff5c5c;
}

.audit-timeline__header--green {
  color: var(--color-green);
}

[data-theme="light"] .audit-timeline__header--red {
  color: #dc2626;
}

[data-theme="light"] .audit-timeline__header--green {
  color: var(--color-green-dk);
}

.audit-timeline__icon {
  font-size: 1.3rem;
}

/* Track */
.audit-timeline__track {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}

/* Nodes */
.audit-node {
  display: grid;
  grid-template-columns: 14px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.audit-node.audit-node--visible {
  opacity: 1;
  transform: translateY(0);
}

.audit-node__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
  grid-row: 1 / -1;
  grid-column: 1;
  align-self: start;
}

.audit-node__dot--red {
  background: #ff5c5c;
  box-shadow: 0 0 8px rgba(255, 92, 92, 0.4);
}

.audit-node__dot--green {
  background: var(--color-green);
  box-shadow: 0 0 8px rgba(5, 255, 173, 0.4);
}

.audit-node__line {
  width: 2px;
  height: 20px;
  margin-left: 6px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.audit-node__line.audit-node--visible {
  opacity: 1;
}

.audit-node__line--red {
  background: rgba(255, 92, 92, 0.3);
}

.audit-node__line--green {
  background: rgba(5, 255, 173, 0.3);
}

.audit-node__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  grid-column: 2;
}

.audit-node__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
  grid-column: 2;
}

/* Result badge */
.audit-timeline__result {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.audit-timeline__result--red {
  background: rgba(255, 75, 75, 0.1);
}

.audit-timeline__result--green {
  background: rgba(5, 255, 173, 0.1);
}

[data-theme="light"] .audit-timeline__result--red {
  background: rgba(220, 38, 38, 0.08);
}

[data-theme="light"] .audit-timeline__result--green {
  background: rgba(11, 122, 63, 0.08);
}

.audit-result__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.audit-timeline__result--red .audit-result__number {
  color: #ff5c5c;
}

.audit-timeline__result--green .audit-result__number {
  color: var(--color-green);
}

[data-theme="light"] .audit-timeline__result--red .audit-result__number {
  color: #dc2626;
}

[data-theme="light"] .audit-timeline__result--green .audit-result__number {
  color: var(--color-green-dk);
}

.audit-result__label {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Responsive: stack timelines on mobile */
@media (max-width: 680px) {
  .audit-timelines {
    grid-template-columns: 1fr;
  }

  .testimonial-cards {
    min-height: 300px;
  }

  .testimonial-card {
    padding: 36px 20px 28px;
  }

  .testimonials-logos {
    gap: 10px;
  }

  .logo-badge {
    font-size: 0.78rem;
    padding: 8px 16px;
  }
}

/* ---------- BEFORE / AFTER SLIDER ---------- */

.ba-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.ba-header {
  text-align: center;
  margin-bottom: 48px;
}

.ba-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* Before/After — 3D Flip Cards */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  perspective: 1200px;
}

.flip-card {
  height: 240px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(.4, 0, .2, 1);
}

.flip-card:hover .flip-card-inner,
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 16px;
  text-align: center;
}

.flip-front {
  background: linear-gradient(135deg, rgba(255,107,61,.12), rgba(255,74,30,.06));
  border: 1px solid rgba(255,107,61,.2);
}

.flip-back {
  background: linear-gradient(135deg, rgba(5,255,173,.1), rgba(11,122,63,.06));
  border: 1px solid rgba(5,255,173,.25);
  transform: rotateY(180deg);
}

.flip-emoji { font-size: 36px; }
.flip-label { font: 600 14px/1.4 Sora, sans-serif; color: var(--text-primary); }
.flip-hint {
  font: 500 10px Sora, sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.25); margin-top: auto;
}
.flip-card:hover .flip-hint,
.flip-card.is-flipped .flip-hint { opacity: 0; }

.flip-tag {
  font: 700 10px Sora, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ju-green); margin-top: auto;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(5,255,173,.1); border: 1px solid rgba(5,255,173,.2);
}

[data-theme="light"] .flip-hint { color: rgba(29,37,44,.2); }
[data-theme="light"] .flip-front { background: linear-gradient(135deg, rgba(255,107,61,.08), rgba(255,74,30,.04)); border-color: rgba(255,107,61,.15); }
[data-theme="light"] .flip-back { background: linear-gradient(135deg, rgba(5,201,141,.08), rgba(11,122,63,.04)); border-color: rgba(5,201,141,.2); }
[data-theme="light"] .flip-tag { color: #009665; background: rgba(0,150,101,.08); border-color: rgba(0,150,101,.2); }

@media screen and (max-width: 1024px) {
  .flip-grid { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (max-width: 640px) {
  .flip-grid { grid-template-columns: repeat(2, 1fr); }
  .flip-card { height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .flip-card-inner { transition: none; }
}

.ba-panel-inner {
  padding: 40px 32px;
}

.ba-panel-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.ba-panel-title--before {
  color: var(--color-orange);
}

.ba-panel-title--after {
  color: var(--color-green);
}

.ba-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ba-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}
.ba-list li span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ba-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--surface);
}

.ba-panel--before .ba-icon {
  background: rgba(255, 107, 61, 0.12);
}

.ba-panel--after .ba-icon {
  background: rgba(5, 255, 173, 0.12);
}

/* Divider */
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  z-index: 10;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.ba-divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--color-orange), var(--color-green));
  opacity: 0.8;
}

.ba-divider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 11;
}

.ba-divider-handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* ---------- ROI CALCULATOR ---------- */

.roi-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.roi-header {
  text-align: center;
  margin-bottom: 48px;
}

.roi-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.roi-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.roi-controls {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.roi-card {
  border-radius: var(--radius-md);
  padding: 36px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--card-shadow);
}

.roi-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.roi-result-label {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.roi-result-value {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.3s;
}

.roi-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 0;
}

.roi-total-label {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.roi-total-value {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: var(--color-green);
  letter-spacing: -0.02em;
  transition: transform 0.3s ease;
}

.roi-total-value.roi-bump {
  transform: scale(1.08);
}

.roi-cta {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

/* B/A + ROI responsive */
@media (max-width: 1024px) {
  .ba-slider { min-height: 360px; }
  .ba-panel-inner { padding: 32px 24px; }
  .roi-container { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ba-section { padding: 60px 0; }
  .ba-slider {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .ba-panel--before {
    border-right: none;
    border-bottom: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
  .ba-panel--after {
    border-left: none;
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
  .ba-divider {
    left: 0;
    right: 0;
    top: 50%;
    bottom: auto;
    width: 100%;
    height: 4px;
    transform: translateY(-50%);
    cursor: ns-resize;
  }
  .ba-divider-line {
    top: 50%;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 3px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, var(--color-orange), var(--color-green));
  }
  .ba-divider-handle {
    width: 40px;
    height: 40px;
  }
  .ba-panel-inner { padding: 28px 20px; }
  .ba-panel-title { font-size: 18px; margin-bottom: 20px; }
  .ba-list { gap: 14px; }
  .ba-list li { font-size: 14px; }

  .roi-section { padding: 60px 0; }
  .roi-card { padding: 24px; }
  .roi-result-value { font-size: 17px; }
}

/* ---------- PRINT ---------- */

@media print {
  .navbar, .hero-canvas-container, .theme-toggle, .scroll-indicator,
  .dialog-overlay, .dialog-panel, .back-to-top,
  .scroll-progress-bar { display: none !important; }

  body { background: #fff; color: #000; }

  * { box-shadow: none !important; }
}

/* ===== CONTACT FORM: honeypot, consent, status ===== */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1rem 0 0.25rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary, inherit);
  cursor: pointer;
}

.form-consent input[type="checkbox"] {
  margin-top: 0.2em;
  flex-shrink: 0;
  accent-color: #05FFAD;
}

.form-consent a {
  color: inherit;
  text-decoration: underline;
}

.form-status {
  min-height: 1.4em;
  margin: 0.5rem 0 0.25rem;
  font-size: 0.88rem;
}

.form-status.is-success { color: #05c98a; }
.form-status.is-error { color: #e5484d; }

.form-status a { color: inherit; text-decoration: underline; }

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== MOBILE NAV BURGER ===== */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media screen and (max-width: 1024px) {
  .nav-burger { display: flex; }
}

/* ===== ICON SVG (remplacement des emojis) ===== */
.erp-item-icon svg,
.explainer-icon svg,
.feature-btn-icon svg,
.flip-emoji svg,
.ai-badge svg {
  display: block;
  color: var(--primary-text);
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

@media screen and (max-width: 480px) {
  .theme-toggle { display: none; }
  .nav-container { gap: 10px; }
  .navbar { padding-left: 14px; }
}

/* ===== TRUST LINE (logiciel français, Avignon) ===== */
.hero-trust {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.footer-madein {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
