:root {
    --primary-color: #203f80;
    --secondary-color: #1c2849;
    --accent-color: #bc4242;
    --text-color: #211a19;
    --text-light: #7d7f81;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 15px rgba(28,40,73,0.08);
    --shadow-hover: 0 8px 25px rgba(28,40,73,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--white);
}

.header-brand img {
    height: 45px;
    width: auto;
}

.header-brand h1 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header-brand span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.3px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.85;
    transition: var(--transition);
}

.header-nav a:hover {
    opacity: 1;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    padding: 60px 0 50px;
    text-align: center;
}

.hero-banner h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-banner p {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* Search */
.search-section {
    padding: 0;
    margin-top: -25px;
    position: relative;
    z-index: 10;
}

.search-box {
    background: var(--white);
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.search-box i {
    color: var(--text-light);
    font-size: 18px;
}

.search-box input {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
    color: var(--text-color);
}

.search-box input::placeholder {
    color: var(--text-light);
}

/* Platforms Grid */
.platforms {
    padding: 50px 0 80px;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title i {
    color: var(--primary-color);
    font-size: 1rem;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.platform-card {
    background: var(--white);
    padding: 30px 22px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.platform-card:hover .platform-icon {
    background: var(--accent-color);
}

.platform-icon {
    width: 56px;
    height: 56px;
    background: var(--secondary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    transition: var(--transition);
}

.platform-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.platform-card p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.5;
}

.platform-card .card-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--bg-light);
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 30px 0;
    margin-top: auto;
    text-align: center;
}

.footer p {
    font-size: 0.82rem;
    opacity: 0.7;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.85;
    transition: var(--transition);
}

.footer a:hover {
    opacity: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .platforms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .hero-banner {
        padding: 40px 0 35px;
    }

    .hero-banner h2 {
        font-size: 1.6rem;
    }

    .header-brand h1 {
        font-size: 1.1rem;
    }

    .header-brand span {
        display: none;
    }

    .header-nav a:not(:last-child) {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .platforms-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .platform-card {
        padding: 22px 14px;
    }

    .platform-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .platform-card h4 {
        font-size: 0.85rem;
    }

    .hero-banner h2 {
        font-size: 1.3rem;
    }

    .hero-banner p {
        font-size: 0.9rem;
    }

    .search-box {
        margin: 0 16px;
    }
}
