@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.apps-page-root {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    padding: 32px 0 64px 0;
    color: #ffffff;
    overflow: hidden;
    background: var(--apps-bg, #1E3569);
    border-radius: 32px;
}

.apps-page-wrapper {
    position: relative;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Radial Ambient Light Blobs */
.apps-page-bg-blob-1 {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--apps-primary, #6366f1) 0%, transparent 70%);
    opacity: 0.22;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: appsPulseBlob 8s ease-in-out infinite alternate;
}

.apps-page-bg-blob-2 {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--apps-secondary, #ec4899) 0%, transparent 70%);
    opacity: 0.18;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: appsPulseBlob 10s ease-in-out infinite alternate-reverse;
}

@keyframes appsPulseBlob {
    0% {
        transform: scale(0.9) translate(0, 0);
        opacity: 0.18;
    }
    100% {
        transform: scale(1.2) translate(30px, -20px);
        opacity: 0.3;
    }
}

/* HERO SECTION */
.apps-page-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 24px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(99, 102, 241, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    box-sizing: border-box;
    margin-bottom: 48px;
}

.apps-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    box-shadow: 0 0 15px var(--apps-glow, #8b5cf6);
    margin-bottom: 20px;
}

.apps-page-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -1.2px;
    margin: 0 0 18px 0;
    color: #ffffff;
}

.apps-page-title span {
    display: inline;
    background: linear-gradient(135deg, var(--apps-primary, #6366f1) 0%, var(--apps-secondary, #ec4899) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    padding: 0.1em 0;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.apps-page-subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    max-width: 720px;
    margin: 0 auto 32px auto;
    font-weight: 500;
}

/* HERO BUTTONS */
.apps-page-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.apps-page-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--apps-primary, #6366f1), var(--apps-secondary, #ec4899));
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.apps-page-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 35px rgba(236, 72, 153, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.apps-page-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.apps-page-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
}

/* SECTION HEADERS */
.apps-page-section-header {
    margin-bottom: 28px;
}

.apps-page-section-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.6px;
}

.apps-page-section-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    font-weight: 500;
}

/* RELEASED APPS GRID */
.apps-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}

.apps-page-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.apps-page-card:hover {
    transform: translateY(-6px);
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.2);
}

.apps-page-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.apps-page-card-icon {
    font-size: 26px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.apps-page-card-tag {
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.apps-page-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.apps-page-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 20px 0;
}

.apps-page-tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.apps-page-tech-pill {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 6px;
}

.apps-page-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.apps-page-card-link:hover {
    background: linear-gradient(135deg, var(--apps-primary, #6366f1), var(--apps-secondary, #ec4899));
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: #ffffff;
}

/* WORK IN PROGRESS CONTAINER */
.apps-page-wip-container {
    position: relative;
    margin-bottom: 56px;
    padding: 40px 32px;
    background: var(--apps-wip-bg, rgba(15, 23, 42, 0.8));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--apps-wip-border, rgba(255, 255, 255, 0.12));
    border-radius: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.apps-page-wip-header {
    margin-bottom: 32px;
}

.apps-page-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.apps-page-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    display: inline-block;
    animation: appsPulseGlow 1.8s infinite;
}

@keyframes appsPulseGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.apps-page-wip-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--apps-wip-title-color, #ffffff);
    margin: 0 0 8px 0;
    letter-spacing: -0.6px;
}

.apps-page-wip-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.68);
    margin: 0;
    font-weight: 500;
}

.apps-page-wip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.apps-page-wip-grid.apps-page-wip-cols-1 { grid-template-columns: 1fr; }
.apps-page-wip-grid.apps-page-wip-cols-2 { grid-template-columns: repeat(2, 1fr); }
.apps-page-wip-grid.apps-page-wip-cols-3 { grid-template-columns: repeat(3, 1fr); }
.apps-page-wip-grid.apps-page-wip-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .apps-page-wip-grid.apps-page-wip-cols-3,
    .apps-page-wip-grid.apps-page-wip-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .apps-page-wip-grid.apps-page-wip-cols-1,
    .apps-page-wip-grid.apps-page-wip-cols-2,
    .apps-page-wip-grid.apps-page-wip-cols-3,
    .apps-page-wip-grid.apps-page-wip-cols-4 {
        grid-template-columns: 1fr;
    }
}

.apps-page-wip-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    background: var(--apps-wip-card-bg, rgba(30, 41, 59, 0.55));
    border: 1px solid var(--apps-wip-card-border, rgba(255, 255, 255, 0.08));
    border-radius: 22px;
    backdrop-filter: blur(14px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.apps-page-wip-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45), 0 0 22px rgba(99, 102, 241, 0.18);
}

.apps-page-wip-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.apps-page-wip-icon {
    font-size: 26px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.apps-page-wip-tags {
    display: flex;
    align-items: center;
    gap: 8px;
}

.apps-page-wip-badge {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: #f472b6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.apps-page-wip-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    font-size: 11px;
    font-weight: 700;
}

.apps-page-wip-card-title {
    font-size: 21px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.apps-page-wip-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 22px 0;
}

/* PROGRESS BAR */
.apps-page-wip-progress-wrap {
    margin-bottom: 22px;
}

.apps-page-wip-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.apps-page-wip-progress-label {
    color: rgba(255, 255, 255, 0.6);
}

.apps-page-wip-progress-val {
    color: var(--apps-wip-prog-start, var(--apps-primary, #6366f1));
}

.apps-page-wip-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.apps-page-wip-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--apps-wip-prog-start, var(--apps-primary, #6366f1)), var(--apps-wip-prog-end, var(--apps-secondary, #ec4899)));
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.apps-page-wip-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    gap: 12px;
}

.apps-page-wip-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.apps-page-wip-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.apps-page-wip-link:hover {
    background: var(--apps-primary, #6366f1);
    border-color: var(--apps-primary, #6366f1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    color: #ffffff;
}

/* STATS HIGHLIGHTS ROW */
.apps-page-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.apps-page-stat-card {
    padding: 24px 20px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(16px);
    transition: transform 0.3s ease;
}

.apps-page-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.apps-page-stat-number {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--apps-primary, #6366f1), var(--apps-secondary, #ec4899));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.apps-page-stat-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.65);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .apps-page-hero {
        padding: 40px 18px;
        border-radius: 24px;
    }

    .apps-page-title {
        font-size: 30px;
    }

    .apps-page-subtitle {
        font-size: 15px;
    }

    .apps-page-grid,
    .apps-page-wip-grid {
        grid-template-columns: 1fr;
    }

    .apps-page-wip-container {
        padding: 24px 18px;
        margin-bottom: 40px;
    }

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