/* ============================================================
   PROFENAA TECHNOLOGIES
   ONLINE LEARNING PAGE
   CLEAN WHITE PROFESSIONAL DESIGN
   ============================================================ */


/* ============================================================
   PAGE VARIABLES
   ============================================================ */

:root {

    --ol-primary: #1b1b6b;
    --ol-primary-dark: #10103f;
    --ol-blue: #2f79f0;
    --ol-blue-light: #4fa3ff;

    --ol-amber: #d99a24;
    --ol-amber-light: #f3c969;

    --ol-text: #171725;
    --ol-text-soft: #4f5568;
    --ol-text-light: #6d7280;

    --ol-white: #ffffff;
    --ol-bg: #ffffff;
    --ol-bg-soft: #f7f9fc;
    --ol-bg-light: #fbfcff;

    --ol-border: #e5e8f0;
    --ol-border-blue: rgba(47, 121, 240, .18);

    --ol-radius: 20px;
    --ol-radius-sm: 12px;

    --ol-shadow:
        0 12px 35px rgba(16, 16, 63, .08);

    --ol-shadow-hover:
        0 22px 55px rgba(16, 16, 63, .14);

    --ol-font-head:
        var(--font-heading, 'Space Grotesk', sans-serif);

    --ol-font-body:
        var(--font-body, 'Inter', sans-serif);

    --ol-transition:
        .35s cubic-bezier(.22, 1, .36, 1);
}


/* ============================================================
   GLOBAL
   ============================================================ */

html,
body {
    background: #ffffff;
}

body {
    color: var(--ol-text);
    font-family: var(--ol-font-body);
}

main {
    width: 100%;
    overflow: hidden;
}


/* ============================================================
   COMMON SECTION
   ============================================================ */

.hero,
.modes,
#courses,
.features,
.final-cta {

    position: relative;

    width: 100%;

    padding:
        clamp(4rem, 8vw, 7rem)
        0;

    background: var(--ol-white);

    color: var(--ol-text);

    font-family: var(--ol-font-body);
}


/* Alternating soft background */

.modes,
.features {
    background:
        linear-gradient(
            180deg,
            #f8faff 0%,
            #ffffff 100%
        );
}


/* ============================================================
   CONTAINER
   ============================================================ */

.hero .container,
.modes .container,
#courses .container,
.features .container,
.final-cta .container {

    position: relative;
    z-index: 2;
}


/* ============================================================
   SECTION HEADING
   ============================================================ */

.section-head {

    max-width: 700px;

    margin:
        0 auto
        clamp(2.5rem, 5vw, 4rem);

    text-align: center;
}


.section-head .eyebrow {

    display: inline-flex;

    align-items: center;

    gap: .5rem;

    font-family: var(--ol-font-head);

    font-size: .76rem;

    font-weight: 700;

    letter-spacing: .14em;

    text-transform: uppercase;

    color: var(--ol-blue);

    margin-bottom: .8rem;
}


.section-head .eyebrow::before {

    content: "";

    width: 22px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--ol-blue),
            var(--ol-amber)
        );

    display: inline-block;
}


.section-head h2 {

    font-family: var(--ol-font-head);

    font-size:
        clamp(1.8rem, 3.5vw, 2.7rem);

    font-weight: 700;

    line-height: 1.2;

    color: var(--ol-primary);

    margin-bottom: .85rem;
}


.section-head p {

    color: var(--ol-text-soft);

    font-size: 1rem;

    line-height: 1.75;

    max-width: 62ch;

    margin-inline: auto;
}


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

.hero {

    min-height: 72vh;

    display: flex;

    align-items: center;

    padding-top:
        calc(
            var(--nav-h, 80px)
            + clamp(3rem, 6vw, 5rem)
        );

    padding-bottom:
        clamp(4rem, 8vw, 6rem);

    background:

        radial-gradient(
            circle at 85% 15%,
            rgba(47, 121, 240, .10),
            transparent 35%
        ),

        radial-gradient(
            circle at 10% 90%,
            rgba(217, 154, 36, .08),
            transparent 32%
        ),

        #ffffff;

    overflow: hidden;
}


