html, body {
    overflow-x: hidden; /* DISABLE horizontal scrolling */
    width: 100%;
}

@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@300;400;500;600;700;900&display=swap');

/* Global Styles */
body {
    margin: 0;
    font-family: "Albert Sans", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fffaef;
}

.container {
    width: 90%;
    max-width: 1440px;
    margin: 0 auto;
}

h1, h2, h3 {
    margin: 0;
    padding: 0;
    font-family: "Albert Sans", sans-serif;
}

/* ============================== */
/*          NAVBAR STYLES         */
/* ============================== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px;
    height: 100px;
    background-color: #ECE8DF66;
    position: relative;
    z-index: 100;
}

.navbar .logo {
    position: absolute;
    top: 50%;
    left: 100px;
    transform: translateY(-50%);
    transform-origin: left center;
    display: flex;
    align-items: center;
    max-width: 400px;

    /* Anti-blur hacks */
    will-change: transform;
    image-rendering: auto;
}

.navbar .logo img {
    height: 70px;
    width: auto;
    max-width: 100%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: absolute;
    top: 50%;
    right: 35px;
    margin: 0;
    list-style: none;
    transform: translateY(-50%) translateX(-20px);
}

.nav-links a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: #8BAEC3;
    text-align: center;
    font-family: "Albert Sans", sans-serif;
}

.nav-links a.well-played {
    font-weight: 500;
    color: #709cc8;
}

.nav-links a:hover {
    text-decoration: underline;
    text-decoration-color: #709cc8;
    text-decoration-thickness: 2px;
}

.navbar .login-button {
    background-color: #BF6C58;
    color: #fff;
    padding: 10px 28px;
    border-radius: 50px;
    margin-top: 0px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 28px;
    box-shadow: 1px 2px 4px 0px #00000040;
    transition: all 0.2s ease-in-out;
}

.navbar .login-button:hover {
    background-color: #005f7f;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* Base states for mobile elements */
.hamburger {
    display: none;  /* Hidden by default on desktop */
    color: #000 !important; /* Force black color */
    background: none;
    border: none;
    font-size: 30px; /* Adjust size if needed */
    cursor: pointer;
    z-index: 200; /* Ensure it stays above mobile nav */
}

.mobile-nav {
    display: none;  /* Hidden by default on desktop */
}

/* ============================== */
/*        LANDING SECTION         */
/* ============================== */

/* Landing section base */
.landing {
    position: relative;
    height: 903px;
    background: url('../images/landing_background.png') center top;
    background-size: cover;
    width: 100vw;
    margin: 0 auto;
    display: flex;
    align-items: center;
    z-index: 1;
}

/* Container with content needs to be above overlays */
.landing .container {
    max-width: 1100px;
    position: relative;
    z-index: 4;
}

/* Semi-transparent white overlay */
.landing::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 821px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 1) 0%,   /* Almost fully white at the top */
        rgba(255, 255, 255, 1) 10%,  /* Keep it strong for first 10% */
        rgba(255, 255, 255, 0.9) 30%,  /* Start fading slowly */
        rgba(255, 255, 255, 0.5) 60%,   /* More transparent */
        rgba(255, 255, 255, 0) 100%     /* Fully fades at the bottom */
    );
    pointer-events: none;
    z-index: 2;
}

/* Grid overlay */
.landing .grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: url('../images/Grid.png') no-repeat left top;
    background-size: contain;
    opacity: 0.4;
    pointer-events: none;
    z-index: 3;
}

/* Vertical lines overlay */
.landing .lines-overlay {
    position: absolute;
    top: 0;
    right: 60px;
    width: 30%;
    height: 100%;
    background: url('../images/Vertical_lines.png') no-repeat right top;
    background-size: contain;
    opacity: 0.4;
    pointer-events: none;
    z-index: 3;
}

/* Overlay background */
.landing .overlay-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;    /* Full viewport width */
    height: 717px;   /* Exact Figma height */
    background: url('../images/landing_top_overlay.png') no-repeat top center;
    background-size: cover;  /* This will make it cover the full width */
    opacity: 0; /* intentional offness */
    pointer-events: none;
    z-index: 3;
}

/* Text Container */
.landing .text-container {
    position: relative;
    max-width: 1098px;
    left: -100px;
    text-align: left;
    margin-top: -190px;
}

/* Title Styling */
.landing .text-container h1 {
    font-size: 140px;
    font-weight: 900;
    line-height: 130px;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 25px;
    white-space: nowrap;
}

/* Title Colors */
.landing .text-container .blue {
    color: #263b9f;
}

.landing .text-container .light-blue {
    color: #709cc8;
}

.landing .text-container .green {
    color: #00a8a4;
}

/* Paragraph styling */
.landing p {
    font-size: 40px;
    font-weight: 500;
    line-height: 49px;
    color: #000;
    max-width: 1298px;
    width: 1200px !important; /* ensures it stays in container */
    margin-bottom: 30px;
    margin-top: 10px;
}

