/* ==========================================================================
   DESIGN SYSTEM & CUSTOM VARIABLES (LIGHT DESERT THEME)
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-base: #fbf9f4; /* Light warm sand/parchment */
    --color-bg-surface: #ffffff; /* White cards for crisp contrast */
    --color-bg-surface-lighter: #f3ede0; /* Slightly darker sand for headers/toggles */
    
    --color-accent-yellow: #c47c00; /* Deeper, high-contrast gold-yellow for readability */
    --color-accent-yellow-light: #e09200;
    --color-accent-brown: #4d382b; /* Warm dark leather brown */
    --color-accent-brown-dark: #2f1f16;
    --color-accent-rust: #8b4513;
    
    --color-text-primary: #1c1814; /* Deep charcoal-brown for body text */
    --color-text-secondary: #4d433a; /* Muted brown-gray for secondary copy */
    --color-text-muted: #807567; /* Dusty taupe for muted copy */
    
    /* Gradients */
    --gradient-yellow: linear-gradient(135deg, #e09200 0%, #9e5900 100%);
    --gradient-brown: linear-gradient(135deg, #4d382b 0%, #2f1f16 100%);
    --gradient-text: linear-gradient(135deg, #1c1814 30%, #c47c00 100%);
    --gradient-desert: radial-gradient(circle at 50% 50%, rgba(196, 124, 0, 0.06) 0%, rgba(77, 56, 43, 0.02) 60%, transparent 100%);

    /* Typography */
    --font-heading: 'Rye', 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Shadows - Soft and warm for light backgrounds */
    --shadow-sm: 0 4px 15px rgba(77, 56, 43, 0.06);
    --shadow-md: 0 12px 35px rgba(77, 56, 43, 0.1);
    --shadow-glow: 0 0 25px rgba(196, 124, 0, 0.1);
    --shadow-glow-yellow: 0 0 30px rgba(196, 124, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--color-bg-surface-lighter);
    border-radius: var(--radius-full);
    border: 2px solid var(--color-bg-base);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-yellow);
}

/* Background Desert Atmosphere */
.desert-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-desert);
    z-index: -2;
    animation: windDrift 40s linear infinite;
    pointer-events: none;
}

.dust-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(196, 124, 0, 0.25), rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 70px 120px, rgba(196, 124, 0, 0.2), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 150px 50px, rgba(196, 124, 0, 0.15), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 280px 240px, rgba(196, 124, 0, 0.25), rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 320px 180px, rgba(196, 124, 0, 0.18), rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 400px 400px;
    opacity: 0.35;
    z-index: -1;
    pointer-events: none;
    animation: particleFly 15s linear infinite;
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: normal;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-yellow);
    color: #ffffff;
    border: 1px solid var(--color-accent-yellow);
    box-shadow: 0 4px 15px rgba(196, 124, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(196, 124, 0, 0.4);
    background: var(--color-accent-yellow-light);
}

.btn-secondary {
    background: rgba(77, 56, 43, 0.05);
    color: var(--color-text-primary);
    border: 1px solid rgba(77, 56, 43, 0.25);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(196, 124, 0, 0.06);
    border-color: var(--color-accent-yellow);
    transform: translateY(-2px);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(196, 124, 0, 0.08);
    border: 1px solid rgba(196, 124, 0, 0.35);
    color: var(--color-accent-yellow);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(77, 56, 43, 0.06);
    border: 1px solid rgba(77, 56, 43, 0.2);
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

/* Section Common */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 24px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 16px;
    color: var(--color-text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 50px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(251, 249, 244, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(77, 56, 43, 0.12);
    transition: all var(--transition-fast);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent-yellow);
    text-decoration: none;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-accent-yellow);
}

