/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4285F4;
    --primary-dark: #1a73e8;
    --primary-light: #e8f0fe;
    --primary-hover: #3367d6;
    --success: #34A853;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-muted: #9aa0a6;
    --bg: #f8f9fa;
    --surface: #ffffff;
    --border: #e8eaed;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-pill: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg);
    min-height: 100vh;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #4285F4 0%, #1a73e8 50%, #0d47a1 100%);
    padding: 72px 24px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.95);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    line-height: 1.15;
}

.hero h1 .icon {
    display: inline-block;
    margin-right: 10px;
}

.tagline {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.88);
    font-weight: 400;
    max-width: 480px;
    margin: 0 auto;
}

/* ===== Filter Navigation ===== */
.filter-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.filter-nav .container {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.35);
}

/* ===== Apps Grid ===== */
.apps-section {
    padding: 48px 0 80px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    padding: 48px 0 80px;
}

/* ===== App Card ===== */
.app-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(66, 133, 244, 0.2);
}

/* App Header */
.app-header {
    background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%);
    padding: 36px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
}

.coming-soon .app-header {
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
}

.app-icon-img {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.app-icon.placeholder {
    width: 88px;
    height: 88px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.app-badges {
    display: flex;
    gap: 6px;
}

/* App Body */
.app-body {
    padding: 20px 24px;
    flex: 1;
}

.app-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.app-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.version {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    padding-top: 3px;
}

.coming-soon-tag {
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.app-description {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

/* Features */
.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.feature {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 500;
}

.coming-soon .feature {
    background: #f1f3f4;
    color: var(--text-secondary);
}

/* Badges */
.badge {
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-ios {
    background: #1c1c1e;
    color: white;
}

.badge-android {
    background: #34A853;
    color: white;
}

.badge-web {
    background: var(--primary);
    color: white;
}

.badge-mobile {
    background: #EA4335;
    color: white;
}

.badge-tools {
    background: #FBBC04;
    color: #202124;
}

/* App Footer */
.app-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border);
    background: #fafafa;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(66, 133, 244, 0.4);
    transform: translateY(-1px);
}

.btn-disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
}

/* App Links */
.app-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
}

.link-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
    font-weight: 500;
}

.link-item:hover {
    color: var(--primary);
}

/* Coming Soon Cards */
.app-card.coming-soon {
    opacity: 0.85;
}

/* ===== Footer ===== */
footer {
    background: #202124;
    padding: 56px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 48px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: rgba(255,255,255,0.45);
    margin-bottom: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 2px;
}

.footer-section p strong {
    color: white;
    font-weight: 600;
}

.footer-role {
    color: rgba(255,255,255,0.4) !important;
    font-size: 0.85rem !important;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-section a {
    color: #8ab4f8;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

/* ===== Support Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(32, 33, 36, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,0.18);
    position: relative;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.modal h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.modal p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ===== Hidden / Animated Cards ===== */
.app-card[data-category].hidden {
    display: none;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        padding: 52px 24px 44px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 32px 0 56px;
    }

    .filter-nav .container {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-left: 16px;
        padding-right: 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-nav .container::-webkit-scrollbar {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    footer {
        padding: 40px 0 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.9rem;
    }
}
