/* ═══════════════════════════════════════════════════════════
   LANDING HERO — vision-ai.world structure, LIGHT theme
   Video hero, KPI row, mega-dropdown nav
   ═══════════════════════════════════════════════════════════ */

/* ═══ HEADER — sticky bar with mega-dropdown ═══ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    gap: 16px;
}
.header-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a1a !important;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.header-logo span { color: var(--cyan) !important; }

/* Swarm pulse indicator */
.header-logo .swarm-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
    animation: swarm-pulse 2s ease-in-out infinite;
}
@keyframes swarm-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
}

/* ═══ NAV ITEM with dropdown trigger ═══ */
.nav-item {
    position: relative;
    padding: 0 16px;
    height: 56px;
    display: flex;
    align-items: center;
    color: #555 !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.nav-item:hover {
    color: #1a1a1a !important;
    background: #fafafa;
    border-bottom-color: var(--cyan);
}
.nav-item.active {
    color: var(--cyan) !important;
    font-weight: 600;
    border-bottom-color: var(--cyan);
}
.nav-item.has-dropdown::after {
    content: '▾';
    margin-left: 5px;
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.2s;
}
.nav-item.has-dropdown:hover::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* ═══ MEGA-DROPDOWN PANEL ═══ */
.mega-dropdown {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 2px solid var(--cyan);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    padding: 20px 40px;
    display: none;
    z-index: 999;
}
.nav-item.has-dropdown:hover .mega-dropdown,
.mega-dropdown:hover {
    display: grid;
}
.mega-dropdown {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 4px;
    max-width: 1140px;
    margin: 0 auto;
}

/* Dropdown item card */
.mega-item {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.15s;
    border: 1px solid transparent;
}
.mega-item:hover {
    background: #f5f7fa;
    border-color: #eaedf0;
}
.mega-item-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mega-item-title .mi-icon,
.mega-item-title .mi-img {
    display: none;
}
/* Color dots per category */
.mega-item-title::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--dot-color, #cbd5e1);
    transition: transform 0.2s;
}
.mega-item:hover .mega-item-title::before {
    transform: scale(1.4);
}
/* Energie = cyan */
.mega-dropdown[data-cat="energie"] .mega-item-title::before { --dot-color: #0891b2; }
/* BGA = green */
.mega-dropdown[data-cat="bga"] .mega-item-title::before { --dot-color: #22c55e; }
/* Branchen = amber */
.mega-dropdown[data-cat="branchen"] .mega-item-title::before { --dot-color: #f59e0b; }
/* DMS/Wissen = violet */
.mega-dropdown[data-cat="dms"] .mega-item-title::before { --dot-color: #8b5cf6; }
.mega-item-desc {
    font-size: 0.72rem;
    color: #999;
    line-height: 1.3;
}
.mega-item:hover .mega-item-title { color: var(--cyan); }

/* Section header inside dropdown */
.mega-section-title {
    grid-column: 1 / -1;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #aaa;
    padding: 0 16px 4px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 4px;
}

.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 1.2rem;
    padding: 6px 10px;
    cursor: pointer;
    color: #333;
}

/* ═══ MOBILE — stacked nav ═══ */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .header-right { display: none; }
    .mobile-toggle { display: block; }
    .main-header.open .main-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 56px; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid #e5e5e5;
        padding: 8px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        max-height: 80vh;
        overflow-y: auto;
    }
    .main-header.open .main-nav .nav-item {
        height: auto;
        padding: 10px 16px;
        border-bottom: none;
    }
    .main-header.open .header-right {
        display: flex;
        position: absolute;
        top: 56px; right: 16px;
        padding-top: 12px;
    }
    /* Mobile: dropdowns are always visible, stacked */
    .main-header.open .mega-dropdown {
        display: grid !important;
        position: static;
        box-shadow: none;
        border: none;
        padding: 4px 8px 12px;
        grid-template-columns: 1fr 1fr;
    }
    .mega-section-title { display: none; }
}

/* ═══ HERO — Fullscreen with video/poster ═══ */
.hero-landing {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #f8f8f8;
    padding: 80px 0 60px;
}
.hero-landing .hero-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-landing .hero-poster {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-landing::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.88) 0%, rgba(248,248,248,0.82) 50%, rgba(255,255,255,0.95) 100%);
    z-index: 1;
}
.hero-landing .container { position: relative; z-index: 2; }
.hero-landing .hero-content { max-width: 700px; }
.hero-landing h1 { margin-bottom: 20px; }
.hero-landing .hero-sub { color: #333; font-size: 1.15rem; margin-bottom: 12px; }
.hero-landing .hero-body { color: #666; margin-bottom: 28px; }

/* Badge */
.hero-landing .label {
    background: rgba(0,174,239,0.08);
    border: 1px solid rgba(0,174,239,0.2);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

/* ═══ KPI Row — Light glassmorphism ═══ */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 40px;
}
.kpi-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    transition: all 0.3s ease;
}
.kpi-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 4px 20px rgba(0,174,239,0.1);
    transform: translateY(-2px);
}
.kpi-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}
.kpi-label {
    font-size: 0.78rem;
    color: #999;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
@media (max-width: 768px) {
    .kpi-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .kpi-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    .kpi-card { padding: 14px 10px; }
    .kpi-value { font-size: 1.4rem; }
}

/* ═══ CTA Buttons — vision-ai style ═══ */
.btn-go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--cyan);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,174,239,0.2);
    transition: all 0.3s ease;
    text-decoration: none !important;
}
.btn-go:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,174,239,0.3);
    background: var(--cyan-hover);
    color: #fff !important;
}
.btn-sec {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: #333 !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}
.btn-sec:hover {
    border-color: var(--cyan);
    color: var(--cyan) !important;
}

/* ═══ Feature Grid (3-col) ═══ */
.feature-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s ease;
}
.feature-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 4px 24px rgba(0,174,239,0.08);
    transform: translateY(-2px);
}
.feature-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}
.feature-card h4 { color: #1a1a1a; margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p { color: #666; font-size: 0.95rem; }

@media (max-width: 768px) {
    .feature-grid-3 { grid-template-columns: 1fr; }
}

/* ═══ Screenshots ═══ */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.screenshot-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}
.screenshot-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 4px 24px rgba(0,174,239,0.1);
    transform: translateY(-3px);
}
.screenshot-card img { width: 100%; height: auto; display: block; }
@media (max-width: 768px) {
    .screenshots-grid { grid-template-columns: 1fr; }
}
