
/* Importação de fontes modernas */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Bw Modelica (fonte local) */
@font-face {
    font-family: 'Bw Modelica';
    src: url("./Bw%20Modelica/otf/BwModelica-Light.otf") format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bw Modelica';
    src: url("./Bw%20Modelica/otf/BwModelica-Regular.otf") format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bw Modelica';
    src: url("./Bw%20Modelica/otf/BwModelica-Medium.otf") format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bw Modelica';
    src: url("./Bw%20Modelica/otf/BwModelica-Bold.otf") format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais */
    --primary-blue: #277de0;
    --primary-dark: #003153;
    
    /* Cores secundárias */
    --secondary-cyan: #01acc0;
    --secondary-blue: #0070b8;
    
    /* Cores complementares */
    --black: #000000;
    --white: #ffffff;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-cyan) 0%, var(--primary-blue) 100%);
    
    /* Sombras */
    --shadow-light: 0 4px 20px rgba(39, 125, 224, 0.1);
    --shadow-medium: 0 8px 30px rgba(39, 125, 224, 0.15);
    --shadow-heavy: 0 16px 40px rgba(39, 125, 224, 0.2);
}

body {
    font-family: 'Bw Modelica', sans-serif;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
}

/* Animações globais */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-12px) rotate(0deg);
    }
    75% {
        transform: translateY(-6px) rotate(-0.3deg);
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(39, 125, 224, 0.1);
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.logo {
    height: 120px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

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

nav a:hover::after {
    width: 100%;
}

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

/* Main content */
main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(39,125,224,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 2rem 4rem;
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 6rem;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    min-height: 80vh;
    padding-top: 4rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    margin-top: -1rem;
    animation: fadeInUp 1s ease;
    position: relative;
    line-height: 1.1;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 6rem;
    padding-left: 1rem;
}

.hero-sub {
    color: var(--primary-dark);
    border-top: 1px solid rgba(39, 125, 224, 0.2);
    padding-top: 1rem;
    font-weight: 400;
    line-height: 1.4;
    font-size: 1.3rem;
    margin-top: -0.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 0;
    animation: fadeInUp 1s ease 0.2s both;
    opacity: 0;
    animation-fill-mode: forwards;
    visibility: hidden; /* evita flash antes do JS preparar digitação */
    will-change: transform, opacity;
    line-height: 1.5;
}

.hero-phrases {
    position: relative;
    height: 2.5rem; /* aproxima a altura do texto */
    overflow: hidden;
    margin-top: 0.5rem;
}

/* Animações de entrada/saída para frases do hero */
.enter-down { animation: enterDown 500ms ease both; }
.exit-up { animation: exitUp 400ms ease both; }
.enter-right { animation: enterRight 500ms ease both; }
.exit-left { animation: exitLeft 400ms ease both; }

@keyframes enterDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes exitUp {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-16px); }
}
@keyframes enterRight {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes exitLeft {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(24px); }
}

.hero figure {
    animation: float 8s ease-in-out infinite;
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    margin-bottom: -2rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 
 * SISTEMA DE REPOSICIONAMENTO INTELIGENTE
 * 
 * Prioridades de colisão:
 * 1. H2 da hero-copy (máxima prioridade) - distância < 40px
 * 2. Frases do hero (alta prioridade) - distância < 50px
 * 3. Texto principal (média prioridade) - distância < 100px
 * 4. Outros elementos (baixa prioridade)
 * 
 * A imagem é reposicionada automaticamente para evitar sobreposição
 * com elementos de texto, respeitando a hierarquia de prioridades.
 */

/* Classe para reposicionar a imagem quando próxima das frases */
.hero figure.repositioned {
    transform: translateY(-20px) translateX(30px);
}

/* Classe para reposicionar ainda mais quando muito próxima */
.hero figure.repositioned-extreme {
    transform: translateY(-40px) translateX(60px);
}

/* Ícones flutuantes atrás da imagem principal */
.hero figure .icons {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: auto;
    opacity: 0.8;
    filter: blur(0.3px);
    animation: iconsFloat 12s ease-in-out infinite;
    bottom: 0;
}

/* Animação específica para os ícones */
@keyframes iconsFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-15px) rotate(2deg) scale(1.02);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-8px) rotate(-1deg) scale(0.98);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-20px) rotate(1deg) scale(1.01);
        opacity: 0.9;
    }
}

