/* =========================================
   COMPASS WELCOME PAGE
   College Information Website
========================================= */

.welcome-page {
    --welcome-blue: #1557c0;
    --welcome-blue-dark: #0d3f91;
    --welcome-blue-light: #eaf2ff;

    --welcome-ink: #122033;
    --welcome-muted: #637187;

    --welcome-line: #dce5f0;
    --welcome-soft: #f6f9fd;

    min-height: 100vh;
    margin: 0;
    padding: 0;

    overflow-x: hidden;

    background: #ffffff;
    color: var(--welcome-ink);

    font-family: "Figtree", sans-serif;

    scroll-behavior: smooth;
}

/* =========================================
   HIDE SCROLLBARS
   Keep programmatic section navigation working
========================================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body.welcome-page {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior: none;
}

.welcome-page *,
.welcome-page *::before,
.welcome-page *::after {
    box-sizing: border-box;
}

.welcome-page button,
.welcome-page a {
    font-family: inherit;
}

.welcome-page button {
    cursor: pointer;
}

.welcome-page button:focus-visible,
.welcome-page a:focus-visible {
    outline: 3px solid rgba(21, 87, 192, 0.5);
    outline-offset: 4px;
}

/* =========================================
   HERO SECTION
========================================= */

.hero-bg {
    position: relative;

    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    align-items: center;

    isolation: isolate;

    background:
        linear-gradient(
            105deg,
            rgba(7, 39, 91, 0.96) 0%,
            rgba(18, 73, 157, 0.90) 55%,
            rgba(21, 87, 192, 0.76) 100%
        ),
        url("/assets/images/University Sample.png")
        center / cover no-repeat;

    color: #ffffff;
}

/* Subtle grid overlay */

.hero-bg::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 72px 72px;
}

/* =========================================
   HERO LAYOUT
========================================= */

.hero {
    width: min(1180px, calc(100% - 48px));
    min-height: 100vh;
    min-height: 100svh;

    margin: 0 auto;
    padding: 100px 16px 120px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(250px, 320px);

    align-items: center;

    gap: clamp(40px, 7vw, 100px);
}

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

.hero h1 {
    margin: 0 0 24px;

    color: #ffffff;

    font-size: clamp(3.1rem, 6.8vw, 6rem);
    font-weight: 800;

    line-height: 0.98;
    letter-spacing: -3.5px;
}

.hero h1 span {
    display: block;

    margin-top: 8px;

    color: #cfe0ff;
}

.hero-description {
    max-width: 620px;

    margin: 0;

    color: rgba(255, 255, 255, 0.86);

    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.8;
}

/* =========================================
   HERO ACTIONS
========================================= */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 14px;

    margin-top: 34px;
}

.primary-cta,
.secondary-cta {
    min-height: 48px;

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

    gap: 10px;

    padding: 0 20px;

    border: 1px solid transparent;
    border-radius: 7px;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.primary-cta {
    background: #ffffff;
    border-color: #ffffff;

    color: var(--welcome-blue-dark);
}

.primary-cta:hover {
    transform: translateY(-2px);

    background: #f0f5ff;
    border-color: #f0f5ff;
}

.primary-cta span {
    font-size: 19px;
    line-height: 1;
}

.secondary-cta {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.35);

    color: #ffffff;
}

.secondary-cta:hover {
    transform: translateY(-2px);

    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   FEATURES SECTION
========================================= */

.features-bg {
    min-height: 100vh;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7faff 100%
        );

    scroll-margin-top: 0;
}

.features {
    width: min(1180px, calc(100% - 48px));
    min-height: 100vh;

    margin: 0 auto;
    padding: 90px 16px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =========================================
   ALTERNATE PRIMARY CTA
========================================= */

.altprimary-cta {
    min-height: 48px;
    width: 240px;

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

    gap: 10px;

    padding: 0 20px;

    border: 1px solid transparent;
    border-radius: 7px;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;

    background: var(--welcome-blue);
    border-color: var(--welcome-blue);

    color: var(--welcome-blue-light);
}

.altprimary-cta:hover {
    transform: translateY(-2px);

    background: var(--welcome-blue-dark);
    border-color: var(--welcome-blue-dark);
}

.altprimary-cta span {
    font-size: 19px;
    line-height: 1;
}

/* =========================================
   TWO-COLUMN INFORMATION LAYOUT
========================================= */

.features-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(0, 1.05fr);

    gap: clamp(40px, 7vw, 100px);

    align-items: start;
}

