/* --- Configurações Globais e Variáveis --- */
:root {
    --primary-color: #4ADE80;
    --primary-hover: #369F62;
    --dark-blue: #0D1117;
    --medium-gray: #161B22;
    --border-color: #30363D;
    --white: #FFFFFF;
    --text-primary: #F0F6FC;
    --text-secondary: #8B949E;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --section-padding: 4rem 0;
    --glass-bg-color: rgba(22, 27, 34, 0.7);
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-blue);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
}

body.menu-active {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    padding: 0 1.5rem;
    margin: 0 auto;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* --- Botões e Links --- */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 222, 128, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: -1;
}

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

.btn-secondary:hover::before {
    transform: scaleX(1);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.link {
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

.link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.link:hover::after {
    transform: scaleX(1);
}

/* --- Cabeçalho e Navegação --- */
#header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background-color: transparent;
    border-bottom: 1px solid transparent;
}

#header.scrolled {
    background-color: var(--glass-bg-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
}

#header.menu-active {
    background: transparent !important;
    backdrop-filter: none !important;
}

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

.logo {
    text-decoration: none;
    flex-shrink: 0;
    z-index: 1010;
}

.logo img {
    height: 3.5rem;
    width: auto;
    vertical-align: middle;
}

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

/* Navegação Mobile (Overlay) */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--dark-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
}

#menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
}

#menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.75rem;
    font-weight: 500;
}

/* Botão Hamburguer */
#btn-mobile {
    display: flex;
    padding: .5rem;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 1010;
}

.hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    color: var(--text-primary);
    position: relative;
    transition: transform 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    position: absolute;
    transition: all 0.3s;
}

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

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

/* Estado Ativo do Menu Mobile */
#header.menu-active #nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#header.menu-active .hamburger {
    background: transparent;
}

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

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

/* --- Seção Hero --- */
#hero {
    padding-top: 0;
    padding: 6.5rem 0;
    text-align: center;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content p {
    max-width: 600px;
    margin: 2.5rem auto 2.5rem;
}

.hero-carousel-wrapper {
    position: relative;
    min-height: 12rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel li {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.hero-carousel li.active {
    opacity: 1;
    visibility: visible;
}

.hero-carousel h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    padding: 0 1rem;
}

.hero-image-wrapper {
    margin-top: 3rem;
}

.hero-image-wrapper img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Fundo Aurora */
.aurora-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.aurora-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.aurora-shape.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
    animation: aurora-move 15s infinite alternate;
}

.aurora-shape.shape-2 {
    width: 300px;
    height: 300px;
    background: #3B82F6;
    bottom: -50px;
    right: -50px;
    animation: aurora-move 20s infinite alternate-reverse;
}

.aurora-shape.shape-3 {
    width: 200px;
    height: 200px;
    background: #9333EA;
    bottom: 100px;
    left: 50px;
    animation: aurora-move 25s infinite alternate;
}

@keyframes aurora-move {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(100px, 50px) rotate(180deg);
    }
}

/* --- Seção Parceiros --- */
#partners {
    padding: 3rem 0;
    background-color: var(--dark-blue);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

#partners .section-header {
    margin-bottom: 2rem;
}

#partners .logos-grid {
    display: flex;
    justify-content: center;
    /* Centraliza os logos horizontalmente */
    align-items: center;
    gap: 2.5rem;
    /* Aumenta um pouco o espaço para não ficarem colados */
    flex-wrap: wrap;
}

/* 
  Define um tamanho máximo para os logos em TODAS as telas (Mobile First).
*/
#partners .logos-grid img {
    max-height: 35px;
    /* Altura máxima para os logos em telas pequenas */
    max-width: 140px;
    /* Largura máxima para evitar que um logo largo demais quebre o layout */
    width: auto;
    /* Mantém a proporção da imagem */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#partners .logos-grid img:hover {
    opacity: 1;
    /* Efeito sutil ao passar o mouse */
}


.logo-light {
    display: none;
}

.logo-dark {
    display: inline-block;
}

body.light-theme .logo-light {
    display: inline-block;
}

body.light-theme .logo-dark {
    display: none;
}

body.light-theme #partners {
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
    border-color: transparent;
}


/* --- Seção APIs --- */
#apis {
    background: linear-gradient(180deg, #0D1117 0%, #080A0D 100%);
}

.advantages-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.advantage-card {
    background: var(--medium-gray);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-card i {
    margin-bottom: 1.5rem;
    display: block;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.advantage-card h3 {
    margin-bottom: 0.75rem;
}

/* --- Seção Como Integrar --- */
#how-it-works {
    background-color: #080A0D;
}

.how-it-works-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3rem;
}

.how-it-works-text {
    text-align: left;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
}

.step-icon {
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--medium-gray);
    border: 1px solid var(--border-color);
    display: grid;
    place-items: center;
}

