@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
    --primary: #6c4df6;
    --primary-dark: #5136d5;
    --dark: #111124;
    --text: #55556d;
    --light: #f7f7fc;
    --border: #e8e8f1;
    --white: #ffffff;
    --success: #1bb56b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--dark);
    background: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}


/* HEADER */

.header {
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Plus Jakarta Sans";
    font-weight: 800;
    font-size: 20px;
}

.logo > span:last-child > span {
    color: var(--primary);
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #8065ff, #5c3ee8);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(108,77,246,.3);
}

.desktop-menu {
    display: flex;
    gap: 35px;
}

.desktop-menu a {
    color: #57576c;
    font-weight: 600;
    font-size: 14px;
}

.desktop-menu a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mobile-menu{
    display: none;
}
.search-btn,
.cart-btn,
.mobile-menu-btn {
    border: 0;
    background: var(--light);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.cart-btn {
    position: relative;
}

.cart-btn span {
    position: absolute;
    top: -6px;
    right: -5px;
    width: 19px;
    height: 19px;
    font-size: 11px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: white;
}

.mobile-menu-btn {
    display: none;
}


/* SEARCH */

.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(13,13,35,.75);
    padding-top: 120px;
}

.search-box {
    width: min(650px, 90%);
    margin: auto;
    background: white;
    padding: 35px;
    border-radius: 25px;
    position: relative;
}

.close-search {
    position: absolute;
    right: 20px;
    top: 15px;
    border: 0;
    background: none;
    font-size: 30px;
    cursor: pointer;
}

.search-box h2 {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
}


/* HERO */

