

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f5f5f5;
    color: #111;
    min-height: 100vh;
    animation: fadeIn 0.5s ease;
}




.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    width: 100%;

    padding: 18px 45px;

    background: #111;
    color: #fff;

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.16);
}

.logo {
    color: #fff;
    font-size: 29px;
    font-weight: 700;
    white-space: nowrap;
}

.navbar ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;

    list-style: none;
    gap: 22px;
}

.navbar li {
    display: flex;
}

.navbar a {
    display: inline-flex;
    align-items: center;

    color: #fff;
    text-decoration: none;

    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;

    padding: 7px 4px;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.navbar a:hover {
    color: #ccc;
    transform: translateY(-2px);
}

.navbar a[aria-current="page"] {
    border-bottom: 2px solid #fff;
}




header {
    text-align: center;
    padding: 55px 20px 35px;
}

header h1 {
    color: #111;
    font-size: 48px;
    line-height: 1.25;
    margin-bottom: 12px;
}

header p {
    color: #666;
    font-size: 20px;
    line-height: 1.6;
}




main {
    width: 100%;
    padding: 0 0 60px;
}

.section-title {
    text-align: center;
    color: #111;

    font-size: 34px;
    line-height: 1.3;

    margin: 25px 20px 35px;
}




.cards {
    width: 90%;
    max-width: 1450px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

.card {
    min-height: 190px;

    background: #fff;
    color: #111;

    border: 1px solid #ececec;
    border-top: 5px solid transparent;
    border-radius: 18px;

    padding: 28px;

    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease;
}

.card:hover {
    transform: translateY(-7px);
    border-top-color: #111;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.14);
}

.card h2 {
    color: #111;

    font-size: 23px;
    line-height: 1.35;

    margin-bottom: 16px;
}

.card p {
    color: #555;

    font-size: 17px;
    line-height: 1.75;

    overflow-wrap: anywhere;
}




.ai-summary-card {
    background: #111;
    color: #fff;
    border-color: #111;
}

.ai-summary-card h2 {
    color: #fff;
}

.ai-summary-card p {
    color: #e2e2e2;
}

.ai-summary-card:hover {
    background: #1d1d1d;
    border-top-color: #fff;
}




.report-button-container {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-top: 40px;
    padding: 0 20px;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: #111;
    color: #fff;

    border: 2px solid #111;
    border-radius: 12px;

    padding: 15px 30px;

    font-size: 17px;
    font-weight: 600;

    cursor: pointer;

    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

button:hover {
    background: #fff;
    color: #111;

    transform: translateY(-3px);

    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

button:disabled {
    background: #777;
    border-color: #777;
    color: #eee;

    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}




footer {
    margin-top: 40px;

    background: #111;
    color: #fff;

    text-align: center;

    padding: 25px 20px;

    font-size: 17px;
}




.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;

    background: #000;
    color: #fff;

    padding: 12px 18px;

    border-radius: 8px;
    text-decoration: none;

    z-index: 2000;
}

.skip-link:focus {
    left: 20px;
    top: 20px;
}

.navbar a:focus,
button:focus {
    outline: 3px solid #ffd54f;
    outline-offset: 4px;
}

.card:focus-within {
    outline: 3px solid #ffd54f;
    outline-offset: 4px;
}




@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}




@media (max-width: 1250px) {
    .navbar {
        flex-direction: column;
        padding: 18px 30px;
    }

    .navbar ul {
        width: 100%;
        justify-content: center;
        gap: 14px 20px;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 768px) {
    .navbar {
        position: relative;
        padding: 18px 20px;
    }

    .logo {
        font-size: 25px;
    }

    .navbar ul {
        gap: 10px 15px;
    }

    .navbar a {
        font-size: 14px;
    }

    header {
        padding: 40px 18px 25px;
    }

    header h1 {
        font-size: 38px;
    }

    header p {
        font-size: 17px;
    }

    .section-title {
        font-size: 28px;
        margin: 20px 18px 28px;
    }

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

    .card {
        min-height: auto;
        padding: 25px;
    }

    .card h2 {
        font-size: 22px;
    }

    .card p {
        font-size: 16px;
    }
}


@media (max-width: 500px) {
    .navbar {
        padding: 16px 14px;
    }

    .logo {
        font-size: 22px;
    }

    .navbar ul {
        gap: 8px 12px;
    }

    .navbar a {
        font-size: 13px;
    }

    header h1 {
        font-size: 31px;
    }

    header p {
        font-size: 15px;
    }

    .cards {
        width: 92%;
        gap: 18px;
    }

    .card {
        padding: 22px 18px;
        border-radius: 15px;
    }

    .card h2 {
        font-size: 20px;
    }

    .card p {
        font-size: 15px;
        line-height: 1.65;
    }

    button {
        width: 100%;
        max-width: 340px;

        padding: 14px 20px;

        font-size: 15px;
    }

    footer {
        font-size: 15px;
    }
}




@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}