/* =========================================================
   COMPACT HOMEPAGE HERO
   Makes hero + slider visible above the fold
========================================================= */

.hero {
    padding: 42px 0 52px;
}

.hero-grid {
    gap: 34px;
}

h1 {
    font-size: clamp(38px, 5.5vw, 64px);
    letter-spacing: -0.06em;
    line-height: 0.98;
    margin-bottom: 18px;
}

.lead {
    color: var(--soft);
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 680px;
}

.badge {
    margin-bottom: 14px;
}

.viral-hook {
    margin-bottom: 10px;
}

.hook-text {
    margin-bottom: 10px;
}

.lead.strong {
    margin-bottom: 16px;
}

.hero-actions {
    gap: 12px;
}

.hero-proof {
    margin-top: 10px;
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hero-proof span {
    background: rgba(53, 92, 255, 0.10);
    border: 1px solid rgba(53, 92, 255, 0.20);
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    color: #93c5fd;
    white-space: nowrap;
}

.hero-privacy {
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #a5b4fc;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-privacy::before {
    content: "🛡";
    margin-right: 5px;
}


/* =========================================================
   HERO DEMO SLIDER (COMPACT ABOVE-THE-FOLD VERSION)
========================================================= */

.hero-demo-slider {
    position: relative;
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 24px;
    padding: 20px;
    min-height: 360px;
    color: #e2e8f0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

/* decorative glow */
.hero-demo-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(53, 92, 255, 0.15), transparent 60%);
    pointer-events: none;
}


/* =========================================================
   SLIDES
========================================================= */

.demo-slide {
    display: none;
    animation: fadeSlide 0.6s ease;
}

.demo-slide.active {
    display: block;
    animation: fadeSlide 0.6s ease, glowPulse 6s infinite;
}


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

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
}

.demo-header strong {
    font-size: 0.98rem;
}

.demo-header span {
    font-size: 0.7rem;
    background: rgba(53, 92, 255, 0.15);
    color: #93c5fd;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid rgba(53, 92, 255, 0.25);
}


/* =========================================================
   SCORE SECTION
========================================================= */

.score-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.score-row h3 {
    margin: 0 0 5px;
    font-size: 1.12rem;
    color: #ffffff;
}

.score-row p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.45;
}

/* circular score */
.hero-demo-slider .score-circle {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: conic-gradient(#355cff 82%, rgba(255, 255, 255, 0.08) 0%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.05);
}

.hero-demo-slider .score-circle::after {
    content: "";
    position: absolute;
    width: 68px;
    height: 68px;
    background: #0f172a;
    border-radius: 50%;
}

.hero-demo-slider .score-circle strong,
.hero-demo-slider .score-circle small {
    position: relative;
    z-index: 2;
}

.hero-demo-slider .score-circle strong {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
}

.hero-demo-slider .score-circle small {
    font-size: 0.68rem;
    color: #94a3b8;
}


/* =========================================================
   KPI GRID
========================================================= */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.kpi {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 15px;
    padding: 10px;
    transition: transform 0.2s ease;
}

.kpi:hover {
    transform: translateY(-3px);
}

.kpi span {
    display: block;
    font-size: 0.66rem;
    color: #94a3b8;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi strong {
    font-size: 1rem;
    color: #ffffff;
}

/* status states */
.kpi.warning {
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.kpi.warning strong {
    color: #fbbf24;
}

.kpi.danger {
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.kpi.danger strong {
    color: #ef4444;
}


/* =========================================================
   INSIGHT BOXES
========================================================= */

.cv-fix-box,
.recommendation-list>div {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 10px;
}

.cv-fix-box p,
.recommendation-list p {
    color: #cbd5e1;
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0 0 6px;
}

.recommendation-list strong {
    font-size: 0.88rem;
    color: #ffffff;
}

/* labels */
.label {
    font-size: 0.68rem;
    font-weight: 800;
    color: #ef4444;
    text-transform: uppercase;
}

.label.improved {
    color: #16a34a;
    margin-top: 10px;
}

/* general insight row */
.insight {
    margin-bottom: 7px;
    color: #94a3b8;
    font-size: 0.82rem;
}

.insight span {
    display: block;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight strong {
    font-size: 0.82rem;
    color: #ffffff;
}


/* =========================================================
   SHARE BUTTON (VIRAL ELEMENT)
========================================================= */

.share-actions {
    margin-top: 12px;
    text-align: center;
}

.share-btn {
    background: linear-gradient(135deg, #355cff, #5b8cff);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(53, 92, 255, 0.25);
    transition: all 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(53, 92, 255, 0.35);
}


/* =========================================================
   SLIDER DOTS
========================================================= */

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
}

.dot.active {
    width: 22px;
    background: #355cff;
}


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

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
    }

    50% {
        box-shadow: 0 18px 70px rgba(53, 92, 255, 0.14);
    }

    100% {
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
    .hero {
        padding: 40px 0 54px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .hero-demo-slider {
        margin-top: 20px;
        min-height: 380px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 34px 0 46px;
    }

    h1 {
        font-size: 34px;
    }

    .lead {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .score-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-demo-slider {
        padding: 18px;
        min-height: auto;
    }

    .demo-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }
}


