/* ═══════════════════════════════════════════════════════════════════════════
   BoekhouderKeesAI — Professional Design System (Exact-style)
   Light theme, clean & professional
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --bk-bg:         #f0f2f5;
    --bk-bg-alt:     #f7f8fa;
    --bk-surface:    #ffffff;
    --bk-surface-2:  #f9fafb;
    --bk-border:     #e2e8f0;
    --bk-border-2:   #cbd5e1;
    --bk-text:       #1e293b;
    --bk-text-dim:   #475569;
    --bk-text-muted: #94a3b8;
    --bk-primary:    #0C5FE3;
    --bk-primary-2:  #0B4EC0;
    --bk-primary-light: #e8f0fe;
    --bk-accent:     #0891b2;
    --bk-accent-2:   #0e7490;
    --bk-success:    #16a34a;
    --bk-success-light: #dcfce7;
    --bk-warning:    #d97706;
    --bk-warning-light: #fef3c7;
    --bk-danger:     #dc2626;
    --bk-danger-light: #fee2e2;
    --bk-purple:     #7c3aed;
    --bk-purple-light: #ede9fe;
    --bk-radius:     8px;
    --bk-radius-sm:  6px;
    --bk-radius-lg:  12px;
    --bk-shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --bk-shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
    --bk-shadow-lg:  0 10px 25px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.05);
    --bk-transition: .2s ease;
}

/* ─── Dark mode ─────────────────────────────────────────────── */
html[data-theme="dark"] {
    --bk-bg:         #0f172a;
    --bk-bg-alt:     #1e293b;
    --bk-surface:    #1e293b;
    --bk-border:     #334155;
    --bk-text:       #e2e8f0;
    --bk-text-dim:   #cbd5e1;
    --bk-text-muted: #94a3b8;
    --bk-primary:    #3b82f6;
    --bk-primary-light: #1e335a;
    --bk-accent:     #22d3ee;
    --bk-success:    #22c55e;
    --bk-success-light: #14301f;
    --bk-warning:    #f59e0b;
    --bk-warning-light: #3a2a08;
    --bk-danger:     #ef4444;
    --bk-danger-light: #3a1414;
    --bk-purple:     #a78bfa;
    --bk-purple-light: #251a3d;
    --bk-shadow:     0 1px 3px rgba(0,0,0,.5);
    --bk-shadow-md:  0 4px 6px rgba(0,0,0,.5);
    --bk-shadow-lg:  0 10px 25px rgba(0,0,0,.6);
    color-scheme: dark;
}
/* Inline witte/lichte vlakken mee laten kleuren (style="background:#fff" e.d.) */
html[data-theme="dark"] [style*="background:#fff"],
html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background:#ffffff"],
html[data-theme="dark"] [style*="background-color:#fff"] { background: var(--bk-surface) !important; }
html[data-theme="dark"] [style*="background:#fafafa"],
html[data-theme="dark"] [style*="background:#f8f9fa"],
html[data-theme="dark"] [style*="background:#f4f4f5"],
html[data-theme="dark"] [style*="background:#f7f8fa"],
html[data-theme="dark"] [style*="background:#f0f2f5"],
html[data-theme="dark"] [style*="background:#ecfdf5"],
html[data-theme="dark"] [style*="background:#fef2f2"],
html[data-theme="dark"] [style*="background:#fff5f5"] { background: var(--bk-bg-alt) !important; }
/* Bootstrap-componenten + formuliervelden */
html[data-theme="dark"] .card,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .table { background-color: var(--bk-surface); color: var(--bk-text); }
/* Bootstrap sluitknop (×) zichtbaar/wit maken op donkere modals */
html[data-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(180%); }
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background-color: var(--bk-bg-alt); color: var(--bk-text); border-color: var(--bk-border);
}
/* Vangnet: hardgecodeerde DONKERE tekstkleuren in inline-styles leesbaar maken */
html[data-theme="dark"] [style*="color:#1e1b4b"],
html[data-theme="dark"] [style*="color: #1e1b4b"],
html[data-theme="dark"] [style*="color:#1e293b"],
html[data-theme="dark"] [style*="color:#111827"],
html[data-theme="dark"] [style*="color:#1f2937"],
html[data-theme="dark"] [style*="color:#0f172a"],
html[data-theme="dark"] [style*="color:#312e81"],
html[data-theme="dark"] [style*="color:#1a1a2e"],
html[data-theme="dark"] [style*="color:#111"] { color: var(--bk-text) !important; }
/* Vangnet: hardgecodeerde WITTE/lichte achtergronden in inline-styles donker maken */
html[data-theme="dark"] [style*="background:#fff"],
html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background:#fafafa"],
html[data-theme="dark"] [style*="background:#f9fafb"],
html[data-theme="dark"] [style*="background:#f8fafc"],
html[data-theme="dark"] [style*="background-color:#fff"] { background: var(--bk-surface) !important; }

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bk-bg);
    color: var(--bk-text);
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--bk-primary); text-decoration: none; }
a:hover { color: var(--bk-primary-2); text-decoration: underline; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bk-bg); }
::-webkit-scrollbar-thumb { background: var(--bk-border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--bk-text-muted); }


/* ─── Landing Page ──────────────────────────────────────────────────────── */

.landing-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: .75rem 2rem;
    background: var(--bk-surface);
    border-bottom: 1px solid var(--bk-border);
    transition: var(--bk-transition);
}
.landing-nav.scrolled {
    box-shadow: var(--bk-shadow-md);
}
.landing-nav .brand {
    font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px;
    color: var(--bk-primary);
}
.landing-nav a { color: var(--bk-text-dim); text-decoration: none; transition: var(--bk-transition); font-size: .9rem; font-weight: 500; }
.landing-nav a:hover { color: var(--bk-primary); text-decoration: none; }

/* Hero */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; text-align: center; padding: 6rem 2rem 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, #f8faff 0%, #e8f0fe 50%, #f0f2f5 100%);
}
#heroCanvas {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(12,95,227,.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(8,145,178,.05), transparent);
}
.hero-grid {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(12,95,227,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(12,95,227,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 70%);
}
.hero-orb {
    position: absolute; border-radius: 50%; filter: blur(100px); opacity: .12;
    animation: orbFloat 10s ease-in-out infinite alternate;
}
.hero-orb-1 { width: 400px; height: 400px; background: var(--bk-primary); top: 10%; left: 10%; }
.hero-orb-2 { width: 300px; height: 300px; background: var(--bk-accent); bottom: 10%; right: 15%; animation-delay: -3s; }
.hero-orb-3 { width: 200px; height: 200px; background: var(--bk-purple); top: 60%; left: 60%; animation-delay: -5s; }

@keyframes orbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -30px) scale(1.05); }
}