/* Button container */
.button-wrapper {
    position: relative;
    margin-top: -20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* Main call-to-action button */
.cta-button {
    background: #BF6C58 !important;
    color: #ECE8DF; 
    padding: 25px 30px !important;
    border-radius: 40px;
    text-decoration: none;
    font-size: 30px;
    text-transform: uppercase; 
    font-weight: 800;
    box-shadow: 1px 2px 4px 0px #00000040;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #e07b6c;
    transform: scale(1.05);
}

.trial-subtext {
    margin-top: 15px;
    font-size: 16px;
    color: #ffffff;
    opacity: 0.9;
    font-weight: 400;
}

/* ============================== */
/*          GOALS SECTION         */
/* ============================== */

.goals {
    background: linear-gradient(to bottom, #D3D9ED, #E4F2F1);
    padding: 4rem 0;
    text-align: center;
}

.goals h2 {
    font-size: 70px;
    font-weight: 900;
    line-height: 84px;
    color: #000000; 
    margin-bottom: 30px;
}

.goals p {
    font-size: 1.8rem;
    line-height: 1.9;
    max-width: 90%;
    margin: 0 auto;
    padding-bottom: 20px;
    color: #000;
}

/* Cards Container */
.goals .cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    justify-content: center;
    align-items: center;
    padding: 0 10%;
}

/* Individual Card Styling */
.goals .card {
    background-color: #FFFAEF;
    font-weight: 700;
    font-size: 28px;
    color: #BF6C58; 
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.25);
    border: 2px solid transparent;
    width: 480px;
    height: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

.goals .card:hover {
    border-color: #3775C2;
    transform: translateY(-3px); /* softer lift */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* adds smooth glow */
}

/* Card Icons */
.goals .card img {
    width: 100px;
    margin-bottom: 15px;
}

/* Card Text */
.goals .card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #263b9f;
    margin-bottom: 10px;
}

/* ============================== */
/*      HOW IT WORKS SECTION      */
/* ============================== */

.how-it-works {
    background: linear-gradient(to top, #D3D9ED, #E4F2F1);
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.how-it-works h2 {
    font-size: 70px;
    font-weight: 900;
    color: #263B9F;
    text-align: center;
    margin-bottom: 100px;
}

/* Ensure Container is Centered */
.how-it-works .container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Steps Container */
.how-it-works .steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Individual Step */
.how-it-works .step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* Step Icons */
.how-it-works .step-icon {
    width: 210px;
    height: auto;
    margin-bottom: 50px;
}

/* Step Text */
.how-it-works .step p {
    font-size: 30px;
    line-height: 35px;
    font-weight: 600;
    color: #000000;
    max-width: 600px;
    margin: 0 auto;
}

/* Universal Arrow Styling */
.how-it-works .arrow {
    position: absolute;
    height: auto;
    z-index: 1;
}

/* Step 1 Arrows */
.how-it-works .left-arrow-1 {
    width: 150px;
    left: 110px;
    top: 30%;
    transform: translateY(-50%);
}

.how-it-works .connecting-arrow-1 {
    width: 200px;
    right: -250px;
    top: 90%;
    transform: translateY(-50%) rotate(45deg);
}

/* Step 2 Arrows */
.how-it-works .right-arrow-1 {
    width: 100px;
    right: 10px;
    top: 40%;
    transform: translateY(-50%);
}

.how-it-works .connecting-arrow-2 {
    width: 230px;
    left: -260px;
    top: 100%;
    transform: translateY(-50%) rotate(-45deg);
}

/* Step 3 Arrows */
.how-it-works .left-arrow-2 {
    width: 82px;
    left: 30px;
    top: 45%;
    transform: translateY(-70%);
}

.how-it-works .connecting-arrow-3 {
    width: 190px;
    right: -270px;
    top: 95%;
    transform: translateY(-50%) rotate(45deg);
}

/* Step 4 Arrows */
.how-it-works .right-arrow-2 {
    width: 97px;
    right: -10px;
    top: 50%;
    transform: translateY(-70%);
}

/* ============================== */
/*            FOOTER              */
/* ============================== */

.footer {
    background-color: #000;
    color: #fff;
    padding: 2rem 0;
    width: 100%;
    overflow-x: hidden;
}

.footer-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    box-sizing: border-box;
}

/* Left-Aligned Logo */
.footer-logo {
    width: 105px;
    height: auto;
    position: relative;
    left: 0;
    margin-right: auto;
}

/* Right-Aligned Content */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 100%;
    flex-shrink: 1;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.social-links img {
    width: 59px;
    height: 59px;
    transition: transform 0.2s ease-in-out;
    max-width: 100%;
}

.social-links img:hover {
    transform: scale(1.1);
}

/* Grey Section Below Footer */
.footer-bottom {
    width: 100%;
    height: 50px;
    background-color: #222222;
    display: flex;
    align-items: center;
}

.footer-bottom-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 50px;
    box-sizing: border-box;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #fff;
}

