/* =========================================================
   Memora - Landing Page
   ========================================================= */

.home-page {
    --home-primary: #0d6efd;
    --home-primary-dark: #0a58ca;
    --home-text: #101828;
    --home-text-muted: #667085;
    --home-border: #eaecf0;
    --home-light: #f8fafc;
    --home-soft-blue: #f5f8ff;
    --home-white: #ffffff;
    color: var(--home-text);
    background: var(--home-white);
    overflow-x: hidden;
}

    .home-page *,
    .home-page *::before,
    .home-page *::after {
        box-sizing: border-box;
    }


    /* =========================================================
   General
   ========================================================= */

    .home-page a {
        text-decoration: none;
    }

.home-section-eyebrow {
    display: inline-block;
    margin-bottom: .8rem;
    color: var(--home-primary);
    font-size: .85rem;
    font-weight: 700;
}

.home-section-heading {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

    .home-section-heading h2 {
        margin: 0 0 1rem;
        color: var(--home-text);
        font-size: clamp(1.9rem, 3vw, 2.7rem);
        font-weight: 800;
        line-height: 1.5;
    }

    .home-section-heading p {
        margin: 0;
        color: var(--home-text-muted);
        font-size: 1rem;
        line-height: 2;
    }


/* =========================================================
   Navbar
   ========================================================= */

.home-navbar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    padding: 1.2rem 0;
    background: transparent;
}

.home-navbar-inner {
    display: flex;
    align-items: center;
    min-height: 58px;
}

.home-brand {
    flex-shrink: 0;
    color: var(--home-text);
    font-size: 1.5rem;
    font-weight: 800;
}

    .home-brand:hover {
        color: var(--home-primary);
    }

.home-nav {
    display: flex;
    align-items: center;
    margin-right: 3rem;
    gap: 2rem;
}

    .home-nav a {
        color: #475467;
        font-size: .92rem;
        font-weight: 500;
        transition: color .2s ease;
    }

        .home-nav a:hover {
            color: var(--home-primary);
        }

.home-navbar-actions {
    display: flex;
    align-items: center;
    margin-right: auto;
    gap: 1rem;
}

.home-login-link {
    color: #344054;
    font-size: .92rem;
    font-weight: 600;
}

    .home-login-link:hover {
        color: var(--home-primary);
    }

.home-register-btn {
    padding: .55rem 1.2rem;
    border-radius: 10px;
}


/* =========================================================
   Hero
   ========================================================= */

.home-hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    padding: 150px 0 100px;
    background: radial-gradient( circle at 85% 20%, rgba(13, 110, 253, .08), transparent 32% ), linear-gradient( 180deg, #f8fbff 0%, #ffffff 100% );
}

.home-hero-content {
    max-width: 590px;
}

    .home-hero-content h1 {
        margin: 0 0 1.5rem;
        color: var(--home-text);
        font-size: clamp(2.5rem, 5vw, 4.4rem);
        font-weight: 850;
        line-height: 1.35;
        letter-spacing: -.04em;
    }

        .home-hero-content h1 span {
            color: var(--home-primary);
        }

    .home-hero-content p {
        max-width: 560px;
        margin: 0 0 2rem;
        color: var(--home-text-muted);
        font-size: 1.05rem;
        line-height: 2.1;
    }

.home-hero-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

    .home-hero-actions .btn {
        border-radius: 11px;
        padding: .8rem 1.6rem;
        font-weight: 700;
    }

.home-hero-more {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #475467;
    font-size: .92rem;
    font-weight: 600;
}

    .home-hero-more i {
        transition: transform .2s ease;
    }

    .home-hero-more:hover {
        color: var(--home-primary);
    }

        .home-hero-more:hover i {
            transform: translateY(3px);
        }


/* =========================================================
   Hero Demo
   ========================================================= */

.home-hero-visual {
    position: relative;
    width: 100%;
    min-height: 490px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(13, 110, 253, .08);
    filter: blur(2px);
}

.home-demo-card {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 25px 70px rgba(16, 24, 40, .12);
    backdrop-filter: blur(12px);
}