.compass-intro,
.how-it-works {
    min-width: 0;
}

/* =========================================
   WHAT IS COMPASS?
========================================= */

.compass-intro h2,
.how-it-works h2 {
    margin: 0 0 22px;

    color: var(--welcome-ink);

    font-size: clamp(2.5rem, 4.3vw, 4rem);
    font-weight: 800;

    line-height: 1;
    letter-spacing: -2.5px;
}

.compass-intro h2 span,
.how-it-works h2 span {
    display: block;

    margin-top: 7px;

    color: var(--welcome-blue);
}

.intro-description {
    margin: 0 0 18px;

    color: var(--welcome-muted);

    font-size: 15px;
    line-height: 1.85;
}

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

.how-description {
    margin: 0 0 28px;

    color: var(--welcome-muted);

    font-size: 15px;
    line-height: 1.7;
}

/* =========================================
   THREE STEPS
========================================= */

.steps {
    display: flex;
    flex-direction: column;

    gap: 0;
}

.step {
    display: grid;

    grid-template-columns: 46px minmax(0, 1fr);

    gap: 18px;

    padding: 24px 0;

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

.step:first-child {
    padding-top: 0;
}

.step:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}

.step-number {
    width: 42px;
    height: 42px;

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

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

    background: var(--welcome-blue-light);

    color: var(--welcome-blue);

    font-size: 12px;
    font-weight: 800;
}

.step-content h3 {
    margin: 2px 0 8px;

    color: var(--welcome-ink);

    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.step-content p {
    margin: 0;

    color: var(--welcome-muted);

    font-size: 14px;
    line-height: 1.75;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) 250px;

        gap: 36px;
    }

    .hero h1 {
        font-size: clamp(3rem, 6.5vw, 4.5rem);

        letter-spacing: -2.5px;
    }

    .features-layout {
        gap: 40px;
    }

    .compass-intro h2,
    .how-it-works h2 {
        font-size: clamp(2.4rem, 4.5vw, 3.2rem);

        letter-spacing: -1.8px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 680px) {
    .hero {
        width: calc(100% - 32px);

        min-height: 100vh;
        min-height: 100svh;

        grid-template-columns: minmax(0, 1fr);

        gap: 36px;

        padding: 80px 0 110px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 12vw, 4.4rem);

        letter-spacing: -2.5px;
        line-height: 1;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.75;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;

        gap: 10px;

        margin-top: 28px;
    }

    .primary-cta,
    .secondary-cta {
        width: 100%;
    }

    .features {
        width: calc(100% - 32px);

        min-height: auto;

        padding: 72px 0;
    }

    .features-layout {
        grid-template-columns: minmax(0, 1fr);

        gap: 56px;
    }

    .compass-intro h2,
    .how-it-works h2 {
        font-size: clamp(2.8rem, 11vw, 3.8rem);

        letter-spacing: -2px;
    }

    .intro-description,
    .how-description {
        font-size: 14px;
    }

    .step {
        grid-template-columns: 40px minmax(0, 1fr);

        gap: 14px;

        padding: 22px 0;
    }

    .step-number {
        width: 38px;
        height: 38px;
    }

    .step-content h3 {
        font-size: 16px;
    }

    .step-content p {
        font-size: 13px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {
    .hero h1 {
        font-size: 2.65rem;

        letter-spacing: -2px;
    }

    .compass-intro h2,
    .how-it-works h2 {
        font-size: 2.5rem;
    }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    .welcome-page {
        scroll-behavior: auto;
    }

    .welcome-page *,
    .welcome-page *::before,
    .welcome-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}