/* Decorative grid */

.hero::before {

    content: "";

    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(
            rgba(27, 27, 107, .035) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(27, 27, 107, .035) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    opacity: .6;

    pointer-events: none;
}


/* Decorative circle */

.hero::after {

    content: "";

    position: absolute;

    width: 420px;

    height: 420px;

    right: -180px;

    top: -180px;

    border:

        1px solid
        rgba(47, 121, 240, .12);

    border-radius: 50%;

    box-shadow:

        0 0 0 40px
        rgba(47, 121, 240, .025),

        0 0 0 80px
        rgba(47, 121, 240, .018);

    pointer-events: none;
}


.hero-content {

    position: relative;

    z-index: 3;

    display: flex;

    align-items: center;
}


.hero-text {

    max-width: 820px;
}


/* ============================================================
   HERO BADGE
   ============================================================ */

.hero-badge {

    display: inline-flex;

    align-items: center;

    gap: .55rem;

    padding:
        .55rem
        1rem;

    border:

        1px solid
        rgba(47, 121, 240, .18);

    border-radius: 999px;

    background:
        rgba(47, 121, 240, .055);

    color: var(--ol-blue);

    font-family: var(--ol-font-head);

    font-size: .78rem;

    font-weight: 700;

    letter-spacing: .06em;

    margin-bottom: 1.5rem;
}


.hero-badge::before {

    content: "";

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: var(--ol-blue);

    box-shadow:
        0 0 0 5px
        rgba(47, 121, 240, .10);
}


/* ============================================================
   HERO TITLE
   ============================================================ */

.hero-text h1 {

    font-family: var(--ol-font-head);

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

    font-weight: 700;

    line-height: 1.1;

    letter-spacing: -.035em;

    color: var(--ol-primary);

    max-width: 18ch;

    margin-bottom: 1.35rem;
}


.text-grad {

    background:
        linear-gradient(
            100deg,
            var(--ol-primary),
            var(--ol-blue) 55%,
            var(--ol-amber)
        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

    -webkit-text-fill-color: transparent;
}


/* ============================================================
   HERO DESCRIPTION
   ============================================================ */

.hero-text > p {

    max-width: 650px;

    color: var(--ol-text-soft);

    font-size: 1.06rem;

    line-height: 1.8;

    margin-bottom: 2rem;
}


/* ============================================================
   HERO BUTTONS
   ============================================================ */

.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: .9rem;
}


.hero-buttons .btn {

    min-height: 48px;

    padding-inline: 1.4rem;
}


.btn-outline {

    background: #ffffff;

    color: var(--ol-primary);

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

    box-shadow:
        0 6px 20px
        rgba(16, 16, 63, .05);

    transition:
        transform var(--ol-transition),
        background var(--ol-transition),
        color var(--ol-transition),
        border-color var(--ol-transition);
}


.btn-outline:hover {

    background: var(--ol-primary);

    color: #ffffff;

    border-color: var(--ol-primary);

    transform: translateY(-2px);
}


/* ============================================================
   LEARNING MODE / COURSE GRID
   ============================================================ */

.mode-grid {

    display: grid;

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

    gap: 1.5rem;
}


/* ============================================================
   CARD
   ============================================================ */

.mode-card {

    position: relative;

    display: flex;

    flex-direction: column;

    background: #ffffff;

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

    border-radius:
        var(--ol-radius);

    padding: 1rem;

    overflow: hidden;

    box-shadow:
        0 8px 25px
        rgba(16, 16, 63, .045);

    transition:
        transform var(--ol-transition),
        box-shadow var(--ol-transition),
        border-color var(--ol-transition);

    transform-style: preserve-3d;
}


/* Top accent */

.mode-card::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--ol-primary),
            var(--ol-blue),
            var(--ol-amber)
        );

    opacity: 0;

    transition:
        opacity var(--ol-transition);
}


.mode-card:hover {

    transform:
        translateY(-7px);

    border-color:
        rgba(47, 121, 240, .22);

    box-shadow:
        var(--ol-shadow-hover);
}


.mode-card:hover::before {

    opacity: 1;
}


