/* ==========================================================================
   FLEXDASH  Design System & Main Styles
   ========================================================================== */

/* ----- CSS Custom Properties (Light Theme) ----- */
:root {
  /* Brand Colors */
  --color-primary:       #0f172a;
  --color-primary-light: #1e293b;
  --color-accent-blue:   #2563eb;
  --color-accent-blue-hover: #1d4ed8;
  --color-cta:           #f97316;
  --color-cta-hover:     #ea580c;

  /* Module accent colors */
  --color-module-blue:   #2563eb;
  --color-module-orange: #f97316;
  --color-module-green:  #16a34a;
  --color-module-purple: #7c3aed;
  --color-module-teal:   #0d9488;

  /* Surfaces */
  --bg-body:             #f8fafc;
  --bg-surface:          #ffffff;
  --bg-surface-raised:   #ffffff;
  --bg-surface-subtle:   #f1f5f9;
  --bg-surface-muted:    #e2e8f0;

  /* Text */
  --text-primary:        #0f172a;
  --text-secondary:      #475569;
  --text-tertiary:       #94a3b8;
  --text-inverse:        #ffffff;

  /* Borders */
  --border-default:      #e2e8f0;
  --border-subtle:       #f1f5f9;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md:  0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg:  0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl:  0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-lg:   1.125rem;
  --font-size-xl:   1.25rem;
  --font-size-2xl:  1.5rem;
  --font-size-3xl:  1.875rem;
  --font-size-4xl:  2.25rem;
  --font-size-5xl:  3rem;
  --font-size-6xl:  3.75rem;

  --line-height-tight:  1.15;
  --line-height-snug:   1.3;
  --line-height-normal: 1.6;

  --font-weight-normal:   400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;
  --font-weight-extrabold:800;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   200ms ease;
  --transition-slow:   300ms ease;
}

/* ----- Dark Theme  warm-neutral charcoal, gelijk aan FlexDash dashboard ----- */
[data-theme="dark"] {
  --color-primary:       #f5f5f5;
  --color-primary-light: #d4d4d4;
  /* Brand kleuren blijven gelijk aan light mode (zoals in FlexDash dashboard) */
  --color-accent-blue:   #2563eb;
  --color-accent-blue-hover: #1d4ed8;
  --color-cta:           #f97316;
  --color-cta-hover:     #ea580c;

  /* Drie elevatie-niveaus: body (#171717) → canvas (#1f1f1f) → surface (#262626) */
  --bg-body:             #171717;
  --bg-surface:          #262626;
  --bg-surface-raised:   #2e2e2e;
  --bg-surface-subtle:   #1f1f1f;
  --bg-surface-muted:    #2a2a2a;

  --text-primary:        #f5f5f5;
  --text-secondary:      #d4d4d4;
  --text-tertiary:       #a3a3a3;
  --text-inverse:        #0f172a;

  --border-default:      #2a2a2a;
  --border-subtle:       #1f1f1f;

  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md:  0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg:  0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl:  0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}


/* ==========================================================================
   THEME-SWITCH REVEAL (View Transitions API)
   Cirkel groeit vanaf klikpositie en onthult het nieuwe thema.
   Firefox zonder flag valt automatisch terug op instant swap.
   ========================================================================== */

/* Voorkom flash van tussenkleuren tijdens een light/dark wissel.
   Tijdens de View Transition animeert alleen de circle-clip  niet
   elke individuele bg/border/color transition. */
.flexdash-no-transition,
.flexdash-no-transition *,
.flexdash-no-transition *::before,
.flexdash-no-transition *::after {
  transition: none !important;
  animation: none !important;
}

@supports (view-transition-name: root) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
  }
  /* Oud thema blijft onder als basis */
  ::view-transition-old(root) {
    z-index: 1;
  }
  /* Nieuw thema komt erbovenop in een groeiende cirkel vanaf klikpositie */
  ::view-transition-new(root) {
    z-index: 2;
    animation: flexdash-theme-reveal 520ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
    clip-path: circle(0 at var(--flexdash-theme-x, 50%) var(--flexdash-theme-y, 50%));
  }
  @keyframes flexdash-theme-reveal {
    to {
      clip-path: circle(150% at var(--flexdash-theme-x, 50%) var(--flexdash-theme-y, 50%));
    }
  }
}

/* Reduced-motion → geen reveal, instant swap */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
    clip-path: none !important;
  }
}


/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
  /* GEEN scroll-behavior: smooth  dat verstoort de meetlogica van GSAP
     ScrollTrigger (refresh zet scrollTop op 0 en smooth animeert dat).
     Smooth scrollen bij anker-klik wordt in main.js afgehandeld. */
  scroll-behavior: auto;
  scroll-padding-top: 80px;
  /* Geen horizontale scroll op smalle schermen. `clip` (niet `hidden`) laat de
     verticale scroll/ScrollTrigger intact maar snijdt b.v. het off-canvas-menu
     (translateX(100%) buiten beeld) weg dat anders mobiel h-scroll veroorzaakt. */
  overflow-x: clip;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

