* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #f8f9ff;
    color: #1f2340;
}



.navbar {
    width: 100%;
    height: 76px;

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

    padding: 0 7%;

    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #e8e9f2;

    position: sticky;
    top: 0;
    z-index: 1000;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}



.logo {
    display: flex;
    align-items: center;
    gap: 11px;

    text-decoration: none;

    color: #1f2340;

    font-size: 20px;
    font-weight: 700;
}



.logo-icon {
    width: 40px;
    height: 40px;

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

    background: #4f46e5;
    color: #ffffff;

    border-radius: 11px;

    font-size: 18px;

    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.22);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}




.logo:hover .logo-icon {
    transform: translateY(-2px);

    box-shadow: 0 9px 20px rgba(79, 70, 229, 0.30);
}


.logo-text {
    letter-spacing: -0.3px;
}



.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}


.nav-link {
    position: relative;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 9px 14px;

    text-decoration: none;

    color: #666b85;

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

    border-radius: 9px;

    transition: color 0.3s ease,
                background-color 0.3s ease;
}




.nav-link i {
    font-size: 13px;
}




.nav-link:hover {
    color: #4f46e5;
    background-color: #f1f0ff;
}




.nav-link.active {
    color: #4f46e5;
    background-color: #f1f0ff;
}



.menu-btn {
    display: none;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 10px;

    background-color: #f1f0ff;
    color: #4f46e5;

    font-size: 18px;

    cursor: pointer;

    transition: background-color 0.3s ease,
                transform 0.3s ease;
}


.menu-btn:hover {
    background-color: #e7e5ff;
    transform: scale(1.05);
}



@media (max-width: 768px) {

    .navbar {
        height: 68px;
        padding: 0 5%;
    }

    .nav-links {
        display: none;
    }
    .nav-links.mobile-open {
    display: flex;

    position: absolute;
    top: 68px;
    left: 5%;
    right: 5%;

    flex-direction: column;
    align-items: stretch;

    padding: 10px;

    background-color: #ffffff;
    border: 1px solid #e8e9f2;
    border-radius: 12px;

    box-shadow: 0 12px 30px rgba(31, 35, 64, 0.10);
}

    .menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo {
        font-size: 18px;
    }

    .logo-icon {
        width: 37px;
        height: 37px;
        font-size: 16px;
    }
}
@media (max-width: 400px) {

    .navbar {
        padding: 0 4%;
    }

    .logo {
        font-size: 16px;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .menu-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

.hero {
    min-height: calc(100vh - 76px);

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

    padding: 80px 7%;

    text-align: center;

    background:
        radial-gradient(
            circle at 50% 20%,
            #eeedff 0%,
            #f8f9ff 45%,
            #f8f9ff 100%
        );
}




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




.tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 22px;

    padding: 8px 15px;

    border: 1px solid #dddafe;
    border-radius: 30px;

    background-color: #ffffff;
    color: #4f46e5;

    font-size: 13px;
    font-weight: 600;

    box-shadow: 0 5px 18px rgba(79, 70, 229, 0.08);
}


.tagline i {
    font-size: 12px;
}




.hero h1 {
    margin-bottom: 22px;

    color: #1f2340;

    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.08;
    letter-spacing: -2.5px;
    font-weight: 700;
}




.hero h1 span {
    display: block;

    color: #4f46e5;
}




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

    margin: 0 auto 32px;

    color: #666b85;

    font-size: 16px;
    line-height: 1.8;
}

#startBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 13px 22px;

    border: none;
    border-radius: 10px;

    background-color: #4f46e5;
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}



#startBtn:hover {
    background-color: #4338ca;

    transform: translateY(-3px);

    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.32);
}




#startBtn i {
    transition: transform 0.3s ease;
}


#startBtn:hover i {
    transform: translateX(4px);
}



