/* ==========================================================================
   DESIGN SYSTEM & CUSTOM VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-base: #0b0b0f;
    --color-bg-surface: #121219;
    --color-bg-surface-lighter: #1a1a24;
    
    --color-accent-purple: #8a2be2;
    --color-accent-purple-light: #a04ef6;
    --color-accent-gold: #ffd700;
    --color-accent-gold-hover: #e6c200;
    
    --color-text-primary: #f3f3f5;
    --color-text-secondary: #b8b8c5;
    --color-text-muted: #727282;
    
    /* Gradients */
    --gradient-purple: linear-gradient(135deg, #8a2be2 0%, #4a00e0 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 30%, #a04ef6 100%);
    --gradient-nebula: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.15) 0%, rgba(74, 0, 224, 0.05) 50%, transparent 100%);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(138, 43, 226, 0.25);
    --shadow-glow-gold: 0 0 30px rgba(255, 215, 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: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --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-purple);
}

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

.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1.5px 1.5px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 130px 140px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ffffff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

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

.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: 10px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-gold);
    color: #0b0b0f;
    border: none;
    box-shadow: var(--shadow-glow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.4);
    color: var(--color-accent-purple-light);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

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

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(11, 11, 15, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
}

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

.logo-brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
}

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

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

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

.btn-secondary-nav {
    border: 1px solid rgba(138, 43, 226, 0.4);
    background: rgba(138, 43, 226, 0.1);
    color: var(--color-accent-purple-light) !important;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.btn-secondary-nav:hover {
    background: var(--color-accent-purple);
    color: white !important;
    box-shadow: var(--shadow-glow);
}

.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: 160px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

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

.hero-title {
    font-size: 4rem;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    font-weight: 400;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 580px;
}

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

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

.book-tilt-container {
    width: 320px;
    height: 480px;
    cursor: pointer;
    transition: transform var(--transition-medium);
}

.book-3d-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateY(-18deg) 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: 4px 12px 12px 4px;
    object-fit: cover;
    z-index: 2;
    box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.6);
    backface-visibility: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.book-spine {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 100%;
    background: #08080c;
    transform: rotateY(-90deg);
    transform-origin: left;
    z-index: 1;
    box-shadow: inset -6px 0 10px rgba(0, 0, 0, 0.8);
    border-radius: 4px 0 0 4px;
}

.book-shadow {
    position: absolute;
    bottom: -30px;
    left: 5%;
    width: 90%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 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(138, 43, 226, 0.03), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

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

.timer-card {
    background: rgba(18, 18, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 24px 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: rgba(138, 43, 226, 0.3);
    box-shadow: var(--shadow-glow);
}

.timer-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-body);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 4px;
}

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

/* ==========================================================================
   ABOUT / SYNOPSIS SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.about-paragraph {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.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-purple-light);
    width: 24px;
}

.glass-quote-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 48px;
    position: relative;
    box-shadow: var(--shadow-md);
}

.glass-quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(138, 43, 226, 0.15);
    position: absolute;
    top: 24px;
    left: 24px;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--color-text-primary);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.quote-author {
    display: block;
    font-style: normal;
    color: var(--color-accent-gold);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

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

.excerpt-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.excerpt-tab-btn {
    flex: 1;
    padding: 16px 24px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

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

.excerpt-body {
    padding: 48px;
    position: relative;
    min-height: 320px;
}

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

.excerpt-content {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    white-space: pre-wrap; /* Preserve paragraph spacing */
}

/* Fade overlay for reveal interaction */
.excerpt-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, var(--color-bg-surface) 30%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 48px;
    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-purple-light);
}

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

.review-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-medium);
}

.review-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.review-card.highlight {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.08) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.05);
}

.review-card.highlight:hover {
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: var(--shadow-glow);
}

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

.review-text {
    font-size: 1rem;
    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(0,0,0,0.4));
}

.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: 40% 60% 70% 30% / 40% 50% 60% 50%; /* Organic morphing shape */
    background: linear-gradient(45deg, var(--color-accent-purple) 0%, #4a00e0 100%);
    opacity: 0.2;
    filter: blur(20px);
    animation: morph 8s ease-in-out infinite;
}

.author-symbol {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: var(--color-bg-surface-lighter);
    border: 2px dashed rgba(138, 43, 226, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-glow);
    animation: morph 8s ease-in-out infinite;
}

.author-symbol i {
    font-size: 4rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.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-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    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: var(--color-accent-purple-light);
    border-color: var(--color-accent-purple-light);
    background: rgba(138, 43, 226, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.subscribe-card {
    position: relative;
    background: linear-gradient(135deg, var(--color-bg-surface) 0%, rgba(18, 18, 25, 0.8) 100%);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: var(--radius-lg);
    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(138, 43, 226, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.subscribe-title {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

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

.subscribe-form {
    max-width: 620px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 16px;
}

.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(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    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-purple-light);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}

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

/* 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: 20px;
    bottom: -22px;
    font-size: 0.75rem;
    color: #ff4d4d;
    display: none;
}

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

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #06060a;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    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;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    max-width: 280px;
}

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

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

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

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

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-legal a:hover {
    color: var(--color-text-primary);
}

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 15, 0.85);
    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 rgba(138, 43, 226, 0.3);
    box-shadow: var(--shadow-glow);
    border-radius: var(--radius-lg);
    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(138, 43, 226, 0.1);
    color: var(--color-accent-purple-light);
    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(138, 43, 226, 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 drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-5%, -5%) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

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

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    50% { border-radius: 70% 30% 52% 48% / 60% 40% 70% 30%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* ==========================================================================
   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;
    }
    
    .about-grid, .author-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-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: 3rem; }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(11, 11, 15, 0.95);
        backdrop-filter: blur(15px);
        overflow: hidden;
        transition: height var(--transition-medium);
        border-bottom: 0px solid rgba(255, 255, 255, 0.05);
    }
    
    .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: 24px;
    }
    
    .form-group {
        flex-direction: column;
        gap: 16px;
    }
    
    .form-input {
        border-radius: var(--radius-full);
    }
    
    .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: 390px;
    }
    
    .subscribe-card {
        padding: 40px 20px;
    }
    
    .modal-card {
        padding: 30px 20px;
    }
}