[data-theme="dark"] body {
  background-color: #171717;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 2px;
}


/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-cta);
  color: #fff;
  border-color: var(--color-cta);
}

.btn--primary:hover {
  background-color: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn--outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-default);
}

.btn--outline:hover {
  border-color: var(--color-accent-blue);
  color: var(--color-accent-blue);
  background-color: var(--bg-surface-subtle);
}

.btn--ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

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

.btn--lg {
  font-size: var(--font-size-base);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-lg);
}

.btn--block {
  width: 100%;
}


/* ==========================================================================
   SECTION HEADER (shared)
   ========================================================================== */

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section-header__tag {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-blue);
  background-color: color-mix(in srgb, var(--color-accent-blue) 10%, transparent);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-header__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-header__subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: var(--line-height-normal);
}


/* ==========================================================================
   HEADER
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 88px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
  transition: height 0.3s ease, background-color var(--transition-slow), box-shadow 0.3s ease;
}

.header--scrolled {
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border-default);
}

[data-theme="dark"] .header {
  background-color: rgba(23, 23, 23, 0.95);
}

[data-theme="dark"] .header--scrolled {
  background-color: rgba(23, 23, 23, 0.85);
  border-bottom-color: var(--border-default);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.header__logo-text {
  font-size: 1.5rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  transition: font-size 0.3s ease;
}

.header--scrolled .header__logo-text {
  font-size: var(--font-size-xl);
}

.header__logo-icon {
  transition: transform 0.3s ease;
}

.header--scrolled .header__logo-icon {
  transform: scale(0.85);
}

.header__nav-desktop {
  display: none;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.header__nav-link {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background-color var(--transition-fast), font-size 0.3s ease, padding 0.3s ease;
}

.header--scrolled .header__nav-link {
  font-size: var(--font-size-sm);
  padding: var(--space-2) var(--space-3);
}

.header__nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-subtle);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header__cta {
  display: none;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

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

.theme-toggle__icon--dark {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--light {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--dark {
  display: block;
}

/* Mobile menu toggle (hamburger) */
.header__menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
  position: relative;
  z-index: 200;
}

.header__menu-toggle:hover {
  background-color: var(--bg-surface-subtle);
}

.header__menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.header__menu-toggle[aria-expanded="true"] .header__menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__menu-toggle[aria-expanded="true"] .header__menu-bar:nth-child(2) {
  opacity: 0;
}

.header__menu-toggle[aria-expanded="true"] .header__menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================================================
   OFFCANVAS MOBILE NAV
   ========================================================================== */

/* Overlay / Backdrop */
.offcanvas-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}

.offcanvas-overlay--active {
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: auto;
}

[data-theme="dark"] .offcanvas-overlay--active {
  background-color: rgba(0, 0, 0, 0.6);
}

/* Panel */
.offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  width: min(340px, 85vw);
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-default);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

[data-theme="dark"] .offcanvas {
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
}

.offcanvas--open {
  transform: translateX(0);
}

/* Offcanvas header */
.offcanvas__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-default);
  flex-shrink: 0;
}

.offcanvas__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.offcanvas__close:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-subtle);
}

/* Offcanvas logo */
.offcanvas__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.offcanvas__logo-text {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Offcanvas body  nav links */
.offcanvas__body {
  flex: 1;
  padding: var(--space-6);
}

.offcanvas__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.offcanvas__nav-item {
  opacity: 0;
  transform: translateX(24px);
}

.offcanvas--open .offcanvas__nav-item {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.offcanvas--open .offcanvas__nav-item:nth-child(1) { transition-delay: 0.08s; }
.offcanvas--open .offcanvas__nav-item:nth-child(2) { transition-delay: 0.14s; }
.offcanvas--open .offcanvas__nav-item:nth-child(3) { transition-delay: 0.20s; }
.offcanvas--open .offcanvas__nav-item:nth-child(4) { transition-delay: 0.26s; }

.offcanvas__nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-4);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.offcanvas__nav-link svg {
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.offcanvas__nav-link:hover {
  background-color: var(--bg-surface-subtle);
  color: var(--color-accent-blue);
}

.offcanvas__nav-link:hover svg {
  color: var(--color-accent-blue);
}

/* Offcanvas footer */
.offcanvas__footer {
  padding: var(--space-6);
  border-top: 1px solid var(--border-default);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  opacity: 0;
  transform: translateY(12px);
}

.offcanvas--open .offcanvas__footer {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease 0.25s, transform 0.4s ease 0.25s;
}

/* Theme toggle row in offcanvas */
.offcanvas__theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.offcanvas__theme-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
}

/* ----- FlexDash sun/moon segmented theme toggle -----
   64×28 pill met twee 50%-helften (zon links, maan rechts).
   Sliding white thumb markeert de actieve helft. Active icon
   krijgt brand-kleur (zon → cta oranje, maan → accent blauw). */
.flexdash-theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 64px;
  height: 28px;
  padding: 2px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-default);
  border-radius: 9999px;
  cursor: pointer;
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.flexdash-theme-toggle:hover {
  border-color: var(--border-strong, var(--text-tertiary));
}