/* Removido o background da cápsula para os ícones ficarem diretos na div */

.hero figure img {
    width: 100vh;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: contrast(1.05) saturate(1.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

/* Botões */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease 0.4s both;
    opacity: 0;
    animation-fill-mode: forwards;
}

.btn:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(39, 125, 224, 0.15);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--white);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.about-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    animation: slideInLeft 1s ease;
}

.about-content p {
    font-size: 1.2rem;
    color: var(--black);
    line-height: 1.8;
    animation: slideInLeft 1s ease 0.2s both;
}

/* Leia mais - Sobre */
.about-text {
    max-height: 220px;
    overflow: hidden;
    position: relative;
}

.about-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3.5rem;
    background: linear-gradient(to bottom, #0054ad33, #0054ad1f);
}

.about-text.expanded {
    max-height: none;
}

.about-text.expanded::after {
    display: none;
}

.about-readmore {
    margin-top: 1rem;
}

/* About - cards com dropdown */
.about-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    align-items: flex-start; /* impede equalização de altura na linha */
}

.about-card {
    background: var(--white);
    border: 1px solid rgba(39, 125, 224, 0.1);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 260px; /* largura base do card */
}

.about-card[open] {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.about-card > summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    position: relative;
}

.about-card > summary::-webkit-details-marker {
    display: none;
}

.about-card > summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-weight: 700;
}

.about-card[open] > summary::after {
    content: '–';
}

.about-card-content {
    padding: 0 1.2rem 1rem;
    color: var(--primary-dark);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 300ms ease, opacity 300ms ease;
}

.about-card-content p {
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0.2rem 0 0;
}

.about-card[open] .about-card-content {
    opacity: 1;
}



.about figure {
    animation: slideInRight 1s ease;
}

.about figure img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* About como background sutil */
.about-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
}

.about-bg img {
    width: min(55vw, 700px);
    height: auto;
    /* filter: grayscale(100%); */
    will-change: transform;
}

.about .about-content, .about .about-content * {
    position: relative;
    z-index: 1;
}

/* Solutions Section */
.solutions {
    padding: 6rem 0;
    background: var(--white);
}

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

@media (max-width: 480px) {
    .solutions {
        padding: 3rem 0;
    }
}

/* Results Section */
.results {
    padding: 6rem 0;
    background: #f8fafc;
}

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

@media (max-width: 480px) {
    .results {
        padding: 3rem 0;
    }
}

.results h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease;
}

@media (max-width: 768px) {
    .results h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .results h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

.results-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.result-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease;
    border: 1px solid rgba(1, 172, 192, 0.05);
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-cyan);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.result-card:hover::before {
    transform: scaleX(1);
}

.result-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(1, 172, 192, 0.15);
}

.result-card p:first-child {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.result-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(1, 172, 192, 0.08);
    border: 1px solid rgba(1, 172, 192, 0.15);
    transition: all 0.3s ease;
}

.result-card:hover .result-icon {
    background: rgba(1, 172, 192, 0.12);
    transform: scale(1.05);
}

.result-icon i {
    font-size: 22px;
    color: var(--secondary-cyan);
    transition: all 0.3s ease;
}

.result-card:hover .result-icon i {
    color: var(--secondary-cyan);
    transform: scale(1.1);
}

.result-card p:nth-child(2) {
    color: var(--black);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
    opacity: 0.85;
}

/* Responsividade para Results */
@media (max-width: 768px) {
    .results-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .result-card {
        padding: 2rem;
    }
    
    .result-card p:first-child {
        font-size: 1.2rem;
    }
    
    .result-icon {
        width: 36px;
        height: 36px;
    }
    
    .result-icon i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .results-content {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .result-card {
        padding: 1.5rem;
    }
    
    .result-card p:first-child {
        font-size: 1.1rem;
    }
    
    .result-icon {
        width: 32px;
        height: 32px;
    }
    
    .result-icon i {
        font-size: 18px;
    }
}

.solutions h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease;
}