/* Data stream lines — vertical flowing dashes */
.hero-data-stream {
    position: absolute; z-index: 0; pointer-events: none;
    width: 1px; height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        rgba(12,95,227,.08) 4px,
        rgba(12,95,227,.08) 12px,
        transparent 16px,
        transparent 40px
    );
    animation: streamFlow 8s linear infinite;
}
.stream-1 { left: 12%; animation-duration: 7s; }
.stream-2 { left: 55%; animation-duration: 9s; animation-delay: -3s; opacity: .7; }
.stream-3 { right: 15%; animation-duration: 6s; animation-delay: -5s; opacity: .5; }

@keyframes streamFlow {
    from { background-position-y: 0; }
    to   { background-position-y: 200px; }
}

/* Floating tech tags */
.hero-tag {
    position: absolute; z-index: 0; pointer-events: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: .65rem; font-weight: 600; letter-spacing: 1px;
    padding: .2rem .6rem; border-radius: 4px;
    border: 1px solid rgba(12,95,227,.1);
    background: rgba(255,255,255,.6);
    color: rgba(12,95,227,.3);
    backdrop-filter: blur(4px);
    opacity: 0;
    animation: tagAppear 1s ease forwards, tagFloat 14s ease-in-out infinite alternate;
}
.tag-1 { top: 12%; left: 6%;  animation-delay: 0.3s, 0s; }
.tag-2 { top: 22%; right: 8%; animation-delay: 0.6s, -2s; }
.tag-3 { top: 72%; left: 4%;  animation-delay: 0.9s, -4s; color: rgba(8,145,178,.3); border-color: rgba(8,145,178,.1); }
.tag-4 { top: 82%; right: 6%; animation-delay: 1.2s, -6s; color: rgba(124,58,237,.3); border-color: rgba(124,58,237,.1); }
.tag-5 { top: 38%; left: 2%;  animation-delay: 0.5s, -1s; }
.tag-6 { top: 58%; right: 3%; animation-delay: 0.8s, -3s; color: rgba(22,163,74,.3); border-color: rgba(22,163,74,.1); }
.tag-7 { top: 48%; right: 10%; animation-delay: 1.1s, -5s; }
.tag-8 { top: 88%; left: 10%; animation-delay: 1.4s, -7s; color: rgba(8,145,178,.3); border-color: rgba(8,145,178,.1); }

@keyframes tagAppear {
    from { opacity: 0; transform: scale(.5); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes tagFloat {
    0%   { transform: translate(0, 0); }
    33%  { transform: translate(8px, -15px); }
    66%  { transform: translate(-6px, -8px); }
    100% { transform: translate(4px, -20px); }
}

/* Data flow canvas (binary rain + transformation nodes) */
#dataFlowCanvas {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    opacity: .5;
}

/* Live 3D-humanoïd canvas (vult de hero, achter de tekst) */
.hero-3d {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%; pointer-events: none;
    animation: heroRobotIn 1.4s ease .3s both;
}
@keyframes heroRobotIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 900px) { .hero-3d { display: none; } }

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem 1.25rem; border-radius: 50px;
    background: var(--bk-primary-light); border: 1px solid rgba(12,95,227,.15);
    font-size: .85rem; color: var(--bk-primary); margin-bottom: 2rem;
    font-weight: 500;
    animation: fadeInUp .8s ease;
}
.hero-badge .dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--bk-success);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .5; transform: scale(1.5); }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800;
    line-height: 1.15; margin: 0 0 1.5rem; letter-spacing: -1px;
    color: var(--bk-text);
    animation: fadeInUp .8s ease .1s both;
}
.hero h1 .gradient-text {
    color: var(--bk-primary);
}

.hero p {
    font-size: 1.15rem; color: var(--bk-text-dim); max-width: 560px;
    margin: 0 auto 2.5rem; line-height: 1.7;
    animation: fadeInUp .8s ease .2s both;
}

.hero-actions {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    animation: fadeInUp .8s ease .3s both;
}

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

/* ── Hero AI-mascottes ─────────────────────────────────────────────── */
.hero-illus {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 1; pointer-events: none;
    width: clamp(210px, 19vw, 320px);
    animation: fadeInUp 1s ease .4s both;
}
.hero-illus-left  { left: 1.5%; }
.hero-illus-right { right: 1.5%; }
.hero-illus-bubble {
    position: absolute; left: 50%; top: 6%; transform: translate(-50%, -100%);
    width: 240px; background: #eaf1fe; color: var(--bk-text, #111827);
    border: 1px solid rgba(12,95,227,.14); border-radius: 14px;
    padding: .6rem .85rem; font-size: .82rem; line-height: 1.4; text-align: left;
    box-shadow: 0 10px 24px rgba(12,95,227,.10); z-index: 2;
    animation: heroBubbleBob 4s ease-in-out infinite;
}
@keyframes heroBubbleBob {
    0%, 100% { transform: translate(-50%, -100%); }
    50%      { transform: translate(-50%, calc(-100% - 9px)); }
}
.hero-illus-bubble::after {
    content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -6px;
    width: 12px; height: 12px; background: #eaf1fe;
    border-right: 1px solid rgba(12,95,227,.14);
    border-bottom: 1px solid rgba(12,95,227,.14); transform: rotate(45deg);
}
.bk-robot { width: 100%; height: auto; overflow: visible;
    filter: drop-shadow(0 14px 26px rgba(12,95,227,.16)); }

/* Geavanceerde humanoid */
.bk-humanoid { width: 100%; height: auto; overflow: visible;
    filter: drop-shadow(0 20px 34px rgba(11,18,36,.30)); }
.bk-hu-mirror { transform: scaleX(-1); }
.hu-eye, .hu-antenna, .hu-reactor, .hu-eq, .hu-finger, .hu-ring, .hu-orb, .hu-shadow {
    transform-box: fill-box; transform-origin: center;
}
@keyframes hu-blink { 0%,94%,100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.hu-eye { animation: hu-blink 4.6s ease-in-out infinite; }
@keyframes hu-glow { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(1.5); } }
.hu-antenna { animation: hu-glow 1.6s ease-in-out infinite; }
@keyframes hu-reactor { 0%,100% { opacity: .5; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
.hu-reactor { animation: hu-reactor 2.2s ease-in-out infinite; }
.hu-eq { transform-origin: bottom; animation: rb-grow 1.3s ease-in-out infinite; }
@keyframes hu-finger { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-14deg); } }
.hu-finger { transform-origin: top; animation: hu-finger 1.4s ease-in-out infinite; }
@keyframes hu-spin { to { transform: rotate(360deg); } }
.hu-ring { animation: hu-spin 9s linear infinite; }
@keyframes hu-orbf { 0%,100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(-7px); opacity: 1; } }
.hu-orb { animation: hu-orbf 3s ease-in-out infinite; }
@keyframes hu-shadowp { 0%,100% { transform: scaleX(1); opacity: .12; } 50% { transform: scaleX(.9); opacity: .07; } }
.hu-shadow { animation: hu-shadowp 4s ease-in-out infinite; }