.flexdash-theme-toggle__icon {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-tertiary);
  transition: color var(--transition-base);
}

/* Active icoon  sun in light, moon in dark (brand-kleur) */
[data-theme="light"] .flexdash-theme-toggle__icon--sun,
:root:not([data-theme="dark"]) .flexdash-theme-toggle__icon--sun {
  color: var(--color-cta);
}

[data-theme="dark"] .flexdash-theme-toggle__icon--moon {
  color: var(--color-accent-blue);
}

/* Sliding thumb  markeert de actieve helft */
.flexdash-theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  background: var(--bg-surface);
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), background var(--transition-base);
  z-index: 1;
}

[data-theme="dark"] .flexdash-theme-toggle__thumb {
  transform: translateX(100%);
}

/* CTA in offcanvas */
.offcanvas__cta {
  font-size: var(--font-size-base);
}

/* Body scroll lock when offcanvas is open */
body.offcanvas-active {
  overflow: hidden;
}


/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  padding-top: 80px;
  padding-bottom: 0;
  overflow: visible;
}

/* Soft glow beneath the hero card for smooth transition */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(221, 227, 236, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

/* ----- Floating card that wraps all hero content ----- */
.hero__card {
  position: relative;
  background-color: #eef2f7;
  border-radius: 1rem;
  border: 1px solid var(--border-default);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(0, 0, 0, 0.03);
  margin: var(--space-2) var(--space-3) 0;
  padding-top: var(--space-6);
  padding-bottom: 0;
  overflow: hidden;
}


[data-theme="dark"] .hero__card {
  background-color: #1f1f1f;
  border-color: var(--border-default);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ----- Hero decorative background ----- */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Top gradient glow */
.hero__bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--color-accent-blue) 8%, transparent) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

[data-theme="dark"] .hero__bg-glow {
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--color-accent-blue) 12%, transparent) 0%,
    transparent 70%
  );
}

/* Floating widget shapes  variëren tussen kaarten, charts, KPI's en sparklines.
   Geïnspireerd op de FlexDash dashboard deco-blocks (charts, sparklines, KPI's). */
.hero__bg-widget {
  position: absolute;
  border-radius: 10px;
  opacity: 1;
}

[data-theme="dark"] .hero__bg-widget {
  opacity: 0.85;
}

/* --- Wide chart card (landscape, blue) --- */
.hero__bg-widget--chart-wide {
  width: 120px;
  height: 48px;
  top: 14%;
  left: 6%;
  transform: rotate(-6deg);
  border: 2px solid color-mix(in srgb, var(--color-accent-blue) 22%, transparent);
  background-color: color-mix(in srgb, var(--color-accent-blue) 6%, transparent);
  overflow: hidden;
}
.hero__bg-widget--chart-wide .hero__bg-widget-line {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--color-accent-blue) 35%, transparent);
}
.hero__bg-widget--chart-wide .hero__bg-widget-line--a {
  left: 10px; right: 10px; bottom: 10px;
}
.hero__bg-widget--chart-wide .hero__bg-widget-line--b {
  left: 10px; right: 30px; bottom: 18px;
  background: color-mix(in srgb, var(--color-accent-blue) 22%, transparent);
}

/* --- Tall KPI card (portrait, orange) --- */
.hero__bg-widget--kpi-tall {
  width: 44px;
  height: 64px;
  top: 8%;
  left: 22%;
  transform: rotate(8deg);
  border: 2px solid color-mix(in srgb, var(--color-cta) 28%, transparent);
  background-color: color-mix(in srgb, var(--color-cta) 8%, transparent);
}
.hero__bg-widget--kpi-tall .hero__bg-widget-bar {
  position: absolute;
  height: 3px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--color-cta) 40%, transparent);
}
.hero__bg-widget--kpi-tall .hero__bg-widget-bar--a {
  top: 10px; left: 8px; width: 18px;
}
.hero__bg-widget--kpi-tall .hero__bg-widget-bar--b {
  top: 18px; left: 8px; width: 26px;
  background: color-mix(in srgb, var(--color-cta) 24%, transparent);
}

/* --- Square stat card (blue) --- */
.hero__bg-widget--stat-square {
  width: 56px;
  height: 56px;
  top: 4%;
  right: 18%;
  border-radius: 12px;
  transform: rotate(-10deg);
  border: 2px solid color-mix(in srgb, var(--color-accent-blue) 18%, transparent);
  background-color: color-mix(in srgb, var(--color-accent-blue) 5%, transparent);
}

