:root {
    --bg-color: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --card-bg: rgba(255, 255, 255, 0.7);
    --border-color: rgba(148, 163, 184, 0.2);
    --glass-bg: rgba(248, 250, 252, 0.85);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

/* Navigatiebalk */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 10%; background: var(--glass-bg);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    position: fixed; width: 100%; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.logo { font-weight: 800; font-size: 1.5rem; color: #0f172a; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 8px; }
.logo-icon { width: 34px; height: 34px; fill: var(--primary); }
.nav-links { display: flex; gap: 30px; align-items: center; list-style: none; }
.nav-links a { font-weight: 600; color: var(--text-muted); transition: color 0.3s; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: #0f172a; }
.nav-btn { background: var(--primary); color: white !important; padding: 10px 24px; border-radius: 8px; transition: all 0.3s; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2); }
.nav-btn:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3); }

/* Particles Achtergrond */
#tsparticles {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none;
}

/* Headers / Pagina Titels */
.page-header {
    height: 100vh; display: flex; flex-direction: column; justify-content: center;
    padding: 0 10%; position: relative; overflow: hidden;
}
.header-content {
    position: relative; z-index: 1; max-width: 900px;
}
.subtitle { color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 3px; font-size: 0.9rem; margin-bottom: 20px; }
.page-header h1 { font-size: 4.5rem; font-weight: 800; color: #0f172a; margin-bottom: 24px; letter-spacing: -1.5px; line-height: 1.15; padding-bottom: 0.1em; background: linear-gradient(to right, #0f172a, #475569); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.description { font-size: 1.25rem; color: var(--text-muted); max-width: 700px; margin-bottom: 40px; }

/* Scroll animatie */
.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; width: 30px; height: 30px;
    margin-left: -15px; color: var(--primary); font-size: 2rem;
    animation: bounce 2s infinite; opacity: 0.8; transition: opacity 0.3s;
}
.scroll-indicator:hover { opacity: 1; }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Knoppen */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 36px; background: var(--primary); color: white;
    font-weight: 600; border-radius: 8px; transition: all 0.3s; cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2); border: none;
}
.btn:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4); }
.btn-text { margin-left: 24px; font-weight: 600; color: var(--text-main); transition: color 0.3s; }
.btn-text:hover { color: var(--primary); }
.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.hero-actions .btn {
    white-space: nowrap;
}
.hero-actions .btn-text {
    margin-left: 0;
    white-space: nowrap;
}

/* Algemene Secties & Grids */
section { padding: 100px 10%; position: relative; z-index: 1; }
.section-title { font-size: 2.8rem; font-weight: 800; margin-bottom: 20px; text-align: center; color: #0f172a; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 1.15rem; max-width: 700px; margin: 0 auto 60px auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

/* Vaste 3x2 verdeling voor de diensten kaarten */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Diensten Kaarten (Premium Light) */
.card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    padding: 40px; border-radius: 16px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.05);
    position: relative; z-index: 2; height: 100%;
}
.card:hover { transform: translateY(-8px); border-color: rgba(37, 99, 235, 0.3); box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08), 0 0 20px rgba(37, 99, 235, 0.05); }
.card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 24px; background: linear-gradient(135deg, #2563eb, #60a5fa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.card h3 { font-size: 1.4rem; margin-bottom: 15px; color: #0f172a; }
.card p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }

/* Kaarten met praktijkbeelden */
.track-card {
    padding: 0;
    overflow: hidden;
}
.card-media {
    height: 220px;
    overflow: hidden;
    background: #dbeafe;
    border-bottom: 1px solid var(--border-color);
}
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-media .media-contain {
    object-fit: contain;
    background: #1e293b;
    padding: 18px;
}
.card-media-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1px;
    background: var(--border-color);
}
.card-copy {
    padding: 30px;
}

