/* 
   QA Improved Stats Section - Minimalist Tech Variation
   Based on reference image in QA.md / User Request
*/

.stats {
    padding: 160px 0;
    position: relative;
    background: #000000;
    /* Pure black background for high contrast */
    overflow: hidden;
}

/* Clean Black Tech Background - No Collisions */
.background-audit-log {
    position: absolute;
    top: 50px;
    right: 0;
    width: 40%;
    height: 100%;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: #FF6B35;
    opacity: 0.1;
    /* Improved for black theme contrast */
    white-space: pre-wrap;
    pointer-events: none;
    z-index: 1;
    /* Keeps the technical text in the back */
    overflow: hidden;
    text-align: left;
}

.stats-decoration-ring {
    position: absolute;
    top: 60px;
    left: 60px;
    width: 35px;
    height: 35px;
    border: 3px solid #FF6B35;
    border-radius: 50%;
    opacity: 0.6;
    z-index: 5;
}

.stats-decoration-dot {
    position: absolute;
    top: 110px;
    left: 130px;
    width: 8px;
    height: 8px;
    background: #FF6B35;
    border-radius: 50%;
    opacity: 0.8;
    z-index: 5;
}

/* Atmosphere Clear */
.stats::before,
.stats::after {
    display: none;
}

.stats::before,
.stats::after {
    display: none;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.4;
    }

    50% {
        transform: translate(15px, -20px);
        opacity: 0.8;
    }
}

@keyframes floatCircle {
    0% {
        transform: rotate(0deg) translate(10px);
    }

    100% {
        transform: rotate(360deg) translate(10px);
    }
}

.stat-container {
    position: relative;
    z-index: 10;
    /* Keeps stats on top */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.stat-card {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.5s ease;
}

/* 4th item alignment - it should naturally fall to row 2 col 1 */
.stat-card:nth-child(4) {
    grid-column: 1;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 6.8rem;
    font-weight: 800;
    line-height: 0.8;
    margin-bottom: 20px;
    position: relative;
    z-index: 11;
    /* Top-most layer */

    /* Strict Image Gradient */
    background: linear-gradient(180deg, #FFB830 0%, #FF6B35 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Subtle Glow */
    filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.15));
    letter-spacing: -0.05em;
    display: block;
}

.stat-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    color: #888;
    letter-spacing: 0.35em;
    /* Extreme tech letter spacing from image */
    text-transform: uppercase;
    font-weight: 800;
    transition: color 0.3s ease;
}

.stat-card:hover .stat-label {
    color: #FFFFFF;
}

/* Hide legacy elements if they persist in HTML */
.stat-icon,
.stat-sparkle,
.stat-progress {
    display: none !important;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .stat-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 40px;
    }

    .stat-card:nth-child(4) {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .stat-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .stat-number {
        font-size: 5rem;
    }
}