/* --- Mini bar chart (orange accent) --- */
.hero__bg-widget--bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  top: 22%;
  right: 6%;
  transform: rotate(-4deg);
}
.hero__bg-widget--bars span {
  display: block;
  width: 5px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--color-cta) 35%, transparent);
}
.hero__bg-widget--bars span:nth-child(1) { height: 14px; }
.hero__bg-widget--bars span:nth-child(2) { height: 22px; }
.hero__bg-widget--bars span:nth-child(3) { height: 16px; }
.hero__bg-widget--bars span:nth-child(4) {
  height: 28px;
  background: color-mix(in srgb, var(--color-cta) 50%, transparent);
}

/* --- Medium landscape card with chart squares (orange) --- */
.hero__bg-widget--chart-mid {
  width: 92px;
  height: 42px;
  top: 48%;
  right: 4%;
  transform: rotate(8deg);
  border: 2px solid color-mix(in srgb, var(--color-cta) 22%, transparent);
  background-color: color-mix(in srgb, var(--color-cta) 6%, transparent);
  overflow: hidden;
}
.hero__bg-widget--chart-mid .hero__bg-widget-block {
  position: absolute;
  bottom: 10px;
  border-radius: 2px;
}
.hero__bg-widget--chart-mid .hero__bg-widget-block--a {
  left: 10px; width: 18px; height: 8px;
  background: color-mix(in srgb, var(--color-cta) 32%, transparent);
}
.hero__bg-widget--chart-mid .hero__bg-widget-block--b {
  left: 32px; width: 14px; height: 14px;
  background: color-mix(in srgb, var(--color-cta) 24%, transparent);
}
.hero__bg-widget--chart-mid .hero__bg-widget-block--c {
  left: 50px; width: 18px; height: 6px;
  background: color-mix(in srgb, var(--color-cta) 18%, transparent);
}

/* --- Small dot accent (blue) --- */
.hero__bg-widget--dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  top: 38%;
  left: 4%;
  background: color-mix(in srgb, var(--color-accent-blue) 25%, transparent);
}

/* --- Small square stat (blue) --- */
.hero__bg-widget--stat-small {
  width: 50px;
  height: 50px;
  top: 50%;
  left: 8%;
  border-radius: 11px;
  transform: rotate(14deg);
  border: 2px solid color-mix(in srgb, var(--color-accent-blue) 18%, transparent);
  background-color: color-mix(in srgb, var(--color-accent-blue) 5%, transparent);
}

/* --- Mini sparkline SVG (primary blue) --- */
.hero__bg-widget--sparkline {
  width: 72px;
  height: 34px;
  top: 16%;
  right: 30%;
  transform: rotate(-3deg);
  color: color-mix(in srgb, var(--color-accent-blue) 55%, transparent);
}

/* Subtle dot grid pattern */
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    color-mix(in srgb, var(--text-tertiary) 15%, transparent) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

[data-theme="dark"] .hero__bg-grid {
  background-image: radial-gradient(
    color-mix(in srgb, var(--text-tertiary) 10%, transparent) 1px,
    transparent 1px
  );
}

/* Keep hero content above decorative layer */
.hero__card > .container,
.hero__card > .hero__dashboard-wrap,
.hero__dashboard-wrap {
  position: relative;
  z-index: 1;
}

/* ----- Hero content (centered text) ----- */
.hero__content {
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.hero__badge {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-blue);
  background-color: color-mix(in srgb, var(--color-accent-blue) 10%, transparent);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.hero__title-accent {
  color: var(--color-accent-blue);
}

.hero__subtitle {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-snug);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.hero__note {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
}


/* ==========================================================================
   HERO DASHBOARD MOCKUP
   ========================================================================== */

/* ----- Wrapper with perspective & fade ----- */
.hero__dashboard-wrap {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--space-6);
  perspective: 1800px;
}

.hero__dashboard {
  transform: rotateX(4deg);
  transform-origin: center top;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 0 0 1px var(--border-default);
  transition: transform 0.5s ease, box-shadow var(--transition-slow);
}

[data-theme="dark"] .hero__dashboard {
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.15),
    0 0 0 1px var(--border-default);
}

/* Glow behind the dashboard */
.hero__dashboard-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--color-accent-blue) 6%, transparent), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

[data-theme="dark"] .hero__dashboard-glow {
  background: radial-gradient(ellipse, color-mix(in srgb, var(--color-accent-blue) 20%, transparent), transparent 70%);
}

/* Bottom fade  melts dashboard into card background */
.hero__dashboard-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, #eef2f7 0%, #eef2f7 20%, rgba(238, 242, 247, 0.8) 40%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

