/* =========================================
   VARIÁVEIS GERAIS
   ========================================= */
:root {
    /* Cores Principais */
    --color-primary: #55b93c /*1DB954*/; /* Verde principal */
    --color-primary-hover: #40852f /*169c46*/;
    
    /* Backgrounds e Superfícies */
    --bg-dark: #0f151b; /* Fundo hero */
    --bg-light: #f8f9fa; /* Fundo seções claras */
    --bg-white: #ffffff; /* Fundo de cards */
    --border-color: #e5e7eb;
    
    /* Textos */
    --text-white: #ffffff;
    --text-dark: #111827;
    --text-muted: #6b7280;
    --text-muted-light: #9ca3af; /* Para fundos escuros */

    /* Tipografia */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Outros */
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

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

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

/* =========================================
   UTILITIES
   ========================================= */
.text-green {
    color: var(--color-primary);
}

.icon-sm {
    width: 18px;
    height: 18px;
}

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

/* =========================================
   BOTÕES
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    gap: 8px;
}

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

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

.btn-outline-light {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    border-color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.1);
}

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

.btn-white:hover {
    background-color: #f1f1f1;
}

.btn-outline-white {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
}

/* =========================================
   HEADER
   ========================================= */
.header {
    position: fixed; /* Fixar no topo */
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000; /* Aumentado para garantir que fique sempre no topo */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
    background-color: var(--bg-white);
    padding: 12px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.header.scrolled .logo {
    color: var(--text-dark);
}

.logo-img {
    width: 80%;
    transition: opacity 0.3s ease;
    object-fit: contain;
}

.logo-white {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0;
}

.header.scrolled .logo-green {
    opacity: 0;
}

.header.scrolled .logo-white {
    opacity: 1;
}

.logo-icon {
    width: 32px;
    height: 32px;
    stroke: var(--text-white);
    transition: stroke 0.3s ease;
}

.header.scrolled .logo-icon {
    stroke: var(--color-primary);
}

.nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    color: #c9c9c9;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.header.scrolled .nav-menu a {
    color: var(--text-muted);
}

.nav-menu a:hover,
.header.scrolled .nav-menu a:hover {
    color: var(--color-primary);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 24px;
}

.lang-btn {
    background: none;
    border: none;
    color: #c9c9c9;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition);
}

.lang-btn.active,
.lang-btn:hover {
    color: #8e8e8e;
}

.header.scrolled .lang-btn {
    color: var(--text-muted-light);
}

.header.scrolled .lang-btn.active,
.header.scrolled .lang-btn:hover {
    color: var(--text-dark);
}

.lang-separator {
    color: #c9c9c9;
    font-size: 0.85rem;
}

.header.scrolled .lang-separator {
    color: var(--border-color);
}

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

.header .btn-primary {
    padding: 10px 24px;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-dark);
    background-image: linear-gradient(135deg, #09131a 0%, #152433 100%);
    background-size: cover;
    background-position: center;
    color: var(--text-white);
    padding-top: 100px;
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at right, rgba(29,185,84,0.1) 0%, rgba(0,0,0,0) 50%),
                linear-gradient(to right, rgba(15,21,27,0.9) 0%, rgba(15,21,27,0.4) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-store-badges {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    align-items: center;
}

.store-badge {
    height: 40px;
    width: auto;
    transition: transform var(--transition);
}

.store-badge:hover {
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 4px;
    font-family: var(--font-heading);
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-mockup {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.mockup-placeholder {
    width: 100%;
    max-width: 650px;
    aspect-ratio: 16/10;
    /* background: rgba(255, 255, 255, 0.03); */
    /* border: 1px dashed rgba(255, 255, 255, 0.2); */
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    gap: 16px;
    backdrop-filter: blur(10px);
}

.mockup-icon {
    width: 48px;
    height: 48px;
}

@media (max-width: 992px) {
    .hero {
        padding-top: 120px;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .header .btn-primary {
        padding: 8px 16px;
    }
    
    .lang-switcher {
        margin-right: 12px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-store-badges {
        justify-content: center;
        margin-bottom: 40px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* =========================================
   INTEGRATIONS SECTION
   ========================================= */
.integrations {
    background-color: var(--bg-white);
    position: relative;
    padding-bottom: 60px;
    z-index: 10; /* Evita que o overlay do Hero cubra a onda */
}

.wave-divider {
    position: absolute;
    top: -105px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.wave-divider .shape-fill {
    fill: var(--bg-white);
}

.integrations-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding-top: 40px;
}

.integrations-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted-light);
    letter-spacing: 0.05em;
}

.integrations-logos {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.integration-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
}

.integration-icon {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

@media (max-width: 992px) {
    .integrations-container {
        flex-direction: column;
        gap: 24px;
    }
    
    .integrations-logos {
        justify-content: center;
        gap: 24px;
    }
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.features {
    padding: 100px 0;
    background-color: var(--bg-light); 
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

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

.feature-card {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 32px 32px 40px 32px;
    border: 1px solid var(--border-color);
    box-shadow: none;
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.08);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    background-color: rgba(29, 185, 84, 0.05);
    border: 1px solid rgba(29, 185, 84, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.feature-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* =========================================
   HOW IT WORKS SECTION
   ========================================= */
.how-it-works {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.how-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.how-content {
    flex: 1;
    max-width: 500px;
}

.how-content .section-title {
    margin-bottom: 24px;
}

.how-content .section-subtitle {
    margin-bottom: 48px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step-item {
    display: flex;
    gap: 24px;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: rgba(29, 185, 84, 0.1);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(29, 185, 84, 0.2);
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.how-mockup {
    flex: 1.2;
    display: flex;
    justify-content: flex-end;
}

.composition-mockup {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 450px; /* Altura para acomodar a sobreposição */
}

.mockup-img-back {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%; /* Ocupa 80% do espaço, fica ao fundo e à direita */
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: transform var(--transition);
}

.mockup-img-back:hover {
    transform: translateX(10%) translateY(-4px);
}

.mockup-img-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%; /* Fica na frente e mais abaixo/à esquerda */
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: transform var(--transition);
}

.mockup-img-front:hover {
    transform: translateX(10%) translateY(-4px);
}

/* Antigo dashboard-mockup que podemos remover ou manter se usar em outro lugar */
.dashboard-mockup {
    width: 100%;
    aspect-ratio: 4/3;
    /* background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* color: var(--text-muted-light); */
    gap: 16px;
    transition: transform var(--transition);
}

.dashboard-mockup:hover {
    transform: translateY(-4px);
}

.mockup-icon-lg {
    width: 64px;
    height: 64px;
    stroke-width: 1.5;
}

@media (max-width: 992px) {
    .how-container {
        flex-direction: column;
    }
    
    .how-content {
        max-width: 100%;
    }
    
    .how-mockup {
        width: 100%;
        margin-top: 40px;
    }
}

/* =========================================
   EQUIPMENTS SECTION
   ========================================= */
.equipments {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.equipments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.equipment-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 40px 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: transform var(--transition);
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.equipment-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    stroke-width: 1.5;
}

.equipment-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.equipment-card-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .equipments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .equipments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* =========================================
   REPORTS SECTION
   ========================================= */
.reports {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.reports-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.reports-content {
    flex: 1;
    max-width: 540px;
}

.reports-content .section-title {
    margin-bottom: 24px;
}

.reports-content .section-subtitle {
    margin-bottom: 40px;
}

.reports-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    background-color: var(--bg-white);
    transition: box-shadow var(--transition), border-color var(--transition);
}

.report-card:hover {
    border-color: rgba(29, 185, 84, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.report-icon-wrapper {
    width: 48px;
    height: 48px;
    background-color: rgba(29, 185, 84, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.report-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.report-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.report-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.reports-mockup {
    flex: 1.2;
    display: flex;
    justify-content: flex-end;
}

.table-mockup {
    width: 100%;    
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
}

.table-mockup:hover {
    transform: translateX(10%) translateY(-4px);
}

.table-mockup-img {
    width: 100%;
    border-radius: var(--border-radius-lg);
}

@media (max-width: 992px) {
    .reports-container {
        flex-direction: column;
    }
    
    .reports-content {
        max-width: 100%;
    }
    
    .reports-mockup {
        width: 100%;
        margin-top: 40px;
    }
}

/* =========================================
   STATS DARK SECTION
   ========================================= */
.stats-dark {
    background-color: var(--bg-dark);
    padding: 80px 0;
}

.stats-dark-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.stat-dark-item .stat-dark-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1;
    font-family: var(--font-heading);
}

.stat-dark-item .stat-dark-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
    background-color: #55b93c;
    padding: 100px 0;
    text-align: center;
    color: var(--text-white);
    /* Grid background pattern */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.7);
}

.cta-container {
    max-width: 800px;
}

.cta-badge {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.75rem;
    display: inline-block;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.cta-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.cta-note a {
    color: var(--text-white);
    text-decoration: underline;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: #161e27; /* Slightly lighter than pure dark */
    color: var(--text-muted-light);
    padding: 80px 0 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 24px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color var(--transition);
    z-index: 1; /* Força renderização do ícone lucide que é SVG */
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icon {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted-light); /* Lucide usa stroke ao invés de color */
}

.footer-links {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.footer-col h4 {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col a {
    color: var(--text-muted-light);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--text-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

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

@media (max-width: 992px) {
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
    
    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .stats-dark-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
/* ==========================================================================
   Modals
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}

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

.modal-content {
    background-color: #ffff;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    transform: translateY(0);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-overlay.hidden .modal-content {
    transform: translateY(20px);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-light);
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    z-index: 10;
}

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

.modal-body {
    padding: 20px 40px 40px 40px; /* Reduced top padding since we have the header now */
    overflow-y: auto;
    color: var(--text-color);
}

.modal-body h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #55b93c /*var(--dark-green)*/;
    margin-bottom: 5px;
    line-height: 1.2;
}

.modal-body h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    margin-top: 30px;
    font-weight: 600;
}

.modal-body h2 + h3 {
    margin-top: 0;
    font-weight: 400;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 30px;
}

.modal-body p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-body ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.modal-body li {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Modal Table Responsive */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.modal-table th, .modal-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.modal-table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: #55b93c /*var(--dark-green)*/;
}

.modal-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .modal-body {
        padding: 25px 20px;
    }
    .modal-body h2 {
        font-size: 1.4rem;
        padding-right: 30px;
    }
}

/* Markdown Specific Styles */
.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.markdown-body th, .markdown-body td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.markdown-body th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: #55b93c /*var(--dark-green)*/;
}

.markdown-body tbody tr:last-child td {
    border-bottom: none;
}
/* Modal Header Actions */
.modal-header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 15px 0 15px;
    position: relative;
    z-index: 10;
}

.modal-header-actions .modal-close {
    position: relative;
    top: auto;
    right: auto;
    margin-left: 15px;
}

.modal-lang-switcher {
    margin-right: 0;
}

.modal-lang-switcher .lang-btn {
    color: var(--text-light);
}

.modal-lang-switcher .lang-btn.active {
    color: var(--primary-color);
}

.modal-lang-switcher .lang-separator {
    color: var(--border-color);
}
/* Page Content Markdown */
#page-markdown-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #55b93c /*var(--dark-green)*/;
    margin-bottom: 10px;
}

#page-markdown-content h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
}

#page-markdown-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-color);
}

#page-markdown-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

#page-markdown-content li {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 8px;
    color: var(--text-color);
}