@media (prefers-color-scheme: dark) {
    body {
        background: var(--darkbg);
        color: #e2e8f0;
    }
}

/* Modern responsive card layout styles */
/* use zgf dark gray and zgf red */
.hero-section {
    background: linear-gradient(90deg, var(--darkbg) 40%, var(--zgfred) 100%);
    color: white;
    padding: 1rem;
    text-align: center;
    margin-bottom: 3rem;

}

.hero-content {
    /* 2 columns */
    max-width: 1000px;
    columns: 2;
    margin: 0 auto;
}

.hero-title {
    color: var(--zgfred);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.apps-container {
    background: var(--darkbg);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: white;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.app-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.app-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.app-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.app-card-content {
    padding: 1.5rem;
}

.app-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.app-card-subtitle {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 1rem;
}

.app-card-description {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.5;
}

.app-category {
    display: inline-block;
    background: #edf2f7;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.ai-category {
    background: #e6fffa;
    color: #047857;
}

.tool-category {
    background: #fef7e0;
    color: #d69e2e;
}

.footer-section {
    background: var(--zgfgray);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    color: #0e0e0e;
}

.policy-link {
    color: var(--zgfred);
    text-decoration: underline;
    font-weight: 700;
}

.policy-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 1rem;
    }

    .apps-container {
        padding: 0 1rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