@keyframes rb-bob   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes rb-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(1.4); } }
@keyframes rb-blink { 0%,92%,100% { transform: scaleY(1); } 96% { transform: scaleY(.12); } }
@keyframes rb-grow  { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes rb-float { 0% { transform: translateY(8px); opacity: 0; } 20%,80% { opacity: 1; } 100% { transform: translateY(-28px); opacity: 0; } }
@keyframes rb-pop   { 0%,70%,100% { transform: scale(1); } 82% { transform: scale(1.2); } }
@keyframes rb-scan  { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-12px,26px); } }

.rb-body, .rb-body2, .rb-antenna, .rb-eye, .rb-bar,
.rb-coin, .rb-coin2, .rb-check, .rb-magnify, .rb-arrow {
    transform-box: fill-box; transform-origin: center;
}
.rb-body    { animation: rb-bob 4s ease-in-out infinite; }
.rb-body2   { animation: rb-bob 4.6s ease-in-out infinite; }
.rb-arrow   { animation: rb-bob 3.2s ease-in-out infinite; }
.rb-antenna { animation: rb-pulse 1.8s ease-in-out infinite; }
.rb-eye     { animation: rb-blink 4.2s ease-in-out infinite; }
.rb-bar     { transform-origin: bottom; animation: rb-grow 2.4s ease-in-out infinite; }
.rb-coin    { animation: rb-float 3.4s ease-in-out infinite; }
.rb-coin2   { animation: rb-float 3.9s ease-in-out .6s infinite; }
.rb-check   { animation: rb-pop 3s ease-in-out infinite; }
.rb-magnify { animation: rb-scan 3.6s ease-in-out infinite; }

@media (max-width: 1280px) { .hero-illus { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .hero-illus * { animation: none !important; }
}

/* Buttons */
.btn-bk {
    padding: .6rem 1.5rem; border-radius: var(--bk-radius-sm); font-weight: 600;
    font-size: .875rem; border: none; cursor: pointer;
    transition: all .2s ease; display: inline-flex; align-items: center; gap: .5rem;
    text-decoration: none; position: relative;
}
.btn-bk:hover { text-decoration: none; }
.btn-bk-primary, a.btn-bk-primary {
    background: var(--bk-primary); color: #fff !important;
    box-shadow: 0 1px 3px rgba(12,95,227,.3);
}
.btn-bk-primary:hover {
    background: var(--bk-primary-2); color: #fff;
    box-shadow: 0 2px 6px rgba(12,95,227,.35);
}
.btn-bk-outline {
    background: var(--bk-surface); color: var(--bk-text-dim);
    border: 1px solid var(--bk-border);
}
.btn-bk-outline:hover {
    background: var(--bk-bg); border-color: var(--bk-border-2);
    color: var(--bk-text);
}
.btn-bk-accent {
    background: var(--bk-accent); color: #fff;
}
.btn-bk-accent:hover {
    background: var(--bk-accent-2); color: #fff;
}
.btn-bk-sm { padding: .4rem 1rem; font-size: .8rem; }
.btn-bk-danger {
    background: var(--bk-surface); color: var(--bk-danger);
    border: 1px solid rgba(220,38,38,.3);
}
.btn-bk-danger:hover { background: var(--bk-danger-light); color: var(--bk-danger); }
.btn-bk-success {
    background: var(--bk-success); color: #fff;
}
.btn-bk-success:hover { background: #15803d; color: #fff; }
.btn-bk-warning {
    background: var(--bk-warning); color: #fff;
}
.btn-bk-warning:hover { background: #b45309; color: #fff; }
.btn-bk-purple {
    background: var(--bk-purple); color: #fff;
}
.btn-bk-purple:hover { background: #6d28d9; color: #fff; }

/* Sections */
.landing-section {
    padding: 5rem 2rem; position: relative;
    background: var(--bk-surface); overflow: hidden;
}
.landing-section:nth-child(even) { background: var(--bk-bg-alt); }

/* Section animated canvases */
.section-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}
.landing-section .section-label {
    font-size: .75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; color: var(--bk-primary); margin-bottom: .75rem;
}
.landing-section h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700;
    margin: 0 0 1rem; letter-spacing: -0.5px; color: var(--bk-text);
}
.landing-section .section-desc {
    font-size: 1.05rem; color: var(--bk-text-dim); max-width: 560px;
    margin: 0 auto 3rem; line-height: 1.7;
}

/* Feature Cards */
.feature-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem; max-width: 1100px; margin: 0 auto;
}
.feature-card {
    background: var(--bk-surface);
    border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius-lg);
    padding: 1.75rem;
    transition: all .3s ease;
}
.feature-card:hover {
    border-color: var(--bk-primary);
    box-shadow: var(--bk-shadow-md);
    transform: translateY(-2px);
}
.feature-card .icon-wrap {
    width: 44px; height: 44px; border-radius: var(--bk-radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-bottom: 1rem;
}
.feature-card .icon-wrap.blue   { background: var(--bk-primary-light); color: var(--bk-primary); }
.feature-card .icon-wrap.cyan   { background: #ecfeff; color: var(--bk-accent); }
.feature-card .icon-wrap.green  { background: var(--bk-success-light); color: var(--bk-success); }
.feature-card .icon-wrap.purple { background: var(--bk-purple-light); color: var(--bk-purple); }
.feature-card .icon-wrap.amber  { background: var(--bk-warning-light); color: var(--bk-warning); }
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 .5rem; color: var(--bk-text); }
.feature-card p  { color: var(--bk-text-dim); margin: 0; font-size: .9rem; line-height: 1.6; }

/* Clickable feature cards (doorklikbaar naar /functie/<slug>) */
.feature-card-link,
.feature-card-link:hover,
.feature-card-link:focus {
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    text-align: left; height: 100%;
}
.feature-card-link h3,
.feature-card-link p { text-decoration: none; }
.feature-card-link p { flex: 1 1 auto; }
.feature-card-link .feature-more {
    display: inline-flex; align-items: center; gap: .35rem;
    margin-top: 1rem; font-size: .85rem; font-weight: 600;
    color: var(--bk-primary);
    opacity: .55; transition: opacity .25s ease, transform .25s ease;
}
.feature-card-link .feature-more i { transition: transform .25s ease; }
.feature-card-link:hover .feature-more { opacity: 1; }
.feature-card-link:hover .feature-more i { transform: translateX(3px); }

/* Product Showcase */
.product-card {
    background: var(--bk-surface);
    border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius-lg);
    padding: 2.5rem;
    transition: all .3s ease;
}
.product-card:hover {
    box-shadow: var(--bk-shadow-lg);
    transform: translateY(-2px);
}
.product-card .product-glow { display: none; }
.product-tag {
    display: inline-block; padding: .3rem .75rem; border-radius: 50px;
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 1rem;
}
.product-tag.blue   { background: var(--bk-primary-light); color: var(--bk-primary); }
.product-tag.cyan   { background: #ecfeff; color: var(--bk-accent); }
.product-title {
    font-size: 1.5rem; font-weight: 700; margin-bottom: .75rem;
    color: var(--bk-text);
}
.product-desc {
    color: var(--bk-text-dim); line-height: 1.7; margin-bottom: 1.5rem;
    font-size: .95rem;
}
.product-features {
    color: var(--bk-text-dim); font-size: .9rem; line-height: 2;
    padding-left: 1.25rem; margin-bottom: 2rem;
}

/* Stats */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem; max-width: 900px; margin: 0 auto;
}
.stat-card {
    text-align: center; padding: 1.75rem;
    background: var(--bk-surface); border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius-lg);
    box-shadow: var(--bk-shadow);
}
.stat-card .stat-number {
    font-size: 2.5rem; font-weight: 800; line-height: 1;
    color: var(--bk-primary);
}
.stat-card .stat-label { color: var(--bk-text-dim); font-size: .85rem; margin-top: .5rem; }

