/* ==============================
   Global
============================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #1d1d1f;
    background: #ffffff;
    line-height: 1.6;
}

a {
    color: inherit;
}


/* ==============================
   Navigation
============================== */

.navbar {
    height: 120px;
    padding: 0 8%;

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

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

    background: #3385ff;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 90px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-links a.active {
    font-weight: 700;
}


/* ==============================
   Hamburger
============================== */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    position: relative;

    background: transparent;
    border: none;

    cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    position: absolute;

    width: 30px;
    height: 4px;

    background: #ffffff;

    border-radius: 2px;

    transition:
        transform 0.25s ease,
        top 0.25s ease,
        background 0.25s ease;
}

.hamburger {
    left: 7px;
    top: 20px;
}

.hamburger::before,
.hamburger::after {
    content: "";
    left: 0;
}

.hamburger::before {
    top: -9px;
}

.hamburger::after {
    top: 9px;
}


/* Hamburger becomes X */

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}


/* ==============================
   Hero
============================== */

.hero {
    min-height: 650px;
    padding: 100px 8%;

    display: flex;
    align-items: center;

    background: #f5f7fa;
}

.hero-content {
    max-width: 850px;
}

.hero h1 {
    max-width: 850px;

    margin-bottom: 25px;

    font-size: 4rem;
    line-height: 1.08;
}

.hero-text {
    max-width: 680px;

    margin-bottom: 35px;

    color: #555555;
    font-size: 1.2rem;
}

.eyebrow {
    margin-bottom: 20px;

    color: #3385ff;

    font-size: 0.8rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 2px;
}


/* ==============================
   Buttons
============================== */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.button {
    display: inline-block;

    padding: 14px 26px;

    border: 1px solid #3385ff;
    border-radius: 5px;

    text-decoration: none;
    font-weight: 600;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

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

.primary {
    background: #3385ff;
    color: #ffffff;
}

.secondary {
    background: #ffffff;
    color: #3385ff;
}

.text-link {
    display: inline-block;

    margin-top: 10px;

    color: #3385ff;

    text-decoration: none;
    font-weight: 600;
}

.text-link:hover {
    text-decoration: underline;
}


/* ==============================
   Sections
============================== */

.section,
.page-hero,
.cta-section {
    padding: 100px 8%;
}

.section-content {
    max-width: 1100px;
    margin: 0 auto;
}

.narrow {
    max-width: 750px;
}

.alternate,
.page-hero {
    background: #f5f7fa;
}

.section h2,
.cta-section h2 {
    margin-bottom: 20px;

    font-size: 2.6rem;
    line-height: 1.2;
}

.section-content > p {
    max-width: 700px;

    margin-bottom: 35px;

    color: #555555;
    font-size: 1.05rem;
}


/* ==============================
   Split Sections
============================== */

.split-section {
    display: grid;
    grid-template-columns: 1.4fr 1fr;

    align-items: center;

    gap: 80px;
}

.split-section > div > p {
    max-width: 650px;

    margin-bottom: 30px;

    color: #555555;
}


/* ==============================
   Cards / Feature Boxes
============================== */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    margin-top: 40px;
}

