:root {
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --header-bg: #1a1a1a;
    --card-bg: #ffffff;
    --radius-lg: 16px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --font-display: 'Bungee', cursive;
    --font-ui: 'Inter', sans-serif;
}

[data-theme="dark"] {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d3;
    --card-bg: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-ui);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: var(--header-bg);
    color: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.company-name {
    font-family: var(--font-display);
    font-size: 42px;
    line-height: 1;
    margin-bottom: 8px;
}

.company-tagline {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0.8;
}

.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 40px 20px;
}

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

.app-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.app-card-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--app-accent) 0%, #1a1a1a 100%);
    color: white;
}

.app-icon-placeholder {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.app-initial {
    font-family: var(--font-display);
    font-size: 18px;
}

.app-info .app-title {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 2px;
}

.app-info .app-category {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.9;
}

.app-card-body {
    padding: 24px;
    flex: 1;
}

.app-description {
    color: var(--text-secondary);
    font-size: 16px;
}

.app-card-footer {
    padding: 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.badge {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    background: #f0f2f5;
    color: #4a5568;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn {
    padding: 12px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--app-accent, #1a1a1a);
    color: white;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-outline {
    border: 2px solid #e2e8f0;
    color: var(--text-primary);
}

.btn-outline:hover {
    background: #f7fafc;
}

.app-card.placeholder {
    border: 3px dashed #e2e8f0;
    background: transparent;
    box-shadow: none;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.placeholder-content {
    text-align: center;
    color: #cbd5e0;
}

.placeholder-content h3 {
    font-family: var(--font-display);
    margin-bottom: 8px;
}

.site-footer {
    padding: 30px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #a0aec0;
}

@media (max-width: 600px) {
    .company-name {
        font-size: 32px;
    }
    .apps-grid {
        grid-template-columns: 1fr;
    }
}