.footer-bottom a,
.footer-right a {
    color: #709cc8;
    text-decoration: none;
}

.footer-bottom a:hover,
.footer-right a:hover {
    text-decoration: underline;
}

.footer-text {
    font-family: "Albert Sans", sans-serif;
}

/* ============================== */
/*     RESPONSIVE BREAKPOINTS     */
/* ============================== */

/* Laptop screens (standard MacBook Pro, etc.) */
@media (max-width: 1680px) {
    /* Scale down navbar */
    .navbar {
        height: 80px;
    }

    .navbar .logo {
        width: 250px;
        height: 62px;
        left: 60px;
    }

    .navbar .logo img {
        width: 100%;
        height: auto;
    }

    /* Scale down nav links */
    .nav-links {
        right: 30px;
    }

    .nav-links a {
        font-size: 14px;
    }

    /* Landing section - scale down from massive sizes */
    .landing .text-container {
        left: 0 !important;
        max-width: 95% !important;
        margin-left: 20px;
    }

    .landing .text-container h1 {
        font-size: 90px !important;
        line-height: 85px !important;
        white-space: normal !important;
    }

    .landing p {
        font-size: 28px !important;
        line-height: 36px !important;
        width: auto !important;
        max-width: 100% !important;
    }

    .cta-button {
        font-size: 20px !important;
        padding: 18px 45px !important;
    }

    /* Goals section */
    .goals h2 {
        font-size: 50px !important;
        line-height: 60px !important;
    }

    .goals p {
        font-size: 20px !important;
        line-height: 28px !important;
    }

    .cards .card {
        font-size: 18px !important;
        padding: 30px 20px !important;
    }

    .cards .card img {
        width: 50px !important;
        height: 50px !important;
    }

    /* How it works section */
    .how-it-works h2 {
        font-size: 50px !important;
    }

    .how-it-works .step p {
        font-size: 18px !important;
        line-height: 26px !important;
    }

    .how-it-works .step-icon {
        width: 140px !important;
        height: auto !important;
    }

    /* Footer */
    .footer-logo {
        width: 70px !important;
        height: auto !important;
    }

    .footer-text {
        font-size: 14px !important;
    }
}

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
    .navbar {
        height: 80px;
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    /* Adjust logo size and center it vertically */
    .navbar .logo {
        position: absolute;
        left: 30px;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        height: auto;
    }

    .navbar .logo img {
        width: 180px;
        height: auto;
    }

    /* Hide desktop nav links, show hamburger menu */
    .nav-links {
        display: none;
    }

    /* Adjust hamburger menu */
    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Mobile Nav Menu */
    .mobile-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 70%;
        max-width: 300px;
        background: linear-gradient(to bottom, #D3D9ED, #E4F2F1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 15px;
        z-index: 200;
    }
 
    .mobile-nav.show {
        display: flex;
    }

    .mobile-nav a {
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
        color: #000;
        padding: 10px 0;
        text-align: center;
        display: block;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    /* Global adjustments */
    h1, h2, h3, p, a, div, span {
        font-family: "Albert Sans", sans-serif !important;
    }
    
    /* Landing section adjustments */
    .landing {
        height: auto;
        padding: 80px 0 60px;
    }
    
    .landing .text-container {
        max-width: 90%;
        width: 100%;
        margin: 0 auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        left: 0 !important;
        padding-top: 0px !important;
        margin-left: 0;
    }

    .landing .text-container h1 {
        font-size: 36px !important;
        line-height: 42px !important;
        text-transform: uppercase;
        text-align: center;
        margin-bottom: 15px !important;
        white-space: normal;
    }

    .landing .text-container p {
        font-size: 18px !important;
        line-height: 24px !important;
        max-width: 85%;
        margin: 15px auto !important;
        text-align: center;
        width: auto !important;
    }

    .landing .button-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 15px !important;
    }

    .landing .cta-button {
        font-size: 16px !important;
        padding: 15px 20px !important;
        border-radius: 30px !important;
    }

    /* Goals section fixes */
    .goals h2 {
        font-size: 36px;
        line-height: 42px;
        margin-bottom: 20px;
    }

    .goals p {
        font-size: 16px !important;
        line-height: 22px;
        padding-bottom: 10px;
    }

    .goals .cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 5%;
    }

    .goals .card {
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 20px;
        font-size: 18px;
    }

    /* How it works section */
    .how-it-works h2 {
        font-size: 36px;
        line-height: 42px;
        margin-bottom: 40px;
    }

    .how-it-works .step p {
        font-size: 18px;
        line-height: 24px;
    }

    .how-it-works .arrow {
        display: none;
    }

    /* Footer adjustments */
    .footer-container {
        flex-direction: column;
        padding: 0 20px;
        gap: 20px;
    }

    .footer-right {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-text {
        text-align: center;
    }
}
