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

:root {
    --primary-blue: #2563eb;
    --accent-orange: #ea580c;
    --accent-green: #059669;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-lighter: #f1f5f9;
    --border-light: #e2e8f0;
    --border-lighter: #f1f5f9;
}

body {
    font-family: 'Crimson Text', serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Elegant Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f1629 100%);
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(234, 88, 12, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(5, 150, 105, 0.04) 0%, transparent 50%);
    animation: gentleFloat 20s ease-in-out infinite alternate;
}

@keyframes gentleFloat {
    0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    100% { transform: scale(1.05) rotate(0.5deg); opacity: 1; }
}

/* Subtle Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 1px;
    height: 1px;
    background: var(--primary-blue);
    border-radius: 50%;
    animation: subtleFloat 25s linear infinite;
    opacity: 0.4;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; background: var(--primary-blue); }
.particle:nth-child(2) { left: 25%; animation-delay: 3s; background: var(--accent-orange); }
.particle:nth-child(3) { left: 40%; animation-delay: 6s; background: var(--accent-green); }
.particle:nth-child(4) { left: 55%; animation-delay: 9s; background: var(--primary-blue); }
.particle:nth-child(5) { left: 70%; animation-delay: 12s; background: var(--accent-orange); }
.particle:nth-child(6) { left: 85%; animation-delay: 15s; background: var(--accent-green); }

@keyframes subtleFloat {
    0% { 
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { 
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.linkedin-link,
.substack-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-light);
    transition: all 0.3s ease;
    border-radius: 8px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
}

.linkedin-link:hover {
    color: #0077b5;
    background: rgba(0, 119, 181, 0.1);
    border-color: #0077b5;
    transform: translateY(-1px);
}

.substack-link:hover {
    color: #ff6719;
    background: rgba(255, 103, 25, 0.1);
    border-color: #ff6719;
    transform: translateY(-1px);
}

.language-toggle {
    display: flex;
    background: var(--bg-light);
    border-radius: 6px;
    padding: 0.2rem;
    border: 1px solid var(--border-light);
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--primary-blue);
    color: white;
}

.lang-btn:hover:not(.active) {
    color: var(--primary-blue);
}

.header-cta {
    padding: 0.8rem 1.5rem;
    background: var(--accent-orange);
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-cta:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Base */
section {
    padding: 5rem 0;
    position: relative;
    scroll-margin-top: 100px;
}

/* Home Section */
.home {
    background: var(--bg-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    padding-bottom: 3rem;
}

.home-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.home-text {
    max-width: 600px;
}

.eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--accent-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.hero-title .highlight {
    color: var(--primary-blue);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 500;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

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

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

.credentials {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.credential {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.credential strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Enhanced Photo Section with Rounded Corners */
.photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.photo-container {
    width: 460px;
    height: 575px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-light);
    box-shadow: 
        0 10px 25px rgba(37, 99, 235, 0.1),
        0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--border-light) 100%);
    transition: all 0.3s ease;
}

.photo-container:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 20px 40px rgba(37, 99, 235, 0.15),
        0 8px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-blue);
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.photo-container:hover img {
    transform: scale(1.02);
}

.photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-align: center;
    background: transparent;
    flex-direction: column;
    gap: 0.5rem;
}

/* Upload functionality - REMOVED */
.upload-section {
    display: none;
}

.upload-btn {
    display: none;
}

.file-input {
    display: none;
}

/* Newsletter Section */
.newsletter {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3.5rem;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
}

.newsletter-intro {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: start;
    max-width: 900px;
    margin: 0 auto 3.5rem;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* Enhanced Author Photo with Rounded Style */
.author-photo-container {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-light);
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--border-light) 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.1);
}

.author-photo-container:hover {
    border-color: var(--primary-blue);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.2);
}

.author-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.author-photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-align: center;
    background: transparent;
    flex-direction: column;
}

.newsletter-description p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.6;
}

.newsletter-description p:last-child {
    margin-bottom: 0;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.newsletter-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.newsletter-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
    border-color: var(--primary-blue);
}

/* Newsletter card images - Integração com design atual */
.newsletter-card-image {
    width: calc(100% + 5rem);
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px 12px 0 0;
    margin: -2.5rem -2.5rem 1.5rem -2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.newsletter-card:hover .newsletter-card-image {
    transform: scale(1.02);
}

/* Overlay sutil nas imagens para melhor legibilidade */
.newsletter-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0) 60%,
        rgba(0,0,0,0.1) 100%
    );
    pointer-events: none;
}