[data-theme="dark"] .hero__dashboard-fade {
  background: linear-gradient(to top, #1f1f1f 0%, #1f1f1f 20%, rgba(31, 31, 31, 0.8) 40%, transparent 100%);
}


/* ==========================================================================
   DASH  Dashboard UI Component
   ========================================================================== */

.dash {
  background-color: var(--bg-surface);
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-primary);
  transition: background-color var(--transition-slow);
}

/* ----- Dash brand ----- */
.dash__brand {
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.dash__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: var(--color-accent-blue);
  color: #fff;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

/* ----- Sidebar logo ----- */
.dash__sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3) var(--space-3);
}

/* ----- Sidebar user footer ----- */
.dash__sidebar-user {
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border-top: 1px solid var(--border-default);
  margin-top: auto;
}

.dash__sidebar-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dash__sidebar-user-name {
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash__sidebar-user-email {
  font-size: 10px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----- Content header bar (inside floating card) ----- */
.dash__content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dash__content-header-title {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
}

.dash__content-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dash__content-header-btn--new {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  background: var(--color-cta);
  color: #fff;
  border-radius: 5px;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
}

.dash__content-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  color: var(--text-tertiary);
  position: relative;
}

.dash__content-header-icon--bell .dash__bell-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #ef4444;
  border: 1.5px solid var(--bg-surface);
}

/* ----- Welcome row  banner + quick actions side by side ----- */
.dash__welcome-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

/* Welcome banner (blue gradient) */
.dash__welcome-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  border-radius: 0.5rem;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.dash__welcome-banner-deco1 {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.dash__welcome-banner-deco2 {
  position: absolute;
  bottom: -16px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.dash__welcome-banner-text {
  position: relative;
  z-index: 1;
}

.dash__welcome-banner-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  position: relative;
  z-index: 1;
}

.dash__welcome-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: var(--font-weight-bold);
  font-size: 10px;
}

/* Quick actions (orange gradient) */
.dash__quick-actions {
  display: none;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  border-radius: 0.5rem;
  padding: var(--space-3);
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  align-content: center;
}

.dash__quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 6px;
  color: #fff;
  font-size: 9px;
  font-weight: var(--font-weight-semibold);
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dash__quick-action-icon {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ----- Dash body (sidebar + main) ----- */
.dash__body {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 240px;
  background-color: var(--bg-surface);
}

/* ----- Dash sidebar ----- */
.dash__sidebar {
  display: none;
}

.dash__sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash__sidebar-label {
  display: block;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-1);
}

.dash__sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dash__sidebar-link svg {
  flex-shrink: 0;
  color: var(--text-tertiary);
}

.dash__sidebar-link--active {
  background-color: var(--color-accent-blue);
  color: #ffffff;
}

.dash__sidebar-link--active svg {
  color: #ffffff;
}

.dash__sidebar-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  background-color: var(--color-cta);
  color: #fff;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* (sidebar footer moved to dash__sidebar-user) */

/* ----- Dash main content  floating card style (like TicketSysteem) ----- */
.dash__main {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow: hidden;
  background-color: #eef2f7;
  border-radius: 0.75rem;
  margin: 0.375rem 0.375rem 0.375rem 0;
  border: 1px solid var(--border-default);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .dash__main {
  background-color: #1c1c1c;          /* donkerder dan de kaarten (#262626) → kaarten 'verheven' */
  border-color: var(--border-default);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.dash__welcome-title {
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  margin-bottom: 2px;
}

.dash__welcome-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.dash__welcome-sub strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: var(--font-weight-semibold);
}

.dash__date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  display: none;
}

