/* ============================================================================
   GABRIEL MAROSTEGAM - STYLE.CSS OTIMIZADO
   Versão: 2.1 - Janeiro 2026
   - Fix para links visitados
   - Otimizações de performance
   - Código consolidado
   ============================================================================ */

/* ============================================================================
   CSS VARIABLES & RESET
   ============================================================================ */
: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;
}

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

html {
    scroll-behavior: smooth;
}

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

/* ============================================================================
   BACKGROUND & PARTICLES
   ============================================================================ */
.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;
    inset: 0;
    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; }
}

.particles {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 1px;
    height: 1px;
    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%, 90% { opacity: 0.4; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */
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;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a:visited: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);
    border-radius: 8px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.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;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

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

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

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;
    display: inline-block;
    transition: all 0.3s ease;
}

.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;
}

/* ============================================================================
   PHOTO SECTION
   ============================================================================ */
.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: transform 0.3s ease;
}

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

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

/* ============================================================================
   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);
}

.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%);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.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;
}

.author-photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-align: center;
    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;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.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: transform 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
}

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

.newsletter-card-image::before {
    content: '';
    position: absolute;
    inset: 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;
}

.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,
.card-link:visited {
    color: var(--primary-blue);
}

.card-link:hover {
    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;
}

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

/* ============================================================================
   PALESTRAS & PUBLICAÇÕES SECTION
   ============================================================================ */
.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;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.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;
}

/* FIX: Links de publicação - cor consistente mesmo após visitados */
.publicacao-link,
.publicacao-link:visited,
.publicacao-link: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;
}

/* MIT SMR Profile CTA - FIX para links visitados */
.mit-smr-profile-cta {
    background: rgba(37, 99, 235, 0.02);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.mit-smr-profile-cta:hover {
    background: rgba(37, 99, 235, 0.04);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.mit-smr-description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* FIX: MIT SMR Profile Link - cor consistente */
.mit-smr-profile-link,
.mit-smr-profile-link:visited,
.mit-smr-profile-link:link {
    display: inline-block;
    color: var(--primary-blue);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--primary-blue);
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.mit-smr-profile-link:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* ============================================================================
   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);
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.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;
    inset: 0;
    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);
}

.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,
.download-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

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

.download-btn {
    width: 100%;
    text-align: center;
}

.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;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer {
    background: var(--bg-white);
    border-top: 0.05px solid var(--border-light);
    padding: 0.5rem 0;
    margin-top: 0;
}

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

.footer-center p {
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.01em;
}

/* ============================================================================
   ACCESSIBILITY - Focus States
   ============================================================================ */
a:focus,
button:focus,
.btn:focus,
input:focus,
select:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* ============================================================================
   UTILITIES
   ============================================================================ */
.m-0 { margin: 0 !important; }
.mb-1 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 2rem !important; }
.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }
.p-0 { padding: 0 !important; }
.pt-1 { padding-top: 1rem !important; }
.pb-1 { padding-bottom: 1rem !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }

/* ============================================================================
   RESPONSIVE - TABLET
   ============================================================================ */
@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;
    }
    
    .mit-smr-profile-cta {
        margin-top: 2rem;
    }
}

@media (max-width: 900px) {
    .home-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .photo-container {
        width: 100%;
        height: auto;
        max-width: 350px;
        min-height: 350px;
    }
    
    .newsletter-intro {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* ============================================================================
   RESPONSIVE - MOBILE
   ============================================================================ */
@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;
    }
    
    .mit-smr-profile-cta {
        padding: 1.5rem;
    }
    
    .mit-smr-description {
        font-size: 0.95rem;
    }
    
    .mit-smr-profile-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .site-footer {
        padding: 2rem 0;
        margin-top: 3rem;
    }
    
    .footer-center p {
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .photo-container {
        max-width: 220px;
        min-height: 220px;
    }
}