/* ================================================================
   DUA2 — Stijlblad
   Thema: Sulawesi Regenwoud • Mascotte Tarsi • Bio-luminescente Vuurvliegjes
   ================================================================ */

:root {
    --bg:         #020612;
    --text:       #f8fafc;
    --muted:      #94a3b8;
    --dim:        #64748b;
    --green:      #22c55e;
    --greenlt:    #4ade80;
    --gold:       #facc15;
    --gold-glow:  #fef08a;
    --nav-h:      80px;
    --font:       'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --ease:       cubic-bezier(0.16, 1, 0.3, 1);
    --bounce:     cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: var(--bg);
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ── HEADER (Transparant, Strak en Modern) ───────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.4s var(--ease),
                backdrop-filter 0.4s var(--ease),
                border-color 0.4s var(--ease),
                box-shadow 0.4s var(--ease);
}

.header.scrolled {
    background: rgba(2, 6, 18, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

.nav-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    user-select: none;
}

.mascot-badge {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(245, 158, 11, 0.2));
    border: 1.5px solid rgba(74, 222, 128, 0.45);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    flex-shrink: 0;
    transition: all 0.4s var(--bounce);
}

.mascot-badge.small {
    width: 38px;
    height: 38px;
}

.header-mascot-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.brand-logo:hover .mascot-badge {
    transform: scale(1.08) rotate(4deg);
    border-color: var(--greenlt);
    box-shadow: 0 0 28px rgba(74, 222, 128, 0.6);
}

.mascot-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    background: var(--greenlt);
    border: 2px solid #020612;
    border-radius: 50%;
    box-shadow: 0 0 8px var(--greenlt);
    animation: dotPulse 2.5s infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.25); opacity: .75; }
}

.brand-name {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: baseline;
}

.brand-accent {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.5));
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-item {
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0.95rem;
    border-radius: 9999px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.25s var(--ease);
}

.nav-item:hover, .nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.nav-btn-text {
    outline: none;
}

.nav-lab-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #38bdf8;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.nav-lab-link:hover {
    background: rgba(6, 182, 212, 0.24);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.lab-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    animation: labDotPulse 2s infinite ease-in-out;
}

@keyframes labDotPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.35); }
}

.nav-analyzer-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #4ade80;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.nav-analyzer-link:hover, .nav-analyzer-link.active {
    background: rgba(34, 197, 94, 0.24);
    border-color: #4ade80;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(74, 222, 128, 0.35);
}

.analyzer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: analyzerDotPulse 2s infinite ease-in-out;
}

@keyframes analyzerDotPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.35); }
}

.nav-ai-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(192, 132, 252, 0.4);
    color: #c084fc;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.nav-ai-link:hover, .nav-ai-link.active {
    background: rgba(168, 85, 247, 0.26);
    border-color: #c084fc;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(192, 132, 252, 0.4);
}

.ai-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c084fc;
    box-shadow: 0 0 8px #c084fc;
    animation: aiDotPulse 2s infinite ease-in-out;
}

@keyframes aiDotPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.35); }
}

.menu-toggle {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s var(--ease);
}

.menu-toggle:hover {
    background: rgba(34, 197, 94, 0.18);
    border-color: var(--green);
    transform: translateY(-1px);
}

.menu-toggle .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #f8fafc;
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── NAV DRAWER ───────────────────────────────────────────────── */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 86vw);
    height: 100dvh;
    background: rgba(3, 8, 20, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-left: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.85);
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.75rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0.4s;
}

.nav-drawer.active {
    transform: translateX(0);
    visibility: visible;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.drawer-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.drawer-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.drawer-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    display: block;
    transition: all 0.3s var(--ease);
}

.drawer-link:hover, .drawer-link.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(6px);
}

.drawer-mascot-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.5rem 0;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.drawer-mascot-card:hover {
    border-color: rgba(74, 222, 128, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.drawer-mascot-card .card-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(74, 222, 128, 0.4);
}

.drawer-mascot-card .card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drawer-mascot-card .card-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.drawer-mascot-card .card-info p {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.35;
}

.drawer-footer {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── REGENWOUD HERO SECTIE ────────────────────────────────────────── */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: none; /* Het magische vuurvliegje vervangt de cursor */
}

/* Achtergrond met Sulawesi foto en subtiele overlay */
.rainforest-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: url('img/sulawesi-rainforest.jpg') center center / cover no-repeat;
    background-color: #020612;
}

.rainforest-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 75% 50%, rgba(2, 6, 18, 0.35) 0%, rgba(2, 6, 18, 0.75) 60%, rgba(2, 6, 18, 0.92) 100%),
        linear-gradient(to right, rgba(2, 6, 18, 0.94) 0%, rgba(2, 6, 18, 0.82) 42%, rgba(2, 6, 18, 0.6) 100%);
}

