:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --card-background: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --input-border: #e2e8f0;
    --label-color: #64748b;
    --toggle-bg: rgba(255, 255, 255, 0.9);
    --toggle-border: rgba(226, 232, 240, 0.6);
    --toggle-shadow: rgba(0, 0, 0, 0.1);
    --card-border: rgba(226, 232, 240, 0.8);
    --button-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    --button-hover: linear-gradient(135deg, #5558e6, #7c4ef0);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.12);
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-hover: linear-gradient(135deg, #5558e6, #7c4ef0);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    --navbar-bg: rgba(248, 250, 252, 0.8);
    --footer-bg: #1e293b;
    --footer-text: #e2e8f0;
}

[data-theme="dark"] {
    --primary-color: #818cf8;
    --secondary-color: #a78bfa;
    --background-color: #0f172a;
    --text-color: #f1f5f9;
    --card-background: rgba(30, 41, 59, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --input-border: #334155;
    --label-color: #94a3b8;
    --toggle-bg: rgba(30, 41, 59, 0.9);
    --toggle-border: rgba(75, 85, 99, 0.6);
    --toggle-shadow: rgba(0, 0, 0, 0.4);
    --card-border: rgba(51, 65, 85, 0.8);
    --button-gradient: linear-gradient(135deg, #818cf8, #a78bfa);
    --button-hover: linear-gradient(135deg, #737ce9, #9b7ef5);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.35);
    --gradient-primary: linear-gradient(135deg, #818cf8, #a78bfa);
    --gradient-hover: linear-gradient(135deg, #737ce9, #9b7ef5);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
    --navbar-bg: rgba(15, 23, 42, 0.9);
    --footer-bg: #0f172a;
    --footer-text: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
    min-height: 100vh;
}

.theme-transition * {
    transition: background-color 0.5s ease,
        color 0.5s ease,
        border-color 0.5s ease,
        box-shadow 0.5s ease;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

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

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: var(--gradient-primary);
    color: white;
}

.nav-cta {
    background: var(--gradient-primary);
    color: white !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

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

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

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    position: fixed;
    top: 5rem;
    right: 2rem;
    background: var(--toggle-bg);
    border: 2px solid var(--toggle-border);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    padding: 0.5rem;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(12deg);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.theme-toggle:active {
    transform: scale(0.95) rotate(-12deg);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 80px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-background);
    border: 1px solid var(--card-border);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    width: fit-content;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--label-color);
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--card-background);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--label-color);
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: float 3s ease-in-out infinite;
}

.floating-card span {
    font-size: 2rem;
}

.floating-card p {
    font-weight: 600;
    font-size: 0.875rem;
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 10%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10%;
    left: 30%;
    animation-delay: 2s;
}

/* ===== SECTIONS ===== */
.section {
    padding: 6rem 0;
}

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

.section-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--label-color);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SOBRE SECTION ===== */
.sobre-content {
    max-width: 900px;
    margin: 0 auto;
}

.sobre-intro {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.sobre-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.sobre-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--card-border);
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sobre-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.sobre-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.sobre-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.sobre-card p {
    color: var(--label-color);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== SERVICOS SECTION ===== */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.servico-card {
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.servico-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.servico-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.servico-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.servico-card>p {
    color: var(--label-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.servico-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.servico-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.servico-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 700;
}

/* ===== COMO FUNCIONA SECTION ===== */
.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 220px;
    padding: 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--label-color);
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    margin-top: 30px;
    opacity: 0.5;
}

/* ===== BENEFICIOS SECTION ===== */
.beneficios-section {
    background: var(--card-background);
    border-radius: 2rem;
    padding: 6rem 3rem;
    border: 1px solid var(--card-border);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.benefit-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--card-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.benefit-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefit-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.7;
}

/* ===== CONTATO SECTION ===== */
.contato-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.form-container {
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    background: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
    color: var(--label-color);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.submit-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.info-icon {
    font-size: 2rem;
}

.info-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--label-color);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 0 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-section h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand .logo-icon {
    font-size: 2rem;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--primary-color);
    opacity: 1;
    padding-left: 5px;
}

.footer-company .company-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-company .company-info p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.footer-company .company-info strong {
    color: var(--primary-color);
}

.footer-company .razao-social {
    font-size: 0.85rem;
    opacity: 0.9;
    word-break: break-word;
}

.footer-legal {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-legal-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-legal a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.footer-legal .divider {
    color: var(--footer-text);
    opacity: 0.4;
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer-cnpj-mobile {
    display: none;
    margin-top: 0.5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
    }

    .hero-visual {
        display: none;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .sobre-cards {
        grid-template-columns: 1fr;
    }

    .servicos-grid {
        grid-template-columns: 1fr;
    }

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

    .contato-container {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--navbar-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid var(--card-border);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .beneficios-section {
        padding: 4rem 1.5rem;
        border-radius: 1rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand .footer-logo {
        justify-content: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-cnpj-mobile {
        display: block;
    }

    .theme-toggle {
        top: auto;
        bottom: 2rem;
        right: 1rem;
    }
}

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

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .form-container {
        padding: 1.5rem;
    }
}