/* Footer */
.landing-footer {
    padding: 3rem 2rem 2rem;
    border-top: 1px solid var(--bk-border);
    text-align: center; color: var(--bk-text-muted);
    font-size: .85rem; background: var(--bk-surface);
}


/* ─── Top Navigation (Exact Online style) ──────────────────────── */

.topnav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--bk-surface);
    border-bottom: 1px solid var(--bk-border);
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.topnav-inner {
    display: flex; align-items: center;
    max-width: 100%; padding: 0 1.5rem;
    height: 52px;
}
.topnav-brand {
    font-size: 1.15rem; font-weight: 800; letter-spacing: -0.5px;
    color: var(--bk-primary); margin-right: 2rem;
    white-space: nowrap;
}

/* Nav menu */
.topnav-menu {
    display: flex; align-items: center; gap: 0;
    flex: 1; height: 100%;
}
.topnav-item {
    position: relative; height: 100%;
    display: flex; align-items: center;
}
.topnav-link {
    display: flex; align-items: center; gap: .35rem;
    padding: 0 .85rem; height: 100%;
    font-size: .85rem; font-weight: 500;
    color: var(--bk-text-dim);
    text-decoration: none; cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.topnav-link:hover,
.topnav-item:hover .topnav-link {
    color: var(--bk-primary); text-decoration: none;
    border-bottom-color: var(--bk-primary);
}
.topnav-link.active {
    color: var(--bk-primary);
    border-bottom-color: var(--bk-primary);
    font-weight: 600;
}

/* Mega menu dropdown */
.mega-menu {
    display: none;
    position: absolute; top: 100%; left: 0;
    background: var(--bk-surface); border: 1px solid var(--bk-border);
    border-top: 2px solid var(--bk-primary);
    border-radius: 0 0 var(--bk-radius) var(--bk-radius);
    box-shadow: var(--bk-shadow-lg);
    min-width: 220px; padding: .5rem 0;
    z-index: 200;
}
.topnav-item:hover .mega-menu {
    display: block;
}
.mega-menu a {
    display: flex; align-items: center; gap: .65rem;
    padding: .55rem 1.15rem;
    font-size: .85rem; color: var(--bk-text-dim);
    text-decoration: none; transition: background .12s, color .12s;
}
.mega-menu a:hover {
    background: var(--bk-bg); color: var(--bk-primary);
    text-decoration: none;
}
.mega-menu a.active {
    color: var(--bk-primary); background: var(--bk-primary-light);
    font-weight: 600;
}
.mega-menu a i {
    width: 18px; text-align: center; font-size: .9rem; opacity: .7;
}
.mega-menu a:hover i,
.mega-menu a.active i { opacity: 1; }

.mega-menu .mega-divider {
    height: 1px; background: var(--bk-border);
    margin: .35rem 0;
}

/* Right actions */
.topnav-actions {
    display: flex; align-items: center; gap: .75rem;
    margin-left: auto; white-space: nowrap;
}
.topnav-actions .nav-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--bk-text-muted);
    font-size: 1rem; cursor: pointer;
    transition: background .15s, color .15s;
}
.topnav-actions .nav-icon:hover {
    background: var(--bk-bg); color: var(--bk-primary);
}
.topnav-actions .nav-user {
    display: flex; align-items: center; gap: .5rem;
    font-size: .8rem; color: var(--bk-text-dim);
    padding-left: .75rem;
    border-left: 1px solid var(--bk-border);
}
.topnav-actions .nav-user .user-name { font-weight: 600; color: var(--bk-text); }
.topnav-actions .nav-user a { color: var(--bk-text-muted); font-size: .75rem; }
.topnav-actions .nav-user a:hover { color: var(--bk-danger); text-decoration: none; }

/* Main content */
.app-main {
    margin-top: 52px; /* height of topnav */
    padding: 1.5rem;
    min-height: calc(100vh - 52px);
    background: var(--bk-bg);
}
.page-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem;
}
.page-header h1 {
    font-size: 1.5rem; font-weight: 700; margin: 0;
    color: var(--bk-text);
}
.breadcrumb-bk {
    display: flex; align-items: center; gap: .5rem;
    font-size: .8rem; color: var(--bk-text-muted); margin-bottom: .25rem;
}
.breadcrumb-bk a { color: var(--bk-text-muted); text-decoration: none; }
.breadcrumb-bk a:hover { color: var(--bk-primary); }


/* ─── Cockpit Widgets (Dashboard) ───────────────────────────────── */