.btn-secondary-nav {
    border: 1px solid rgba(196, 124, 0, 0.4);
    background: rgba(196, 124, 0, 0.05);
    color: var(--color-accent-yellow) !important;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.btn-secondary-nav:hover {
    background: var(--color-accent-yellow);
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(196, 124, 0, 0.2);
}

/* Language Switcher Styling */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    border: 1px solid rgba(77, 56, 43, 0.15);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-btn:not(:last-child) {
    border-right: 1px solid rgba(77, 56, 43, 0.12);
}

.lang-btn:hover {
    color: var(--color-text-primary);
    background: rgba(196, 124, 0, 0.03);
}

.lang-btn.active {
    color: #ffffff;
    background: var(--color-accent-yellow);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: 170px;
    padding-bottom: 90px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 4.4rem;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--color-accent-brown);
    font-family: var(--font-heading);
    margin-bottom: 24px;
    letter-spacing: 0.08em;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 44px;
    max-width: 580px;
}

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

/* 3D Book Layout */
.hero-visual {
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.book-tilt-container {
    width: 320px;
    height: 485px;
    cursor: pointer;
}

.book-3d-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateY(-20deg) rotateX(8deg);
    transition: transform var(--transition-medium);
}

.book-tilt-container:hover .book-3d-wrapper {
    transform: rotateY(-8deg) rotateX(4deg) translateY(-8px);
}

.book-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 2px 10px 10px 2px;
    object-fit: cover;
    z-index: 2;
    box-shadow: 8px 12px 35px rgba(77, 56, 43, 0.25);
    border: 1px solid rgba(77, 56, 43, 0.12);
}

.book-spine {
    position: absolute;
    top: 0;
    left: 0;
    width: 26px;
    height: 100%;
    background: #1c1511; /* Keep spine dark/leathery for realistic 3D appearance */
    transform: rotateY(-90deg);
    transform-origin: left;
    z-index: 1;
    box-shadow: inset -6px 0 10px rgba(0, 0, 0, 0.9);
}

.book-shadow {
    position: absolute;
    bottom: -35px;
    left: 5%;
    width: 90%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(77, 56, 43, 0.2) 0%, transparent 70%);
    z-index: -1;
    transform: rotateX(90deg) translateZ(-40px);
    pointer-events: none;
}

/* ==========================================================================
   COUNTDOWN TIMER SECTION
   ========================================================================== */
.countdown-section {
    background: linear-gradient(180deg, transparent, rgba(196, 124, 0, 0.03), transparent);
    border-top: 1px solid rgba(77, 56, 43, 0.1);
    border-bottom: 1px solid rgba(77, 56, 43, 0.1);
}

.timer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
}

.timer-card {
    background: var(--color-bg-surface);
    border: 1px solid rgba(77, 56, 43, 0.12);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    padding: 26px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.timer-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent-yellow);
    box-shadow: var(--shadow-glow-yellow);
}

.timer-number {
    display: block;
    font-size: 3.6rem;
    font-weight: 700;
    font-family: var(--font-body);
    color: var(--color-accent-yellow);
    line-height: 1.1;
    margin-bottom: 4px;
}

.timer-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
}

/* ==========================================================================
   SHOWCASE: DEBUT NOVEL SECTION
   ========================================================================== */
.debut-book-section {
    background: rgba(77, 56, 43, 0.02);
    border-bottom: 1px solid rgba(77, 56, 43, 0.1);
}

.debut-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.debut-visual {
    display: flex;
    justify-content: center;
}

.book-3d-wrapper-static {
    position: relative;
    width: 250px;
    height: 375px;
    perspective: 1000px;
}

.book-cover-static {
    width: 100%;
    height: 100%;
    border-radius: 2px 8px 8px 2px;
    object-fit: cover;
    box-shadow: 8px 10px 30px rgba(77, 56, 43, 0.2);
    border: 1px solid rgba(77, 56, 43, 0.1);
    transform: rotateY(-12deg);
}

.debut-book-title {
    font-size: 2.2rem;
    color: var(--color-accent-yellow);
    margin-bottom: 4px;
}

.debut-book-subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.debut-book-description {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.book-meta-info {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--color-text-secondary);
}

.meta-item i {
    font-size: 1.2rem;
    color: var(--color-accent-yellow);
    width: 24px;
}

/* ==========================================================================
   INTERACTIVE EXCERPT SECTION
   ========================================================================== */