.hero {
    background:
        radial-gradient(circle at 80% 20%, #ddd7ff, transparent 32%),
        linear-gradient(135deg,#faf9ff,#f5f3ff);
    padding: 90px 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-badge,
.eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 12px;
    letter-spacing: 1.5px;
    font-weight: 800;
}

.hero-badge {
    background: #e9e5ff;
    padding: 9px 15px;
    border-radius: 50px;
    margin-bottom: 22px;
}

.hero h1 {
    font-family: "Plus Jakarta Sans";
    font-size: clamp(42px,5vw,70px);
    line-height: 1.05;
    letter-spacing: -3px;
    max-width: 650px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-content > p {
    color: var(--text);
    font-size: 18px;
    max-width: 570px;
    margin: 25px 0 30px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 12px;
    padding: 14px 22px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 12px 25px rgba(108,77,246,.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--border);
    background: white;
}

.btn-light {
    background: white;
    color: var(--primary);
}

.hero-trust {
    display: flex;
    gap: 30px;
    margin-top: 45px;
}

.hero-trust div {
    display: flex;
    flex-direction: column;
}

.hero-trust strong {
    font-size: 20px;
}

.hero-trust span {
    color: var(--text);
    font-size: 12px;
}


/* HERO VISUAL */

.hero-visual {
    position: relative;
    height: 500px;
    display: grid;
    place-items: center;
}

.ebook-showcase {
    width: 300px;
    height: 390px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 25px 35px 80px rgba(40,30,100,.2);
    transform: rotate(5deg);
}

.ebook-cover {
    width: 100%;
    height: 100%;
    padding: 30px;
    border-radius: 5px;
    background: linear-gradient(145deg,#6548ef,#a68aff);
    color: white;
    position: relative;
    overflow: hidden;
}

.ebook-cover > span {
    background: #ffdb4d;
    color: #312500;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 5px;
}

.book-icon {
    font-size: 55px;
    margin: 50px 0 20px;
}

.ebook-cover h3 {
    font-family: "Plus Jakarta Sans";
    font-size: 31px;
    line-height: 1.1;
}

.ebook-cover p {
    position: absolute;
    bottom: 25px;
    font-size: 9px;
    letter-spacing: 2px;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 16px 20px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(30,20,80,.13);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.floating-card strong {
    font-size: 13px;
}

.floating-card small {
    color: var(--text);
}

.card-one {
    top: 45px;
    left: 15px;
}

.card-two {
    right: 0;
    bottom: 50px;
}


/* BENEFITS */

.benefits {
    border-bottom: 1px solid var(--border);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
}

.benefit {
    padding: 30px 20px;
    border-right: 1px solid var(--border);
}

.benefit:last-child {
    border: 0;
}

.benefit > div {
    font-size: 28px;
}

.benefit h3 {
    margin: 8px 0 4px;
    font-size: 16px;
}

.benefit p {
    color: var(--text);
    font-size: 13px;
}


/* SECTIONS */

.section {
    padding: 90px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 35px;
}

.section-heading h2,
.center-heading h2 {
    font-family: "Plus Jakarta Sans";
    font-size: 35px;
    letter-spacing: -1.5px;
}

.section-heading p,
.center-heading p {
    color: var(--text);
}

.view-all {
    color: var(--primary);
    font-weight: 700;
}


/* CATEGORIES */

.category-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 15px;
}

.category-card {
    padding: 25px 15px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: .25s;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #c9c0ff;
}

.category-icon {
    font-size: 30px;
}

.category-card h3 {
    margin: 12px 0 4px;
    font-size: 15px;
}

.category-card span {
    font-size: 12px;
    color: var(--primary);
}


/* PRODUCTS */

.products-section {
    background: #fafafe;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: .25s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(30,20,80,.1);
}

.product-image {
    height: 250px;
    display: grid;
    place-items: center;
    position: relative;
}

.product-image.purple {
    background: linear-gradient(135deg,#dcd5ff,#f0edff);
}

.product-image.blue {
    background: linear-gradient(135deg,#d6e8ff,#edf6ff);
}

.product-image.orange {
    background: linear-gradient(135deg,#ffe1c4,#fff2e5);
}

.product-image.green {
    background: linear-gradient(135deg,#d4f4e5,#effcf6);
}

.product-tag {
    position: absolute;
    left: 14px;
    top: 14px;
    background: white;
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    color: var(--primary);
}

.book-preview {
    width: 130px;
    height: 175px;
    padding: 15px;
    background: linear-gradient(145deg,#6043e9,#9277ff);
    color: white;
    border-radius: 5px;
    box-shadow: 12px 18px 25px rgba(50,40,130,.2);
    transform: rotate(-4deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-preview strong {
    font-family: "Plus Jakarta Sans";
    font-size: 14px;
    line-height: 1.15;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 10px;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 1px;
}

.product-info h3 {
    margin: 8px 0;
    font-size: 17px;
}

.product-info > p {
    color: var(--text);
    font-size: 13px;
    min-height: 60px;
}

.rating {
    color: #ffae00;
    font-size: 13px;
    margin: 12px 0;
}

.rating span {
    color: #999;
    font-size: 11px;
}

.product-bottom {
    border-top: 1px solid var(--border);
    padding-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-bottom del {
    display: block;
    font-size: 11px;
    color: #999;
}

.product-bottom strong {
    font-size: 20px;
}

.add-cart {
    border: 0;
    background: var(--dark);
    color: white;
    padding: 10px 14px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
}


/* DEAL */

.deal-section {
    padding: 80px 0;
}

.deal-box {
    border-radius: 30px;
    padding: 55px;
    background: linear-gradient(120deg,#6547ed,#8b72ff);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.deal-box .eyebrow {
    color: #ddd5ff;
}

.deal-box h2 {
    font-family: "Plus Jakarta Sans";
    font-size: 40px;
    max-width: 650px;
    line-height: 1.15;
    margin: 12px 0;
}

.deal-box p {
    opacity: .85;
    margin-bottom: 25px;
}

.deal-number {
    font-size: 110px;
    font-weight: 800;
    opacity: .95;
}

.deal-number small {
    font-size: 25px;
}


/* STEPS */

.center-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 45px;
}

.center-heading h2 {
    margin: 8px 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}

.step {
    position: relative;
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 20px;
}

.step > span {
    position: absolute;
    right: 25px;
    top: 20px;
    color: #dcdbea;
    font-size: 30px;
    font-weight: 800;
}

.step > div {
    font-size: 35px;
}

.step h3 {
    margin: 15px 0 5px;
}

.step p {
    color: var(--text);
    font-size: 14px;
}


/* REVIEWS */

.reviews-section {
    background: #fafafe;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.review {
    background: white;
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 18px;
}

.review-stars {
    color: #ffae00;
}

.review p {
    color: var(--text);
    margin: 15px 0 25px;
}

.review strong,
.review span {
    display: block;
}

.review span {
    color: #999;
    font-size: 12px;
}


/* NEWSLETTER */

.newsletter {
    padding: 60px 0;
}

.newsletter-box {
    padding: 45px;
    background: #f1efff;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.newsletter-box h2 {
    font-family: "Plus Jakarta Sans";
    font-size: 28px;
}

.newsletter-box p {
    color: var(--text);
}

.newsletter form {
    display: flex;
    background: white;
    border: 1px solid var(--border);
    padding: 5px;
    border-radius: 12px;
    min-width: 420px;
}

.newsletter input {
    flex: 1;
    border: 0;
    padding: 12px;
    outline: none;
}

.newsletter button {
    border: 0;
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
}


/* FOOTER */

.footer {
    background: #101020;
    color: white;
}

.footer-grid {
    padding: 70px 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr 1.5fr;
    gap: 50px;
}

.footer-logo {
    color: white;
}

.footer-about p {
    color: #a5a5b8;
    margin: 20px 0;
    max-width: 360px;
}

.footer h3 {
    margin-bottom: 18px;
}

.footer-grid > div:not(.footer-about) a {
    display: block;
    color: #aaaabd;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-grid > div:not(.footer-about) a:hover {
    color: white;
}

.footer-grid p {
    color: #aaaabd;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #202035;
}

.footer-bottom {
    border-top: 1px solid #28283a;
}

.footer-bottom .container {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #88889b;
    font-size: 12px;
}


/* INNER PAGES */

.inner-hero {
    padding: 80px 0;
    background: linear-gradient(135deg,#f5f2ff,#fbfbff);
}

.inner-hero h1 {
    font-family: "Plus Jakarta Sans";
    font-size: 48px;
    margin: 8px 0;
}

.inner-hero p {
    color: var(--text);
}

.legal-page {
    max-width: 900px;
    margin: auto;
}

.legal-page h2 {
    font-family: "Plus Jakarta Sans";
    margin: 30px 0 10px;
}

.legal-page p {
    color: var(--text);
    margin-bottom: 15px;
}

.legal-page a {
    color: var(--primary);
}

.policy-note {
    margin-top: 40px;
    padding: 20px;
    background: #fff8e8;
    border-radius: 12px;
}


/* CONTACT */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2,
.contact-form h2 {
    font-family: "Plus Jakarta Sans";
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--text);
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.contact-item > div:first-child {
    width: 45px;
    height: 45px;
    background: #f0edff;
    display: grid;
    place-items: center;
    border-radius: 12px;
}

.contact-item strong {
    display: block;
}

.contact-item a {
    color: var(--primary);
}

.contact-item p {
    color: var(--text);
}

.contact-form {
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 20px;
}

.contact-form label,
.checkout-form label {
    display: block;
    margin: 15px 0 7px;
    font-size: 13px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.checkout-form input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    margin-top: 20px;
}


/* PRODUCT */

.product-detail {
    padding: 90px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.large-product-cover {
    max-width: 430px;
    height: 540px;
    padding: 45px;
    border-radius: 10px;
    background: linear-gradient(145deg,#6245ed,#a187ff);
    color: white;
    box-shadow: 25px 30px 70px rgba(50,40,130,.2);
}

.large-product-cover > span {
    background: #ffdc4a;
    color: #222;
    padding: 7px 12px;
    font-size: 10px;
    font-weight: 800;
    border-radius: 5px;
}

.large-product-cover > div {
    font-size: 80px;
    margin-top: 80px;
}

.large-product-cover h1 {
    font-family: "Plus Jakarta Sans";
    font-size: 42px;
    line-height: 1.05;
}

.large-product-cover p {
    margin-top: 80px;
    font-size: 10px;
    letter-spacing: 2px;
}

.product-detail-content h1 {
    font-family: "Plus Jakarta Sans";
    font-size: 46px;
    line-height: 1.1;
    margin: 10px 0;
}

.product-description {
    color: var(--text);
    margin: 25px 0;
}

.feature-list {
    list-style: none;
    line-height: 2;
}

.feature-list li {
    color: #44445a;
}

.detail-price {
    margin: 25px 0;
}

.detail-price del {
    color: #999;
    margin-right: 10px;
}

.detail-price strong {
    font-size: 35px;
}

.buy-btn {
    width: 100%;
}

.secure-note {
    text-align: center;
    color: #777;
    font-size: 12px;
    margin-top: 15px;
}


/* CHECKOUT */

.checkout-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 40px;
}

.checkout-form,
.order-summary {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
}

.checkout-form h2,
.order-summary h2 {
    font-family: "Plus Jakarta Sans";
    margin-bottom: 15px;
}

.checkout-form button {
    margin-top: 25px;
    width: 100%;
}

.order-summary {
    height: max-content;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    font-size: 20px;
}

.empty-cart {
    color: #999;
}


/* RESPONSIVE */

@media(max-width: 1000px) {

    .desktop-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: grid;
    }

    .mobile-menu {
        display: none;
        padding: 15px 4%;
        background: white;
        border-top: 1px solid var(--border);
    }

    .mobile-menu a {
        display: block;
        padding: 12px;
    }

    .hero-grid,
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: 430px;
    }

    .category-grid {
        grid-template-columns: repeat(3,1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .benefit-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .benefit:nth-child(2) {
        border-right: 0;
    }

    .footer-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .newsletter-box {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter form {
        min-width: 0;
    }

    .checkout-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}


@media(max-width:600px) {

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -2px;
    }

    .hero-trust {
        gap: 15px;
    }

    .hero-visual {
        transform: scale(.85);
        margin: -30px 0;
    }

    .category-grid,
    .product-grid,
    .steps,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .benefit {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .section {
        padding: 60px 0;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 15px;
    }

    .deal-box {
        padding: 35px 25px;
        display: block;
    }

    .deal-box h2 {
        font-size: 30px;
    }

    .deal-number {
        font-size: 65px;
        margin-top: 20px;
    }

    .newsletter-box {
        padding: 30px 20px;
    }

    .newsletter form {
        display: block;
        background: transparent;
        border: 0;
    }

    .newsletter input,
    .newsletter button {
        width: 100%;
        margin-top: 8px;
        border-radius: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom .container {
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 15px;
    }

    .inner-hero h1 {
        font-size: 38px;
    }

    .product-detail-content h1 {
        font-size: 36px;
    }

    .large-product-cover {
        height: 450px;
    }
}