@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

:root {
    /* ✨ Premium Pastel Aesthetic Palette ✨ */
    --bg-main: #FDFDFE;
    /* Softest neutral white */
    --text-primary: #2D2D44;
    /* Deep, muted indigo-gray for contrast and softness */
    --text-secondary: #7A7A9A;
    /* Elegant gray */

    /* Gentle Accents */
    --accent-peach: #FFDED8;
    --accent-mint: #D6F1E6;
    --accent-lavender: #EAE1FC;
    --accent-blue: #E1EDFE;
    --accent-sand: #FBF2E1;

    --brand-magenta: #D9466D;
    /* The vibrant pop color (for CTA) */

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.9);

    --shadow-subtle: 0 20px 40px rgba(45, 45, 68, 0.04);
    --shadow-float: 0 30px 60px rgba(45, 45, 68, 0.08);

    --radius-soft: 28px;
    --radius-pill: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    direction: rtl;
    line-height: 1.8;
    min-height: 100vh;
}

/* ☁️ Ambient Blur ☁️ */
.ambient-blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    animation: drift 15s ease-in-out infinite alternate;
}

.ambient-1 {
    top: -10%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-lavender) 0%, transparent 60%);
}

.ambient-2 {
    bottom: -15%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-peach) 0%, transparent 60%);
    animation-delay: -5s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-40px, 40px) scale(1.1);
    }
}

/* ✨ Typography ✨ */
.text-gradient {
    background: linear-gradient(135deg, #FF7B8E 0%, #B686E8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.run-domain {
    display: inline-flex;
    align-items: center;
    font-weight: 900;
    letter-spacing: 1px;
    transform: translateY(-2px);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.run-domain:hover {
    transform: translateY(-6px) scale(1.02);
}

.run-text {
    background: linear-gradient(135deg, var(--brand-magenta) 0%, #B686E8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.title-hero {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.text-lead {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 2;
}

/* 🧊 Premium Glassmorphism 🧊 */
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* 🎀 Buttons 🎀 */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 44px;
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--brand-magenta) 0%, #FF7B8E 100%);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: none;
    box-shadow: 0 12px 30px rgba(217, 70, 109, 0.25);
    cursor: pointer;
    overflow: hidden;
    z-index: 10;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(217, 70, 109, 0.35);
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid #EAEAF2;
    padding: 14px 40px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.btn-secondary:hover {
    background: #F8F8FB;
    transform: translateY(-2px);
    border-color: #DFDFE8;
}

/* 🌟 Navbar 🌟 */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    z-index: 100;
    transition: all 0.4s ease;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    height: 40px;
}

.nav-logo span {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover svg {
    opacity: 1;
}

.nav-auth {
    display: flex;
    gap: 12px;
    z-index: 150;
    pointer-events: auto;
}

/* 🦄 Hero Section 🦄 */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 160px 20px 40px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--accent-sand);
    color: #9E7D41;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.hero-tag svg {
    width: 16px;
    height: 16px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 48px;
    margin-bottom: 80px;
}

/* The Single Hero Floating Mockup */
.hero-visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    perspective: 2000px;
    z-index: 1;
    margin: 0 auto;
}

.hero-mockup {
    width: 320px;
    display: block;
    margin: 0 auto;
    border-radius: 36px;
    box-shadow: var(--shadow-float), 0 0 0 10px white;
    transform: rotateX(5deg) rotateY(-2deg);
    animation: gentleFloat 6s ease-in-out infinite alternate;
}

@keyframes gentleFloat {
    0% {
        transform: translateY(0) rotateX(5deg) rotateY(-2deg);
    }

    100% {
        transform: translateY(-20px) rotateX(3deg) rotateY(0deg);
    }
}

/* 🖱️ 3D Mouse Tracking (Dynamic Hero) 🖱️ */
.hero-visual-wrapper {
    perspective: 2000px;
    transform-style: preserve-3d;
}

.hero-mockup.interactive-3d {
    transition: transform 0.1s ease-out;
    /* Super fast transition for mouse tracking */
    animation: none;
    /* Disable default float when interactive */
}

/* 🪄 Scroll Reveal Animations 🪄 */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Delay modifiers for staggered reveals */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

/* 🖼️ Alternating Storytelling Section 🖼️ */
.story-section {
    padding: 140px 20px;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.story-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 160px;
}

.story-block:last-child {
    margin-bottom: 0;
}

.story-block:nth-child(even) .story-text {
    order: 2;
}

.story-block:nth-child(even) .story-visual {
    order: 1;
}

.story-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.story-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: var(--accent-lavender);
    filter: blur(60px);
    z-index: -1;
    opacity: 0.8;
}