/* ============================================================
   CARD IMAGE
   ============================================================ */

.mode-card img {

    display: block;

    width: 100%;

    height: 175px;

    object-fit: cover;

    border-radius:
        var(--ol-radius-sm);

    margin-bottom: 1.25rem;

    background: #f1f4f9;

    transition:
        transform .5s ease;
}


.mode-card:hover img {

    transform: scale(1.025);
}


/* ============================================================
   CARD TITLE
   ============================================================ */

.mode-card h3 {

    font-family: var(--ol-font-head);

    font-size: 1.15rem;

    font-weight: 700;

    line-height: 1.35;

    color: var(--ol-primary);

    margin:
        0 0 .6rem;

    transition:
        color var(--ol-transition);
}


.mode-card:hover h3 {

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


/* ============================================================
   CARD TEXT
   ============================================================ */

.mode-card p {

    font-family: var(--ol-font-body);

    font-size: .93rem;

    line-height: 1.7;

    color: var(--ol-text-soft);

    margin: 0;
}


/* ============================================================
   COURSE SECTION
   ============================================================ */

#courses {

    background:
        #ffffff;
}


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

.features {

    background:
        linear-gradient(
            180deg,
            #f8faff,
            #ffffff
        );
}


/* ============================================================
   COURSE / FEATURE SPECIAL CARD
   ============================================================ */

#courses .mode-card,
.features .mode-card {

    min-height: 100%;
}


#courses .mode-card h3,
.features .mode-card h3 {

    color: var(--ol-primary);
}


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

.final-cta {

    padding-top: 0;

    padding-bottom:
        clamp(4rem, 8vw, 7rem);

    background: #ffffff;
}


.cta-band {

    position: relative;

    text-align: center;

    padding:
        clamp(3rem, 6vw, 5rem)
        clamp(1.5rem, 6vw, 4rem);

    border-radius:
        var(--ol-radius);

    background:

        radial-gradient(
            circle at 10% 20%,
            rgba(79, 163, 255, .20),
            transparent 35%
        ),

        radial-gradient(
            circle at 90% 80%,
            rgba(217, 154, 36, .18),
            transparent 35%
        ),

        linear-gradient(
            135deg,
            #11114f,
            #1b1b6b
        );

    border:
        1px solid
        rgba(47, 121, 240, .25);

    box-shadow:
        0 25px 65px
        rgba(16, 16, 63, .16);

    overflow: hidden;
}


.cta-band::before {

    content: "";

    position: absolute;

    width: 280px;

    height: 280px;

    right: -120px;

    top: -120px;

    border:
        1px solid
        rgba(255, 255, 255, .10);

    border-radius: 50%;

    box-shadow:
        0 0 0 35px
        rgba(255, 255, 255, .025),

        0 0 0 70px
        rgba(255, 255, 255, .02);

    pointer-events: none;
}


.cta-band > * {

    position: relative;

    z-index: 2;
}


.cta-band h2 {

    font-family: var(--ol-font-head);

    font-size:
        clamp(1.7rem, 3vw, 2.4rem);

    font-weight: 700;

    line-height: 1.2;

    color: #ffffff;

    max-width: 25ch;

    margin:
        0 auto .85rem;
}


.cta-band p {

    max-width: 60ch;

    margin:
        0 auto 2rem;

    color:
        rgba(255,255,255,.76);

    line-height: 1.75;
}


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

.cta-actions {

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 1rem;
}


.btn-amber {

    background:
        linear-gradient(
            120deg,
            #d99a24,
            #f3c969
        );

    color: #11114f;

    border: none;

    font-weight: 700;

    box-shadow:
        0 8px 25px
        rgba(217, 154, 36, .25);

    transition:
        transform var(--ol-transition),
        box-shadow var(--ol-transition),
        filter var(--ol-transition);
}


.btn-amber:hover {

    transform:
        translateY(-3px);

    filter:
        brightness(1.05);

    box-shadow:
        0 14px 32px
        rgba(217, 154, 36, .30);
}


/* ============================================================
   IMAGE FALLBACK / LOADING
   ============================================================ */