.fireflies-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* 2-Koloms Split Grid */
.hero-split-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2.5rem 3rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ── LINKER HELFT: TYPOGRAFIE & CONTENT ───────────────────────────── */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: 640px;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.32);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
    margin-bottom: 1.5rem;
}

.pill-glow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
    animation: dotPulse 2.2s infinite;
}

.pill-text {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #86efac;
}

.hero-main-title {
    font-size: clamp(3.8rem, 7vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: baseline;
    user-select: none;
}

.title-dua {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 60%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 25px rgba(0, 0, 0, 0.6));
}

.title-two {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 35px rgba(34, 197, 94, 0.65));
    margin-left: 2px;
}

.hero-tagline {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin-bottom: 1.25rem;
}

.hero-description {
    font-size: clamp(0.95rem, 1.25vw, 1.05rem);
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2.25rem;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0.95rem 1.95rem;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: var(--font);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
    transition: all 0.3s var(--ease);
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    box-shadow: 0 14px 40px rgba(34, 197, 94, 0.55);
    transform: translateY(-2px);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.95rem 1.65rem;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    backdrop-filter: blur(12px);
    transition: all 0.3s var(--ease);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-feature-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
}

.tag-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

/* ── RECHTER HELFT: TARSI IN HET MIDDEN ───────────────────────────── */
.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.tarsi-portal-stage {
    position: relative;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tarsi-halo-glow {
    position: absolute;
    inset: -15px;
    border-radius: 38px;
    background: radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.22) 0%, rgba(56, 189, 248, 0.12) 50%, transparent 75%);
    filter: blur(35px);
    pointer-events: none;
    z-index: 1;
}

.tarsi-frame {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 32px;
    overflow: hidden;
    background: #020612;
    border: 1.5px solid rgba(74, 222, 128, 0.28);
    box-shadow: 0 0 50px rgba(34, 197, 94, 0.16), 0 25px 60px rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(14px);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.tarsi-frame:hover {
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow: 0 0 65px rgba(34, 197, 94, 0.26), 0 30px 70px rgba(0, 0, 0, 0.85);
}

.tarsi-portal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    pointer-events: none;
    user-select: none;
    filter: contrast(1.05) brightness(1.02);
}

/* Intro Ogen-Dicht Overlay */
.tarsi-eyes-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(2, 6, 18, 0.88) 0%, rgba(2, 6, 18, 0.98) 85%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.tarsi-eyes-overlay.open {
    opacity: 0;
}

.sleep-state-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.sleep-icon {
    font-size: 1.1rem;
}

.tarsi-portal-caption {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.1rem;
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 500;
    background: rgba(2, 6, 18, 0.65);
    padding: 6px 16px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    user-select: none;
}

.caption-icon {
    font-size: 1rem;
    animation: fireflyHover 2s infinite ease-in-out;
}

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

/* ── HET INTERACTIEVE VUURVLIEGJE ALS CURSOR ─────────────────────── */
.firefly-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-100px, -100px, 0);
    will-change: transform;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.firefly-cursor.visible {
    opacity: 1;
}

.firefly-body {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 10px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: radial-gradient(circle at 40% 30%, #ffffff 0%, #fef08a 35%, #eab308 70%, #15803d 100%);
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 12px 4px rgba(250, 204, 21, 0.9),
        0 0 25px 8px rgba(74, 222, 128, 0.45);
    animation: fireflyPulse 2s infinite ease-in-out;
}

@keyframes fireflyPulse {
    0%, 100% {
        box-shadow: 0 0 10px 3px rgba(250, 204, 21, 0.8), 0 0 20px 6px rgba(74, 222, 128, 0.35);
        transform: translate(-50%, -50%) scale(0.95);
    }
    50% {
        box-shadow: 0 0 18px 6px rgba(250, 204, 21, 1), 0 0 35px 12px rgba(74, 222, 128, 0.6);
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.firefly-wings {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.wing {
    position: absolute;
    top: 0;
    width: 7px;
    height: 10px;
    border-radius: 50% 50% 20% 20%;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.85);
    transform-origin: bottom center;
}

.wing-left {
    left: 1px;
    animation: wingLeftFlutter 0.12s infinite ease-in-out;
}

.wing-right {
    right: 1px;
    animation: wingRightFlutter 0.12s infinite ease-in-out;
}

@keyframes wingLeftFlutter {
    0%, 100% { transform: rotate(-30deg) scaleY(1); opacity: 0.85; }
    50%      { transform: rotate(10deg) scaleY(0.7); opacity: 0.4; }
}

@keyframes wingRightFlutter {
    0%, 100% { transform: rotate(30deg) scaleY(1); opacity: 0.85; }
    50%      { transform: rotate(-10deg) scaleY(0.7); opacity: 0.4; }
}

.firefly-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.45) 0%, rgba(74, 222, 128, 0.2) 40%, transparent 75%);
    filter: blur(2px);
    pointer-events: none;
}

