
/* =========================
   General Settings
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0b1120;
    color: #e5e7eb;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}

.eyebrow {
    color: #818cf8;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.7;
}


/* =========================
   Navigation
========================= */

.navbar {
    position: sticky;
    top: 12px;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;

    margin: 12px 3%;
    padding: 14px 24px;

    border: 1px solid #253047;
    border-radius: 16px;
    background: rgba(11, 17, 32, 0.92);
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-logo {
    width: 42px;
    height: 42px;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand h2 {
    margin: 0;
    font-size: 18px;
}

.brand p {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
}

.nav-links a {
    padding: 9px 10px;
    border-radius: 7px;
    color: #94a3b8;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background: #1e293b;
    color: #ffffff;
}

.nav-links .signup-link {
    background: #6366f1;
    color: #ffffff;
}

.nav-links .signup-link:hover {
    background: #4f46e5;
}


/* =========================
   Hero Section
========================= */

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    padding: 35px 0 60px;
}

.hero-content {
    min-width: 0;
}

.hero h1 {
    margin: 18px 0;
    font-size: clamp(35px, 6vw, 55px);
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero h1 span {
    color: #818cf8;
}

.hero-description {
    max-width: 650px;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
}


/* =========================
   Buttons
========================= */

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}

.btn-primary {
    background: #6366f1;
    color: #ffffff;
}

.btn-primary:hover {
    background: #4f46e5;
}

.btn-secondary {
    border: 1px solid #334155;
}

.btn-secondary:hover {
    background: #1e293b;
}


/* =========================
   Key Statistics
========================= */

.statistics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 10px 0 75px;
}

.stat-card,
.winner-card {
    border: 1px solid #253047;
    border-radius: 14px;
    background: #111827;
}

.stat-card {
    padding: 23px;
}

.stat-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

.stat-card h2 {
    margin: 14px 0 8px;
    font-size: 30px;
}

.stat-card span {
    color: #64748b;
    font-size: 12px;
}


/* =========================
   Previous Month's Winners
========================= */

.winners-section {
    margin-bottom: 75px;
}

/* Shared Section Heading */

.section-heading {
    margin-bottom: 28px;
    text-align: left;
}

.section-heading .eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
}

.section-heading h2 {
    margin: 0;
    color: #e5e7eb;
    font-size: 30px;
    line-height: 1.4;
}

.section-description {
    margin: 10px 0 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
}


/* Winner Cards Grid */

.winner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.winner-card {
    min-width: 0;
    padding: 24px;
    transition: transform 0.2s, border-color 0.2s;
}

.winner-card:hover {
    transform: translateY(-3px);
    border-color: #6366f1;
}

.winner-category {
    margin: 0 0 18px;
    color: #818cf8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.6;
}


/* Winner Information and Photo */

.winner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.winner-info {
    flex: 1;
    min-width: 0;
}

.winner-info h3 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.winner-handle {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.winner-divider {
    height: 1px;
    margin: 16px 0;
    background: #253047;
}

.winner-description {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.7;
}

.winner-info a {
    display: inline-block;
    margin-top: 14px;
    color: #a5b4fc;
    font-size: 13px;
    font-weight: 600;
}

.winner-info a:hover {
    color: #c7d2fe;
}

.winner-photo {
    display: block;
    width: 125px;
    height: 155px;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center;
    border: 1px solid #334155;
    border-radius: 12px;
}


/* =========================
   About CPU
========================= */

.about-section {
    max-width: 720px;
    padding: 10px 0 65px;
}

.about-section h2 {
    margin: 8px 0;
    font-size: 28px;
}

.about-section > p:not(.eyebrow) {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.8;
}

.text-link {
    display: inline-block;
    margin-top: 8px;
    color: #a5b4fc;
    font-size: 14px;
    font-weight: 600;
}

.text-link:hover {
    color: #c7d2fe;
}


/* =========================
   Footer
========================= */

.footer {
    padding: 24px 5%;
    border-top: 1px solid #253047;
    color: #64748b;
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
}


/* =========================
   Responsive Layout
========================= */

/* Tablets and smaller screens */

@media (max-width: 850px) {
    .navbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .winner-grid {
        grid-template-columns: 1fr;
    }
}


/* Mobile phones */

@media (max-width: 600px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 45px;
    }

    .hero-image img {
        max-width: 240px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .statistics {
        grid-template-columns: 1fr;
    }

    .section-heading h2,
    .about-section h2 {
        font-size: 24px;
    }

    .winner-card {
        padding: 18px;
    }

    .winner-content {
        gap: 12px;
    }

    .winner-photo {
        width: 95px;
        height: 125px;
        border-radius: 10px;
    }

    .winner-info h3 {
        font-size: 17px;
    }
}
