/* ============================================
   GLOBAL STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

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

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: #ef4444;
}

.logout-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.logout-btn:hover {
    color: #ffffff;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    margin-top: 80px;
    padding: 60px 0;
}

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

.hero-left {
    display: flex;
    justify-content: flex-end;
}

.book-cover-wrapper {
    position: relative;
}

.book-cover-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    border-radius: 12px;
}

.book-cover {
    position: relative;
    width: 320px;
    height: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: scale(1.05);
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.2;
    color: #ffffff;
}

.highlight {
    color: #ef4444;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    font-weight: 600;
}

.hero-text {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.8;
}

.testimonial-box {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 8px;
    padding: 24px;
    margin: 16px 0;
}

.testimonial-text {
    color: #cbd5e1;
    font-style: italic;
    margin-bottom: 12px;
}

.testimonial-author {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* ============================================
   CTA BUTTONS
   ============================================ */

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #ffffff;
    font-weight: bold;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.4);
}

.cta-button-large {
    padding: 20px 48px;
    font-size: 1.125rem;
    width: 100%;
}

.payment-info {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    margin-top: 8px;
}

/* ============================================
   STORY SECTION
   ============================================ */

.story-section {
    padding: 80px 0;
    background: rgba(30, 41, 59, 0.3);
    border-top: 1px solid rgba(71, 85, 105, 0.3);
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 60px;
    color: #ffffff;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.story-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.story-card:hover {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(30, 41, 59, 0.7);
    transform: translateY(-5px);
}

.story-number {
    font-size: 3rem;
    font-weight: bold;
    color: #ef4444;
    margin-bottom: 16px;
}

.story-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.story-card p {
    color: #94a3b8;
    line-height: 1.6;
}

/* ============================================
   AUTHOR SECTION
   ============================================ */

.author-section {
    padding: 80px 0;
}

.author-box {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 40px;
}

.author-box p {
    color: #cbd5e1;
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1rem;
}

.author-box p:last-child {
    margin-bottom: 0;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
    padding: 80px 0;
    background: rgba(30, 41, 59, 0.3);
    border-top: 1px solid rgba(71, 85, 105, 0.3);
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

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

.testimonial-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 8px;
    padding: 32px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(30, 41, 59, 0.7);
}

.stars {
    color: #ef4444;
    font-size: 1.25rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-card p {
    color: #cbd5e1;
    margin-bottom: 16px;
    line-height: 1.8;
}

.testimonial-card .testimonial-author {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */

.final-cta {
    padding: 80px 0;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
}

.final-cta > p {
    font-size: 1.125rem;
    color: #94a3b8;
    margin-bottom: 40px;
}

.final-cta-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(71, 85, 105, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 48px;
    max-width: 600px;
    margin: 0 auto;
}

.final-cta-box p {
    color: #cbd5e1;
    margin-bottom: 32px;
    font-size: 1.125rem;
    line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: #0f172a;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.125rem;
    margin-bottom: 16px;
    color: #ffffff;
}

.footer-col p {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(71, 85, 105, 0.3);
    padding-top: 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-left {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .final-cta h2 {
        font-size: 1.875rem;
    }

    .final-cta-box {
        padding: 32px;
    }

    .cta-button-large {
        padding: 16px 24px;
        font-size: 1rem;
    }

    .hero {
        padding: 40px 0;
    }

    .story-section,
    .author-section,
    .testimonials-section,
    .final-cta {
        padding: 60px 0;
    }

    .footer-grid {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    .book-cover {
        width: 250px;
    }

    .cta-button {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .story-card,
    .testimonial-card {
        padding: 24px;
    }

    .author-box {
        padding: 24px;
    }

    .final-cta-box {
        padding: 24px;
    }

    .hero-text,
    .footer-col p {
        font-size: 0.95rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .hero {
        margin-top: 70px;
        padding: 30px 0;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-right {
    animation: fadeIn 0.8s ease-out;
}

.book-cover {
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.story-card {
    animation: fadeIn 0.6s ease-out forwards;
}

.story-card:nth-child(1) {
    animation-delay: 0s;
}

.story-card:nth-child(2) {
    animation-delay: 0.1s;
}

.story-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}

