:root {
    --bg-dark: #0a0a0f;
    --bg-card: #13131f;
    --bg-card-hover: #1c1c2e;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --accent: #8b5cf6;
    --gold: #fbbf24;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 40px;
    /* Space for fixed banner */
}

/* Top Banner */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #ef4444;
    color: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-track {
    display: flex;
    animation: marquee 20s linear infinite;
}

.banner-track span {
    padding: 0 30px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-large {
    width: 100%;
    max-width: 400px;
    background: #22c55e;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.btn-large:hover {
    background: #16a34a;
    transform: scale(1.02);
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Hero Section */
.hero {
    padding: 80px 0;
    position: relative;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 40%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-text .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.small-text {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    /* box-shadow: 0 20px 40px rgba(0,0,0,0.5); */
    animation: float 6s ease-in-out infinite;
}

.hero-img-devices {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Pillars */
.pillars {
    padding: 80px 0;
    background: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.subtitle-pillars {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    justify-content: center;
}

.card-pillar {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.card-pillar:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-box i {
    width: 30px;
    height: 30px;
}

.icon-box.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.icon-box.green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.icon-box.purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent);
}

.icon-box.gold {
    background: rgba(251, 191, 36, 0.1);
    color: var(--gold);
}

.icon-box.rose {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
}

.card-pillar h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.card-pillar p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Features */
.features {
    padding: 80px 0;
    background: #0f0f16;
}

.features-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-list {
    list-style: none;
    margin-top: 30px;
}

.feature-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-list i {
    color: var(--primary);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 5px;
}

.bonus-card {
    background: linear-gradient(145deg, #1e1e2e, #13131f);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
}

.bonus-tag {
    position: absolute;
    top: -12px;
    right: 30px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.bonus-card ul {
    list-style: none;
    margin: 20px 0;
}

.bonus-card li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.unlock-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Price Anchor */
.price-anchor {
    padding: 80px 0;
    text-align: center;
}

.anchor-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.comparison {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.comp-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.comp-item.bad {
    opacity: 0.6;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comp-item.good {
    border: 2px solid var(--primary);
    transform: scale(1.1);
    background: rgba(59, 130, 246, 0.05);
}

.comp-item strong {
    font-size: 2rem;
}

/* Urgency Card */
.urgency-card {
    margin-top: 50px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    padding: 30px;
    border-radius: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    animation: pulse-red 3s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.2);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.urgency-title {
    font-size: 1.3rem;
    color: #ef4444;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.4;
}

.urgency-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #0f0f16;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 80px;
}

.time-block span:first-child {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: white;
}

.time-block .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.separator {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    margin-top: -20px;
}



/* Offer Section */
.offer-section {
    padding: 80px 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1), transparent 60%);
}

.offer-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.offer-header {
    background: var(--gradient-main);
    padding: 20px;
    text-align: center;
}

.offer-badge {
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.offer-body {
    padding: 40px;
    text-align: center;
}

.price-box {
    margin-bottom: 30px;
}

.from {
    display: block;
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.to {
    font-size: 1.5rem;
    display: block;
}

.to strong {
    font-size: 3.5rem;
    color: #22c55e;
}

.offer-check-list {
    list-style: none;
    text-align: left;
    margin: 0 auto 30px;
    display: inline-block;
}

.offer-check-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.offer-check-list i {
    color: #22c55e;
    width: 20px;
}

.guarantee {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.t-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
}

.stars {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.t-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: #e2e8f0;
}

/* FAQ */
.faq {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: var(--bg-card);
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
}

summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
}

details[open] summary::after {
    content: '-';
}

details p {
    padding: 0 20px 20px;
    color: var(--text-muted);
}

/* Guarantee Section */
.guarantee-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.guarantee-card-large {
    background: linear-gradient(145deg, #1e1e2e, #13131f);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 24px;
    padding: 50px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.guarantee-icon {
    width: 80px;
    height: 80px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    margin-bottom: 10px;
}

.guarantee-icon i {
    width: 40px;
    height: 40px;
}

.guarantee-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.guarantee-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .features-wrapper {
        grid-template-columns: 1fr;
    }

    .cta-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Mobile Pillars Optimization */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        /* Force 2 columns on mobile */
        gap: 15px;
    }

    .card-pillar {
        padding: 20px;
    }

    .card-pillar h3 {
        font-size: 1.1rem;
    }

    .card-pillar p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .icon-box {
        width: 45px;
        height: 45px;
        margin-bottom: 15px;
    }

    .icon-box i {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .sales-popup {
        left: 10px;
        bottom: 10px;
        right: auto;
        max-width: 90%;
        padding: 10px 15px;
    }
}

/* Exit Intent Modal */
.exit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.exit-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.exit-modal-content {
    background: var(--bg-card);
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    padding: 0;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.exit-modal.visible .exit-modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-header {
    background: #ef4444;
    padding: 30px 20px;
    text-align: center;
}

.modal-header h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.modal-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-alert {
    color: #ef4444;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.modal-body h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.modal-body p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
}

.coupon-box {
    background: rgba(34, 197, 94, 0.1);
    border: 2px dashed #22c55e;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.coupon-box span {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.coupon-code {
    color: #22c55e;
    font-size: 2rem;
    letter-spacing: 2px;
}

.modal-btn {
    width: 100%;
    margin-bottom: 15px;
}

.modal-footer-text {
    font-size: 0.8rem !important;
    margin-bottom: 0 !important;
    opacity: 0.7;
}

/* Book Showcase Marquee */
.book-showcase {
    padding: 80px 0;
    background: var(--bg-dark);
    overflow: hidden;
}

.marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.marquee-row {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    /* Essential for marquee */
}

.marquee-row::before,
.marquee-row::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-row::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.marquee-row::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.marquee-content {
    display: flex;
    width: max-content;
    /* Force full width */
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;
}

.scroll-left .marquee-content {
    animation: scrollLeft 40s linear infinite;
}

.scroll-right .marquee-content {
    animation: scrollRight 40s linear infinite;
}

.book-item {
    width: 150px;
    height: 220px;
    flex: 0 0 auto;
    /* Don't shrink, don't grow */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    background: #222;
    margin-right: 0;
    /* Gap handled by flex gap */
}

.book-item:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.book-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Pause on hover */
.marquee-row:hover .marquee-content {
    animation-play-state: paused;
}

@media (max-width: 768px) {

    .marquee-row::before,
    .marquee-row::after {
        width: 50px;
        /* Smaller fade on mobile */
    }

    .book-item {
        width: 120px;
        height: 176px;
    }
}

/* Testimonial Images */
.testimonial-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Fix Footer Spacing if needed */
footer {
    position: relative;
    z-index: 10;
    background: var(--bg-dark);
    /* Ensure background covers content behind */
}

/* Books Showcase Section */
.books-showcase {
    padding: 80px 0;
    background: var(--bg-dark);
    overflow: hidden; /* Hide overflow for marquees */
}

.marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
    position: relative;
}

/* Fade effect on sides */
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.marquee-row {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    display: flex;
    gap: 20px;
    /* Ensure content is wide enough */
    min-width: 100%; 
}

.book-item {
    flex: 0 0 auto;
    width: 180px; /* Adjust based on image aspect ratio */
    transition: transform 0.3s ease;
}

.book-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.book-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Animations */
.scroll-left .marquee-content {
    animation: scrollLeft 40s linear infinite;
}

.scroll-right .marquee-content {
    animation: scrollRight 40s linear infinite;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Pause on hover */
.marquee-row:hover .marquee-content {
    animation-play-state: paused;
}