/* Stakes Section */
.stakes-section {
    background: #f8fafc;
    padding: 100px 40px 80px;
    position: relative;
    overflow: hidden;
}

/* Add subtle gradient overlay */
.stakes-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top right, rgba(20, 184, 166, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(127, 87, 227, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Purple wave at bottom */
.stakes-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='grad1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%2314b8a6' stop-opacity='0.03'/%3E%3Cstop offset='100%25' stop-color='%237f57e3' stop-opacity='0.04'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,150 C300,100 600,200 900,150 C1050,125 1100,175 1200,150 L1200,300 L0,300 Z' fill='url(%23grad1)'/%3E%3C/svg%3E");
    background-size: cover;
    z-index: 0;
}

.stakes-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stakes-header {
    text-align: center;
    margin-bottom: 64px;
}

/* Badge */
.stakes-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 32px;
}

.stakes-badge-line {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
}

.stakes-badge-icon {
    font-size: 16px;
    margin-right: 4px;
}

/* Title */
.stakes-title {
    font-size: 3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* FIXED: Gradient text for "rewrites" - matching your HTML class name */
.stakes-title .gradient-word {
    background: var(--color-accent-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-block;
    font-weight: 600; /* Changed from 700 to match h2 */
    color: transparent !important; /* Fallback for non-webkit browsers */
}

/* Sparkle Animation */
@keyframes sparkle {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.sparkle {
    font-size: 0.8em;
    margin-left: 6px;
    display: inline-block;
    animation: sparkle 2.2s ease-in-out infinite;
}

.stakes-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.5;
}

/* Stats Cards */
.stakes-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    flex: 1 1 280px;
    max-width: 320px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(127, 87, 227, 0.10);
    border-color: #7f57e3;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
    line-height: 1;
    color: #374151;
}

.stat-label {
    font-size: 0.91rem;
    font-weight: 500;
    line-height: 1.4;
    color: #4b5563;
}

/* Attribution */
.stakes-attribution {
    text-align: center;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.8;
    margin: 0 auto;
    padding: 24px 40px;
    max-width: 800px;
    border-top: 1px solid #e5e7eb;
}

.attribution-name {
    font-weight: 600;
    color: #6b7280;
}

.stakes-attribution .credentials {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Mobile - All 3 cards in one row */
@media (max-width: 768px) {
    .stakes-section {
        padding: 60px 20px 40px;
    }

    .stakes-header {
        margin-bottom: 32px;
    }

    .stakes-title {
        font-size: 2rem;
    }

    /* Force all 3 cards to stay in one row */
    .stakes-stats {
        gap: 12px;
        justify-content: center;
        margin-bottom: 32px;
        flex-wrap: nowrap; /* Prevent wrapping */
    }

    .stat-card {
        flex: 1 1 0; /* Equal width for all cards */
        min-width: 0; /* Allow cards to shrink below their content */
        max-width: none; /* Remove max-width restriction */
        padding: 24px 12px;
    }

    /* Remove special styling for third card */
    .stat-card:nth-child(3) {
        flex: 1 1 0;
        max-width: none;
    }

    .stat-value {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .stat-label {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    /* Hide line breaks on mobile for better space usage */
    .stat-label br {
        display: none;
    }

    .stat-label {
        display: block;
        padding: 0 2px;
    }

    /* Make attribution more compact on mobile */
    .stakes-attribution {
        font-size: 0.75rem;
        padding: 16px 20px;
        line-height: 1.6;
    }

    .attribution-name {
        font-weight: 600;
    }

    /* Keep credentials on same line on mobile */
    .stakes-attribution .credentials {
        display: block; /* Keep as block to stay on its own line */
        margin-top: 4px;
        font-size: 0.65rem; /* Smaller font size */
        white-space: nowrap; /* Prevent wrapping within credentials */
    }
}

@media (max-width: 480px) {
    .stakes-stats {
        gap: 8px; /* Even smaller gap for very small screens */
        margin-bottom: 24px;
    }

    .stakes-header {
        margin-bottom: 24px;
    }

    .stakes-badge-inline {
        font-size: 12px;
        gap: 4px;
    }

    .stakes-badge-line {
        width: 30px; /* Shorter lines on small screens */
    }

    .stat-card {
        padding: 20px 8px; /* Further reduced padding */
    }

    .stat-value {
        font-size: 1.25rem; /* Smaller font for very small screens */
    }

    .stat-label {
        font-size: 0.625rem; /* Even smaller label text */
        line-height: 1.1;
    }

    /* Even more compact attribution on very small screens */
    .stakes-attribution {
        font-size: 0.7rem;
        padding: 12px 16px;
    }

    .stakes-attribution .credentials {
        font-size: 0.6rem; /* Even smaller for very small screens */
        white-space: nowrap; /* Ensure it stays on one line */
    }
}

/* Extra small screens - ensure cards still fit */
@media (max-width: 360px) {
    .stat-card {
        padding: 16px 6px;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }

    /* Ultra-compact attribution for very small phones */
    .stakes-attribution {
        font-size: 0.65rem;
        padding: 10px 12px;
    }

    .stakes-attribution .credentials {
        font-size: 0.55rem; /* Very small but still readable */
    }
}