/* Estilos Globais */
:root {
    --primary-color: #0039FF;
    --secondary-color: #001A73;
    --accent-color: #00C2FF;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --white: #fff;
    --max-width: 1200px;
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Animações e efeitos interativos */
.section-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: block;
    transition: all 0.5s ease;
}

.section-icon:hover {
    transform: scale(1.2) rotate(10deg);
}

.will-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-transition {
    animation: section-fade 1s ease;
}

@keyframes section-fade {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    animation: ripple 0.6s linear;
    transform: scale(0);
    opacity: 1;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 20px;
}

ul {
    list-style: none;
}

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

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

section {
    padding: 100px 0;
    position: relative;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 57, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: 200px;
    text-align: center;
}

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

.btn-primary:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 57, 255, 0.4);
}

.btn-primary:hover:before {
    width: 100%;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--white);
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
    border: 2px solid var(--white);
    cursor: pointer;
    margin-left: 0;
    min-width: 200px;
    text-align: center;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-block {
    display: block;
    width: 100%;
}

.highlight {
    color: var(--accent-color);
    position: relative;
}

.highlight:after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(0, 194, 255, 0.3);
    z-index: -1;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

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

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

.animate-title {
    animation: slideInLeft 1s ease forwards;
}

.animate-subtitle {
    animation: slideUp 1s ease 0.3s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.animate-buttons {
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    padding: 12px 0;
    transition: all var(--transition-medium);
}

.header.scrolled {
    padding: 8px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 140px;
    padding: 10px 20px;
}

.logo img {
    height: 120px;
    width: auto;
    margin: 0;
    transition: all var(--transition-fast);
    z-index: 1001; /* Ensure logo stays above mobile menu */
}

.header.scrolled .logo img {
    height: 100px;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-link {
    position: relative;
    padding: 5px 0;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

.btn-contato {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    transition: all var(--transition-fast);
}

.btn-contato:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 57, 255, 0.3);
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: 30px;
}

.btn-login, .btn-signup {
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-align: center;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn-login {
    background-color: transparent;
    color: var(--primary-color);
    margin-right: 10px;
}

.btn-login:hover {
    background-color: rgba(0, 57, 255, 0.1);
}

.btn-signup {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 57, 255, 0.2);
}

.btn-signup:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 57, 255, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001; /* Ensure toggle stays above mobile menu */
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 5px;
    border-radius: 3px;
    transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Header */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 80px 40px;
        transition: right var(--transition-medium);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .auth-buttons {
        position: fixed;
        bottom: 80px;
        right: -100%;
        width: 80%;
        max-width: 400px;
        flex-direction: column;
        transition: right var(--transition-medium);
        z-index: 1000;
        padding: 0 40px;
        margin-left: 0;
    }
    
    .auth-buttons.active {
        right: 0;
    }
    
    .auth-buttons .btn-login,
    .auth-buttons .btn-signup {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 180px 0 80px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 300px;
    opacity: 0.5;
}

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

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

.hero h1 {
    margin-bottom: 20px;
    font-size: 3rem;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.1rem;
    max-width: 100%;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 80px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    white-space: nowrap;
}

.hero-image {
    flex: 1;
    max-width: 450px;
    animation: pulse 3s infinite ease-in-out;
    text-align: center;
}

.dashboard-preview {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: all var(--transition-medium);
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
}

.animate-dashboard {
    transition: transform 0.5s ease, filter 0.5s ease;
}

.animate-dashboard:hover {
    transform: translateY(-10px);
    filter: drop-shadow(0 0 15px rgba(0, 57, 255, 0.5));
}

@keyframes dashboard-float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes dashboard-pulse {
    0% {
        filter: drop-shadow(0 0 5px rgba(0, 57, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(0, 57, 255, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 5px rgba(0, 57, 255, 0.3));
    }
}

/* Problema Section */
.problema {
    background-color: var(--light-gray);
}

.problema-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.problema-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-medium);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%;
}

.problema-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transition: height 0.4s ease;
    z-index: -1;
}

.problema-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.problema-item:hover:before {
    height: 100%;
}

.problema-item h3 {
    color: var(--primary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s forwards;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform var(--transition-fast);
    animation: scaleIn 0.3s forwards;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color var(--transition-fast);
}

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

.modal h2 {
    text-align: left;
    margin-bottom: 30px;
}

.modal h2:after {
    left: 0;
    transform: none;
    width: 60px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 57, 255, 0.1);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
}

.forgot-password {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    margin-top: 5px;
    color: var(--primary-color);
}

.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    margin-bottom: 15px;
    position: relative;
}

.social-login p:before,
.social-login p:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #ddd;
}

.social-login p:before {
    left: 0;
}

.social-login p:after {
    right: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-social {
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: var(--white);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.btn-google {
    color: #DB4437;
}

.btn-linkedin {
    color: #0077B5;
}

.btn-social:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}

/* Solução Section */
.solucao {
    background-color: var(--white);
}

.solucao-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
}

.solucao-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.feature {
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    background-color: var(--light-gray);
    transition: transform 0.3s ease;
    height: 100%;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature h3 {
    color: var(--primary-color);
}

/* Plataforma Section */
.plataforma {
    background-color: var(--light-gray);
}

.plataforma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.plataforma-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plataforma-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.plataforma-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.plataforma-card h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.plataforma-card ul {
    margin-top: 20px;
    flex-grow: 1;
}

.plataforma-card ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.plataforma-card ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Contato Section */
.contato {
    background-color: var(--white);
    text-align: center;
}

.contato-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
}

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

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer a:hover {
    color: var(--accent-color);
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsividade */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .btn-primary,
    .btn-secondary {
        flex: 1;
        max-width: 220px;
        margin: 0;
        text-align: center;
        padding: 16px 24px;
    }
    
    .hero-stats {
        gap: 25px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .hero-image {
        max-width: 300px;
    }
    
    .dashboard-preview {
        max-width: 280px;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        margin: 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 80px 0 50px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .subtitle {
        font-size: 0.95rem;
    }
    
    .hero-stats {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .hero-image {
        max-width: 250px;
    }
    
    .dashboard-preview {
        max-width: 220px;
    }
    
    .problema-grid,
    .solucao-features,
    .plataforma-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .problema-item,
    .feature,
    .plataforma-card {
        padding: 20px;
    }
}