@media (max-width: 768px) {
    .solutions h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .solutions h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

.solutions-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .solutions-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .solution-card {
        padding: 2rem;
    }
    
    .solution-card p:first-child {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .solutions-content {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .solution-card {
        padding: 1.5rem;
    }
    
    .solution-card p:first-child {
        font-size: 1.2rem;
    }
    
    .solution-icon {
        width: 32px;
        height: 32px;
    }
    
    .solution-icon i {
        font-size: 18px;
    }
}

.solution-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease;
    border: 1px solid rgba(39, 125, 224, 0.05);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.solution-card:hover::before {
    transform: scaleX(1);
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(39, 125, 224, 0.15);
}

.solution-card p:first-child {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.solution-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(39, 125, 224, 0.08);
    border: 1px solid rgba(39, 125, 224, 0.15);
}

.solution-icon i {
    font-size: 20px;
    color: var(--primary-blue);
}

.solution-card p:nth-child(2) {
    color: var(--black);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.solution-card .btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
}

.solution-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(39, 125, 224, 0.15);
}

/* Partners Section */
.partners {
    padding: 6rem 0;
    background: var(--white);
}

.partners h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease;
}

.partners-content {
    display: none;
}

.partner-card {
    background: var(--white);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    margin: 0 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(39, 125, 224, 0.15);
}

.partner-card img {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
    display: block;
}

.partner-card:hover img {
    filter: grayscale(0%);
}

/* Carrossel de parceiros */
.partners-marquee {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.partners-track {
    display: flex;
    align-items: center;
    will-change: transform;
    width: max-content; /* garante que toda a trilha tenha largura somada dos itens */
    animation: marquee-right 20s linear infinite;
}

.partners-marquee:hover .partners-track {
    animation-play-state: paused;
}

@keyframes marquee-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .partners-track {
        animation: none;
    }
}

/* Footer */
footer {
    background: #f1f5f9;
    color: var(--primary-dark);
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-blue);
}

.footer-section form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-section input[type="email"] {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid rgba(39, 125, 224, 0.2);
    border-radius: 25px;
    background: var(--white);
    color: var(--primary-dark);
    outline: none;
}

.footer-section input[type="email"]::placeholder {
    color: rgba(39, 125, 224, 0.6);
}

.footer-section button {
    padding: 0.8rem 1.5rem;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(39, 125, 224, 0.15);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(39, 125, 224, 0.1);
    color: rgba(39, 125, 224, 0.6);
}