.card,
.feature-box {
    padding: 32px;

    background: #ffffff;

    border: 1px solid #e5e5e5;
    border-radius: 8px;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.card h3,
.feature-box h3 {
    margin-bottom: 12px;
}

.card p,
.feature-box li {
    color: #666666;
}

.feature-box ul,
.feature-box ol {
    padding-left: 20px;
}

.feature-box li {
    margin-bottom: 10px;
}


/* ==============================
   Page Hero
============================== */

.page-hero {
    padding-top: 120px;
    padding-bottom: 120px;
}

.page-hero h1 {
    max-width: 850px;

    margin-bottom: 25px;

    font-size: 3.5rem;
    line-height: 1.1;
}

.page-hero p:not(.eyebrow) {
    max-width: 700px;

    color: #555555;
    font-size: 1.2rem;
}


/* ==============================
   CTA
============================== */

.cta-section {
    background: #3385ff;
    color: #ffffff;
}

.cta-content {
    max-width: 900px;

    margin: 0 auto;

    text-align: center;
}

.cta-section .eyebrow {
    color: #ffffff;
}

.cta-section p {
    margin-bottom: 35px;
}

.cta-section .hero-buttons {
    justify-content: center;
}

.cta-section .primary,
.cta-section .secondary {
    background: #ffffff;
    color: #3385ff;
    border-color: #ffffff;
}


/* ==============================
   Contact
============================== */

.contact {
    text-align: center;
}

.contact .section-content > p {
    margin-left: auto;
    margin-right: auto;
}


/* ==============================
   Footer
============================== */

footer {
    padding: 55px 8% 25px;

    background: #171717;
    color: #ffffff;
}

.footer-content {
    max-width: 1100px;

    margin: 0 auto 40px;

    display: flex;
    justify-content: space-between;

    gap: 40px;
}

.footer-content p {
    margin-top: 8px;

    color: #aaaaaa;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;

    gap: 25px;
}

.footer-links a {
    color: #ffffff;

    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-bottom {
    max-width: 1100px;

    margin: 0 auto;
    padding-top: 25px;

    border-top: 1px solid #333333;

    color: #888888;

    text-align: center;
    font-size: 0.85rem;
}


/* ==============================
   Error Page
============================== */

.error-page {
    min-height: calc(100vh - 120px);

    padding: 60px 8%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f7fa;
}

.error-content {
    max-width: 700px;

    text-align: center;
}

.error-content h1 {
    margin-bottom: 20px;

    font-size: 4rem;
    line-height: 1.1;
}

.error-content > p:not(.eyebrow) {
    margin-bottom: 35px;

    color: #555555;
    font-size: 1.1rem;
}

.error-content .hero-buttons {
    justify-content: center;
}


/* ==============================
   Mobile
============================== */

@media (max-width: 768px) {

    .navbar {
        height: 100px;
        padding: 0 5%;
    }

    .logo img {
        height: 70px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;

        position: absolute;
        top: 100px;
        left: 0;

        width: 100%;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        background: #3385ff;

        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 18px 5%;

        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        opacity: 1;
    }

    .hero {
        min-height: 560px;
        padding: 70px 5%;
    }

    .hero h1 {
        font-size: 2.7rem;
    }

    .hero-text {
        font-size: 1.05rem;
    }

    .section,
    .page-hero,
    .cta-section {
        padding: 70px 5%;
    }

    .section h2,
    .cta-section h2 {
        font-size: 2.1rem;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

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

    .split-section {
        gap: 40px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-content,
    .footer-links {
        flex-direction: column;
    }

    .footer-links {
        gap: 12px;
    }

    .error-page {
        min-height: calc(100vh - 100px);
    }

    .error-content h1 {
        font-size: 2.7rem;
    }
}


/* ==============================
   Dark Mode
============================== */

@media (prefers-color-scheme: dark) {

    body {
        color: #f5f5f5;
        background: #121212;
    }

    .hero,
    .alternate,
    .page-hero,
    .error-page {
        background: #1b1b1b;
    }

    .hero-text,
    .section-content > p,
    .split-section > div > p,
    .page-hero p:not(.eyebrow),
    .error-content > p:not(.eyebrow) {
        color: #cccccc;
    }

    .card,
    .feature-box {
        background: #202020;
        border-color: #333333;
    }

    .card p,
    .feature-box li {
        color: #cccccc;
    }

    .secondary {
        background: transparent;
        color: #3385ff;
    }

    /*
       Keep hamburger clearly visible
       against the blue navbar.
    */

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        background: #ffffff;
    }

    .menu-toggle.active .hamburger {
        background: transparent;
    }

    .menu-toggle.active .hamburger::before,
    .menu-toggle.active .hamburger::after {
        background: #ffffff;
    }
}