/* Stat cards row */
.dash__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.dash__stat {
  padding: var(--space-3) var(--space-4);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dash__stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.dash__stat-icon {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash__stat-icon--blue   { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.dash__stat-icon--orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.dash__stat-icon--teal   { background: rgba(13, 148, 136, 0.1); color: #0d9488; }
.dash__stat-icon--purple { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }

.dash__stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
}

.dash__stat-value {
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.dash__stat-change {
  font-size: 11px;
  font-weight: var(--font-weight-medium);
}

.dash__stat-change--up      { color: #16a34a; }
.dash__stat-change--down    { color: #dc2626; }
.dash__stat-change--neutral { color: var(--text-tertiary); }

/* Widgets row */
.dash__widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.dash__widget {
  padding: var(--space-4);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dash__widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.dash__widget-title {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.dash__widget-meta {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* Chart widget */
.dash__chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
}

.dash__chart-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 4px 4px 2px 2px;
  min-height: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
}

.dash__chart-bar--accent {
  background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
  box-shadow: 0 2px 4px rgba(249, 115, 22, 0.15);
}

.dash__chart-label {
  display: block;
  text-align: center;
  font-size: 9px;
  color: var(--text-tertiary);
  margin-top: 4px;
  position: absolute;
  bottom: -16px;
  left: 0;
  right: 0;
}

/* Activity widget */
.dash__activity-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.dash__activity-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
}

.dash__activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash__activity-dot--blue   { background-color: var(--color-accent-blue); }
.dash__activity-dot--green  { background-color: #16a34a; }
.dash__activity-dot--orange { background-color: var(--color-cta); }

.dash__activity-text {
  flex: 1;
  color: var(--text-secondary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash__activity-time {
  font-size: 11px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}


/* ==========================================================================
   LOGOS
   ========================================================================== */

.logos {
  padding: var(--space-10) 0 var(--space-12);
  border-top: none;
  border-bottom: 1px solid var(--border-default);
}

.logos__label {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-6);
}

.logos__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
}

.logos__item {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.logos__item:hover {
  opacity: 0.8;
}


/* ==========================================================================
   SCROLL-DRIVEN MODULES SHOWCASE
   ========================================================================== */

/* Outer wrapper  tall to create scroll room (4 slides × 100vh) */
.showcase {
  position: relative;
  height: 400vh;
}

/* Sticky viewport  stays fixed while scrolling through slides */
.showcase__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-body);
  transition: background-color var(--transition-slow);
}

/* ----- Slides ----- */
.showcase__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.showcase__slide--active {
  pointer-events: auto;
}

/* Text vertical animation */
.showcase__slide .showcase__text {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase__slide--active .showcase__text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.showcase__slide--exit .showcase__text {
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 0.3s ease, transform 0.4s ease;
}

/* ----- Centered text ----- */
.showcase__text {
  text-align: center;
  max-width: 560px;
  padding-inline: var(--space-6);
  z-index: 1;
}

.showcase__label {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-blue);
  background-color: color-mix(in srgb, var(--color-accent-blue) 10%, transparent);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.showcase__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.showcase__title-accent {
  color: var(--text-secondary);
  font-weight: var(--font-weight-normal);
}

.showcase__desc {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: var(--line-height-normal);
}

/* ----- Floating icons per slide ----- */
.showcase__icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 120px;
  height: 120px;
  border-radius: var(--radius-2xl);
  color: #fff;
  box-shadow: var(--shadow-lg);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Icon positions  6 spots around center text */
.showcase__icon--tl { top: 10%;  left: 16%; }
.showcase__icon--tr { top: 10%;  right: 16%; }
.showcase__icon--ml { top: 50%;  left: 6%;  margin-top: -60px; }
.showcase__icon--mr { top: 50%;  right: 6%; margin-top: -60px; }
.showcase__icon--bl { bottom: 12%; left: 18%; }
.showcase__icon--br { bottom: 12%; right: 18%; }

/* Default state: below viewport, invisible */
.showcase__icon { transform: translateY(120px); }

/* Active state: fly into position from below */
.showcase__slide--active .showcase__icon {
  opacity: 1;
  transform: translateY(0);
}

/* Exit state: fly out upward */
.showcase__slide--exit .showcase__icon {
  opacity: 0;
  transform: translateY(-120px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.55, 0, 1, 0.45);
}

/* Stagger animation delays (enter) */
.showcase__slide--active .showcase__icon:nth-child(1) { transition-delay: 0s; }
.showcase__slide--active .showcase__icon:nth-child(2) { transition-delay: 0.06s; }
.showcase__slide--active .showcase__icon:nth-child(3) { transition-delay: 0.12s; }
.showcase__slide--active .showcase__icon:nth-child(4) { transition-delay: 0.18s; }
.showcase__slide--active .showcase__icon:nth-child(5) { transition-delay: 0.24s; }
.showcase__slide--active .showcase__icon:nth-child(6) { transition-delay: 0.30s; }

/* Stagger exit delays */
.showcase__slide--exit .showcase__icon:nth-child(1) { transition-delay: 0s; }
.showcase__slide--exit .showcase__icon:nth-child(2) { transition-delay: 0.03s; }
.showcase__slide--exit .showcase__icon:nth-child(3) { transition-delay: 0.06s; }
.showcase__slide--exit .showcase__icon:nth-child(4) { transition-delay: 0.09s; }
.showcase__slide--exit .showcase__icon:nth-child(5) { transition-delay: 0.12s; }
.showcase__slide--exit .showcase__icon:nth-child(6) { transition-delay: 0.15s; }

/* Icon label underneath */
.showcase__icon-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.02em;
  color: #fff;
  margin-top: var(--space-1);
  text-align: center;
  white-space: nowrap;
}

/* Icon colors */
.showcase__icon--blue   { background-color: var(--color-module-blue); }
.showcase__icon--orange { background-color: var(--color-module-orange); }
.showcase__icon--green  { background-color: var(--color-module-green); }
.showcase__icon--purple { background-color: var(--color-module-purple); }
.showcase__icon--teal   { background-color: var(--color-module-teal); }
.showcase__icon--rose   { background-color: #e11d48; }
.showcase__icon--amber  { background-color: #d97706; }
.showcase__icon--indigo { background-color: #4f46e5; }
.showcase__icon--cyan   { background-color: #0891b2; }
.showcase__icon--slate  { background-color: #475569; }

/* ----- Progress dots ----- */
.showcase__dots {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 2;
}

.showcase__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bg-surface-muted);
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.showcase__dot--active {
  background-color: var(--color-accent-blue);
  transform: scale(1.3);
}


/* ==========================================================================
   FEATURES / MODULES
   ========================================================================== */

.features {
  padding: var(--space-24) 0;
}

/* ==========================================================================
   MODULE BROWSER  Dashboard-style interactive module selector
   ========================================================================== */

/* ----- Handwritten tip with arrow ----- */
.features__tip {
  display: flex;
  align-items: flex-end;
  gap: var(--space-1);
  justify-content: flex-start;
  padding-left: 2%;
  margin-bottom: -0.5rem;
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin-inline: auto;
}

.features__tip-arrow {
  flex-shrink: 0;
  order: 2;
}

.features__tip-text {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-cta);
  white-space: nowrap;
  transform: rotate(-2deg);
  padding-bottom: 0.25rem;
  order: 1;
}

.mod-browser {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--bg-surface);
  border-radius: 1rem;
  border: 1px solid var(--border-default);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  max-width: 960px;
  margin-inline: auto;
}

[data-theme="dark"] .mod-browser {
  border-color: var(--border-default);
}

/* ----- Sidebar ----- */
.mod-browser__sidebar {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  padding: var(--space-4) var(--space-3);
  gap: 2px;
}

.mod-browser__sidebar-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-2);
}

/* Module item row */
.mod-browser__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-md);
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background-color 150ms ease;
}

.mod-browser__item:hover {
  background-color: var(--bg-surface-subtle);
}

.mod-browser__item--active {
  background-color: color-mix(in srgb, var(--color-accent-blue) 8%, transparent);
}

.mod-browser__item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  color: #fff;
}

.mod-browser__item-icon--blue   { background: var(--color-module-blue); }
.mod-browser__item-icon--orange { background: var(--color-module-orange); }
.mod-browser__item-icon--green  { background: var(--color-module-green); }
.mod-browser__item-icon--purple { background: var(--color-module-purple); }
.mod-browser__item-icon--teal   { background: var(--color-module-teal); }

.mod-browser__item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mod-browser__item-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.mod-browser__item-sub {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
}

/* Toggle switch */
.mod-browser__item-toggle {
  flex-shrink: 0;
}

.mod-browser__item-toggle--locked {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-accent-blue);
  color: #fff;
}

.mod-browser__toggle-track {
  display: block;
  width: 36px;
  height: 20px;
  background: var(--bg-surface-muted);
  border-radius: var(--radius-full);
  padding: 2px;
  transition: background-color 200ms ease;
  cursor: pointer;
}

.mod-browser__item--on .mod-browser__toggle-track {
  background: var(--color-accent-blue);
}

.mod-browser__toggle-thumb {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mod-browser__item--on .mod-browser__toggle-thumb {
  transform: translateX(16px);
}

/* Sidebar footer */
.mod-browser__sidebar-footer {
  padding: var(--space-3) var(--space-2) 0;
  margin-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
}

.mod-browser__count {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  font-weight: var(--font-weight-medium);
}

.mod-browser__count-num {
  font-weight: var(--font-weight-bold);
  color: var(--color-accent-blue);
}

/* ----- Content panel (floating card style) ----- */
.mod-browser__content {
  background: #eef2f7;
  padding: var(--space-6);
  position: relative;
  min-height: 280px;
}

[data-theme="dark"] .mod-browser__content {
  background: #262626;
}

/* Detail panels */
.mod-browser__detail {
  display: none;
}

.mod-browser__detail--active {
  display: block;
  animation: modFadeIn 0.3s ease;
}

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

.mod-browser__detail-badge {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent-blue);
  background: color-mix(in srgb, var(--color-accent-blue) 10%, transparent);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.mod-browser__detail-badge--blue   { color: var(--color-module-blue); background: color-mix(in srgb, var(--color-module-blue) 10%, transparent); }
.mod-browser__detail-badge--orange { color: var(--color-module-orange); background: color-mix(in srgb, var(--color-module-orange) 10%, transparent); }
.mod-browser__detail-badge--green  { color: var(--color-module-green); background: color-mix(in srgb, var(--color-module-green) 10%, transparent); }
.mod-browser__detail-badge--purple { color: var(--color-module-purple); background: color-mix(in srgb, var(--color-module-purple) 10%, transparent); }
.mod-browser__detail-badge--teal   { color: var(--color-module-teal); background: color-mix(in srgb, var(--color-module-teal) 10%, transparent); }

.mod-browser__detail-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.mod-browser__detail-desc {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-6);
  max-width: 480px;
}

.mod-browser__detail-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.mod-browser__feat {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.mod-browser__feat svg {
  color: #16a34a;
  flex-shrink: 0;
}


/* ==========================================================================
   HOW IT WORKS / STEPS
   ========================================================================== */

.steps {
  padding: var(--space-24) 0;
}

/* ----- Floating card container ----- */
.steps__card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
  padding: var(--space-8) var(--space-6);
  max-width: 720px;
  margin-inline: auto;
}

[data-theme="dark"] .steps__card {
  border-color: var(--border-default);
}

/* ----- Vertical track ----- */
.steps__track {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.steps__step {
  display: flex;
  gap: var(--space-5);
}

/* Left column: number + connecting line */
.steps__step-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 40px;
}

.steps__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  background: var(--color-accent-blue);
  color: #fff;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.steps__step-num--orange {
  background: var(--color-cta);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
}

.steps__step-num--green {
  background: #16a34a;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.steps__step-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, var(--border-default), transparent);
  margin: var(--space-2) 0;
  min-height: 24px;
}

/* Right column: content */
.steps__step-body {
  flex: 1;
  padding-bottom: var(--space-8);
}

.steps__step:last-child .steps__step-body {
  padding-bottom: 0;
}

.steps__step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  color: #fff;
}