.mode-card img {

    aspect-ratio: 16 / 9;

    object-position: center;
}


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

@media (max-width: 992px) {

    .hero {

        min-height: auto;

        padding-top:
            calc(
                var(--nav-h, 80px)
                + 4rem
            );
    }


    .hero-text h1 {

        max-width: 20ch;

        font-size:
            clamp(2.2rem, 6vw, 3.3rem);
    }


    .mode-grid {

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


    .mode-card img {

        height: 165px;
    }
}


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

@media (max-width: 768px) {

    .hero,
    .modes,
    #courses,
    .features,
    .final-cta {

        padding-top: 4rem;

        padding-bottom: 4rem;
    }


    .hero {

        padding-top:
            calc(
                var(--nav-h, 80px)
                + 3rem
            );

        text-align: center;
    }


    .hero-content {

        justify-content: center;
    }


    .hero-text {

        max-width: 650px;

        margin-inline: auto;
    }


    .hero-text h1 {

        max-width: none;

        font-size:
            clamp(
                2rem,
                8vw,
                2.8rem
            );
    }


    .hero-text > p {

        margin-inline: auto;

        font-size: .98rem;
    }


    .hero-badge {

        font-size: .7rem;

        padding:
            .45rem .85rem;
    }


    .hero-buttons {

        justify-content: center;
    }


    .section-head {

        margin-bottom: 2.5rem;
    }


    .section-head h2 {

        font-size:
            clamp(
                1.7rem,
                7vw,
                2.25rem
            );
    }


    .mode-grid {

        grid-template-columns: 1fr;

        gap: 1.25rem;
    }


    .mode-card {

        padding: .9rem;

        border-radius: 17px;
    }


    .mode-card img {

        height: 190px;

        margin-bottom: 1rem;
    }


    .mode-card h3 {

        font-size: 1.08rem;
    }


    .mode-card p {

        font-size: .91rem;
    }


    .cta-band {

        border-radius: 18px;

        padding:
            2.75rem 1.25rem;
    }


    .cta-actions {

        width: 100%;

        flex-direction: column;
    }


    .cta-actions .btn {

        width: 100%;

        text-align: center;
    }
}


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

@media (max-width: 480px) {

    .hero,
    .modes,
    #courses,
    .features,
    .final-cta {

        padding-top: 3.5rem;

        padding-bottom: 3.5rem;
    }


    .hero {

        padding-top:
            calc(
                var(--nav-h, 70px)
                + 2.5rem
            );
    }


    .hero-text h1 {

        font-size: 1.9rem;

        line-height: 1.18;

        letter-spacing: -.025em;
    }


    .hero-text > p {

        font-size: .92rem;

        line-height: 1.7;
    }


    .hero-buttons {

        flex-direction: column;

        width: 100%;
    }


    .hero-buttons .btn {

        width: 100%;

        text-align: center;
    }


    .hero-badge {

        max-width: 100%;

        justify-content: center;

        font-size: .65rem;

        letter-spacing: .04em;
    }


    .mode-card img {

        height: 170px;
    }


    .section-head h2 {

        font-size: 1.65rem;
    }


    .section-head p {

        font-size: .9rem;
    }


    .cta-band {

        padding:
            2.25rem 1rem;
    }


    .cta-band h2 {

        font-size: 1.55rem;
    }


    .cta-band p {

        font-size: .9rem;
    }
}


/* ============================================================
   EXTRA SMALL DEVICES
   ============================================================ */

@media (max-width: 360px) {

    .hero-text h1 {

        font-size: 1.7rem;
    }


    .hero-text > p {

        font-size: .88rem;
    }


    .hero-badge {

        font-size: .6rem;

        padding:
            .4rem .7rem;
    }


    .mode-card {

        padding: .75rem;
    }


    .mode-card img {

        height: 150px;
    }


    .mode-card h3 {

        font-size: 1rem;
    }


    .mode-card p {

        font-size: .86rem;
    }
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .mode-card,
    .mode-card img,
    .btn-outline,
    .btn-amber {

        transition: none;
    }

    .mode-card:hover {

        transform: none;
    }

    .mode-card:hover img {

        transform: none;
    }
}