/* Vliegende sporen/sparkles van het vuurvliegje */
.firefly-sparkle {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fde047;
    box-shadow: 0 0 8px #facc15;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    animation: sparkleFade 0.75s forwards ease-out;
}

@keyframes sparkleFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2) translateY(8px);
    }
}

/* ── FACTS MODAL ─────────────────────────────────────────────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-dialog {
    background: rgba(3, 8, 22, 0.98);
    border: 1px solid rgba(74, 222, 128, 0.3);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.92), 0 0 50px rgba(34, 197, 94, 0.18);
    border-radius: 24px;
    width: 100%;
    max-width: 860px;
    max-height: 90dvh;
    overflow-y: auto;
    padding: 2.25rem;
    position: relative;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.35s var(--ease);
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 222, 128, 0.35) rgba(15, 23, 42, 0.4);
}

.modal-dialog::-webkit-scrollbar { width: 8px; }
.modal-dialog::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.4); border-radius: 8px; }
.modal-dialog::-webkit-scrollbar-thumb { background: rgba(74, 222, 128, 0.35); border-radius: 8px; }

.modal-backdrop.active .modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-avatar-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(245, 158, 11, 0.3));
    border: 2px solid rgba(74, 222, 128, 0.6);
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.modal-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--greenlt);
    margin-bottom: 4px;
}

.modal-title {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
}

.modal-sub {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 4px;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.1rem;
}

.fact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.3s var(--ease);
}

.fact-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(74, 222, 128, 0.28);
    transform: translateY(-2px);
}

.fact-card.highlight {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(255, 255, 255, 0.02));
    border-color: rgba(74, 222, 128, 0.32);
}

.fact-card.brand {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(34, 197, 94, 0.04));
    border-color: rgba(245, 158, 11, 0.32);
}

.fact-icon {
    font-size: 1.55rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fact-body h4 {
    font-size: 0.97rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 5px;
}

.fact-body p {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.85rem 1.85rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font);
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 8px 28px rgba(34, 197, 94, 0.35);
    transition: all 0.3s var(--ease);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 14px 38px rgba(34, 197, 94, 0.5);
    transform: translateY(-2px);
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.footer {
    width: 100%;
    padding: 2.5rem 1.5rem;
    background: #020612;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 10;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--muted);
    font-weight: 500;
}

.footer-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(74, 222, 128, 0.35);
}

.copyright {
    color: var(--dim);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

/* ── RESPONSIVE (Mobiel: Eerst Titelbalk, dan Tarsi, dan Titel/Tekst) ── */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
    .hero-split-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 1.5rem;
        padding-top: calc(var(--nav-h) + 1.25rem); /* Direct net onder de transparante titelbalk */
        padding-bottom: 3.5rem;
        min-height: auto;
    }
    
    /* 1. EERST TARSI DIRECT ONDER DE TITELBALK */
    .hero-right {
        order: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 0.5rem;
    }
    .tarsi-portal-stage {
        max-width: min(340px, 82vw);
        width: 100%;
    }
    .tarsi-frame {
        border-radius: 28px;
    }
    .tarsi-portal-caption {
        margin-top: 0.75rem;
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    /* 2. DAARNA DE TITEL, SUBTITEL EN TEKST */
    .hero-left {
        order: 2;
        max-width: 600px;
        width: 100%;
        align-items: center;
        text-align: center;
    }
    .hero-pill-badge {
        margin-bottom: 0.65rem;
    }
    .hero-main-title {
        font-size: clamp(2.8rem, 11vw, 4.2rem);
        margin-bottom: 0.5rem;
        justify-content: center;
    }
    .hero-tagline {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }
    .hero-description {
        font-size: 0.94rem;
        line-height: 1.65;
        margin-bottom: 1.75rem;
        max-width: 520px;
    }
    .hero-cta-group {
        justify-content: center;
        gap: 0.85rem;
        margin-bottom: 1.5rem;
    }
    .hero-feature-tags {
        justify-content: center;
        gap: 0.85rem;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 0 1.25rem;
    }
    .brand-name {
        font-size: 1.4rem;
    }
    .hero-split-container {
        padding-top: calc(var(--nav-h) + 0.85rem);
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 1.25rem;
    }
    .tarsi-portal-stage {
        max-width: min(290px, 86vw);
    }
    .tarsi-frame {
        border-radius: 24px;
    }
    .hero-main-title {
        font-size: 2.75rem;
    }
    .hero-tagline {
        font-size: 1.05rem;
    }
    .hero-description {
        font-size: 0.88rem;
        line-height: 1.55;
    }
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }
    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.4rem;
        font-size: 0.9rem;
    }
    .facts-grid {
        grid-template-columns: 1fr;
    }
    .modal-dialog {
        padding: 1.5rem;
    }
    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