.story-visual.mint::before {
    background: var(--accent-mint);
}

.story-visual.peach::before {
    background: var(--accent-peach);
}

.story-visual.blue::before {
    background: var(--accent-blue);
}

.story-mockup {
    width: 290px;
    border-radius: 34px;
    box-shadow: var(--shadow-subtle), 0 0 0 8px white;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateY(0) scale(1);
}

.story-block:hover .story-mockup {
    transform: translateY(-15px) scale(1.05);
    /* Enhanced hover */
    box-shadow: var(--shadow-float), 0 0 0 8px white;
}

.story-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.2;
}

.story-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.story-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 24px;
    color: white;
}

.story-icon svg {
    width: 30px;
    height: 30px;
}

/* Color classes for storytelling blocks */
.bg-lavender {
    background: #B686E8;
}

.bg-peach {
    background: #FF9E8F;
}

.bg-mint {
    background: #64D3AB;
}

.bg-blue {
    background: #71A8FF;
}

/* 🌟 The Psychological Hook (Central Quote) 🌟 */
.quote-section {
    padding: 160px 20px;
    text-align: center;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.quote-mark {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    opacity: 0.05;
    z-index: -1;
    color: var(--text-primary);
}

.quote-text {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 300;
    /* Ultra Light for ethereal feel */
    line-height: 1.5;
    color: var(--text-primary);
    letter-spacing: -1px;
    margin-bottom: 40px;
}

.quote-text strong {
    font-weight: 800;
    color: var(--brand-magenta);
}

/* 🔐 Auth Modal (Pure Elegance) 🔐 */
.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(253, 253, 254, 0.85);
    /* More opaque, lighter */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Liquid bouncy feel */
    padding: 20px;
}

.auth-modal.active {
    opacity: 1;
    pointer-events: all;
}

.auth-box {
    width: 100%;
    max-width: 440px;
    padding: 40px 32px;
    background: white;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-float);
    transform: scale(0.9) translateY(40px);
    /* Bouncy entrance state */
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    /* Hide scrollbar for clean look */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.auth-box::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.auth-modal.active .auth-box {
    transform: scale(1) translateY(0);
}

.auth-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-close svg {
    width: 24px;
    height: 24px;
}

.auth-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header img {
    height: 48px;
    margin-bottom: 20px;
}

.auth-header h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 8px;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    opacity: 0.6;
}

.input-icon svg {
    width: 20px;
    height: 20px;
}

.input-group input {
    width: 100%;
    padding: 16px 20px 16px 44px;
    /* padding right for rtl + icon */
    background: #F8F8FB;
    border: 1px solid transparent;
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    background: white;
    border-color: var(--brand-magenta);
    box-shadow: 0 0 0 4px rgba(217, 70, 109, 0.1);
}

.auth-tabs {
    display: flex;
    margin-bottom: 32px;
    border-bottom: 2px solid #F0F0F5;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.auth-tab.active {
    color: var(--text-primary);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-magenta);
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: white;
    border: 1px solid #EAEAF2;
    border-radius: 16px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    margin-top: 24px;
    transition: all 0.3s;
}

