:root {
    --bg-color: #0b0b0c;
    --text-primary: #f5f5f7;
    --text-secondary: #8e8e93;
    --accent: #dc1e1e;
    --accent-glow: rgba(220, 30, 30, 0.3);
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-card: rgba(255, 255, 255, 0.07);
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f0f11;
}
::-webkit-scrollbar-thumb {
    background: #252528;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Container limits */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

/* Typography styles */
h1, h2, h3 {
    font-weight: 700;
}

/* Sticky Navbar with Blur */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    background: rgba(11, 11, 12, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-card);
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: inline-block;
    max-width: 600px;
}
.nav-logo:hover {
    color: var(--text-primary);
}
.logo-main {
    font-weight: 700;
    color: var(--text-primary);
}
.logo-sub {
    font-weight: 400;
    color: var(--text-secondary);
}
@media (max-width: 1150px) {
    .logo-sub {
        display: none;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-align: center;
}

.btn-nav {
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 8px 20px;
    font-size: 13px;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px var(--accent-glow);
    background: #ff2a2a;
}

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
    border-radius: 40px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

/* Background glowing blob */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(220,30,30,0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-text-side {
    display: flex;
    flex-direction: column;
}

.hero-text-side .tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow);
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-family: var(--font-heading);
    font-style: italic;
    border-left: 3px solid var(--accent);
    padding-left: 15px;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 35px;
}

/* Slashed Pricing Layout */
.price-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.old-price {
    font-size: 24px;
    color: var(--text-secondary);
    text-decoration: line-through;
    font-weight: 500;
}

.current-price {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-primary);
}

.discount-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(220, 30, 30, 0.15);
    color: var(--accent);
    border: 1px dashed var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.cta-sub {
    font-size: 12px;
    color: var(--text-secondary);
    padding-left: 15px;
}

/* 3D Book Layout */
.hero-visual-side {
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-card-container {
    perspective: 1000px;
}

.book-card {
    width: 340px;
    height: 456px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.book-cover {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    overflow: hidden;
}

/* Shine overlay on cover card */
.shine {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
    z-index: 2;
}

/* Pulsing highlight effect */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 30px var(--accent-glow);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 15px 45px rgba(220, 30, 30, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px var(--accent-glow);
    }
}

.pulse-animation {
    animation: pulse 3s infinite ease-in-out;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

.accent-bar {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto;
}

/* Features grid */
.features {
    background: #0f0f11;
    border-top: 1px solid var(--border-card);
    border-bottom: 1px solid var(--border-card);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 40px 30px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 30, 30, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.feature-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Chapters Layout */
.chapters-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chapter-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 25px 30px;
    align-items: center;
    transition: all 0.3s ease;
}

.chapter-item:hover {
    border-color: rgba(220, 30, 30, 0.3);
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(5px);
}

.ch-meta {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}

.ch-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-family: var(--font-body);
}

.ch-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Author Quote Section */
.author {
    background: #0f0f11;
    border-top: 1px solid var(--border-card);
    border-bottom: 1px solid var(--border-card);
    padding: 100px 20px;
    text-align: center;
}

.author-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quote-symbol {
    font-family: var(--font-heading);
    font-size: 120px;
    color: var(--accent);
    line-height: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.author-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.author-quote {
    font-family: var(--font-heading);
    font-size: 26px;
    line-height: 1.5;
    margin-bottom: 24px;
    font-style: italic;
    color: var(--text-primary);
}

.author-quote-rest {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.author-sig {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
}

/* CTA Bottom */
.cta-bottom {
    padding: 120px 20px;
    text-align: center;
    position: relative;
}

.cta-bottom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(220,30,30,0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
}

.cta-bottom-container {
    max-width: 700px;
    margin: 0 auto;
}

.cta-bottom h2 {
    font-family: var(--font-heading);
    font-size: 44px;
    margin-bottom: 20px;
}

.cta-bottom p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-cards-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-card);
    padding: 60px 20px;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-disclaimer {
    color: #555558;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Layout changes */
@media (max-width: 968px) {
    .hero {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 40px;
    }

    .logo-sub {
        display: none;
    }
    
    .nav-logo {
        font-size: 9px;
        letter-spacing: 1.2px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        border-left: none;
        padding-left: 0;
        font-size: 18px;
    }
    
    .cta-actions {
        align-items: center;
        width: 100%;
    }
    
    .btn-primary {
        width: 100%;
        max-width: 400px;
    }
    
    .price-container {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .chapter-item {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .cta-cards-icons {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .book-card {
        width: 260px;
        height: 348px;
    }
}

/* Web Reader CTA Styles */
.btn-secondary {
    background: transparent !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-card) !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--text-primary) !important;
    transform: translateY(-3px);
}

/* SOS Section Styles */
.sos-section {
    background: radial-gradient(circle at center, rgba(220, 30, 30, 0.05) 0%, rgba(11, 11, 12, 0) 70%), #0b0b0c;
    border-top: 1px solid var(--border-card);
    border-bottom: 1px solid var(--border-card);
    padding: 100px 20px;
    text-align: center;
}
.sos-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sos-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    background: rgba(220, 30, 30, 0.15);
    border: 1px solid var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgba(220, 30, 30, 0.2);
}
.sos-section h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    margin-bottom: 15px;
    line-height: 1.2;
}
.sos-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.sos-text-sub {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
}
.btn-sos {
    background: #dc1e1e !important;
    box-shadow: 0 10px 40px rgba(220, 30, 30, 0.4) !important;
    animation: sos-pulse 2s infinite ease-in-out;
    border: none;
    color: #fff;
}
.btn-sos:hover {
    background: #ff2a2a !important;
    transform: scale(1.05) translateY(-3px);
}
@keyframes sos-pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 30, 30, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(220, 30, 30, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 30, 30, 0); }
}

/* SOS Modal Styles */
.sos-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}
.sos-modal-overlay.active {
    display: flex;
    opacity: 1;
}
.sos-modal-card {
    background: #0f0f11;
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 500px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sos-modal-overlay.active .sos-modal-card {
    transform: scale(1);
}
.sos-modal-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}
.sos-modal-close:hover {
    color: var(--text-primary);
}
.sos-modal-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 20px;
}
.sos-modal-card h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 15px;
}
.sos-modal-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}
.sos-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}
.btn-modal-action {
    width: 100%;
    padding: 14px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}
#copy-link-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-card);
}
#copy-link-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}
.copy-success-msg {
    display: none;
    color: #4cd964;
    font-size: 12px;
    font-weight: 700;
    margin-top: 15px;
    animation: fade-in 0.3s ease;
}
@keyframes fade-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