.home-demo-card-main {
    z-index: 3;
    width: min(430px, 85%);
    padding: 1.7rem;
}

.home-demo-card-back {
    z-index: 2;
    width: min(360px, 72%);
    top: 30px;
    right: 8%;
    padding: 1.25rem;
    transform: rotate(6deg);
    opacity: .85;
}

.home-demo-card-top,
.home-demo-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-demo-badge {
    padding: .35rem .7rem;
    border-radius: 20px;
    background: #eef4ff;
    color: var(--home-primary);
    font-size: .75rem;
    font-weight: 700;
}

.home-demo-question {
    padding: 3rem 0 2rem;
    text-align: center;
}

    .home-demo-question span {
        display: block;
        margin-bottom: .8rem;
        color: #98a2b3;
        font-size: .8rem;
    }

    .home-demo-question h3 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 750;
    }

.home-demo-answer {
    padding: 1rem 0;
}

.home-demo-answer-line {
    width: 100%;
    height: 8px;
    margin-bottom: .8rem;
    border-radius: 20px;
    background: #eaecf0;
}

    .home-demo-answer-line.short {
        width: 65%;
    }

.home-demo-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--home-border);
}

    .home-demo-actions button {
        padding: .55rem 1rem;
        border: 0;
        border-radius: 9px;
        background: var(--home-primary);
        color: #fff;
        font-size: .82rem;
        font-weight: 600;
    }

.home-demo-card-header {
    color: #344054;
    font-size: .85rem;
    font-weight: 700;
}

    .home-demo-card-header i {
        color: var(--home-primary);
    }

.home-demo-progress {
    margin-top: 1.3rem;
}

.home-demo-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: .6rem;
    color: #667085;
    font-size: .75rem;
}

    .home-demo-progress-label strong {
        color: var(--home-text);
    }

.home-demo-progress .progress {
    height: 7px;
    overflow: hidden;
    border-radius: 20px;
    background: #eaecf0;
}

.home-demo-progress .progress-bar {
    border-radius: inherit;
    background: var(--home-primary);
}

.home-demo-floating {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem .9rem;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 15px 35px rgba(16, 24, 40, .1);
    color: #344054;
    font-size: .75rem;
    font-weight: 700;
}

    .home-demo-floating i {
        color: var(--home-primary);
    }

.home-demo-floating-one {
    bottom: 55px;
    left: 3%;
}

.home-demo-floating-two {
    right: 1%;
    bottom: 120px;
}


/* =========================================================
   About
   ========================================================= */

.home-about {
    padding: 115px 0;
    background: #fff;
}

.home-about-visual {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 28px;
    background: radial-gradient( circle at 30% 30%, rgba(13, 110, 253, .1), transparent 45% ), #f8fafc;
}

.home-about-box {
    width: min(420px, 100%);
    padding: 1.5rem;
    border: 1px solid #edf0f5;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 25px 60px rgba(16, 24, 40, .08);
}

.home-about-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--home-border);
    font-weight: 700;
}

    .home-about-box-header i {
        color: var(--home-primary);
    }

.home-about-cards {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    margin-top: 1.2rem;
}

.home-about-mini-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    color: #344054;
    font-size: .9rem;
    font-weight: 600;
}

    .home-about-mini-card i {
        color: #12b76a;
    }

    .home-about-mini-card:last-child i {
        color: var(--home-primary);
    }

.home-about-content {
    padding-right: 2rem;
}

    .home-about-content h3 {
        margin-bottom: 1.3rem;
        font-size: clamp(1.7rem, 3vw, 2.3rem);
        font-weight: 800;
        line-height: 1.6;
    }

    .home-about-content p {
        margin-bottom: 1rem;
        color: var(--home-text-muted);
        line-height: 2;
    }

    .home-about-content ul {
        display: flex;
        flex-direction: column;
        gap: .8rem;
        margin: 1.5rem 0 0;
        padding: 0;
        list-style: none;
    }

    .home-about-content li {
        display: flex;
        align-items: center;
        gap: .7rem;
        color: #475467;
        font-size: .95rem;
    }

        .home-about-content li i {
            color: #12b76a;
        }


