/* =========================
   BASIC PAGE STYLES
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}


/* =========================
   NAVIGATION
========================= */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand a {
    text-decoration: none;
}

.brand img {
    width: 120px;
    height: auto;
    display: block;
}

.brand-name {
    color: #2563eb;
    font-size: 20px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
}

.nav-links a:hover {
    color: #2563eb;
}

.nav-links .get-started {
    background-color: #2563eb;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
}

.nav-links .get-started:hover {
    background-color: #1d4ed8;
}


/* =========================
   HAMBURGER BUTTON
========================= */

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #2563eb;
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
}


/* =========================
   HERO SECTION
========================= */

.hero {
    text-align: center;
    background-color: white;
    padding: 80px 20px;
}

.hero h1 {
    margin: 0 0 15px;
    font-size: 42px;
    color: #2563eb;
}

.hero h2 {
    margin: 0 0 20px;
    font-size: 30px;
}

.hero p {
    max-width: 650px;
    margin: 0 auto 30px;
    font-size: 18px;
    color: #555;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}


/* =========================
   BUTTONS
========================= */

.primary-button,
.secondary-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    text-align: center;
}

.primary-button {
    background-color: #2563eb;
    color: white;
}

.primary-button:hover {
    background-color: #1d4ed8;
}

.secondary-button {
    background-color: white;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.secondary-button:hover {
    background-color: #eff6ff;
}


/* =========================
   GENERAL SECTIONS
========================= */

section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 70px 20px;
}

section h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 20px;
}


/* =========================
   PROBLEM SECTION
========================= */

.problem {
    text-align: center;
}

.problem p {
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}


/* =========================
   FEATURES
========================= */

.features {
    max-width: none;
    background-color: white;
}

.feature-list {
    max-width: 1000px;
    margin: 40px auto 0;
    display: flex;
    gap: 25px;
}

.feature {
    flex: 1;
    padding: 25px;
    background-color: #f5f7fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.feature h3 {
    color: #2563eb;
}

.feature p {
    color: #555;
}


/* =========================
   DASHBOARD PREVIEW
========================= */

.dashboard-preview {
    max-width: 1100px;
    background-color: #f5f7fa;
}

.dashboard-preview > p {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
    color: #555;
}


/* Dashboard Cards */

.dashboard-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.dashboard-card {
    flex: 1;
    background-color: white;
    padding: 25px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.dashboard-card h3 {
    margin: 0 0 10px;
    color: #555;
    font-size: 16px;
}

.dashboard-card p {
    margin: 0;
    color: #2563eb;
    font-size: 30px;
    font-weight: bold;
}


/* Dashboard Table */

.dashboard-table {
    background-color: white;
    padding: 25px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow-x: auto;
}

.dashboard-table h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #222;
}

.dashboard-table table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.dashboard-table th {
    text-align: left;
    background-color: #f5f7fa;
    color: #333;
    font-weight: bold;
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.dashboard-table td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    color: #555;
}

.dashboard-table tr:last-child td {
    border-bottom: none;
}

.dashboard-table tbody tr:hover {
    background-color: #f8fafc;
}


/* =========================
   HOW IT WORKS
========================= */

.steps {
    display: flex;
    gap: 25px;
    margin-top: 40px;
}

.step {
    flex: 1;
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.step h3 {
    color: #2563eb;
}

.step p {
    color: #555;
}


/* =========================
   CALL TO ACTION
========================= */

.cta {
    max-width: none;
    text-align: center;
    background-color: #eaf2ff;
}

.cta p {
    margin-bottom: 25px;
}


/* =========================
   FOOTER
========================= */

footer {
    text-align: center;
    background-color: #1f2937;
    color: white;
    padding: 30px 20px;
}

footer p {
    margin: 8px 0;
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    nav {
        padding: 12px 25px;
    }

    .nav-links {
        gap: 15px;
    }

    .feature-list,
    .steps {
        gap: 15px;
    }
}


/* =========================
   MOBILE / HAMBURGER MENU
========================= */

@media (max-width: 768px) {

    /* Header */

    nav {
        padding: 12px 20px;
        min-height: 70px;
    }

    .brand {
        gap: 8px;
    }

    .brand img {
        width: 100px;
    }

    .brand-name {
        font-size: 17px;
    }


    /* Show hamburger */

    .menu-toggle {
        display: block;
    }


    /* Hide navigation links until hamburger is clicked */

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        border-top: 1px solid #e5e7eb;
        padding: 10px 20px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
    }


    /* Show menu when JavaScript adds show-menu */

    .nav-links.show-menu {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 14px 10px;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links .get-started {
        margin-top: 10px;
        border-bottom: none;
    }


    /* Hero */

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero h2 {
        font-size: 25px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        max-width: 250px;
    }


    /* Sections */

    section {
        padding: 55px 20px;
    }

    section h2 {
        font-size: 26px;
    }


    /* Features */

    .feature-list {
        flex-direction: column;
        margin-top: 30px;
    }

    .feature {
        width: 100%;
    }


    /* Dashboard */

    .dashboard-cards {
        flex-direction: column;
        gap: 15px;
    }

    .dashboard-card {
        width: 100%;
    }

    .dashboard-table {
        padding: 15px;
        overflow-x: auto;
    }


    /* How It Works */

    .steps {
        flex-direction: column;
        margin-top: 30px;
    }

    .step {
        width: 100%;
    }


    /* Footer */

    footer {
        padding: 25px 15px;
        font-size: 14px;
    }
}


/* =========================
   SMALL PHONES
========================= */

@media (max-width: 480px) {

    nav {
        padding: 12px 15px;
    }

    .brand img {
        width: 90px;
    }

    .brand-name {
        font-size: 16px;
    }

    .menu-toggle {
        font-size: 27px;
    }

    .hero {
        padding: 50px 15px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero h2 {
        font-size: 22px;
    }

    section {
        padding: 45px 15px;
    }

    section h2 {
        font-size: 24px;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 10px;
        font-size: 14px;
    }
}