@media (max-width: 768px) {

    .hero {
        min-height: calc(100vh - 68px);

        padding: 70px 5%;
    }

    .hero h1 {
        font-size: clamp(38px, 9vw, 54px);

        letter-spacing: -1.5px;
    }

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

@media (max-width: 400px) {

    .hero {
        padding: 55px 4%;
    }

    .tagline {
        font-size: 12px;
        padding: 7px 12px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-description {
        font-size: 14px;
    }

    #startBtn {
        width: 100%;
        max-width: 240px;
    }
}

.how-it-works {
    padding: 100px 7%;

    background-color: #ffffff;
}

.section-heading {
    max-width: 650px;

    margin: 0 auto 50px;

    text-align: center;
}


.section-heading > p {
    margin-bottom: 10px;

    color: #4f46e5;

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

    letter-spacing: 1.5px;
}


.section-heading h2 {
    color: #1f2340;

    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;

    letter-spacing: -1px;
}

.feature-container {
    max-width: 1100px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.feature-card {
    padding: 28px 24px;

    background-color: #ffffff;

    border: 1px solid #e8e9f2;

    border-radius: 16px;

    box-shadow: 0 8px 25px rgba(31, 35, 64, 0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.feature-card > i {
    width: 46px;
    height: 46px;

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

    margin-bottom: 20px;

    border-radius: 12px;

    background-color: #f1f0ff;
    color: #4f46e5;

    font-size: 18px;
}

.feature-card h3 {
    margin-bottom: 10px;

    color: #1f2340;

    font-size: 16px;
    font-weight: 600;
}

.feature-card p {
    color: #70758d;

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


.feature-card:hover {
    transform: translateY(-6px);

    border-color: #d9d7ff;

    box-shadow: 0 15px 35px rgba(31, 35, 64, 0.09);
}




@media (max-width: 900px) {

    .feature-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 600px) {

    .how-it-works {
        padding: 75px 5%;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .feature-container {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .feature-card {
        padding: 24px 20px;
    }
}
.planner {
    padding: 100px 7%;

    background-color: #f8f9ff;
}

.planner .section-heading {
    margin-bottom: 40px;
}

.planner-card {
    max-width: 600px;

    margin: 0 auto;

    padding: 35px;

    background-color: #ffffff;

    border: 1px solid #e8e9f2;
    border-radius: 18px;

    box-shadow: 0 12px 35px rgba(31, 35, 64, 0.07);
}

.planner-card label {
    display: block;

    margin-bottom: 8px;

    color: #1f2340;

    font-size: 13px;
    font-weight: 600;
}

.planner-card input,
.planner-card select,
.planner-card textarea {
    width: 100%;

    height: 48px;

    margin-bottom: 22px;

    padding: 0 14px;

    border: 1px solid #dfe1ec;
    border-radius: 10px;

    background-color: #ffffff;
    color: #1f2340;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.planner-card input::placeholder,
.planner-card textarea::placeholder {
    color: #a2a5b5;
}

.planner-card textarea {
    width: 100%;
    min-height: 130px;
    margin-bottom: 22px;
    padding: 12px 14px;

    border: 1px solid #dfe1ec;
    border-radius: 10px;

    background-color: #ffffff;
    color: #1f2340;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;

    outline: none;
    resize: vertical;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.planner-card textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.10);
}

.planner-card input:focus,
.planner-card select:focus {
    border-color: #4f46e5;

    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.10);
}

#createPlanBtn {
    width: 100%;

    height: 48px;

    border: none;
    border-radius: 10px;

    background-color: #4f46e5;
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


#createPlanBtn:hover {
    background-color: #4338ca;

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}


#planResult {
    max-width: 600px;

    margin: 30px auto 0;
}


@media (max-width: 600px) {

    .planner {
        padding: 75px 5%;
    }

    .planner-card {
        padding: 25px 20px;
    }
}


@media (max-width: 400px) {

    .planner {
        padding: 60px 4%;
    }

    .planner-card {
        padding: 22px 16px;
    }
}
.plan-day {
    padding: 20px;
    margin-bottom: 12px;

    background-color: #ffffff;

    border: 1px solid #e8e9f2;
    border-radius: 14px;

    box-shadow: 0 6px 18px rgba(31, 35, 64, 0.05);
}

#planResult h3 {
    margin-bottom: 18px;

    color: #1f2340;

    font-size: 20px;
    font-weight: 600;
}

.plan-day ul {
    margin-top: 14px;
    padding-left: 20px;
}

.plan-day li {
    margin-bottom: 6px;

    color: #666b85;

    font-size: 13px;
    line-height: 1.6;
}

.plan-day li::marker {
    color: #4f46e5;
}

.plan-day p {
    color: #70758d;

    font-size: 13px;
    line-height: 1.6;
}
.plan-day li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.plan-day li strong {
    padding: 4px 8px;

    border-radius: 6px;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;

    background-color: #f1f0ff;
    color: #4f46e5;
}
/* ========================================
   IMPROVED STUDY PLAN UI
======================================== */

#planResult {
    max-width: 800px;
    margin: 40px auto 0;
}

#planResult > h3 {
    margin-bottom: 22px;

    color: #1f2340;

    font-size: 24px;
    font-weight: 600;
}

/* --------------------------------
   DAY CARD
-------------------------------- */

.plan-day {
    position: relative;

    padding: 24px;
    margin-bottom: 16px;

    background-color: #ffffff;

    border: 1px solid #e5e6ef;
    border-radius: 16px;

    box-shadow: 0 8px 25px rgba(31, 35, 64, 0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.plan-day:hover {
    transform: translateY(-3px);

    box-shadow: 0 12px 30px rgba(31, 35, 64, 0.08);
}

/* --------------------------------
   DAY HEADING
-------------------------------- */

.plan-day h3 {
    margin-bottom: 8px;

    color: #4f46e5;

    font-size: 16px;
    font-weight: 600;
}

.plan-day > p {
    margin-bottom: 16px;

    color: #777b91;

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

/* --------------------------------
   TOPIC LIST
-------------------------------- */

.plan-day ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.plan-day li {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 11px 0;

    border-bottom: 1px solid #f0f1f6;

    color: #666b85;

    font-size: 13px;
}

.plan-day li:last-child {
    border-bottom: none;
}

.topic-info {
    display: flex;
    align-items: center;

    gap: 9px;

    min-width: 0;
}

.topic-info > span {
    color: #454a64;

    font-weight: 500;
}

/* --------------------------------
   PRIORITY BADGES
-------------------------------- */

.topic-info strong {
    flex-shrink: 0;

    padding: 4px 8px;

    border-radius: 6px;

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

    letter-spacing: 0.5px;
}

.priority-high {
    background-color: #fff0f2;
    color: #d9465f;
}

.priority-medium {
    background-color: #fff7e8;
    color: #c47c0b;
}

.priority-low {
    background-color: #f1f2f6;
    color: #70758d;
}

/* --------------------------------
   TOPIC ACTION
-------------------------------- */

.topic-action {
    flex-shrink: 0;

    padding: 5px 9px;

    border-radius: 7px;

    background-color: #f1f0ff;

    color: #4f46e5;

    font-size: 10px;
    font-weight: 500;

    text-align: right;
}

/* --------------------------------
   MATCHED MATERIAL
-------------------------------- */

.material-match {
    display: block !important;

    margin-top: -1px;

    padding: 5px 0 8px 24px !important;

    border-bottom: none !important;

    color: #8a8da0 !important;

    font-size: 11px !important;
}

.material-match i {
    margin-right: 5px;

    color: #4f46e5;
}

/* --------------------------------
   SUMMARY SECTIONS
-------------------------------- */

.plan-day:has(h3:first-child) {
    overflow: hidden;
}

/* --------------------------------
   MOBILE
-------------------------------- */

@media (max-width: 600px) {

    #planResult {
        margin-top: 30px;
    }

    #planResult > h3 {
        font-size: 21px;
    }

    .plan-day {
        padding: 20px 16px;
    }

    .plan-day li {
        align-items: flex-start;
    }

    .topic-info {
        align-items: flex-start;
    }

    .topic-action {
        font-size: 9px;
        padding: 4px 7px;
    }
}

footer {
    padding: 28px 7%;

    background-color: #ffffff;

    border-top: 1px solid #e8e9f2;

    text-align: center;
}

footer p {
    color: #8a8da0;

    font-size: 12px;
    line-height: 1.6;
}

footer i {
    margin: 0 4px;

    color: #4f46e5;

    font-size: 11px;
}

@media (max-width: 600px) {

    footer {
        padding: 24px 5%;
    }

    footer p {
        font-size: 11px;
    }
}