:root {
    --stats-primary: #6366f1;
    --stats-secondary: #8b5cf6;
    --stats-accent: #06b6d4;
    --stats-dark: #0f172a;
    --stats-surface: #ffffff;
    --stats-muted: #64748b;
    --stats-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --stats-glass: rgba(255, 255, 255, 0.85);
    --stats-glass-border: rgba(255, 255, 255, 0.3);
}

/* ===== HERO SECTION - DATA PULSE THEME ===== */
.stats-hero {
    position: relative;
    padding: 100px 0 120px;
    overflow: hidden;
}

/* Floating Statistical Symbols */
.stats-symbols {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.symbol {
    position: absolute;
    font-family: 'Times New Roman', serif;
    font-style: italic;
    color: rgba(99, 102, 241, 0.08);
    animation: float 20s ease-in-out infinite;
}

.symbol:nth-child(1) { font-size: 4rem; top: 10%; left: 5%; animation-delay: 0s; }
.symbol:nth-child(2) { font-size: 3rem; top: 60%; left: 10%; animation-delay: -3s; }
.symbol:nth-child(3) { font-size: 5rem; top: 20%; right: 8%; animation-delay: -6s; }
.symbol:nth-child(4) { font-size: 2.5rem; top: 70%; right: 15%; animation-delay: -9s; }
.symbol:nth-child(5) { font-size: 3.5rem; top: 40%; left: 3%; animation-delay: -12s; }
.symbol:nth-child(6) { font-size: 2rem; bottom: 20%; right: 5%; animation-delay: -15s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.08; }
    25% { transform: translateY(-20px) rotate(5deg); opacity: 0.15; }
    50% { transform: translateY(0) rotate(0deg); opacity: 0.08; }
    75% { transform: translateY(20px) rotate(-5deg); opacity: 0.15; }
}

.stats-hero-content {
    position: relative;
    z-index: 2;
}

.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stats-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--stats-accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.stats-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2B3443;
}

.stats-lead {
    font-size: 1.15rem;
    color: #475467;
    max-width: 600px;
    line-height: 1.7;
}

/* Stats Counter Cards */
.stats-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

.counter-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #cdd0d8;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    min-width: 150px;
    transition: all 0.3s ease;
}

.counter-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.counter-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #475467;
    margin-bottom: 0.5rem;
}

.counter-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2B3443;
    font-variant-numeric: tabular-nums;
}

.counter-value .accent {
    color: var(--stats-primary);
}

/* ===== HERO PREVIEW - DATA DASHBOARD ===== */
.stats-dashboard {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

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

.dashboard-dots {
    display: flex;
    gap: 6px;
}

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

.dashboard-dot.red { background: #ef4444; }
.dashboard-dot.yellow { background: #eab308; }
.dashboard-dot.green { background: #22c55e; }

.dashboard-title {
    font-size: 0.75rem;
    color: #64748b;
    letter-spacing: 0.05em;
}

/* Mini Bar Chart Visualization */
.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 80px;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.chart-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: var(--stats-gradient);
    animation: bar-grow 2s ease-out forwards;
    transform-origin: bottom;
}

.chart-bar:nth-child(1) { height: 45%; animation-delay: 0.1s; }
.chart-bar:nth-child(2) { height: 70%; animation-delay: 0.2s; }
.chart-bar:nth-child(3) { height: 55%; animation-delay: 0.3s; }
.chart-bar:nth-child(4) { height: 85%; animation-delay: 0.4s; }
.chart-bar:nth-child(5) { height: 65%; animation-delay: 0.5s; }
.chart-bar:nth-child(6) { height: 90%; animation-delay: 0.6s; }
.chart-bar:nth-child(7) { height: 50%; animation-delay: 0.7s; }
.chart-bar:nth-child(8) { height: 75%; animation-delay: 0.8s; }

@keyframes bar-grow {
    0% { transform: scaleY(0); }
    100% { transform: scaleY(1); }
}

/* Stats Output Grid */
.stats-output {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.stat-item:nth-child(1) { border-left-color: #6366f1; }
.stat-item:nth-child(2) { border-left-color: #8b5cf6; }
.stat-item:nth-child(3) { border-left-color: #06b6d4; }
.stat-item:nth-child(4) { border-left-color: #22c55e; }
.stat-item:nth-child(5) { border-left-color: #f59e0b; }
.stat-item:nth-child(6) { border-left-color: #ec4899; }

.stat-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    font-family: 'SF Mono', 'Consolas', monospace;
}

/* ===== TOOLS SECTION ===== */
.stats-tools-section {
    padding: 5rem 0 6rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--stats-primary);
    margin-bottom: 1rem;
}

.section-tag::before,
.section-tag::after {
    content: "";
    width: 30px;
    height: 1px;
    background: var(--stats-primary);
    opacity: 0.4;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

/* Glassmorphic Tool Cards */
.stats-tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    background: var(--stats-glass);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid #cdd0d8;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.stats-tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--stats-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(99, 102, 241, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
}

.stats-tool-card:hover::before {
    opacity: 1;
}

.tool-icon-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
}

.tool-icon-bg {
    position: absolute;
    inset: 0;
    background: var(--stats-gradient);
    border-radius: 16px;
    opacity: 0.1;
    transition: all 0.3s ease;
}

.stats-tool-card:hover .tool-icon-bg {
    opacity: 0.2;
    transform: scale(1.1);
}

.tool-icon-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.tool-icon-inner img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tool-content {
    flex: 1;
}

.tool-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.tool-description {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.tool-badge {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--stats-primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

.tool-arrow {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: var(--stats-gradient);
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.stats-tool-card:hover .tool-arrow {
    transform: translateX(4px);
}

/* ===== CONTENT SECTION - TABBED INSIGHTS ===== */
.stats-insights-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.insights-main {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.insights-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.insights-text {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Capability List */
.capability-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.capability-item {
    display: flex;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.capability-item:last-child {
    border-bottom: none;
}

.capability-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    background: var(--stats-gradient);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.capability-content strong {
    display: block;
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.capability-content span {
    font-size: 0.9rem;
    color: #64748b;
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.use-case-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.use-case-card:hover {
    background: #ffffff;
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

.use-case-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.use-case-card:nth-child(1) .use-case-icon { background: rgba(99, 102, 241, 0.15); }
.use-case-card:nth-child(2) .use-case-icon { background: rgba(6, 182, 212, 0.15); }
.use-case-card:nth-child(3) .use-case-icon { background: rgba(139, 92, 246, 0.15); }
.use-case-card:nth-child(4) .use-case-icon { background: rgba(34, 197, 94, 0.15); }

.use-case-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.use-case-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

/* Bottom Callout */
.stats-callout {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
}

.callout-text {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

.callout-text strong {
    color: #0f172a;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1199.98px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .stats-hero {
        padding: 80px 0 100px;
    }
    
    .stats-counters {
        gap: 0.75rem;
    }
    
    .counter-card {
        min-width: calc(50% - 0.5rem);
        padding: 1rem;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .stats-hero {
        padding: 60px 0 80px;
    }
    
    .stats-dashboard {
        margin-top: 2rem;
    }
    
    .stats-output {
        grid-template-columns: 1fr;
    }
    
    .counter-card {
        min-width: 100%;
    }
    
    .insights-main {
        padding: 1.5rem;
    }
}