/* =========================================================
   How It Works
   ========================================================= */

.home-how-it-works {
    padding: 115px 0;
    background: var(--home-light);
}

.home-step-card {
    position: relative;
    height: 100%;
    padding: 2.2rem;
    border: 1px solid var(--home-border);
    border-radius: 20px;
    background: #fff;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .home-step-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 50px rgba(16, 24, 40, .08);
    }

.home-step-number {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef4ff;
    color: var(--home-primary);
    font-size: .8rem;
    font-weight: 800;
}

.home-step-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 1.5rem;
    border-radius: 20px;
    background: #eef4ff;
    color: var(--home-primary);
    font-size: 1.7rem;
}

.home-step-card h3 {
    margin-bottom: .8rem;
    font-size: 1.2rem;
    font-weight: 750;
}

.home-step-card p {
    margin: 0;
    color: var(--home-text-muted);
    font-size: .92rem;
    line-height: 2;
}


/* =========================================================
   Spaced Repetition
   ========================================================= */

.home-spaced-repetition {
    padding: 115px 0;
    background: #fff;
}

.home-section-heading.text-start {
    margin-right: 0;
    margin-left: 0;
}

.home-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 2rem 1rem;
}

.home-timeline-line {
    position: absolute;
    top: 46px;
    right: 8%;
    left: 8%;
    height: 3px;
    border-radius: 10px;
    background: #dbe5f5;
}

.home-timeline-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .9rem;
    min-width: 100px;
    text-align: center;
}

.home-timeline-dot {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #fff;
    border-radius: 50%;
    background: var(--home-primary);
    color: #fff;
    box-shadow: 0 5px 20px rgba(13, 110, 253, .18);
    font-weight: 800;
}

.home-timeline-item strong {
    display: block;
    margin-bottom: .2rem;
    font-size: .85rem;
}

.home-timeline-item span {
    color: var(--home-text-muted);
    font-size: .75rem;
}


/* =========================================================
   Features
   ========================================================= */

.home-features {
    padding: 115px 0;
    background: var(--home-light);
}

.home-feature-card {
    height: 100%;
    padding: 2rem;
    border: 1px solid var(--home-border);
    border-radius: 20px;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .home-feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 40px rgba(20, 40, 80, .07);
    }

.home-feature-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border-radius: 15px;
    background: #eef4ff;
    color: var(--home-primary);
    font-size: 1.4rem;
}

