/* ===================================
   DESIGN SYSTEM - ECOS DO SILÊNCIO
   Literary Book Launch - Elegant Editorial
=================================== */

:root {
  /* Colors */
  --background: hsl(220, 15%, 3%);    /* Fundo Azul Escuro Profundo */
  --foreground: hsl(210, 15%, 95%);   /* Texto Branco-Azulado Claro */
  --card: hsl(220, 15%, 6%);          /* Cartões Ligeiramente Mais Escuros que o Fundo */
  --card-foreground: hsl(210, 15%, 95%);
  
  /* Azul Principal (Substitui o Dourado) */
  --primary: hsl(210, 80%, 55%);     /* Azul Vibrante Médio (Royal Blue) */
  --primary-foreground: hsl(220, 15%, 3%); /* Texto Escuro no Azul Primário */
  
  --secondary: hsl(215, 15%, 12%);   /* Elementos Secundários Escuros */
  --secondary-foreground: hsl(210, 15%, 95%);
  --muted: hsl(215, 10%, 15%);       /* Elementos Silenciosos/Divisores */
  --muted-foreground: hsl(210, 10%, 65%);
  
  /* Azul de Ênfase (Um tom mais escuro e sutil) */
  --accent: hsl(210, 70%, 45%);      
  --border: hsl(210, 20%, 20%);
  
  /* Custom tokens (Azuis) */
  --blue: hsl(210, 80%, 55%);         /* O novo --blue */
  --blue-light: hsl(200, 70%, 70%);   /* Azul Claro para Destaque Suave */
  --blue-dark: hsl(220, 85%, 40%);    /* Azul Marinho Profundo */
  --off-white: hsl(210, 30%, 90%);    /* Branco Azulado */
  --charcoal: hsl(220, 10%, 8%);      /* Cinza Azulado Escuro */
  --obsidian: hsl(220, 15%, 4%);      /* O Mais Escuro */
  
  /* Gradients (Ajustados para Azuis) */
  --gradient-blue: linear-gradient(135deg, hsl(210, 80%, 55%), hsl(220, 90%, 45%)); /* Degradê de Azul */
  --gradient-dark: linear-gradient(180deg, hsl(220, 15%, 3%), hsl(220, 10%, 8%));
  --gradient-overlay: linear-gradient(180deg, hsla(220, 15%, 0%, 0.7), hsla(220, 15%, 0%, 0.4), hsla(220, 15%, 0%, 0.8));
  
  /* Shadows (Ajustadas para Azuis) */
  --shadow-blue: 0 0 60px hsla(210, 80%, 55%, 0.3); /* Sombra de brilho azul */
  --shadow-elegant: 0 25px 50px -12px hsla(220, 15%, 0%, 0.5);
  
  /* Typography and Spacing (Não foram alterados, pois são neutros) */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
  --section-padding: 120px;
  --container-max: 1200px;
}

/* ===================================
   RESET & BASE STYLES
=================================== */

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ===================================
   UTILITIES
=================================== */

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

.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
    }
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   BUTTONS
=================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero {
    background: var(--gradient-blue);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-blue);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 80px hsla(45, 80%, 55%, 0.4);
}

.btn-hero-outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid hsla(45, 80%, 55%, 0.5);
}

.btn-hero-outline:hover {
    background: hsla(45, 80%, 55%, 0.1);
    border-color: var(--primary);
}

.btn-elegant {
    background: var(--secondary);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-elegant:hover {
    background: var(--muted);
    border-color: var(--primary);
}

/* ===================================
   NAVBAR
=================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: hsla(0, 0%, 3%, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid hsla(45, 80%, 55%, 0.1);
}

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

.navbar-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text {
    font-family: var(--font-serif);
    /*font-size: 0.875rem;*/
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--muted-foreground);
}

.logo-accent {
    font-family: var(--font-serif);
    /*font-size: 1.25rem;*/
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

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

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    transition: color 0.3s ease;
}

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

.nav-cta {
    background: var(--gradient-blue);
    color: var(--primary-foreground) !important;
    padding: 10px 20px;
    border-radius: 2px;
}

.nav-cta:hover {
    transform: scale(1.05);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--foreground);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--foreground);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.mobile-menu-btn.active .hamburger {
    background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--background);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .nav-links.active {
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links a {
        font-size: 1.25rem;
    }
}

