/* Custom CSS Design System - Landing Page Premium */

/* CSS Variables for design tokens */
:root {
    --bg-dark: #070e17;
    --bg-card: #0e1b2b;
    --primary: #d4af37;     /* Gold */
    --primary-hover: #b89324;
    --secondary: #1a365d;   /* Royal Blue */
    --text-light: #f7fafc;  /* Ivory white */
    --text-muted: #a0aec0;  /* Gray */
    --gold-gradient: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa7c11 100%);
    --blue-gradient: linear-gradient(185deg, #102a43 0%, #070e17 100%);
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.5);
    --border-gold: 1px solid rgba(212, 175, 55, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image: var(--blue-gradient);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--text-light);
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--primary);
}

p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #111;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.15rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    background-color: rgba(7, 14, 23, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-cross {
    color: var(--primary);
    font-size: 1.6rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    padding: 80px 0;
    position: relative;
}

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

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 35px;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feat-icon {
    font-size: 1.4rem;
}

.feat-item span:last-child {
    font-size: 1.05rem;
    color: var(--text-light);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.secure-checkout {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 3D Book Mockup */
.book-container {
    position: relative;
    width: 320px;
    height: 480px;
    perspective: 1000px;
    margin: 0 auto;
}

.book {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform: rotateY(-18deg) rotateX(10deg);
}

.book-container:hover .book {
    transform: rotateY(-32deg) rotateX(12deg);
}

.book-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--bg-card);
    border-radius: 0 5px 5px 0;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.6);
    transform: translateZ(12px);
    overflow: hidden;
}

.book-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #0d121c;
    border-radius: 5px 0 0 5px;
    transform: rotateY(180deg) translateZ(12px);
    box-shadow: -10px 10px 30px rgba(0,0,0,0.6);
}

.book-spine {
    position: absolute;
    width: 24px;
    height: 100%;
    background: linear-gradient(90deg, #090e16 0%, #1a2d48 50%, #090e16 100%);
    transform: rotateY(-90deg) translateZ(12px);
    border-left: 1px solid rgba(212, 175, 55, 0.3);
    border-right: 1px solid rgba(212, 175, 55, 0.3);
}

.book-shadow {
    position: absolute;
    width: 320px;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 80%);
    bottom: -30px;
    left: 0;
    z-index: -1;
}

/* Summary Section */
.summary-section {
    padding: 100px 0;
    background-color: rgba(14, 27, 43, 0.3);
    border-top: 1px solid rgba(212, 175, 55, 0.05);
    border-bottom: 1px solid rgba(212, 175, 55, 0.05);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.section-header p {
    font-size: 1.15rem;
    margin-top: 15px;
}

.divider {
    width: 80px;
    height: 3px;
    background: var(--gold-gradient);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.grid-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.summary-card {
    background-color: var(--bg-card);
    border: var(--border-gold);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: var(--shadow-premium);
}

.summary-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

/* Chapters Section */
.chapters-section {
    padding: 100px 0;
}

.section-badge {
    display: block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.chapter-card {
    background-color: rgba(14, 27, 43, 0.6);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.chap-num {
    position: absolute;
    right: 30px;
    top: 20px;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(212, 175, 55, 0.05);
    line-height: 1;
}

/* Author Section */
.author-section {
    padding: 100px 0;
    background-color: rgba(14, 27, 43, 0.3);
}

.author-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.author-image {
    display: flex;
    justify-content: center;
}

.author-avatar-bg {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, #1a365d 0%, #070e17 100%);
    border: 2px dashed var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-premium);
}

.author-avatar-icon {
    font-size: 6rem;
}

.author-content .author-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.divider-left {
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    margin: 15px 0 25px 0;
    border-radius: 2px;
}

.author-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.author-note {
    font-family: var(--font-heading);
    font-size: 1.4rem !important;
    font-style: italic;
    color: var(--text-light);
    border-left: 2px solid var(--primary);
    padding-left: 20px;
    margin-top: 30px;
}

/* Pricing / Call to Action */
.cta-section {
    padding: 100px 0;
    background-image: linear-gradient(rgba(7, 14, 23, 0.8), rgba(7, 14, 23, 0.8)), url('assets/cover.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.pricing-card {
    max-width: 550px;
    margin: 0 auto;
    background-color: rgba(14, 27, 43, 0.95);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.pricing-header h3 {
    font-size: 2.2rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.pricing-header p {
    font-size: 1rem;
    margin-bottom: 30px;
}

.pricing-value {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.pricing-value .currency {
    font-size: 1.8rem;
    color: var(--primary);
    align-self: flex-start;
    margin-top: 10px;
}

.pricing-value .value {
    font-size: 5.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
}

.pricing-value .cents {
    font-size: 2rem;
    color: var(--primary);
    align-self: flex-start;
    margin-top: 15px;
}

.single-payment {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.secure-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.secure-badges span {
    background-color: rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: 4px;
}

.user-notice {
    margin-top: 25px;
    background-color: rgba(212, 175, 55, 0.05);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.user-notice p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--bg-card);
    border: var(--border-gold);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-light);
    text-align: left;
    padding: 22px 30px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: rgba(255,255,255,0.02);
}

.faq-question span {
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer p {
    padding-bottom: 22px;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust as needed */
    padding: 0 30px;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
}

/* Footer */
.footer {
    background-color: #04080e;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer p:last-child {
    margin-bottom: 0;
    color: rgba(255,255,255,0.2);
}

/* Keyframe Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.animate-pulse {
    animation: pulse 3s infinite ease-in-out;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 2.2rem;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .hero-visual {
        order: -1;
    }
    .hero-features {
        align-items: center;
    }
    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }
    .grid-summary {
        grid-template-columns: 1fr;
    }
    .chapters-grid {
        grid-template-columns: 1fr;
    }
    .author-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .divider-left {
        margin: 15px auto 25px auto;
    }
    .author-note {
        border-left: none;
        border-top: 2px solid var(--primary);
        padding-left: 0;
        padding-top: 20px;
    }
}

@media (max-width: 600px) {
    .nav {
        display: none; /* simple mobile nav override (hide links, keep header neat) */
    }
    h1 {
        font-size: 2.3rem;
    }
    .pricing-card {
        padding: 30px 20px;
    }
    .pricing-value .value {
        font-size: 4rem;
    }
}