.google-btn:hover {
    background: #F8F8FB;
    transform: translateY(-2px);
    border-color: #DFDFE8;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 990px) {
    .story-block {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 100px;
        text-align: center;
    }

    .story-block:nth-child(even) .story-text {
        order: unset;
    }

    .story-block:nth-child(even) .story-visual {
        order: unset;
    }

    .story-icon {
        margin: 0 auto 24px;
    }

    .title-hero {
        font-size: 2.4rem;
    }

    .quote-text {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 140px;
    }

    /* Smaller buttons for mobile */
    .btn-primary {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .btn-secondary {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .nav-auth {
        gap: 4px !important;
    }

    .nav-auth .btn-primary,
    .nav-auth .btn-secondary {
        padding: 5px 12px !important;
        font-size: 0.75rem !important;
    }

    .navbar {
        padding: 6px 12px !important;
        width: calc(100% - 20px) !important;
        top: 10px !important;
    }

    .nav-logo span {
        display: none !important;
    }

    .nav-logo img {
        height: 26px !important;
    }

    .google-btn {
        padding: 10px !important;
        font-size: 0.85rem !important;
    }
}

/* 📱 Shrink Modal Contents for Short Screens 📱 */
@media (max-height: 800px) {
    .auth-box {
        padding: 24px 20px;
    }

    .auth-header {
        margin-bottom: 24px;
    }

    .auth-header img {
        height: 36px;
        margin-bottom: 12px;
    }

    .auth-header h3 {
        font-size: 1.4rem;
    }

    .auth-tabs {
        margin-bottom: 20px;
    }

    .auth-tab {
        padding: 10px 0;
        font-size: 0.95rem;
    }

    .input-group {
        margin-bottom: 16px;
    }

    .input-group input {
        padding: 12px 16px 12px 40px;
        font-size: 0.95rem;
    }

    .google-btn {
        margin-top: 16px;
        padding: 12px;
        font-size: 0.95rem;
    }

    .btn-primary {
        padding: 14px 24px;
    }
}

/* ✨ Re-Imagined Magical Floating APK (Mint & Lavender Edition) ✨ */
.floating-apk {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 18px 8px 8px;
    border-radius: 100px;
    /* Full pill shape */
    text-decoration: none;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid transparent;
    background-clip: padding-box, border-box;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
        linear-gradient(135deg, #D9466D 0%, #FF7B8E 50%, #B686E8 100%);
    /* Magenta Iridescent border */
    opacity: 0;
    visibility: hidden;
    box-shadow:
        0 20px 40px rgba(217, 70, 109, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.05);
    animation: apk-drift 5s ease-in-out infinite;
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.floating-apk.show {
    opacity: 1;
    visibility: visible;
}

.floating-apk:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 30px 60px rgba(217, 70, 109, 0.25);
}

/* Iconic Circle with Mint Gradient */
.apk-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D9466D, #FF7B8E);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 15px -3px rgba(217, 70, 109, 0.3);
}

.apk-icon-wrap svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Typography Refresh */
.apk-info {
    display: flex;
    flex-direction: column;
}

.apk-sub {
    font-size: 0.72rem;
    font-weight: 800;
    color: #D9466D;
    /* Magenta */
    display: flex;
    align-items: center;
    gap: 4px;
}

.apk-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1f2937;
}

/* Badge for 'Offline' */
.apk-arrow-box {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #FFF5F7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #FFE4E9;
}

.apk-arrow-box svg {
    width: 18px;
    height: 18px;
    color: #D9466D;
}

/* Floating Animation */
@keyframes apk-drift {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-12px) rotate(1deg);
    }

    66% {
        transform: translateY(-6px) rotate(-1deg);
    }
}

/* Sparkles with softer colors */
.apk-sparkle {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.apk-sparkle.s1 {
    top: -15px;
    left: 20px;
    color: #D9466D;
    font-size: 18px;
}

.apk-sparkle.s2 {
    bottom: -10px;
    right: 50px;
    color: #FF7B8E;
    font-size: 16px;
}

.apk-sparkle.s3 {
    top: 10px;
    right: -15px;
    color: #B686E8;
    font-size: 14px;
}

@media (max-width: 768px) {
    .floating-apk {
        bottom: 16px;
        left: auto;
        right: 12px;
        width: auto;
        padding: 4px 12px 4px 4px;
        gap: 8px;
        border-radius: 100px;
        transform: scale(0.75);
        animation: apk-drift-mobile 5s ease-in-out infinite;
        box-shadow: 0 8px 20px rgba(217, 70, 109, 0.15);
    }

    .floating-apk.show {
        opacity: 1;
        visibility: visible;
        transform: scale(0.75);
    }

    .apk-icon-wrap {
        width: 32px;
        height: 32px;
    }

    .apk-icon-wrap svg {
        width: 15px;
        height: 15px;
    }

    .apk-title {
        font-size: 0.72rem;
    }

    .apk-arrow-box {
        width: 22px;
        height: 22px;
    }

    .apk-arrow-box svg {
        width: 11px;
        height: 11px;
    }

    @keyframes apk-drift-mobile {

        0%,
        100% {
            transform: scale(0.75) translateY(0);
        }

        50% {
            transform: scale(0.75) translateY(-5px);
        }
    }
}

/* 📊 Visitor Stats Cards 📊 */
.stats-container {
    max-width: 1100px;
    margin: 40px auto 120px;
    padding: 0 20px;
    text-align: center;
}

.stats-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.stat-card {
    flex: 1;
    min-width: 160px;
    max-width: 240px;
    background: white;
    padding: 28px 20px;
    border-radius: 32px;
    text-align: center;
    box-shadow: var(--shadow-subtle);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
    border-color: var(--accent-lavender);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-magenta);
    opacity: 0.6;
}

.stat-card:nth-child(2)::after {
    background: #71A8FF;
}

.stat-card:nth-child(3)::after {
    background: #64D3AB;
}

.stat-card:nth-child(4)::after {
    background: #B686E8;
}

.stat-card:nth-child(5)::after {
    background: #FF9E8F;
}

.stat-card:nth-child(6)::after {
    background: #FFD25F;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}