.step-icon span {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.code-snippet {
    background-color: #161B22;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    height: 100%;
}

.code-snippet pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-snippet code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.code-snippet .function {
    color: #4ADE80;
}

.code-snippet .property {
    color: #9CDCFE;
}

.code-snippet .number {
    color: #B5CEA8;
}

.code-snippet .string {
    color: #CE9178;
}

/* --- Seção Suporte --- */
#support-team {
    background: var(--dark-blue);
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.support-card {
    background: var(--medium-gray);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-card:hover {
    transform: translateY(-5px);
}

.support-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.support-card h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

/* --- Seção Taxas e Simulador --- */
.pricing-simulator {
    max-width: 800px;
    margin: 3rem auto 2.5rem;
    background: var(--medium-gray);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

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

.slider-container #transaction-count {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

#transaction-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--dark-blue);
    border-radius: 5px;
    outline: none;
    margin-top: 1.5rem;
    transition: background 0.3s;
}

#transaction-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: 4px solid var(--medium-gray);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
    transition: transform 0.3s;
}

#transaction-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: 4px solid var(--medium-gray);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

#transaction-slider:active::-webkit-slider-thumb {
    transform: scale(1.2);
}

#fees .avg-value-container {
    text-align: center;
    margin: 2.5rem 0;
}

#fees .avg-value-container label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

#fees .input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 250px;
    margin: 0 auto;
    background: var(--dark-blue);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

#fees .input-group span {
    font-size: 1.125rem;
    color: var(--text-secondary);
    padding-right: 0.75rem;
}

#fees .input-group input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
}

#fees .simulator-results {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
}

#fees .result-box {
    background: var(--dark-blue);
    padding: 1.5rem;
    border-radius: 12px;
}

#fees .result-box h4 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

#fees .price-dynamic {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin: 0.5rem 0;
    display: flex;
    justify-content: center;
    align-items: baseline;
    line-height: 1.2;
}

#fees .price-dynamic span:first-child {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

#fees .price-tag {
    font-size: 0.8rem;
    background-color: var(--medium-gray);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
    margin-top: 0.75rem;
}

#fees .savings-box {
    display: none;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

#fees .savings-box i {
    font-size: 2rem;
    color: var(--primary-color);
}

#fees .savings-box p {
    margin: 0;
    line-height: 1.6;
}

#fees .savings-box strong,
#fees .savings-box span {
    color: var(--text-primary);
}

#fees .savings-box span {
    color: var(--primary-color);
    font-weight: 700;
}

#fees .fees-contact-enterprise {
    margin-top: 3rem;
}

#fees .enterprise-card {
    background: var(--medium-gray);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    gap: 1.5rem;
}

#fees .enterprise-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#fees .enterprise-card h3 {
    margin-bottom: 0.5rem;
}

body.light-theme #fees .slider {
    background: #E1E4E8;
}

body.light-theme #fees .slider::-webkit-slider-thumb {
    border-color: var(--medium-gray);
}

body.light-theme #fees .result-box {
    background: #FFFFFF;
}

body.light-theme #fees .input-group {
    background: #fff;
}

body.light-theme #fees .price-tag {
    background-color: var(--dark-blue);
    border-color: var(--border-color);
}

/* --- Efeito Spotlight nos Cards --- */
.spotlight-card {
    position: relative;
    overflow: hidden;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.spotlight-card:hover::before {
    opacity: 1;
}

/* --- Seção FAQ --- */
#faq {
    background: var(--dark-blue);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-answer {
    color: var(--text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.75rem;
}

.faq-question i {
    font-size: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

/* --- Seção Contato --- */
#contact {
    background-color: #080A0D;
}

body.light-theme #contact {
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
}

.contact-form {
    max-width: 800px;
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    background-color: var(--medium-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238B949E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

body.light-theme .form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23586069' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form button[type="submit"] {
    width: 100%;
    justify-content: center;
}

/* --- Seção Rodapé --- */
#footer {
    background:
        radial-gradient(ellipse 80% 50% at top left, rgba(74, 222, 128, 0.1), transparent),
        radial-gradient(ellipse 80% 50% at bottom right, rgba(59, 130, 246, 0.1), transparent),
        var(--dark-blue);
    padding-top: 0;
    position: relative;
    overflow-x: hidden;
}

.footer-top {
    text-align: center;
    padding: 6rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-top h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.footer-top p {
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.footer-main {
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
}

.footer-col .logo {
    display: inline-block;
    margin-bottom: 1rem;
    height: 3.5rem;
    width: auto;
    vertical-align: middle;
}

.footer-tagline {
    font-size: 0.9rem;
    max-width: 250px;
    margin: 0 auto 1.5rem auto;
}

/* --- Estilos para Redes Sociais no Rodapé --- */
.footer-social {
  margin-top: 1.5rem; /* Adiciona um espaço abaixo do slogan */
}

.footer-social p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-primary); 
}

.social-icons {
  display: flex;
  gap: 1.25rem; /* Espaçamento entre os ícones */
}

/* Centraliza os ícones no modo mobile (quando o rodapé está centralizado) */
@media (max-width: 767px) {
  .social-icons {
    justify-content: center;
  }
}

.social-icons a {
  color: var(--text-secondary);
  font-size: 1.75rem; /* Tamanho dos ícones */
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary-color); /* Muda para a cor primária ao passar o mouse */
  transform: translateY(-3px); /* Efeito de levantar o ícone */
}