.steps__step-icon--blue   { background: rgba(37, 99, 235, 0.1); color: var(--color-accent-blue); }
.steps__step-icon--orange { background: rgba(249, 115, 22, 0.1); color: var(--color-cta); }
.steps__step-icon--green  { background: rgba(22, 163, 74, 0.1); color: #16a34a; }

.steps__step-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.steps__step-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-3);
  max-width: 420px;
}

/* Tags */
.steps__step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.steps__tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-accent-blue);
}

.steps__tag--orange {
  background: rgba(249, 115, 22, 0.08);
  color: var(--color-cta);
}

.steps__tag--green {
  background: rgba(22, 163, 74, 0.08);
  color: #16a34a;
}

.steps__tag--muted {
  background: var(--bg-surface-subtle);
  color: var(--text-tertiary);
}


/* ==========================================================================
   BENEFITS
   ========================================================================== */

.benefits {
  padding: var(--space-24) 0;
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.benefit {
  text-align: center;
  padding: var(--space-6);
}

.benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background-color: color-mix(in srgb, var(--color-accent-blue) 10%, transparent);
  color: var(--color-accent-blue);
  margin-bottom: var(--space-4);
}

.benefit__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.benefit__desc {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-normal);
  max-width: 360px;
  margin-inline: auto;
}