.cockpit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.25rem;
}
.cockpit-widget {
    background: var(--bk-surface);
    border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius);
    box-shadow: var(--bk-shadow);
    overflow: hidden;
}
.cockpit-widget-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: .85rem 1.15rem;
    border-bottom: 1px solid var(--bk-border);
    background: var(--bk-surface-2);
}
.cockpit-widget-header h3 {
    font-size: .85rem; font-weight: 600; margin: 0;
    color: var(--bk-text);
}
.cockpit-widget-body {
    padding: 1rem 1.15rem;
}
.cockpit-widget-body .widget-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .4rem 0;
    font-size: .85rem; color: var(--bk-text);
    border-bottom: 1px solid var(--bk-border);
}
.cockpit-widget-body .widget-row:last-child { border-bottom: none; }
.cockpit-widget-body .widget-row a {
    color: var(--bk-primary); text-decoration: none;
}
.cockpit-widget-body .widget-row a:hover { text-decoration: underline; }
.cockpit-widget-footer {
    padding: .65rem 1.15rem;
    border-top: 1px solid var(--bk-border);
    background: var(--bk-surface-2);
    text-align: right;
}
.cockpit-widget-footer a {
    font-size: .8rem; color: var(--bk-primary);
    text-decoration: none; font-weight: 500;
}
.cockpit-widget-footer a:hover { text-decoration: underline; }


/* ─── Cards ─────────────────────────────────────────────────────────────── */

.bk-card {
    background: var(--bk-surface);
    border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius);
    padding: 1.25rem;
    box-shadow: var(--bk-shadow);
}
.bk-card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; padding-bottom: .75rem;
    border-bottom: 1px solid var(--bk-border);
}
.bk-card-header h3 {
    font-size: .95rem; font-weight: 600; margin: 0; color: var(--bk-text);
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem; margin-bottom: 1.5rem;
}
.kpi-card {
    position: relative;
    background: var(--bk-surface);
    border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius);
    padding: 1.15rem 1.25rem;
    display: flex; align-items: flex-start; gap: .85rem;
    box-shadow: var(--bk-shadow);
    transition: var(--bk-transition);
    overflow: hidden;
    min-width: 0;
}
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0C5FE3, #0891b2, #7c3aed);
    background-size: 200% 100%;
    animation: kpiGradient 4s ease infinite;
}
@keyframes kpiGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.kpi-card > div:last-child { min-width: 0; flex: 1; }
.kpi-card:hover {
    box-shadow: var(--bk-shadow-md);
}
.kpi-icon {
    width: 40px; height: 40px; border-radius: var(--bk-radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.kpi-value {
    font-weight: 700; line-height: 1.15; color: var(--bk-text);
    white-space: nowrap; font-variant-numeric: tabular-nums;
    font-size: 1.5rem;
}
.kpi-label { font-size: .75rem; color: var(--bk-text-muted); margin-top: .25rem; }
.kpi-trend {
    font-size: .7rem; font-weight: 600; margin-top: .3rem;
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .1rem .4rem; border-radius: 50px;
}
.kpi-trend.up   { background: var(--bk-success-light); color: var(--bk-success); }
.kpi-trend.down { background: var(--bk-danger-light); color: var(--bk-danger); }


/* ─── Tables ────────────────────────────────────────────────────────────── */

.bk-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bk-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    font-size: .85rem;
}
.bk-table thead th {
    text-align: left; padding: .6rem .85rem;
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; color: var(--bk-text-muted);
    border-bottom: 2px solid var(--bk-border);
    background: var(--bk-surface-2);
    position: sticky; top: 0;
}
.bk-table tbody tr {
    transition: background .15s ease;
}
.bk-table tbody tr:hover {
    background: rgba(99, 102, 241, .12);
}
.bk-table tbody td {
    padding: .6rem .85rem;
    border-bottom: 1px solid var(--bk-border);
    color: var(--bk-text);
}
.bk-table tfoot td {
    padding: .6rem .85rem;
    border-top: 2px solid var(--bk-border);
    font-weight: 600;
}
.bk-table .mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: .8rem; }
/* Grid-variant: verticale kolomlijnen (bankkoppeling) */
.bk-table.grid-tbl th, .bk-table.grid-tbl td { border-right: 1px solid var(--bk-border); }
.bk-table.grid-tbl th:last-child, .bk-table.grid-tbl td:last-child { border-right: none; }
.bk-table .amount { text-align: right; font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 7rem; }
.bk-table .amount.positive { color: var(--bk-success); }
.bk-table .amount.negative { color: var(--bk-danger); }
.bk-table-compact { font-size: .8rem; }
.bk-table-compact thead th { padding: .45rem .5rem; font-size: .65rem; }
.bk-table-compact tbody td { padding: .4rem .5rem; }
.bk-table-compact .amount { min-width: auto; }
.text-muted { color: var(--bk-text-muted) !important; }


/* ─── Progress Bars ─────────────────────────────────────────────────────── */

.progress-bk {
    height: 6px; background: var(--bk-border);
    border-radius: 3px; overflow: hidden;
}
.progress-bk .bar {
    height: 100%; border-radius: 3px;
    transition: width .6s ease;
    background: var(--bk-primary);
}
.progress-bk .bar.green  { background: var(--bk-success); }
.progress-bk .bar.amber  { background: var(--bk-warning); }
.progress-bk .bar.red    { background: var(--bk-danger); }


/* ─── Status Badges ─────────────────────────────────────────────────────── */

.badge-bk {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .2rem .55rem; border-radius: 4px;
    font-size: .7rem; font-weight: 600;
    letter-spacing: .2px;
}
.badge-bk::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%;
}

/* Green states */
.badge-bk.active::before,
.badge-bk.actief::before,
.badge-bk.geboekt::before   { background: var(--bk-success); }
.badge-bk.active, .badge-bk.actief, .badge-bk.geboekt
    { background: var(--bk-success-light); color: var(--bk-success); }