.footer-col h4 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-bottom {
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.875rem;
}

/* --- Animações --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}

.animate-fade-in-up {
    transform: translateY(40px);
}

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

/* --- Sistema de Tema Claro/Escuro --- */
#theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

#theme-toggle:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

#theme-toggle .fa-moon {
    display: none;
}

#theme-toggle .fa-sun {
    display: block;
}

body.light-theme {
    --dark-blue: #FFFFFF;
    --medium-gray: #F0F6FC;
    --border-color: #E1E4E8;
    --white: #111111;
    --text-primary: #0D1117;
    --text-secondary: #586069;
    --glass-bg-color: rgba(240, 246, 252, 0.75);
}

body.light-theme #theme-toggle .fa-moon {
    display: block;
}

body.light-theme #theme-toggle .fa-sun {
    display: none;
}

body.light-theme .btn-secondary {
    color: var(--text-primary);
}

body.light-theme .btn-secondary:hover {
    color: var(--dark-blue);
}

body.light-theme #apis,
body.light-theme #how-it-works,
body.light-theme #support-team,
body.light-theme #faq {
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
    border-color: transparent;
}

body.light-theme .footer-top {
    border-top: 1px solid var(--border-color);
}

body.light-theme #menu a {
    color: var(--text-primary);
}

body.light-theme #menu a:hover {
    color: var(--primary-color);
}

body.light-theme .hamburger {
    color: var(--text-primary);
}

body.light-theme .form-group input,
body.light-theme .form-group textarea,
body.light-theme .form-group select {
    color: var(--text-primary);
    background-color: #fff;
    border-color: #E1E4E8;
}

/* --- Media Queries (Responsividade) --- */
@media (max-width: 991px) {
    .hide-on-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    :root {
        --section-padding: 6rem 0;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero-carousel-wrapper {
        min-height: 8rem;
    }

    .hero-carousel h1 {
        font-size: 3rem;
    }

    #apis .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-it-works-wrapper {
        flex-direction: row;
        gap: 4rem;
    }

    .how-it-works-text,
    .how-it-works-image {
        width: 50%;
    }

    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #fees .simulator-results {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    #fees .enterprise-card {
        flex-direction: row;
        text-align: left;
    }

    /* Aumenta um pouco a altura dos logos em telas maiores */
    #partners .logos-grid img {
        max-height: 45px;
        /* Um pouco maior para tablets e desktops */
    }

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

    .footer-main {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 3rem;
        text-align: left;
    }

    .footer-tagline,
    .footer-col h4::after {
        margin-left: 0;
        transform: translateX(0);
    }

    .footer-bottom {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }
}

@media (min-width: 992px) {
    #btn-mobile {
        display: none;
    }

    #nav {
        display: flex;
        position: static;
        width: auto;
        height: auto;
        background: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: none;
        flex-grow: 1;
    }

    #menu {
        flex-direction: row;
        justify-content: center;
        gap: 2.5rem;
    }

    #menu a {
        font-size: 1rem;
        color: var(--text-secondary);
        font-weight: 500;
    }

    .show-in-mobile-menu {
        display: none;
    }

    body.light-theme #menu a {
        color: var(--text-primary);
    }

    body.light-theme #menu a:hover {
        color: var(--primary-color);
    }

    .header-actions {
        display: flex;
    }

    #hero .hero-container {
        display: grid;
        grid-template-columns: 1fr 0.8fr;
        align-items: start;
        gap: 4rem;
        text-align: left;
        margin-top: 4.5rem;
    }

    #hero .hero-content {
        order: 1;
    }

    #hero .hero-image-wrapper {
        order: 2;
        margin-top: 0;
    }

    .hero-carousel li {
        justify-content: flex-start;
        text-align: left;
    }

    .hero-carousel-wrapper {
        margin-bottom: 2.5rem;
        justify-content: flex-start;
    }

    .hero-content p {
        margin: 4rem 0 2.5rem;
        margin-left: 1rem;
    }

    .hero-content .btn{
        margin-left: 1rem;
    }

    #apis .advantages-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .support-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-main {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 2rem;
    }

    .footer-col:not(:first-child) {
        padding-left: 2rem;
        border-left: 1px solid var(--border-color);
    }
}