/* ============================================
   ANALYTICS HERO SECTION
============================================ */
.analytics-hero {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
}

.analytics-hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    z-index: -2;
}

.analytics-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
}

.analytics-hero__glow--1 {
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    animation: glowPulse 6s ease-in-out infinite;
}

.analytics-hero__glow--2 {
    bottom: -100px;
    right: -100px;
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    animation: glowPulse 8s ease-in-out infinite 2s;
}

.analytics-hero__glow--3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #06B6D4, #0891B2);
    animation: glowPulse 7s ease-in-out infinite 1s;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

/* Floating Stats */
.floating-stat {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    z-index: 10;
    animation: floatStat 4s ease-in-out infinite;
}

.floating-stat i {
    font-size: 20px;
    color: #3B82F6;
}

.floating-stat--1 {
    top: 25%;
    left: 8%;
    animation-delay: 0s;
}

.floating-stat--1 i { color: #10B981; }

.floating-stat--2 {
    top: 35%;
    right: 10%;
    animation-delay: 1s;
}

.floating-stat--2 i { color: #3B82F6; }

.floating-stat--3 {
    bottom: 30%;
    left: 12%;
    animation-delay: 2s;
}

.floating-stat--3 i { color: #8B5CF6; }

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

.analytics-hero__inner {
    text-align: center;
    position: relative;
    z-index: 5;
}

.analytics-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3B82F6;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.analytics-hero__title {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.analytics-hero__text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.analytics-hero__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.analytics-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.analytics-btn--primary {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    color: #fff;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

.analytics-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
    color: #fff;
}

.analytics-btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.analytics-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ============================================
   DASHBOARD PREVIEW
============================================ */
.analytics-preview {
    padding: 0 0 80px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    margin-top: -60px;
}

.analytics-preview__wrapper {
    perspective: 1000px;
}

.analytics-dashboard {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    transform: rotateX(5deg);
    transition: transform 0.5s ease;
}

.analytics-dashboard:hover {
    transform: rotateX(0);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-header__left {
    display: flex;
    gap: 8px;
}

.dashboard-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dashboard-dot--red { background: #EF4444; }
.dashboard-dot--yellow { background: #F59E0B; }
.dashboard-dot--green { background: #10B981; }

.dashboard-header__title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

.dashboard-live {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10B981;
    font-size: 13px;
    font-weight: 600;
}

.dashboard-live i {
    font-size: 8px;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.dashboard-content {
    padding: 24px;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.stat-card__icon--blue { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.stat-card__icon--green { background: linear-gradient(135deg, #10B981, #059669); }
.stat-card__icon--purple { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.stat-card__icon--orange { background: linear-gradient(135deg, #F59E0B, #D97706); }

.stat-card__info {
    flex: 1;
}

.stat-card__value {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card__label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card__trend {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.stat-card__trend--up {
    color: #10B981;
    background: rgba(16, 185, 129, 0.15);
}

/* Dashboard Chart */
.dashboard-chart {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chart-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.chart-legend {
    display: flex;
    gap: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.legend-item i { font-size: 6px; }
.legend-item--blue i { color: #3B82F6; }
.legend-item--purple i { color: #8B5CF6; }
.legend-item--teal i { color: #06B6D4; }

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 160px;
    padding-top: 20px;
}

.chart-bar-group {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    flex: 1;
    justify-content: center;
    position: relative;
    padding-bottom: 24px;
}

.chart-bar {
    width: 14px;
    height: var(--height);
    border-radius: 4px 4px 0 0;
    animation: barGrow 1s ease-out forwards;
}

.chart-bar--blue { background: linear-gradient(180deg, #3B82F6, #2563EB); }
.chart-bar--purple { background: linear-gradient(180deg, #8B5CF6, #7C3AED); }
.chart-bar--teal { background: linear-gradient(180deg, #06B6D4, #0891B2); }

@keyframes barGrow {
    from { height: 0; }
    to { height: var(--height); }
}

.chart-label {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   FEATURES SECTION
============================================ */
.analytics-features {
    padding: 100px 0;
    background: #0f172a;
}

.section-header {
    margin-bottom: 60px;
}

.section-header--center {
    text-align: center;
}

.section-header__badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3B82F6;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header__title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header__text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.analytics-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.analytics-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s ease;
}

.analytics-feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.analytics-feature-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    margin-bottom: 24px;
}

.analytics-feature-card__icon--blue { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.analytics-feature-card__icon--green { background: linear-gradient(135deg, #10B981, #059669); }
.analytics-feature-card__icon--purple { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.analytics-feature-card__icon--orange { background: linear-gradient(135deg, #F59E0B, #D97706); }
.analytics-feature-card__icon--teal { background: linear-gradient(135deg, #06B6D4, #0891B2); }
.analytics-feature-card__icon--pink { background: linear-gradient(135deg, #EC4899, #DB2777); }

.analytics-feature-card__title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.analytics-feature-card__text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.analytics-feature-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analytics-feature-card__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 8px;
}

.analytics-feature-card__list li i {
    color: #10B981;
    font-size: 12px;
}

/* ============================================
   STATS SECTION
============================================ */
.analytics-stats {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.analytics-stats__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.analytics-stats__item {
    text-align: center;
}

.analytics-stats__icon {
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #3B82F6;
    margin: 0 auto 16px;
}

.analytics-stats__number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.analytics-stats__label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.analytics-stats__divider {
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   CTA SECTION
============================================ */
.analytics-cta {
    padding: 100px 0;
    background: #0f172a;
}

.analytics-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 24px;
    padding: 56px;
}

.analytics-cta__title {
    color: #fff;
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.analytics-cta__text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin: 0;
}

.analytics-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    color: #fff;
    padding: 18px 36px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.analytics-cta__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(59, 130, 246, 0.4);
    color: #fff;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1200px) {
    .analytics-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .floating-stat {
        display: none;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .analytics-stats__grid {
        flex-wrap: wrap;
        gap: 32px;
    }

    .analytics-stats__divider {
        display: none;
    }

    .analytics-stats__item {
        width: 40%;
    }
}

@media (max-width: 768px) {
    .analytics-hero {
        padding: 140px 0 80px;
    }

    .analytics-hero__title {
        font-size: 2.25rem;
    }

    .analytics-hero__buttons {
        flex-direction: column;
    }

    .analytics-btn {
        width: 100%;
        justify-content: center;
    }

    .analytics-features__grid {
        grid-template-columns: 1fr;
    }

    .analytics-cta__inner {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }

    .section-header__title {
        font-size: 1.75rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .chart-bars {
        height: 120px;
    }

    .chart-bar {
        width: 10px;
    }
}