/* Gray states */
.badge-bk.inactive::before,
.badge-bk.concept::before   { background: var(--bk-text-muted); }
.badge-bk.inactive, .badge-bk.concept
    { background: #f1f5f9; color: var(--bk-text-muted); }

/* Red states */
.badge-bk.error::before,
.badge-bk.failed::before    { background: var(--bk-danger); }
.badge-bk.error, .badge-bk.failed
    { background: var(--bk-danger-light); color: var(--bk-danger); }

/* Orange states */
.badge-bk.running::before,
.badge-bk.bezig::before     { background: var(--bk-warning); }
.badge-bk.running, .badge-bk.bezig
    { background: var(--bk-warning-light); color: var(--bk-warning); }

/* Blue states */
.badge-bk.afgerond::before  { background: var(--bk-primary); }
.badge-bk.afgerond
    { background: var(--bk-primary-light); color: var(--bk-primary); }

/* Purple states */
.badge-bk.on_hold::before   { background: var(--bk-purple); }
.badge-bk.on_hold
    { background: var(--bk-purple-light); color: var(--bk-purple); }
.badge-bk.ingediend::before  { background: var(--bk-purple); }
.badge-bk.ingediend
    { background: var(--bk-purple-light); color: var(--bk-purple); }

/* Cyan states */
.badge-bk.open::before      { background: var(--bk-accent); }
.badge-bk.open
    { background: #ecfeff; color: var(--bk-accent); }
.badge-bk.goedgekeurd::before { background: #0891b2; }
.badge-bk.goedgekeurd
    { background: #ecfeff; color: #0891b2; }

/* Rejected / closed */
.badge-bk.afgekeurd::before  { background: var(--bk-danger); }
.badge-bk.afgekeurd
    { background: var(--bk-danger-light); color: var(--bk-danger); }
.badge-bk.closed::before     { background: var(--bk-danger); }
.badge-bk.closed
    { background: var(--bk-danger-light); color: var(--bk-danger); }
.badge-bk.pending::before    { background: var(--bk-warning); }
.badge-bk.pending
    { background: var(--bk-warning-light); color: var(--bk-warning); }

/* Invoice scanner states */
.badge-bk.wacht_op_goedkeuring::before { background: var(--bk-warning); }
.badge-bk.wacht_op_goedkeuring
    { background: var(--bk-warning-light); color: var(--bk-warning); }
.badge-bk.nieuw::before     { background: var(--bk-accent); }
.badge-bk.nieuw
    { background: #ecfeff; color: var(--bk-accent); }
.badge-bk.verwerkt::before  { background: var(--bk-primary); }
.badge-bk.verwerkt
    { background: var(--bk-primary-light); color: var(--bk-primary); }
.badge-bk.wacht_op_directie::before { background: var(--bk-purple); }
.badge-bk.wacht_op_directie
    { background: var(--bk-purple-light); color: var(--bk-purple); }

/* Priority badges */
.priority-bk { font-size: .65rem; padding: .15rem .45rem; border-radius: 3px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.priority-bk.urgent { background: var(--bk-danger-light); color: var(--bk-danger); }
.priority-bk.hoog   { background: var(--bk-warning-light); color: var(--bk-warning); }
.priority-bk.normaal { background: #f1f5f9; color: var(--bk-text-muted); }
.priority-bk.laag   { background: var(--bk-primary-light); color: var(--bk-primary); }


/* ─── Forms ─────────────────────────────────────────────────────────────── */

.form-label {
    font-size: .8rem; font-weight: 600; color: var(--bk-text-dim);
    margin-bottom: .3rem;
}
.bk-form .form-label {
    font-size: .8rem; font-weight: 600; color: var(--bk-text-dim);
    margin-bottom: .3rem;
}
.bk-form .form-control, .bk-form .form-select,
.form-control, .form-select {
    background: var(--bk-surface); border: 1px solid var(--bk-border);
    color: var(--bk-text); border-radius: var(--bk-radius-sm);
    padding: .5rem .75rem; font-size: .85rem;
    transition: var(--bk-transition);
}
.bk-form .form-control:focus, .bk-form .form-select:focus,
.form-control:focus, .form-select:focus {
    border-color: var(--bk-primary);
    box-shadow: 0 0 0 3px rgba(12,95,227,.12);
    outline: none;
}
.bk-form .form-control::placeholder,
.form-control::placeholder { color: var(--bk-text-muted); }
.bk-form textarea.form-control { resize: vertical; min-height: 100px; }


/* ─── Modals ────────────────────────────────────────────────────────────── */

.modal-content.bk-modal {
    background: var(--bk-surface);
    border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius-lg);
    box-shadow: var(--bk-shadow-lg);
}
.bk-modal .modal-header { border-bottom: 1px solid var(--bk-border); padding: 1rem 1.25rem; }
.bk-modal .modal-title { font-weight: 700; color: var(--bk-text); font-size: 1rem; }
.bk-modal .modal-body { padding: 1.25rem; }
.bk-modal .modal-footer { border-top: 1px solid var(--bk-border); padding: .85rem 1.25rem; }
.bk-modal .btn-close { filter: none; }


/* ─── Auth Pages ────────────────────────────────────────────────────────── */

.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; padding: 2rem;
    background: linear-gradient(135deg, #f0f2f5 0%, #e8f0fe 100%);
}
.auth-page .hero-bg { position: fixed; }
.auth-page .hero-grid { position: fixed; }
.auth-card {
    background: var(--bk-surface);
    border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius-lg);
    padding: 2.5rem;
    width: 100%; max-width: 420px;
    position: relative; z-index: 1;
    box-shadow: var(--bk-shadow-lg);
    animation: fadeInUp .5s ease;
}
.auth-card.wide { max-width: 540px; }
.auth-card .brand {
    font-size: 1.5rem; font-weight: 800; text-align: center;
    margin-bottom: 1.5rem;
    color: var(--bk-primary);
}


/* ─── Balans / Financial Layout ─────────────────────────────────────────── */

.balans-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
    align-items: stretch;
}
.balans-grid .balans-col { display: flex; }
.balans-grid .balans-col .bk-card {
    width: 100%; display: flex; flex-direction: column;
}
.balans-grid .balans-col .bk-card > div:last-child { flex: 1; }
.balans-col h3 {
    font-size: .95rem; font-weight: 700; padding-bottom: .5rem;
    border-bottom: 2px solid var(--bk-primary); margin-bottom: 1rem;
    color: var(--bk-text);
}
.balans-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .4rem 0; border-bottom: 1px solid var(--bk-border);
    font-size: .85rem; color: var(--bk-text);
}
.balans-row.header { font-weight: 700; }
.balans-row.total {
    font-weight: 700; font-size: .9rem;
    border-top: 2px solid var(--bk-border-2);
    border-bottom: none; padding-top: .6rem; margin-top: .4rem;
}


/* ─── Project Timeline ──────────────────────────────────────────────────── */

.task-list { list-style: none; padding: 0; margin: 0; }
.task-item {
    display: flex; align-items: center; gap: .85rem;
    padding: .6rem .85rem;
    border-bottom: 1px solid var(--bk-border);
    transition: background .15s ease;
}
.task-item:hover { background: #f8fafc; }
.task-check {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--bk-border-2);
    flex-shrink: 0; cursor: pointer;
    transition: var(--bk-transition);
    display: flex; align-items: center; justify-content: center;
}
.task-check.done {
    background: var(--bk-success); border-color: var(--bk-success);
}
.task-check.done::after { content: '\2713'; color: #fff; font-size: .65rem; }
.task-name { flex: 1; }
.task-name.done { text-decoration: line-through; color: var(--bk-text-muted); }


/* ─── Scroll Animations ────────────────────────────────────────────────── */

.reveal {
    opacity: 0; transform: translateY(40px) scale(0.98);
    transition: all .8s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
    opacity: 1; transform: translateY(0) scale(1);
}

/* Directional reveals */
.reveal-left {
    opacity: 0; transform: translateX(-60px);
    transition: all .8s cubic-bezier(.16,1,.3,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0; transform: translateX(60px);
    transition: all .8s cubic-bezier(.16,1,.3,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
    opacity: 0; transform: scale(0.85);
    transition: all .8s cubic-bezier(.16,1,.3,1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.stagger > * {
    opacity: 0; transform: translateY(30px) scale(0.95);
    transition: all .6s cubic-bezier(.16,1,.3,1);
}
.stagger.visible > *:nth-child(1) { transition-delay: .06s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(2) { transition-delay: .12s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(3) { transition-delay: .18s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(4) { transition-delay: .24s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(5) { transition-delay: .30s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(6) { transition-delay: .36s; opacity: 1; transform: none; }

/* Feature cards hover glow effect */
.feature-card {
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(12,95,227,.06) 0%, transparent 60%);
    opacity: 0; transition: opacity .3s ease;
    pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }

/* Product card shine sweep */
.product-card { position: relative; overflow: hidden; }
.product-card::after {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.15) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: none; pointer-events: none;
}
.product-card:hover::after {
    animation: cardShine .6s ease forwards;
}
@keyframes cardShine {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}

/* Stat number glow on visible */
.stat-card.counted .stat-number {
    text-shadow: 0 0 30px rgba(12,95,227,.2);
    animation: statPop .5s cubic-bezier(.16,1,.3,1);
}
@keyframes statPop {
    0%   { transform: scale(0.5); opacity: 0; }
    60%  { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

/* Section divider gradient lines */
.landing-section { position: relative; }
.landing-section::before {
    content: ''; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--bk-primary), transparent);
    opacity: 0; transition: opacity .6s ease .2s, width .6s ease .2s;
}
.landing-section.section-visible::before {
    opacity: .4; width: 200px;
}


/* ─── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .topnav-menu { display: none; } /* TODO: hamburger menu */
    .app-main { padding: 1rem; }
    .hero h1 { font-size: 2rem; }
    .balans-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .cockpit-grid { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
    .kpi-value { font-size: clamp(.85rem, 3vw, 1.25rem); }
}


/* ─── Flash Messages ────────────────────────────────────────────────────── */

.flash-container { position: fixed; top: 1rem; right: 1rem; z-index: 9999; }
.flash-msg {
    padding: .65rem 1.15rem; border-radius: var(--bk-radius-sm);
    margin-bottom: .5rem; font-size: .85rem;
    animation: slideIn .3s ease;
    border: 1px solid;
    box-shadow: var(--bk-shadow-md);
}
.flash-msg.success { background: var(--bk-success-light); border-color: rgba(22,163,74,.25); color: var(--bk-success); }
.flash-msg.warning { background: var(--bk-warning-light); border-color: rgba(217,119,6,.25); color: var(--bk-warning); }
.flash-msg.danger, .flash-msg.error { background: var(--bk-danger-light); border-color: rgba(220,38,38,.25); color: var(--bk-danger); }
.flash-msg.info    { background: var(--bk-primary-light); border-color: rgba(12,95,227,.2); color: var(--bk-primary); }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}


/* ─── Connector / Integration Cards ─────────────────────────────────────── */

.integration-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.integration-card {
    background: var(--bk-surface);
    border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius);
    padding: 1.15rem;
    transition: var(--bk-transition);
}
.integration-card:hover {
    border-color: var(--bk-primary);
    box-shadow: var(--bk-shadow-md);
}
.integration-card .int-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: .65rem;
}
.integration-card .int-icon {
    width: 36px; height: 36px; border-radius: var(--bk-radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    background: var(--bk-primary-light); color: var(--bk-primary);
}
.sync-pulse {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .7rem; color: var(--bk-success); font-weight: 600;
}
.sync-pulse .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--bk-success);
    animation: pulse 2s ease-in-out infinite;
}


/* ─── Empty States ──────────────────────────────────────────────────────── */

.empty-state {
    text-align: center; padding: 3rem 2rem;
    color: var(--bk-text-muted);
}
.empty-state .icon { font-size: 2.5rem; margin-bottom: .75rem; opacity: .4; }
.empty-state h3 { color: var(--bk-text-dim); font-size: 1rem; font-weight: 600; }
.empty-state p { margin: .35rem 0; font-size: .9rem; }


/* ─── Risk Dashboard ───────────────────────────────────────────────────── */

.risk-grid {
    display: flex; flex-wrap: nowrap;
    gap: .75rem; margin-bottom: 1.5rem;
}
.risk-card {
    background: var(--bk-surface); border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius); padding: 1rem .85rem; text-align: center;
    box-shadow: var(--bk-shadow);
    border-top: 3px solid var(--bk-border);
    flex: 1 1 0; min-width: 0;
    text-decoration: none; cursor: pointer;
    transition: var(--bk-transition);
}
.risk-card:hover {
    box-shadow: var(--bk-shadow-md); transform: translateY(-1px);
}
.risk-card .risk-value {
    font-size: 1.75rem; font-weight: 800; line-height: 1; margin-bottom: .25rem;
}
.risk-card .risk-label {
    font-size: .7rem; color: var(--bk-text-muted); line-height: 1.3;
}
.risk-card.risk-green { border-top-color: var(--bk-success); }
.risk-card.risk-green .risk-value { color: var(--bk-success); }
.risk-card.risk-amber { border-top-color: var(--bk-warning); }
.risk-card.risk-amber .risk-value { color: var(--bk-warning); }
.risk-card.risk-red { border-top-color: var(--bk-danger); }
.risk-card.risk-red .risk-value { color: var(--bk-danger); }


/* ─── Pagination ───────────────────────────────────────────────────────── */

.pagination-bk {
    display: flex; gap: .35rem; justify-content: center; margin-top: 1.25rem;
}
.pagination-bk a, .pagination-bk span {
    padding: .35rem .65rem; border-radius: var(--bk-radius-sm);
    font-size: .8rem; text-decoration: none; transition: var(--bk-transition);
}
.pagination-bk a {
    background: var(--bk-surface); border: 1px solid var(--bk-border); color: var(--bk-text-dim);
}
.pagination-bk a:hover { border-color: var(--bk-primary); color: var(--bk-primary); text-decoration: none; }
.pagination-bk .active-page {
    background: var(--bk-primary); color: #fff; border: 1px solid var(--bk-primary);
}
.pagination-bk .disabled {
    background: var(--bk-surface-2); color: var(--bk-text-muted); border: 1px solid var(--bk-border);
    pointer-events: none;
}


/* ─── Admin Tables & Filters ──────────────────────────────────────────── */

.admin-actions { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.checkbox-bk {
    width: 16px; height: 16px; accent-color: var(--bk-primary); cursor: pointer;
}
.filter-bar {
    display: flex; gap: .65rem; flex-wrap: wrap; align-items: end;
    margin-bottom: 1.25rem;
    background: var(--bk-surface);
    padding: 1rem;
    border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius);
    box-shadow: var(--bk-shadow);
}
.filter-bar .form-control, .filter-bar .form-select {
    background: var(--bk-surface); border: 1px solid var(--bk-border);
    color: var(--bk-text); border-radius: var(--bk-radius-sm);
    padding: .4rem .65rem; font-size: .8rem;
}
.filter-bar .form-control:focus, .filter-bar .form-select:focus {
    border-color: var(--bk-primary); box-shadow: 0 0 0 2px rgba(12,95,227,.1); outline: none;
}

/* Balance indicator */
.balance-indicator {
    font-weight: 600; font-size: .85rem; padding: .2rem .65rem;
    border-radius: var(--bk-radius-sm);
}
.balance-indicator.balanced { color: var(--bk-success); background: var(--bk-success-light); }
.balance-indicator.unbalanced { color: var(--bk-danger); background: var(--bk-danger-light); }

/* Workflow action buttons */
.workflow-actions { display: flex; gap: .3rem; align-items: center; flex-wrap: nowrap; white-space: nowrap; }


/* ─── Invoice Flow Timeline ────────────────────────────────────────────── */

.flow-timeline {
    position: relative;
    padding: 0;
    list-style: none;
    margin: 0;
}
.flow-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bk-border);
}
.flow-step {
    position: relative;
    padding-left: 44px;
    padding-bottom: 1.5rem;
}
.flow-step:last-child { padding-bottom: 0; }
.flow-step .flow-dot {
    position: absolute;
    left: 7px;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--bk-border);
    background: var(--bk-surface);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
}
.flow-step.done .flow-dot {
    background: var(--bk-success);
    border-color: var(--bk-success);
    color: #fff;
}
.flow-step.active .flow-dot {
    background: var(--bk-warning);
    border-color: var(--bk-warning);
    color: #fff;
    animation: pulse 2s ease-in-out infinite;
}
.flow-step.pending .flow-dot {
    background: var(--bk-surface-2);
    border-color: var(--bk-border);
}
.flow-step .flow-title {
    font-weight: 600;
    font-size: .85rem;
    color: var(--bk-text);
    line-height: 1.3;
}
.flow-step.pending .flow-title {
    color: var(--bk-text-muted);
}
.flow-step .flow-meta {
    font-size: .75rem;
    color: var(--bk-text-muted);
    margin-top: .15rem;
}
.flow-step .flow-responsible {
    font-size: .72rem;
    margin-top: .25rem;
    padding: .2rem .45rem;
    background: var(--bk-bg-subtle, rgba(0,0,0,.03));
    border-radius: .3rem;
    line-height: 1.4;
}
.flow-step.active .flow-responsible {
    background: rgba(255, 165, 0, .08);
}

/* ── Landing: elke sectie past op één scherm (1080p) ─────────────────────── */
.landing-page .landing-section {
    min-height: calc(100vh - var(--nav-h, 70px));
    display: flex; flex-direction: column; justify-content: center;
    padding: 2.5rem 2rem; scroll-margin-top: var(--nav-h, 70px);
}
.landing-page .landing-section > .container { width: 100%; }
.landing-section h2 { margin-bottom: .6rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.landing-section .section-desc { margin-bottom: 1.4rem; font-size: .98rem; line-height: 1.55; }
.landing-section .feature-grid { grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.landing-section .feature-card { padding: 1.1rem 1.2rem; }
.landing-section .feature-card h3 { font-size: .98rem; margin-bottom: .35rem; }
.landing-section .feature-card p {
    font-size: .84rem; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.landing-section .feature-card .icon-wrap { width: 40px; height: 40px; font-size: 1.1rem; margin-bottom: .7rem; }
.landing-section .feature-card .feature-more { margin-top: .5rem; font-size: .8rem; }
#ai .ai-anon { margin-top: 1.2rem !important; }
#ai .ai-anon > div { padding: 1.1rem 1.4rem !important; }
#ai .ai-anon h3 { font-size: 1.05rem !important; margin-bottom: .6rem !important; }
#ai .ai-anon p { font-size: .82rem !important; }
#abonnementen .product-card { padding: 1.3rem 1.4rem; }
#abonnementen .pricing-row { margin-top: 1.2rem !important; }
#abonnementen .product-desc { min-height: 0 !important; }
#abonnementen .matrix-wrap { margin-top: 1.2rem !important; }
#abonnementen .matrix-wrap[hidden] { display: none; }
@media (max-width: 1200px) {
    .landing-page .landing-section { min-height: 0; }
    .landing-section .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) { .landing-section .feature-grid { grid-template-columns: 1fr; } }
/* AI-sectie: compacter zodat ook deze op één scherm past */
#ai { padding-top: 2rem; padding-bottom: 2rem; }
#ai .section-desc { max-width: 760px; margin-bottom: 1.1rem; }
#ai .feature-card p { -webkit-line-clamp: 2; }
#ai .ai-anon { margin-top: .9rem !important; }
#ai .ai-anon > div { padding: .9rem 1.3rem !important; }
#ai .ai-anon .section-label { display: none; }
#ai .ai-anon h3 { font-size: .98rem !important; margin-bottom: .5rem !important; }
#ai .ai-anon .col-md-4 p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#ai .ai-anon > div > p:last-child { margin-top: .6rem !important; font-size: .78rem !important; }
/* Features-sectie: 5 kaarten op één rij */
.landing-page #features .feature-grid { grid-template-columns: repeat(5, 1fr); max-width: 1300px; }
@media (max-width: 1200px) { .landing-page #features .feature-grid { grid-template-columns: repeat(2, 1fr); } }
/* Hero: bewijsregel onder de knoppen */
.hero-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem .9rem; margin-top: 1.6rem; font-size: .85rem; color: var(--bk-text-dim); }
.hero-proof span { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--bk-border); backdrop-filter: blur(6px); }
.hero-proof i { color: var(--bk-primary); }
.hero-proof { width: max-content; max-width: calc(100vw - 2rem); margin-left: auto; margin-right: auto; }
/* AI-sectie: de twee kaarten van de tweede rij gecentreerd (kolom 2 en 3) */
@media (min-width: 1201px) { .landing-page #ai .feature-grid > :nth-child(5) { grid-column: 2; } }