.home-feature-card h3 {
    margin-bottom: .8rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.home-feature-card p {
    margin: 0;
    color: var(--home-text-muted);
    font-size: .95rem;
    line-height: 1.9;
}


/* =========================================================
   CTA
   ========================================================= */

.home-cta {
    padding: 115px 0;
    background: #fff;
}

.home-cta-box {
    position: relative;
    overflow: hidden;
    padding: 75px 30px;
    border-radius: 28px;
    background: var(--home-soft-blue);
    text-align: center;
}

    .home-cta-box::before,
    .home-cta-box::after {
        content: "";
        position: absolute;
        width: 230px;
        height: 230px;
        border-radius: 50%;
        background: rgba(13, 110, 253, .06);
    }

    .home-cta-box::before {
        top: -110px;
        right: -70px;
    }

    .home-cta-box::after {
        bottom: -120px;
        left: -70px;
    }

.home-cta-content {
    position: relative;
    z-index: 1;
}

    .home-cta-content h2 {
        margin-bottom: 1rem;
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 800;
        line-height: 1.5;
    }

    .home-cta-content p {
        margin-bottom: 2rem;
        color: var(--home-text-muted);
        font-size: 1rem;
    }

.home-cta-actions {
    display: flex;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
}

    .home-cta-actions .btn {
        min-width: 125px;
        border-radius: 11px;
    }


/* =========================================================
   Footer
   ========================================================= */

.home-footer {
    padding: 50px 0 25px;
    background: #101828;
    color: #fff;
}

.home-footer-brand {
    margin-bottom: .5rem;
    font-size: 1.4rem;
    font-weight: 800;
}

.home-footer-description {
    color: #98a2b3;
    font-size: .9rem;
}

.home-footer-links {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

    .home-footer-links a {
        color: #d0d5dd;
        font-size: .9rem;
        transition: color .2s ease;
    }

        .home-footer-links a:hover {
            color: #fff;
        }

.home-footer hr {
    border-color: rgba(255, 255, 255, .1);
}

.home-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: #667085;
    font-size: .8rem;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991.98px) {

    .home-navbar {
        padding: 1rem 0;
    }

    .home-nav {
        display: none;
    }

    .home-hero {
        min-height: auto;
        padding: 130px 0 80px;
    }

    .home-hero-content {
        max-width: 700px;
        margin: 0 auto;
        text-align: center;
    }

        .home-hero-content p {
            margin-left: auto;
            margin-right: auto;
        }

    .home-hero-actions {
        justify-content: center;
    }

    .home-hero-visual {
        min-height: 430px;
        margin-top: 1rem;
    }

    .home-about-content {
        padding-right: 0;
    }

    .home-about-visual {
        min-height: 350px;
    }

    .home-section-heading.text-start {
        margin-left: auto;
        margin-right: auto;
        text-align: center !important;
    }
}


@media (max-width: 767.98px) {

    .home-navbar-inner {
        min-height: 50px;
    }

    .home-brand {
        font-size: 1.3rem;
    }

    .home-login-link {
        display: none;
    }

    .home-register-btn {
        padding: .45rem .9rem;
        font-size: .85rem;
    }

    .home-hero {
        padding: 115px 0 65px;
    }

    .home-hero-content h1 {
        font-size: clamp(2.2rem, 10vw, 3.1rem);
        letter-spacing: -.025em;
    }

    .home-hero-content p {
        font-size: .95rem;
        line-height: 2;
    }

    .home-hero-actions {
        flex-direction: column;
        width: 100%;
    }

        .home-hero-actions .btn {
            width: 100%;
        }

    .home-hero-more {
        margin-top: .3rem;
    }

    .home-hero-visual {
        min-height: 380px;
    }

    .home-demo-card-main {
        width: 88%;
    }

    .home-demo-card-back {
        width: 72%;
        top: 15px;
        right: 2%;
    }

    .home-demo-floating-one {
        bottom: 25px;
        left: 0;
    }

    .home-demo-floating-two {
        right: 0;
        bottom: 80px;
    }

    .home-demo-floating {
        padding: .5rem .7rem;
        font-size: .68rem;
    }

    .home-about,
    .home-how-it-works,
    .home-spaced-repetition,
    .home-features,
    .home-cta {
        padding: 80px 0;
    }

    .home-about-visual {
        min-height: 300px;
        padding: 1rem;
    }

    .home-about-box {
        padding: 1.2rem;
    }

    .home-about-content h3 {
        font-size: 1.7rem;
    }

    .home-timeline {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
        padding: 1rem 0;
    }

    .home-timeline-line {
        display: none;
    }

    .home-timeline-item {
        min-width: auto;
    }

    .home-cta-box {
        padding: 60px 20px;
    }

    .home-footer {
        padding-top: 40px;
    }

    .home-footer-links {
        gap: 1rem;
    }

    .home-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}


@media (max-width: 575.98px) {

    .home-navbar-actions {
        gap: .5rem;
    }

    .home-hero-visual {
        min-height: 330px;
    }

    .home-demo-card-main {
        padding: 1.2rem;
    }

    .home-demo-question {
        padding: 2.2rem 0 1.5rem;
    }

        .home-demo-question h3 {
            font-size: 1.2rem;
        }

    .home-demo-card-back {
        top: 10px;
    }

    .home-demo-floating-one {
        bottom: 10px;
    }

    .home-demo-floating-two {
        bottom: 60px;
    }

    .home-step-card,
    .home-feature-card {
        padding: 1.6rem;
    }

    .home-section-heading h2 {
        font-size: 1.8rem;
    }

    .home-footer-links {
        display: grid;
        grid-template-columns: repeat(2, auto);
        gap: .8rem 1.5rem;
    }
}