/* ==========================================================================
   PRICING
   ========================================================================== */

.pricing {
  padding: var(--space-24) 0;
  background-color: var(--bg-surface-subtle);
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 960px;
  margin-inline: auto;
}

.pricing-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.pricing-card--featured {
  border: 2px solid var(--color-cta);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured:hover {
  box-shadow: var(--shadow-xl);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-cta);
  color: #fff;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card__header {
  margin-bottom: var(--space-4);
}

.pricing-card__name {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.pricing-card__desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.pricing-card__price {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-default);
}

.pricing-card__amount {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.pricing-card__period {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.pricing-card__features li {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  padding-left: var(--space-6);
  position: relative;
}

.pricing-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}


/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta {
  padding: var(--space-24) 0;
}

.cta__inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.cta__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.cta__subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  line-height: var(--line-height-normal);
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
  border-top: 1px solid var(--border-default);
  background-color: var(--bg-surface);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer__tagline {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  margin-top: var(--space-3);
  max-width: 280px;
}

.footer__heading {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__links a {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-accent-blue);
}

.footer__bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-default);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.footer__bottom p {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-4);
}

.footer__bottom-links a {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color 0.15s ease;
}

.footer__bottom-links a:hover {
  color: var(--color-accent-blue);
}

@media (max-width: 540px) {
  .footer__bottom { justify-content: center; text-align: center; }
}


/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */

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

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   SKIP-LINK  toegankelijkheid: direct naar de hoofdinhoud (keyboard/SR)
   ========================================================================== */
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--color-accent-blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 8px; outline: 2px solid #fff; outline-offset: 2px; }

/* ==========================================================================
   RESPONSIVE SAFETY  lange woorden mogen nooit de viewport breder maken dan
   het scherm (voorkomt horizontale overflow op smalle telefoons).
   ========================================================================== */
.hero__title,
.section-header__title,
.tour-bridge__title,
.finale__word,
.flow__title,
.module-card__name,
.arg__title {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