/* Responsividade para tablets */
@media (max-width: 768px) {
    header {
        padding: 0.75rem 1rem;
    }
    
    .logo {
        height: 50px;
    }
    
    nav ul {
        gap: 1.5rem;
    }
    
    nav a {
        font-size: 0.9rem;
    }
    
    .hero-content {
        grid-template-columns: 70% 30%;
        text-align: center;
        gap: 4rem;
        padding: 1.5rem 1.5rem 1.5rem 3rem;
        min-height: 75vh;
        padding-top: 3rem;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }
    
    .hero-sub {
        font-size: 2.5rem;
        text-align: center;
        margin-top: 0.5rem;
        line-height: 1.3;
    }
    
    .hero-content h5 {
        font-size: 1.2rem;
        line-height: 1.5;
    }
    
    .hero-phrases {
        height: 2.5rem;
        margin-top: 1rem;
        justify-content: center;
        overflow: hidden;
    }
    
    .hero-copy {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-phrases {
        height: 2.5rem;
        margin-top: 1rem;
        justify-content: center;
        overflow: hidden;
    }
    
    .hero figure {
        order: 1;
        margin-top: 2rem;
        margin-bottom: -1rem;
        height: 80vh;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }
    
    .hero figure img {
        max-width: 600px;
        transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
        width: 100%;
        height: auto;
    }
    
    .hero figure .icons {
        max-width: 850px;
        animation: iconsFloat 10s ease-in-out infinite;
        width: 100%;
        height: auto;
    }
    
    /* Reposicionamento responsivo para tablets - H2 tem prioridade */
    .hero figure.repositioned {
        transform: translateY(-15px) translateX(20px);
    }
    
    .hero figure.repositioned-extreme {
        transform: translateY(-30px) translateX(40px);
    }
}

/* Responsividade para tablets médios */
@media (max-width: 640px) {
    .hero-content {
        grid-template-columns: 70% 30%;
        gap: 3rem;
        padding: 1.25rem 1.25rem 1.25rem 2.5rem;
        min-height: 70vh;
        padding-top: 2.5rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-sub {
        font-size: 2.2rem;
    }
    
    .hero-content h5 {
        font-size: 1.15rem;
    }
    
    .hero-phrases {
        height: 2.5rem;
        margin-top: 1rem;
        justify-content: center;
        overflow: hidden;
    }
    
    .hero figure {
        order: 1;
        margin-top: 1.75rem;
        margin-bottom: -1rem;
        height: 75vh;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }
    
    .hero figure img {
        max-width: 550px;
        transform: perspective(1000px) rotateY(-1.5deg) rotateX(1deg);
        width: 100%;
        height: auto;
    }
    
    .hero figure .icons {
        max-width: 800px;
        animation: iconsFloat 9s ease-in-out infinite;
        width: 100%;
        height: auto;
    }
    
    /* Reposicionamento responsivo para tablets médios - H2 tem prioridade */
    .hero figure.repositioned {
        transform: translateY(-12px) translateX(15px);
    }
    
    .hero figure.repositioned-extreme {
        transform: translateY(-25px) translateX(30px);
    }
}

/* Responsividade para mobile */
@media (max-width: 480px) {
    header {
        padding: 0.5rem 1rem;
    }
    
    .logo {
        height: 45px;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        font-size: 0.85rem;
    }
    
    main {
        margin-top: 70px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
        padding: 1rem 1rem 1rem 2rem;
        min-height: 65vh;
        padding-top: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
        line-height: 1.1;
    }
    
    .hero-sub {
        font-size: 2rem;
        text-align: center;
        margin-top: 0;
        line-height: 1.2;
    }
    
    .hero-content h5 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .hero-copy {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-phrases {
        height: 2rem;
        margin-top: 0.5rem;
        justify-content: center;
        overflow: hidden;
    }
    
    .hero figure {
        order: 1;
        margin-top: 1.5rem;
        margin-bottom: -1rem;
        height: 70vh;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }
    
    .hero figure img {
        max-width: 450px;
        transform: perspective(1000px) rotateY(-1deg) rotateX(0.5deg);
        border-radius: 20px;
        width: 100%;
        height: auto;
    }
    
    .hero figure .icons {
        max-width: 700px;
        animation: iconsFloat 8s ease-in-out infinite;
        width: 100%;
        height: auto;
    }
    
    /* Reposicionamento responsivo para mobile - H2 tem prioridade */
    .hero figure.repositioned {
        transform: translateY(-10px) translateX(12px);
    }
    
    .hero figure.repositioned-extreme {
        transform: translateY(-20px) translateX(25px);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .solutions-content {
        grid-template-columns: 1fr;
    }
    
    .partners-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Responsividade para mobile pequeno */
@media (max-width: 360px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0.75rem 0.75rem 0.75rem 1.5rem;
        min-height: 60vh;
        text-align: center;
        padding-top: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
        margin-bottom: 0.75rem;
        line-height: 1.1;
    }
    
    .hero-sub {
        font-size: 1.8rem;
        text-align: center;
        margin-top: 0;
        line-height: 1.2;
    }
    
    .hero-content h5 {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .hero-phrases {
        height: 2rem;
        margin-top: 0.5rem;
        justify-content: center;
        overflow: hidden;
    }
    
    .hero figure {
        order: 1;
        margin-top: 1rem;
        margin-bottom: -0.5rem;
        height: 60vh;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }
    
    .hero figure img {
        max-width: 400px;
        transform: none;
        margin-bottom: 0;
        border-radius: 15px;
        width: 100%;
        height: auto;
    }
    
    .hero figure .icons {
        max-width: 600px;
        animation: iconsFloat 6s ease-in-out infinite;
        width: 100%;
        height: auto;
    }
    
    /* Reposicionamento responsivo para mobile pequeno - H2 tem prioridade */
    .hero figure.repositioned {
        transform: translateY(-8px) translateX(10px);
    }
    
    .hero figure.repositioned-extreme {
        transform: translateY(-15px) translateX(20px);
    }
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Efeitos de hover para elementos interativos */
.solution-card, .partner-card, .btn {
    cursor: pointer;
}

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Animações específicas para seções */
.section-fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.section-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-slide-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease;
}

.section-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.section-slide-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s ease;
}

.section-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.section-scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease;
}

.section-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Animação de digitação */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--primary-blue);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-blue);
    }
}

