/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Deep space palette */
    --color-bg: #0a0a0f;
    --color-bg-elevated: #141419;
    --color-bg-card: #1a1a24;
    --color-text: #e8e8f0;
    --color-text-muted: #9a9aaa;
    --color-accent: #6366f1;
    --color-accent-hover: #818cf8;
    --color-border: #2a2a35;
    --color-glow: rgba(99, 102, 241, 0.15);
    
    /* Typography */
    --font-display: 'Space Mono', monospace;
    --font-body: 'Crimson Pro', serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 18px;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* === PARTICLE BACKGROUND === */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* === NAVIGATION === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: var(--space-xl) var(--space-md);
    margin-top: 60px;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    font-weight: 400;
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

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

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1s;
}

/* === BOOK COVER IMAGES === */
.book-cover-container {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.2s;
}

.book-cover-image {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(99, 102, 241, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-cover-image:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(99, 102, 241, 0.2);
}

.book-cover-image-large {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(99, 102, 241, 0.15);
}

/* === BOOK PLACEHOLDER === */
.hero-book {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.2s;
}

.book-placeholder {
    position: relative;
    width: 350px;
    height: 520px;
    perspective: 1000px;
}

.book-cover {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    border: 2px solid var(--color-accent);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-lg);
    position: relative;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(99, 102, 241, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-placeholder:hover .book-cover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.6),
        inset 0 0 80px rgba(99, 102, 241, 0.15);
}

.book-cover h2 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    text-align: center;
    line-height: 1;
    margin-bottom: var(--space-lg);
    letter-spacing: 0.15em;
}

.book-author {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    color: var(--color-text-muted);
    position: absolute;
    bottom: var(--space-lg);
}

.book-spine {
    position: absolute;
    left: -8px;
    top: 10px;
    bottom: 10px;
    width: 8px;
    background: linear-gradient(180deg, #2a2a40, #1a1a2e);
    border-radius: 2px 0 0 2px;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    box-shadow: 0 0 20px var(--color-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

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

.btn-link {
    background: transparent;
    color: var(--color-accent);
    padding: 0.5rem 0;
    font-family: var(--font-body);
    border: none;
    transition: opacity 0.3s ease;
}

.btn-link:hover {
    opacity: 0.8;
}

/* === SECTIONS === */
.teaser,
.newsletter {
    padding: var(--space-xl) var(--space-md);
    position: relative;
    z-index: 1;
}

.teaser {
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.newsletter {
    background: var(--color-bg-card);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    font-weight: 400;
    letter-spacing: 0.05em;
}

.teaser-content {
    max-width: 800px;
    margin: 0 auto;
}

.teaser-text {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

/* === NEWSLETTER === */
.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.newsletter-note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    opacity: 0.7;
}

/* === FOOTER === */
.footer {
    padding: var(--space-lg) var(--space-md);
    border-top: 1px solid var(--color-border);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer p {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
}

/* === ABOUT PAGE === */
.about-hero {
    padding: calc(var(--space-xl) + 60px) var(--space-md) var(--space-md);
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.about-content {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-bg-elevated);
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-muted);
    font-family: var(--font-display);
}

.about-subtitle {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: var(--space-md);
    font-weight: 400;
}

.about-bio {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
    color: var(--color-text-muted);
}

.quick-facts {
    padding: var(--space-xl) var(--space-md);
    position: relative;
    z-index: 1;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
    margin-top: var(--space-lg);
}

.fact-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: var(--space-md);
    border-radius: 8px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.fact-card:hover {
    border-color: var(--color-accent);
}

.fact-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    color: var(--color-accent);
    letter-spacing: 0.05em;
}

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

/* === BOOK PAGE === */
.book-hero {
    padding: calc(var(--space-xl) + 60px) var(--space-md) var(--space-xl);
    background: var(--color-bg-elevated);
    position: relative;
    z-index: 1;
}

.book-hero-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.book-placeholder-large {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 2/3;
    margin: 0 auto;
    perspective: 1000px;
}

.book-cover-large {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    border: 2px solid var(--color-accent);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-lg);
    position: relative;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(99, 102, 241, 0.1);
}

.book-cover-large h2 {
    font-family: var(--font-display);
    font-size: 4rem;
    text-align: center;
    line-height: 1;
    margin-bottom: var(--space-lg);
    letter-spacing: 0.15em;
}

.book-author-large {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.3em;
    color: var(--color-text-muted);
    position: absolute;
    bottom: var(--space-lg);
}

.book-spine-large {
    position: absolute;
    left: -10px;
    top: 10px;
    bottom: 10px;
    width: 10px;
    background: linear-gradient(180deg, #2a2a40, #1a1a2e);
    border-radius: 2px 0 0 2px;
}

.book-title {
    font-family: var(--font-display);
    font-size: 4rem;
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

.book-tagline {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: var(--space-md);
}

.book-meta {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.meta-item {
    display: inline-block;
}

.meta-divider {
    margin: 0 var(--space-xs);
    opacity: 0.5;
}

.synopsis {
    padding: var(--space-xl) var(--space-md);
    position: relative;
    z-index: 1;
}

.synopsis-content {
    max-width: 800px;
    margin: 0 auto;
    margin-top: var(--space-lg);
}

.synopsis-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
    color: var(--color-text-muted);
}

.themes {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-bg-elevated);
    position: relative;
    z-index: 1;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
    margin-top: var(--space-lg);
}

.theme-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: var(--space-md);
    border-radius: 8px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.theme-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.theme-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
}

.theme-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.excerpt-teaser {
    padding: var(--space-xl) var(--space-md);
    position: relative;
    z-index: 1;
}

.excerpt {
    max-width: 800px;
    margin: var(--space-lg) auto 0;
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border-left: 4px solid var(--color-accent);
    border-radius: 4px;
}

.excerpt p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: var(--space-md);
}

.excerpt p:last-of-type {
    margin-bottom: 0;
}

.excerpt-note {
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: var(--space-md);
}

.book-cta {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-bg-elevated);
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-text {
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* === COMPANIONS SECTION === */
.companions {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-bg);
    position: relative;
    z-index: 1;
}

.companions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    max-width: 800px;
    margin: var(--space-lg) auto 0;
}

.companion-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--space-md);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.companion-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.companion-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: var(--space-sm);
}

.companion-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-text);
    margin: 0;
}

/* === CONTACT PAGE === */
.contact-hero {
    padding: calc(var(--space-xl) + 60px) var(--space-md) var(--space-lg);
    position: relative;
    z-index: 1;
}

.contact-section {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-bg-elevated);
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: var(--space-md);
    font-weight: 400;
}

.contact-info-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.contact-note {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: var(--space-md);
    border-radius: 4px;
    margin-top: var(--space-lg);
}

.contact-note p {
    color: var(--color-text-muted);
    margin: 0;
}

.contact-form-container {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: var(--space-lg);
    border-radius: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
    padding: 1rem;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-full {
    width: 100%;
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .book-placeholder {
        width: 280px;
        height: 420px;
    }
    
    .book-cover h2 {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        gap: var(--space-sm);
    }
    
    .about-grid,
    .book-hero-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .book-title {
        font-size: 3rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .book-title {
        font-size: 2.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-container {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .book-cover-large h2 {
        font-size: 3rem;
    }
}