/* Ajuste nos cards quando há imagem */
.newsletter-card:has(.newsletter-card-image) {
    padding-top: 2.5rem;
}

.newsletter-card:has(.newsletter-card-image) .card-title {
    margin-top: 0;
}

/* Loading state para imagens */
.newsletter-card-image[data-loading="true"] {
    background: var(--bg-lighter);
    position: relative;
}

.newsletter-card-image[data-loading="true"]::after {
    content: '📸 Carregando...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

/* Placeholder para posts sem imagem - mantém layout consistente */
.newsletter-card:not(:has(.newsletter-card-image)) .card-title {
    margin-top: 0;
}

/* Otimização para performance */
.newsletter-card-image {
    will-change: transform;
    backface-visibility: hidden;
}

/* Animação para cards com imagens */
@keyframes cardImageLoad {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.newsletter-card-image.loaded {
    animation: cardImageLoad 0.5s ease-out;
}

/* Error state para imagens que falharam */
.newsletter-card-image.error {
    background: var(--bg-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

.newsletter-card-image.error::after {
    content: '🖼️ Imagem indisponível';
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-subtitle {
    color: var(--accent-orange);
    font-style: italic;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.card-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.card-link {
    display: inline-block;
    color: var(--primary-blue);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: #1d4ed8;
    transform: translateX(3px);
}

.newsletter-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-cta p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Palestras Section - Two Column Layout */
.palestras {
    background: white;
}

.palestras-publicacoes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.column-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-blue);
}

.palestras-column .palestra-card,
.publicacoes-column .publicacao-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.palestras-column .palestra-card:hover,
.publicacoes-column .publicacao-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.08);
}

.palestras-column .palestra-title,
.publicacoes-column .publicacao-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.palestras-column .palestra-event,
.publicacoes-column .publicacao-venue {
    color: var(--accent-green);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.palestras-column .palestra-description,
.publicacoes-column .publicacao-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.publicacao-link {
    display: inline-block;
    color: var(--primary-blue);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.publicacao-link:hover {
    color: #1d4ed8;
    transform: translateX(3px);
}

.palestra-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.download-presentation {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.download-presentation:hover {
    background: var(--accent-green);
    color: white;
    transform: translateY(-1px);
}

.coming-soon-badge {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--bg-lighter);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: default;
}

.palestra-card.coming-soon {
    opacity: 0.8;
    border-style: dashed;
}

/* Loading state for newsletter */
.loading-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
}

/* Book Section */
.book {
    background: var(--bg-lighter);
}

.book-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: start;
}

.book-text h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.book-text h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 400;
}

.book-text p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.features-list {
    list-style: none;
    margin: 2.5rem 0;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.features-list h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.experiment-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-lighter);
    border-radius: 8px;
    border-left: 3px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.stat-item .stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
    flex-shrink: 0;
}

.stat-item .stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.book-visual {
    position: sticky;
    top: 120px;
    text-align: center;
}

.book-cover-container {
    width: 302px;
    height: 389px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 2rem;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
}

.book-cover-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.3);
}

.book-cover-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-cover-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-dark);
    text-align: center;
    background: var(--bg-light);
}

/* Legacy support - hide old book-cover if it exists */
.book-cover {
    display: none;
}

.download-section {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    margin-top: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.download-section h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.download-section p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.download-disclaimer {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    line-height: 1.5;
}

/* Status indicator melhorado - já integrado com design */
.newsletter-status-indicator {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .home-content,
    .book-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .photo-section {
        order: -1;
    }

    .book-visual {
        position: static;
        order: -1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .palestras-publicacoes-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .header-actions {
        gap: 0.8rem;
        flex-wrap: nowrap;
    }

    .language-toggle {
        order: 2;
        flex-shrink: 0;
    }

    .header-cta {
        order: 1;
        font-size: 0.85rem;
        padding: 0.7rem 1.2rem;
        flex-shrink: 0;
    }

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

    .newsletter-intro {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }

    .author-photo-container {
        margin: 0 auto;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .credentials {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .credential {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .experiment-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-item .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-item .stat-label {
        font-size: 0.85rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .newsletter-description p {
        font-size: 1rem;
    }

    section {
        padding: 3.5rem 0;
    }

    .photo-container {
        width: 280px;
        height: 350px;
    }

    .newsletter-card-image {
        height: 160px;
        margin-bottom: 1.25rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}