/* Delay para animações em sequência */
.animation-delay-1 {
    transition-delay: 0.1s;
}

.animation-delay-2 {
    transition-delay: 0.2s;
}

.animation-delay-3 {
    transition-delay: 0.3s;
}

.animation-delay-4 {
    transition-delay: 0.4s;
}

.animation-delay-5 {
    transition-delay: 0.5s;
}

.animation-delay-6 {
    transition-delay: 0.6s;
}

/* Cases Section */
.cases {
    padding: 6rem 0;
    background: var(--white);
}

.cases h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease;
}

.cases-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.cases-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease;
    border: 1px solid rgba(39, 125, 224, 0.05);
    text-align: center;
}

.cases-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-cyan);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cases-card:hover::before {
    transform: scaleX(1);
}

.cases-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(39, 125, 224, 0.15);
}

.cases-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.cases-card:hover .cases-number {
    transform: scale(1.1);
    color: var(--secondary-cyan);
}

.cases-label {
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 500;
    line-height: 1.4;
    opacity: 0.9;
}

/* Responsividade para Cases */
@media (max-width: 768px) {
    .cases {
        padding: 4rem 0;
    }
    
    .cases h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .cases-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .cases-card {
        padding: 2rem;
    }
    
    .cases-number {
        font-size: 3rem;
    }
    
    .cases-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .cases {
        padding: 3rem 0;
    }
    
    .cases h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .cases-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .cases-card {
        padding: 1.5rem;
    }
    
    .cases-number {
        font-size: 2.5rem;
    }
    
    .cases-label {
        font-size: 0.95rem;
    }
}

/* Products Section */
.products {
    padding: 6rem 0;
    background: #f8fafc;
}

.products h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease;
}

@media (max-width: 768px) {
    .products {
        padding: 4rem 0;
    }
    
    .products h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .products {
        padding: 3rem 0;
    }
    
    .products h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

.products-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease;
    border: 1px solid rgba(39, 125, 224, 0.05);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(39, 125, 224, 0.15);
}

.product-card p:first-child {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.product-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(39, 125, 224, 0.08);
    border: 1px solid rgba(39, 125, 224, 0.15);
    transition: all 0.3s ease;
}

.product-card:hover .product-icon {
    background: rgba(39, 125, 224, 0.12);
    transform: scale(1.05);
}

.product-icon i {
    font-size: 22px;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.product-card:hover .product-icon i {
    color: var(--primary-blue);
    transform: scale(1.1);
}

.product-card p:nth-child(2) {
    color: var(--black);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
    opacity: 0.85;
}

/* Responsividade para Products */
@media (max-width: 768px) {
    .products-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .product-card {
        padding: 2rem;
    }
    
    .product-card p:first-child {
        font-size: 1.2rem;
    }
    
    .product-icon {
        width: 36px;
        height: 36px;
    }
    
    .product-icon i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .products-content {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .product-card p:first-child {
        font-size: 1.1rem;
    }
    
    .product-icon {
        width: 32px;
        height: 32px;
    }
    
    .product-icon i {
        font-size: 18px;
    }
}
