:root {
    /* Colors */
    --bg-dark: #0a0a0a;
    --bg-gradient: radial-gradient(circle at top center, #1a1a2e 0%, #0f0c29 100%);
    --primary: #6366f1;
    /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #ec4899;
    /* Pink */
    --secondary-glow: rgba(236, 72, 153, 0.5);
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --accent-orange: #f97316;
    --accent-red: #ef4444;
    --accent-purple: #8b5cf6;

    --text-main: #ffffff;
    --text-muted: #9ca3af;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    /* Spacing */
    --container-padding: 2rem;
    --max-width: 1200px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    background-image: var(--bg-gradient);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    text-align: center;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
    -webkit-text-fill-color: var(--primary);
    /* Override gradient if needed */
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--glass-highlight);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 0 20px var(--primary-glow);
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--secondary-glow);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

/* Header / Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Background Orbs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.3;
}

.hero::before {
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation: float 10s infinite ease-in-out;
}

.hero::after {
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
    animation: float 12s infinite ease-in-out reverse;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    z-index: 1;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--glass-bg);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.feature i {
    color: var(--accent-blue);
    font-size: 1.2rem;
}

.product-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-book-image {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition-smooth);
    z-index: 2;
}

.hero-book-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* Crayons Animation */
.crayons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    z-index: 1;
    pointer-events: none;
}

.crayon {
    position: absolute;
    width: 60px;
    height: 12px;
    border-radius: 6px;
    opacity: 0.8;
    box-shadow: 0 0 15px currentColor;
}

.crayon.red {
    background: var(--accent-red);
    color: var(--accent-red);
    top: 10%;
    left: 10%;
    animation: float-delayed 6s infinite;
}

.crayon.orange {
    background: var(--accent-orange);
    color: var(--accent-orange);
    top: 20%;
    right: 10%;
    animation: float-delayed 7s infinite;
}

.crayon.yellow {
    background: var(--accent-yellow);
    color: var(--accent-yellow);
    bottom: 20%;
    left: 5%;
    animation: float-delayed 8s infinite;
}

.crayon.green {
    background: var(--accent-green);
    color: var(--accent-green);
    bottom: 10%;
    right: 20%;
    animation: float-delayed 5s infinite;
}

.crayon.blue {
    background: var(--accent-blue);
    color: var(--accent-blue);
    top: 50%;
    left: -5%;
    animation: float-delayed 9s infinite;
}

.crayon.purple {
    background: var(--accent-purple);
    color: var(--accent-purple);
    top: 40%;
    right: -5%;
    animation: float-delayed 6s infinite;
}

/* Why Choose Section */
.why-choose {
    padding: 6rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit {
    text-align: center;
    padding: 2.5rem 2rem;
}

.benefit-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.benefit-icon.blue i {
    color: var(--accent-blue);
    text-shadow: 0 0 10px var(--accent-blue);
}

.benefit-icon.purple i {
    color: var(--accent-purple);
    text-shadow: 0 0 10px var(--accent-purple);
}

.benefit-icon.green i {
    color: var(--accent-green);
    text-shadow: 0 0 10px var(--accent-green);
}

.benefit-icon.orange i {
    color: var(--accent-orange);
    text-shadow: 0 0 10px var(--accent-orange);
}

.benefit h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Gallery / Carousel */
.products-gallery {
    padding: 6rem 0;
    overflow: hidden;
}

.products-carousel-container {
    position: relative;
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: grab;
}

.product-image-card {
    min-width: 200px;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
    transition: var(--transition-fast);
}

.product-image-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

.product-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    color: white;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: 0 0 15px var(--primary-glow);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 25px var(--primary-glow);
    background: var(--accent-purple);
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3), transparent);
}

.testimonials-carousel-container {
    overflow: hidden;
    margin: 3rem auto;
    max-width: 800px;
}

.testimonials-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-chat {
    min-width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: center;
}

.chat-screenshot {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
}

.testimonials-carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.testimonials-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Pricing */
.limited-offer {
    padding: 6rem 0;
}

.offer-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
    animation: pulse 2s infinite;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: center;
}

.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    backdrop-filter: blur(12px);
}

.pricing-card.premium {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
}

.bestseller {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #f59e0b, #fcd34d);
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

.package-header i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing {
    margin: 2rem 0;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.current-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin: 0.5rem 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.discount {
    display: inline-block;
    background: var(--accent-green);
    color: #000;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.features-list {
    text-align: left;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.feature-item i {
    color: var(--accent-green);
}

.bonus-items {
    text-align: left;
    margin: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
}

.bonus-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.bonus-item i {
    color: var(--accent-yellow);
    margin-top: 0.2rem;
}

.bonus-item p {
    font-size: 0.8rem;
    color: var(--accent-yellow);
    margin: 0;
    font-weight: 700;
}

.buy-button {
    display: block;
    width: 100%;
    padding: 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.buy-button.basic {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.buy-button.basic:hover {
    background: rgba(255, 255, 255, 0.2);
}

.buy-button.premium {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.buy-button.premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--secondary-glow);
}

/* FAQ */
.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.faq-answer p {
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Notification */
.purchase-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--accent-green);
    padding: 1rem;
    border-radius: 12px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 300px;
}

.purchase-notification.show {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
}

.customer-name {
    font-weight: 700;
    color: white;
    margin-bottom: 0.2rem;
}

.purchase-info {
    font-size: 0.9rem;
    color: var(--accent-green);
    margin-bottom: 0.2rem;
}

.location-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

@keyframes float-delayed {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-10px, 10px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-book-image {
        max-width: 300px;
    }

    .features {
        justify-content: center;
    }

    .feature {
        justify-content: center;
    }

    .pricing-card.premium {
        transform: scale(1);
    }

    .products-carousel-container {
        padding: 0;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

/* Utility Classes for JS Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}