.excerpt-box {
    background: var(--color-bg-surface);
    border: 1px solid rgba(77, 56, 43, 0.15);
    border-radius: var(--radius-sm);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.excerpt-tabs {
    display: flex;
    background: var(--color-bg-surface-lighter);
    border-bottom: 1px solid rgba(77, 56, 43, 0.12);
}

.excerpt-tab-btn {
    flex: 1;
    padding: 18px 24px;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.excerpt-tab-btn.active {
    color: var(--color-accent-yellow);
    background: var(--color-bg-surface);
    border-bottom: 2px solid var(--color-accent-yellow);
}

.excerpt-body {
    padding: 50px;
    position: relative;
    min-height: 350px;
}

.excerpt-page-decoration {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: rgba(196, 124, 0, 0.25);
}

.excerpt-content {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--color-text-primary);
    white-space: pre-wrap;
}

/* Fade overlay for reveal interaction */
.excerpt-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75%;
    background: linear-gradient(to top, var(--color-bg-surface) 35%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 50px;
    transition: opacity var(--transition-medium);
}

.excerpt-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Typewriter cursor effect */
.excerpt-cursor::after {
    content: '|';
    animation: blink 0.8s infinite;
    color: var(--color-accent-yellow);
}

/* ==========================================================================
   REVIEWS & ACCLAIM
   ========================================================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: var(--color-bg-surface);
    border: 1px solid rgba(77, 56, 43, 0.12);
    border-radius: var(--radius-sm);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-yellow);
    box-shadow: var(--shadow-md);
}

.review-card.highlight {
    background: linear-gradient(135deg, rgba(196, 124, 0, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
    border: 1px solid rgba(196, 124, 0, 0.25);
}

.review-card.highlight:hover {
    border-color: var(--color-accent-yellow);
    box-shadow: var(--shadow-glow-yellow);
}

.review-stars {
    color: var(--color-accent-yellow);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.review-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.reviewer-info strong {
    display: block;
    color: var(--color-text-primary);
    font-size: 0.95rem;
}

.reviewer-info span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   AUTHOR BIO SECTION
   ========================================================================== */
.author-section {
    background: linear-gradient(180deg, transparent, rgba(77, 56, 43, 0.03));
    border-top: 1px solid rgba(77, 56, 43, 0.1);
}

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

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

.author-portrait-container {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glowing geometric frames mimicking modern portraits */
.author-portrait-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 35% 65% 55% 45% / 45% 55% 45% 55%;
    background: linear-gradient(45deg, var(--color-accent-yellow) 0%, var(--color-accent-rust) 100%);
    opacity: 0.15;
    filter: blur(25px);
    animation: morph 9s ease-in-out infinite;
}

.author-symbol {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 35% 65% 55% 45% / 45% 55% 45% 55%;
    background: var(--color-bg-surface);
    border: 2px dashed rgba(196, 124, 0, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-sm);
    animation: morph 9s ease-in-out infinite;
}

.author-symbol i {
    font-size: 4.5rem;
    color: var(--color-accent-yellow);
    filter: drop-shadow(0 2px 4px rgba(77, 56, 43, 0.15));
}

.author-bio-text {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.author-socials {
    display: flex;
    gap: 16px;
    margin-top: 28px;
}

.author-socials a {
    display: flex;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(77, 56, 43, 0.18);
    background: var(--color-bg-surface);
    color: var(--color-text-secondary);
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.author-socials a:hover {
    color: #ffffff;
    border-color: var(--color-accent-yellow);
    background: var(--color-accent-yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-yellow);
}

/* ==========================================================================
   VIP REGISTRATION SECTION
   ========================================================================== */
.subscribe-section {
    padding-bottom: 120px;
}

.subscribe-card {
    position: relative;
    background: linear-gradient(135deg, var(--color-bg-surface) 0%, rgba(251, 249, 244, 0.6) 100%);
    border: 1px solid rgba(196, 124, 0, 0.25);
    border-radius: var(--radius-md);
    padding: 60px 40px;
    max-width: 860px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.subscribe-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(196, 124, 0, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.subscribe-title {
    font-size: 2.4rem;
    margin-bottom: 16px;
    color: var(--color-accent-yellow);
}

.subscribe-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
}

.subscribe-form {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Name and Email inputs side-by-side on desktop */
.form-inputs-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1.1rem;
    transition: color var(--transition-fast);
}

.form-input {
    width: 100%;
    padding: 16px 20px 16px 54px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(77, 56, 43, 0.25);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-fast);
}

.form-input:focus {
    border-color: var(--color-accent-yellow);
    background: #ffffff;
    box-shadow: 0 0 15px rgba(196, 124, 0, 0.15);
}

.form-input:focus + .input-icon {
    color: var(--color-accent-yellow);
}

/* Form Validation Styling */
.form-input.invalid {
    border-color: #ff4d4d;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.2);
}

.error-msg {
    position: absolute;
    left: 10px;
    bottom: -22px;
    font-size: 0.75rem;
    color: #ff4d4d;
    display: none;
}

.error-msg.visible {
    display: block;
}

.subscribe-form .btn-primary {
    align-self: center;
    min-width: 260px;
}

.subscribe-footnote {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 24px;
}

/* ==========================================================================
   FOOTER (Keep Footer dark-toned for structural grounding)
   ========================================================================== */
.site-footer {
    background: #1e1915; /* Dark brown-black grounding the light theme */
    border-top: 1px solid rgba(77, 56, 43, 0.3);
    padding: 60px 0 30px;
}

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

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    color: var(--color-accent-yellow-light);
}

.footer-brand p {
    font-size: 0.9rem;
    color: #a09587;
    max-width: 280px;
}

.footer-links h4, .footer-newsletter-info h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #a09587;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-newsletter-info p {
    font-size: 0.9rem;
    color: #a09587;
}

.footer-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #8c8071;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal a {
    color: #8c8071;
    text-decoration: none;
    margin-left: 20px;
    transition: color var(--transition-fast);
}

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

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 24, 20, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-accent-yellow);
    box-shadow: var(--shadow-glow-yellow);
    border-radius: var(--radius-sm);
    padding: 48px;
    max-width: 460px;
    width: 90%;
    position: relative;
    text-align: center;
    transform: scale(0.9);
    transition: transform var(--transition-medium);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--color-text-primary);
}