/* ===================================
   HERO SECTION
=================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('assets/hero-bg.jpg');
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 32px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===================================
   VIDEO SECTION
=================================== */

.video-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-background {
    position: absolute;
    inset: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: hsla(0, 0%, 0%, 0.7);
}

.video-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
}

.video-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}

.video-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 400;
    margin-bottom: 48px;
}

.play-button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-blue);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-blue);
}

.play-button svg {
    width: 32px;
    height: 32px;
    color: var(--primary-foreground);
    margin-left: 4px;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 80px hsla(45, 80%, 55%, 0.5);
}

.video-duration {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    letter-spacing: 0.05em;
}

/* ===================================
   ABOUT SECTION
=================================== */

.about-section {
    padding: var(--section-padding) 24px;
    background: var(--background);
}

.about-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 968px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.book-cover-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.book-glow {
    position: absolute;
    width: 300px;
    height: 450px;
    background: var(--gradient-blue);
    filter: blur(100px);
    opacity: 0.3;
    border-radius: 50%;
}

.book-cover {
    position: relative;
    max-width: 350px;
    box-shadow: var(--shadow-elegant);
    border-radius: 4px;
}

.section-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 32px;
    line-height: 1.2;
}

.about-text {
    font-size: 1rem;
    color: var(--muted-foreground);
    line-height: 1.8;
    margin-bottom: 24px;
}

.book-stats {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--primary);
}

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

/* ===================================
   QUOTES SECTION
=================================== */

.quotes-section {
    padding: var(--section-padding) 24px;
    position: relative;
    background-image: url('assets/library-bg.jpg');
}

.quotes-overlay {
    position: absolute;
    inset: 0;
    background: hsla(0, 0%, 0%, 0.85);
}

.quotes-container {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}

@media (max-width: 968px) {
    .quotes-grid {
        grid-template-columns: 1fr;
    }
}

.quote-card {
    background: hsla(0, 0%, 5%, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid hsla(45, 80%, 55%, 0.1);
    padding: 48px 32px;
    text-align: left;
    transition: all 0.3s ease;
}

.quote-card:hover {
    border-color: hsla(45, 80%, 55%, 0.3);
    transform: translateY(-8px);
}

.quote-mark {
    font-family: var(--font-serif);
    font-size: 5rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: -24px;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--foreground);
    margin-bottom: 24px;
}

.quote-chapter {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

/* ===================================
   AUTHOR SECTION
=================================== */

.author-section {
    padding: var(--section-padding) 24px;
    background: var(--charcoal);
}

.author-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 968px) {
    .author-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .author-image-wrapper {
        order: -1;
    }
}

.author-text {
    font-size: 1rem;
    color: var(--muted-foreground);
    line-height: 1.8;
    margin-bottom: 24px;
}

.author-awards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.award-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 2px;
}

.award-icon {
    font-size: 1.25rem;
}

.award-text {
    font-size: 0.875rem;
    color: var(--foreground);
}

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

.author-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gradient-blue);
    filter: blur(100px);
    opacity: 0.2;
    border-radius: 50%;
}

.author-image {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow-elegant);
}

/* ===================================
   PURCHASE SECTION
=================================== */

.purchase-section {
    padding: var(--section-padding) 24px;
    background: var(--background);
    text-align: center;
}

.purchase-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}

@media (max-width: 968px) {
    .formats-grid {
        grid-template-columns: 1fr;
    }
}

.format-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.format-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
}

.format-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, hsla(229, 81%, 54%, 0.1), transparent);
}

.featured-badge {
    position: absolute;
    top: -12px;
    background: var(--gradient-blue);
    color: var(--primary-foreground);
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.format-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.format-title {
    font-size: 1.5rem;
    font-weight: 500;
}

.format-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.format-price {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--primary);
    margin: 16px 0;
}

.retailers {
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.retailers-title {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 24px;
}

.retailers-logos {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.retailer-link {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--muted-foreground);
    transition: color 0.3s ease;
}

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

/* ===================================
   FOOTER
=================================== */

.footer {
    padding: 80px 24px 40px;
    background: var(--obsidian);
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.footer-logo span:first-child {
    color: var(--foreground);
}

.footer-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.8;
    max-width: 400px;
}

.footer-links h4,
.footer-social h4 {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--foreground);
    margin-bottom: 24px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

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

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

/* ===================================
   VIDEO MODAL
=================================== */

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(0, 0%, 0%, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.modal-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
