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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #172033;
    line-height: 1.6;
}

/* HEADER */
header {
    background: #111827;
    color: white;
    padding: 15px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.logo {
    font-size: 22px;
    font-weight: bold;
    white-space: nowrap;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

nav a:hover {
    opacity: 0.7;
}

/* HERO */
.hero {
    text-align: center;
    padding: 85px 20px;
    background: linear-gradient(135deg, #ffffff, #eef5ff);
}

.hero h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero p {
    max-width: 680px;
    margin: auto;
    color: #5b6472;
    font-size: 17px;
}

.hero button {
    background: #1769aa;
    font-size: 16px;
    padding: 13px 28px;
    margin-top: 25px;
}

/* SECTIONS */
section {
    padding: 60px 6%;
}

section h2 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
}

/* CARDS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: auto;
}

.card {
    background: white;
    padding: 28px 22px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    text-align: center;
    border: 1px solid #edf0f5;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.card h3 {
    margin-bottom: 8px;
    font-size: 19px;
}

.card p {
    color: #687385;
    font-size: 14px;
    min-height: 45px;
}

.card button {
    width: 100%;
    background: #1769aa;
}

/* BUTTONS */
button {
    border: none;
    background: #111827;
    color: white;
    padding: 11px 20px;
    border-radius: 9px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 15px;
    transition: 0.2s;
}

button:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* RESOURCES */
#resources {
    background: white;
}

/* FOOTER */
footer {
    text-align: center;
    background: #111827;
    color: #d8dee9;
    padding: 35px 15px;
}

footer p:first-child {
    color: white;
    font-weight: bold;
    margin-bottom: 5px;
}

/* MOBILE */
@media (max-width: 650px) {

    header {
        flex-direction: column;
        gap: 12px;
        padding: 14px 15px;
    }

    nav {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }

    nav a {
        font-size: 13px;
    }

    .hero {
        padding: 60px 18px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero p {
        font-size: 15px;
    }

    section {
        padding: 45px 15px;
    }

    section h2 {
        font-size: 25px;
    }

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

    .card {
        padding: 24px 20px;
    }
}

/* SEARCH */
.search-section {
    padding: 35px 6% 10px;
    text-align: center;
    background: #f4f7fb;
}

.search-section h2 {
    margin-bottom: 15px;
}

#toolSearch {
    width: 100%;
    max-width: 650px;
    padding: 15px 18px;
    border: 1px solid #d5dbe5;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    background: white;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

#toolSearch:focus {
    border-color: #1769aa;
    box-shadow: 0 0 0 3px rgba(23,105,170,0.12);
}
