:root {

    --primary: #2563eb;
    --primary-hover: #1d4ed8;

    --text: #2d3748;
    --text-light: #64748b;

    --background: #ffffff;
    --background-alt: #f8fafc;

    --border: #e2e8f0;

    --radius: 12px;

    --container-width: 1100px;
}

/* Reset */

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

html {
    scroll-behavior: smooth;
}

body {

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;

    line-height: 1.7;

    color: var(--text);

    background: var(--background);
}

/* Layout */

.container {

    width: 90%;
    max-width: var(--container-width);

    margin: 0 auto;
}

.narrow {
    max-width: 750px;
}

/* Sticky Header */

header {

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

    background: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border-bottom: 1px solid var(--border);

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

header.scrolled {

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08);
}

header .container {

    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 1.25rem 0;
}

.logo {

    font-size: 1.4rem;
    font-weight: 700;
}

nav {

    display: flex;
    gap: 2rem;
}

nav a {

    text-decoration: none;
    color: var(--text);

    font-weight: 500;

    transition: color 0.3s ease;
}

nav a:hover {

    color: var(--primary);
}

/* Hero */

.hero {

    padding: 7rem 0;

    text-align: center;
}

.hero h1 {

    font-size: clamp(2.5rem, 5vw, 4rem);

    line-height: 1.1;

    margin-bottom: 1.5rem;
}

.hero p {

    max-width: 700px;

    margin: 0 auto 2rem;

    color: var(--text-light);

    font-size: 1.15rem;
}

/* Button */

.btn {

    display: inline-block;

    background: var(--primary);

    color: white;

    text-decoration: none;

    padding: 0.9rem 1.8rem;

    border-radius: var(--radius);

    transition:
        background 0.3s ease,
        transform 0.2s ease;
}

.btn:hover {

    background: var(--primary-hover);

    transform: translateY(-2px);
}

/* Sections */

.section {

    padding: 5rem 0;
}

.section h2 {

    text-align: center;

    margin-bottom: 2rem;

    font-size: 2rem;
}

.alt {

    background: var(--background-alt);
}

/* Fix Anchor Navigation */

section,
#about,
#services,
#contact {

    scroll-margin-top: 100px;
}

/* Cards */

.cards {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 2rem;
}

.card {

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 2rem;

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

.card:hover {

    transform: translateY(-4px);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.06);
}

.card h3 {

    margin-bottom: 1rem;
}

/* Benefits */

.benefits {

    list-style: none;
}

.benefits li {

    padding: 1rem 0;

    border-bottom: 1px solid var(--border);
}

/* Contact */

.contact {

    background: var(--background-alt);

    text-align: center;

    padding: 5rem 0;
}

.contact p {

    margin-bottom: 2rem;
}

/* Footer */

footer {

    text-align: center;

    padding: 2rem;

    border-top: 1px solid var(--border);

    color: var(--text-light);
}

/* Mobile */

@media (max-width: 768px) {

    header .container {

        flex-direction: column;

        gap: 1rem;
    }

    nav {

        gap: 1rem;

        flex-wrap: wrap;

        justify-content: center;
    }

    .hero {

        padding: 4rem 0;
    }

    .hero h1 {

        font-size: 2.5rem;
    }
}