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

:root {
    --bg-primary: #001633;
    --bg-secondary: #0A2540;
    --bg-card: #0E2A47;
    --text-primary: #FFFFFF;
    --text-secondary: #78909C;
    --accent: #FFAB40;
    --accent-glow: rgba(255, 171, 64, 0.25);
    --accent2: #85D5E6;
    --accent2-glow: rgba(133, 213, 230, 0.2);
    --success: #0097A7;
    --border: #1A3A5C;
}

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

/* ============ Header ============ */
header {
    text-align: center;
    padding: 50px 24px 36px;
}

.header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 10px;
}

.header-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px var(--accent-glow));
}

header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent), #FFD180);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    margin-top: 6px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ============ Card Grid ============ */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* ============ Card ============ */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px var(--accent-glow);
}

.card-icon {
    margin-bottom: 20px;
}

.card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
}

/* ============ Tags ============ */
.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.tag {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent2);
}

/* ============ Card Button ============ */
.card-btn {
    display: inline-block;
    padding: 10px 32px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: filter 0.2s, box-shadow 0.2s;
}

.card:hover .card-btn {
    filter: brightness(1.1);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ============ Responsive ============ */
@media (max-width: 700px) {
    header h1 {
        font-size: 2rem;
    }

    .header-logo {
        width: 48px;
        height: 48px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}
