:root {
    --bg-color: #0d0d0d;
    --text-color: #c2c2c2;
    --accent-color: #d4d4d8;
    --link-color: #fff;
    --btn-bg: #ffffff;
    --btn-text: #000000;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --spacing-unit: 2rem;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 4px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
}

.btn-primary {
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: 0.6rem 1.2rem;
    border-radius: 2px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
    background: #e0e0e0;
    color: #000;
    opacity: 1;
}

.btn-primary.large {
    padding: 1rem 2rem;
    font-size: 1rem;
    display: inline-block;
    margin: 1.5rem 0;
}

/* Sections General */
section {
    padding: 6rem 2rem;
    position: relative;
}

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

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 400;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 8rem;
    padding-bottom: 8rem;
    background-color: #000;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 400px;
}

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

.hero-image img {
    max-height: 60vh;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: #444;
    margin-top: 0.5rem;
}

/* Intro */
.intro {
    text-align: center;
    background: #111;
}

.lead-text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-style: italic;
}

/* Scrollytelling */
.scrollytelling {
    padding: 0;
}

.scrolly-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: auto;
    align-items: stretch;
}

.scrolly-section .text-block {
    padding: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scrolly-section .image-block {
    height: 50vh;
    overflow: hidden;
    position: relative;
}

.scrolly-section .image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s ease, transform 1.2s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.scrolly-section.visible .text-block {
    opacity: 1;
    transform: translateY(0);
}

.scrolly-section.visible .image-block img {
    opacity: 0.8;
    transform: scale(1);
}

.scrolly-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.scrolly-section p {
    font-size: 1.1rem;
    max-width: 500px;
}

/* Alternating Layout */
.scrolly-section.right .text-block {
    order: 2;
}

.scrolly-section.right .image-block {
    order: 1;
}

/* About Author */
.about-author {
    background: #0a0a0a;
}

.author-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.author-bio h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.author-bio p {
    margin-bottom: 1.5rem;
}

.author-image img {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.author-image img:hover {
    filter: grayscale(0%);
}

/* Final CTA */
.final-cta {
    text-align: center;
    background: #111;
    border-top: 1px solid #222;
    padding: 2rem;
    border-radius: 4px;
}

.final-cta h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.book-details {
    color: #888;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #444;
    font-size: 0.8rem;
    border-top: 1px solid #111;
}

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

    .hero-text {
        text-align: center;
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .subtitle {
        margin: 0 auto;
    }

    .scrolly-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .scrolly-section .image-block {
        min-height: 280px;
        position: relative;
        order: 1 !important;
    }

    .scrolly-section .text-block {
        order: 2 !important;
        padding: 6rem 1.5rem 3rem;
        /* Increased top padding */
    }

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

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

/* Testimonials */
.testimonials {
    background: #0f0f0f;
    text-align: center;
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.testimonial-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid #2a2a2a;
}

.testimonial-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-card .author {
    font-weight: 600;
}



.signup-content {
    max-width: 600px;
    margin: 0 auto;
}

.audiobook-signup h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.audiobook-signup p {
    margin-bottom: 2rem;
}

.signup-form {
    display: flex;
    gap: 1rem;
}

.signup-form input[type="email"] {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #333;
    background: #111;
    color: #fff;
    border-radius: 2px;
}

.signup-form input[type="email"]:focus {
    outline: none;
    border-color: #666;
}

.form-message {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 20px;
    text-align: center;
}

.form-message.success {
    color: #4CAF50;
}

.form-message.error {
    color: #ff6b6b;
}

/* Bottom CTA Area Layout */
.bottom-cta-area {
    padding: 5rem 2rem;
    background: #080808;
    border-top: 1px solid #1a1a1a;
}

.dual-column-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.column-cta,
.column-signup {
    flex: 1;
}

@media (min-width: 768px) {
    .dual-column-container {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }

    .column-cta {
        border-right: 1px solid #222;
        padding-right: 2rem;
    }

    .column-signup {
        padding-left: 2rem;
    }
}

/* Tablet Spacing Optimization */
@media (min-width: 768px) and (max-width: 1024px) {
    .about-author, .testimonials {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .bottom-cta-area {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (max-width: 767px) {
    section {
        padding: 4rem 1.5rem;
    }
    .bottom-cta-area {
        padding: 4rem 1.5rem;
    }
}