/* AI feature sectie */
.ai-feature-section {
    padding-top: 20px;
}
.ai-feature-grid {
    align-items: stretch;
}
.ai-feature-copy {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 42px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.ai-feature-title {
    font-size: 2.35rem;
    line-height: 1.15;
    margin-bottom: 18px;
    color: #0f172a;
}
.ai-feature-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 28px;
}
.ai-feature-points {
    display: grid;
    gap: 18px;
}
.ai-point {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    align-items: start;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.7);
}
.ai-point i {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 1.2rem;
}
.ai-point h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #0f172a;
}
.ai-point p {
    color: var(--text-muted);
}
.ai-feature-visual {
    min-height: 100%;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.ai-feature-visual img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    display: block;
}

/* Duidelijke werkwijze / prijsafspraken */
.assurance-section {
    padding-top: 20px;
}
.assurance-shell {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 42px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.assurance-title {
    font-size: 2.35rem;
    line-height: 1.15;
    margin-bottom: 18px;
    color: #0f172a;
}
.assurance-intro {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 28px;
}
.assurance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.assurance-card {
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.7);
}
.assurance-card i {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 14px;
}
.assurance-card h3 {
    font-size: 1.08rem;
    margin-bottom: 8px;
    color: #0f172a;
}
.assurance-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
}
.assurance-note {
    margin-top: 22px;
    padding: 20px 22px;
    border-radius: 18px;
    background: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.12);
    color: var(--text-muted);
}
.assurance-note strong {
    color: #0f172a;
}

/* Robot CTA op home */
.robot-cta {
    position: fixed;
    right: 28px;
    bottom: 24px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.robot-cta.is-dismissed {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
}
.robot-cta.is-visible .robot-cta-avatar {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.robot-cta-bubble {
    position: relative;
    width: min(320px, calc(100vw - 48px));
    padding: 20px 20px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.robot-cta-bubble::after {
    content: "";
    position: absolute;
    right: 32px;
    bottom: -12px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.96);
    border-right: 1px solid rgba(148, 163, 184, 0.24);
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    transform: rotate(45deg);
}
.robot-cta-bubble.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.robot-cta-label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.robot-cta-text {
    min-height: 3.4em;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.65;
    font-weight: 600;
}
.robot-cta-caret {
    display: inline-block;
    width: 0.65ch;
    color: var(--primary);
    animation: robotCaretBlink 0.9s steps(1) infinite;
}
.robot-cta-caret.is-hidden {
    display: none;
}
.robot-cta-action {
    margin-top: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}
.robot-cta-action.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.robot-cta-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.robot-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 12px 22px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.robot-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.34);
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}
.robot-cta-btn-secondary {
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-main);
    border: 1px solid rgba(148, 163, 184, 0.34);
    box-shadow: none;
}
.robot-cta-btn-secondary:hover {
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}
.robot-cta-avatar {
    width: 118px;
    height: 102px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transform: translateY(42px) scale(0.88);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    overflow: visible;
}
.robot-cta-graphic {
    width: 106px;
    height: 96px;
    filter: drop-shadow(0 12px 22px rgba(37, 99, 235, 0.2));
}
.robot-cta-graphic * {
    vector-effect: non-scaling-stroke;
}
.robot-cta-graphic-head-group {
    transform-origin: 60px 60px;
    animation: robotFloat 3.4s ease-in-out infinite;
}
.robot-cta-graphic-line {
    stroke: #1e3a8a;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.robot-cta-graphic-head {
    fill: #eff6ff;
    stroke: #1e3a8a;
    stroke-width: 4;
}
.robot-cta-graphic-face {
    fill: #bfdbfe;
}
.robot-cta-graphic-eye {
    fill: #0f172a;
    transform-box: fill-box;
    transform-origin: center;
    animation: robotBlink 5.8s infinite;
}
.robot-cta-graphic-mouth {
    fill: none;
    stroke: #2563eb;
    stroke-width: 4;
    stroke-linecap: round;
}
.robot-cta-graphic-cheek {
    fill: #60a5fa;
    opacity: 0.9;
}
.robot-cta-graphic-antenna-tip {
    fill: #2563eb;
    animation: robotPulse 1.8s ease-in-out infinite;
}