.modal-icon-wrapper {
    width: 72px;
    height: 72px;
    background: rgba(196, 124, 0, 0.08);
    color: var(--color-accent-yellow);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    margin: 0 auto 24px;
    border: 1px solid rgba(196, 124, 0, 0.2);
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.modal-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
}

.modal-ok-btn {
    width: 100%;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes windDrift {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-3%, -2%) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes particleFly {
    0% { background-position: 0px 0px; }
    50% { background-position: 100px -100px; }
    100% { background-position: 200px -200px; }
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes morph {
    0% { border-radius: 35% 65% 55% 45% / 45% 55% 45% 55%; }
    50% { border-radius: 55% 45% 65% 35% / 55% 45% 55% 45%; }
    100% { border-radius: 35% 65% 55% 45% / 45% 55% 45% 55%; }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1024px) {
    html { font-size: 15px; }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .debut-grid, .author-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .debut-visual {
        order: -1;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    html { font-size: 14px; }
    
    .section-title { font-size: 2.2rem; }
    .hero-title { font-size: 3.2rem; }
    .hero-subtitle { font-size: 1.5rem; }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(251, 249, 244, 0.95);
        backdrop-filter: blur(15px);
        overflow: hidden;
        transition: height var(--transition-medium);
        border-bottom: 0px solid rgba(77, 56, 43, 0.15);
    }
    
    .nav-menu.active {
        height: 280px;
        border-bottom-width: 1px;
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        align-items: stretch;
    }
    
    .nav-menu ul li {
        text-align: center;
    }
    
    .btn-secondary-nav {
        display: block;
        width: 100%;
    }
    
    .timer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .excerpt-body {
        padding: 30px;
    }
    
    .form-inputs-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.6rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; }
    
    .book-tilt-container {
        width: 260px;
        height: 395px;
    }
    
    .subscribe-card {
        padding: 40px 20px;
    }
    
    .modal-card {
        padding: 30px 20px;
    }
}
