/* VARIABLES - Deep Blue & Gold Dark Theme */
:root {
    --primary: #38bdf8;
    /* Cyan/Light Blue for better contrast on dark */
    --primary-dark: #0284c7;
    --accent: #FFD700;
    /* Bright Gold */
    --bg-dark: #0f172a;
    /* Slate 900 - Main Background */
    --bg-card: #1e293b;
    /* Slate 800 - Card Background */
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-main);
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--accent), #fef08a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-danger {
    color: #ef4444;
}

.btn-primary {
    background: var(--primary-dark);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
    background: var(--primary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-left: 10px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* NAV */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-weight: 800;
    color: var(--text-main);
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links .btn-primary-sm {
    background: var(--primary-dark);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    margin-left: 20px;
}

/* HERO */
.hero-section {
    padding: 160px 0 100px;
    background: radial-gradient(circle at 60% 40%, #1e293b 0%, #0f172a 70%);
    /* Dark Gradient */
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

.badge {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

/* 3D BOOK MOCKUP */
.book-container {
    perspective: 1500px;
    width: 350px;
    margin: 0 auto;
}

.book {
    width: 300px;
    height: 425px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-25deg) rotateX(5deg);
    transition: transform 0.5s ease;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
    /* Stronger shadow for dark mode */
}

/* ... (Book animation remains) */

.book-front {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #1e293b;
    transform: translateZ(25px);
    overflow: hidden;
    border-radius: 2px 5px 5px 2px;
}

.book-side {
    width: 50px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #0f172a;
    transform: translateX(-25px) translateZ(0) rotateY(-90deg);
}

/* FEATURES */
.features-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-main);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    border-radius: 12px;
    background: var(--bg-card);
    /* Dark Card */
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: #28374f;
    /* Slightly lighter hover */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: var(--text-main);
}

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

/* REVIEWS */
.reviews-section {
    padding: 80px 0;
    background: #0b1120;
    /* Darker than main bg */
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--text-main);
}

.reviewer-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stars {
    margin-left: auto;
    color: var(--accent);
    letter-spacing: 2px;
}

.review-card p {
    font-style: italic;
    color: #cbd5e1;
    /* Lighter than muted for readability */
    font-size: 0.95rem;
    line-height: 1.6;
}

/* PRICING UPDATES */
.pricing-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0b1120 100%);
    color: white;
}

.pricing-card {
    background: var(--bg-card);
    color: var(--text-main);
    max-width: 450px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--accent);
    /* Thinner Gold Border */
}

.badge-best-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #DC2626;
    /* Red for Urgency */
    color: white;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
    white-space: nowrap;
}

.price {
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 10px 0 0;
    line-height: 1;
}

.currency {
    font-size: 2rem;
    vertical-align: super;
}

.original-price {
    font-size: 1.5rem;
    text-decoration: line-through;
    color: #94A3B8;
    margin-left: 10px;
    font-weight: 400;
}

.save-tag {
    background: #ecfdf5;
    color: #047857;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.timer {
    font-family: monospace;
    color: #DC2626;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 10px 0 20px;
}

.payment-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.8rem;
    color: #64748B;
    opacity: 0.8;
}

.btn-block {
    display: block;
    width: 100%;
    font-size: 1.2rem;
    padding: 16px;
    animation: pulse 2s infinite;
}

/* INSTAMOJO BUTTON */
.btn-instamojo {
    background: #5A2E98;
    /* Instamojo Purple */
    color: white;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-instamojo:hover {
    background: #4a257e;
    box-shadow: 0 5px 15px rgba(90, 46, 152, 0.4);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* CATEGORY BREAKDOWN */
.category-breakdown {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 50px;
    text-align: center;
}

.cat-item {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 10px;
    flex: 1;
}

.cat-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* STEPS */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    margin-bottom: 40px;
}

.step-num {
    background: var(--accent);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.faq-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.faq-item h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* MID CTA */
.mid-cta-container {
    text-align: center;
    margin: 40px 0;
}

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

.small-text {
    font-size: 0.8rem;
    color: #64748B;
    margin-top: 8px;
}


/* --- ANIMATIONS (UI/UX PRO MAX) --- */

/* Scroll Reveal Base */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Enhanced Button Glow / Shine */
.btn-primary,
.btn-instamojo {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.btn-primary:hover,
.btn-instamojo:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.5);
}

.btn-primary::after,
.btn-instamojo::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after,
.btn-instamojo:hover::after {
    left: 100%;
    transition: 0.5s;
    /* Sweep effect */
}

/* Hero Float Animation */
.floating {
    animation: float 6s ease-in-out infinite;
}

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

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

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

/* Glass Card Hover Lift */
.feature-card,
.cat-item,
.review-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.feature-card:hover,
.cat-item:hover,
.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Soft, premium shadow */
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {

    /* TYPOGRAPHY */
    html {
        font-size: 14px;
        /* Scale down base size */
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .price {
        font-size: 4rem;
    }

    /* NAV */
    .glass-nav {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        background: var(--glass-bg);
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 0.9rem;
    }

    .nav-links .btn-primary-sm {
        margin-left: 0;
    }

    /* HERO */
    .hero-section {
        padding: 180px 0 80px;
        /* More top padding for stacked nav */
        text-align: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        /* Image first on mobile */
    }

    .hero-content .subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .social-proof {
        justify-content: center;
    }

    /* BOOK MOCKUP SCALE */
    .book-container {
        width: 250px;
        margin: 0 auto;
    }

    .book {
        width: 220px;
        height: 310px;
    }

    /* GRIDS */
    .features-section,
    .reviews-section,
    .pricing-section {
        padding: 60px 0;
    }

    .feature-grid,
    .review-grid {
        grid-template-columns: 1fr;
        /* Single column */
    }

    /* PRICING */
    .pricing-card {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .badge-best-value {
        font-size: 0.8rem;
        padding: 8px 15px;
        white-space: normal;
        width: 90%;
    }
}