@keyframes robotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes robotBlink {
    0%, 45%, 47%, 100% { transform: scaleY(1); }
    46% { transform: scaleY(0.15); }
}
@keyframes robotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: 0.82; }
}
@keyframes robotCaretBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Call to action sectie */
.cta-section { background-color: rgba(241, 245, 249, 0.5); text-align: center; padding: 100px 10%; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cta-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 20px; color: #0f172a; }

/* Founder Photo */
.founder-photo {
    width: 150px; height: 150px; object-fit: cover; border-radius: 50%;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1); border: 4px solid white;
    margin-bottom: 20px; display: block;
}

/* Footer */
footer { text-align: center; padding: 40px; background: #ffffff; border-top: 1px solid var(--border-color); color: var(--text-muted); }

/* --- RESPONSIVE OVERRIDES (Bottom for Priority) --- */

@media (max-width: 1024px) {
    .grid-cards { grid-template-columns: repeat(2, 1fr); }
    .page-header h1 { font-size: 3.5rem; }
    .grid-2 { gap: 30px; }
    .assurance-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    html, body { overflow-x: hidden !important; width: 100% !important; position: relative; }
    
    nav {
        flex-direction: column !important;
        padding: 12px 5% !important;
        min-height: auto !important;
        text-align: center;
    }
    .nav-links {
        margin-top: 10px !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        width: 100% !important;
    }
    .nav-links li { width: auto; }
    .nav-links a { font-size: 0.85rem !important; }
    .nav-btn {
        padding: 6px 14px !important;
        width: auto !important;
        font-size: 0.85rem !important;
        margin: 0 !important;
    }
    
    section { padding: 30px 5% !important; width: 100% !important; overflow: hidden; }
    
    .page-header {
        padding-top: 180px !important;
        padding-bottom: 40px !important;
        height: auto !important;
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .header-content { width: 100% !important; max-width: 100% !important; margin: 0 !important; }
    .page-header h1 { font-size: 2rem !important; line-height: 1.15 !important; word-wrap: break-word; }
    .page-header .description { font-size: 1.1rem !important; }
    .hero-actions {
        justify-content: center;
        gap: 10px;
        flex-wrap: nowrap;
    }
    .hero-actions .btn {
        padding: 11px 16px;
        font-size: 0.82rem;
        flex: 0 1 auto;
    }
    .hero-actions .btn-text {
        font-size: 0.82rem;
        white-space: nowrap;
        flex: 0 1 auto;
    }

    .grid-cards { grid-template-columns: 1fr !important; gap: 20px !important; width: 100% !important; }
    .grid-2 { grid-template-columns: 1fr !important; gap: 30px !important; width: 100% !important; }
    
    .founder-header { flex-direction: column !important; align-items: center !important; }
    .founder-photo { width: 120px !important; height: 120px !important; margin: 0 auto !important; }
    .founder-header h2 { font-size: 1.6rem !important; line-height: 1.2 !important; }
    
    .map-card { min-height: 250px !important; width: 100% !important; }
    .card { padding: 20px !important; width: 100% !important; }
    .track-card { padding: 0 !important; }
    .card-media { height: 200px !important; }
    .card-copy { padding: 20px !important; }
    .ai-feature-copy { padding: 24px !important; }
    .ai-feature-title { font-size: 1.75rem !important; }
    .ai-point { grid-template-columns: 1fr !important; }
    .ai-feature-visual img { min-height: 280px !important; }
    .assurance-shell { padding: 24px !important; }
    .assurance-title { font-size: 1.75rem !important; }
    .assurance-grid { grid-template-columns: 1fr !important; }
    .robot-cta {
        right: 16px;
        bottom: 16px;
        gap: 10px;
    }
    .robot-cta-bubble {
        width: min(280px, calc(100vw - 32px));
        padding: 16px 16px 14px;
    }
    .robot-cta-text {
        min-height: 3.8em;
        font-size: 0.95rem;
    }
    .robot-cta-avatar {
        width: 92px;
        height: 82px;
    }
    .robot-cta-graphic {
        width: 84px;
        height: 76px;
    }
}

@media (max-width: 480px) {
    .page-header h1 { font-size: 1.8rem !important; }
    .hero-actions {
        gap: 8px;
    }
    .hero-actions .btn {
        padding: 10px 14px;
        font-size: 0.76rem;
    }
    .hero-actions .btn-text {
        font-size: 0.76rem;
    }
}
