/* Global Styles & Variables */
:root {
    --primary-color: #0d253f;
    /* Deep Dark Blue */
    --secondary-color: #0066cc;
    /* Bright Blue Accent */
    --accent-color: #00d4ff;
    /* Light Tech Blue */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --spacing-unit: 1rem;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.section-padding {
    padding: 4rem 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Flexbox Grid */
.grid {
    display: grid;
    gap: 2rem;
}

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

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

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

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav ul {
    display: none;
    /* Mobile hidden by default */
}

@media (min-width: 768px) {
    nav ul {
        display: flex;
        gap: 2rem;
        align-items: center;
    }
}

.mobile-menu-btn {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    /* Top padding for fixed header */
    background: linear-gradient(135deg, #f8f9fa 0%, #eef2f6 100%);
    position: relative;
    overflow: hidden;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-features li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.about-features li::before {
    content: "✓";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Features Cards */
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* How It Works */
.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* Security & Developers */
.security {
    background-color: var(--primary-color);
    color: var(--white);
}

.security h2,
.security p {
    color: var(--white);
}

.developers-section {
    background-color: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}

.code-snippet {
    background-color: #1e293b;
    color: #cbd5e1;
    padding: 1.5rem;
    border-radius: var(--radius);
    font-family: monospace;
    overflow-x: auto;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* CTA */
.cta-final {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    text-align: center;
}

.cta-final h2 {
    color: var(--white);
}

.cta-final p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

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

.btn-white:hover {
    background-color: #f0f0f0;
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #cbd5e1;
    padding: 3rem 0;
    font-size: 0.9rem;
}

footer h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

footer a {
    display: block;
    margin-bottom: 0.5rem;
    color: #94a3b8;
}

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

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

/* Responsive Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    z-index: 999;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-overlay ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-size: 1.5rem;
    text-align: center;
}

.close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header Scrolled State */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay - ensure it covers everything */
.mobile-menu-overlay {
    z-index: 2000;
}

/* Ensure body doesn't scroll when menu is open */
body.no-scroll {
    overflow: hidden;
}

/* Logo Styles */
.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.white-logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .logo-img {
        height: 36px;
    }
}

/* New Features Additions */
.feature-advanced {
    background: linear-gradient(145deg, var(--white), var(--bg-light));
}

.highlight-feature {
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.15);
}

.highlight-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.highlight-card:hover {
    border-color: var(--accent-color);
}

/* Clientes / Parceiros */
.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logos:hover {
    opacity: 1;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    filter: grayscale(100%);
    transition: filter 0.3s ease, color 0.3s ease;
}

.logo-item:hover {
    filter: grayscale(0%);
    color: var(--secondary-color);
}

.logo-item i {
    font-size: 2.5rem;
}

/* Planos e Preços */
.pricing-grid {
    align-items: center;
}

.pricing-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.plan-desc {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    min-height: 44px;
}

.plan-features {
    text-align: left;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.plan-features li i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.plan-btn {
    width: 100%;
}

/* Glassmorphism e Highlight do Plano Pro */
.pro-plan {
    background: linear-gradient(135deg, rgba(13, 37, 63, 0.95), rgba(0, 102, 204, 0.95));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
    transform: scale(1.05);
    z-index: 10;
}

.pro-plan:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.text-white {
    color: var(--white) !important;
}

.extra-users-note {
    display: inline-block;
    background-color: #f1f5f9;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .pro-plan {
        transform: scale(1);
    }

    .pro-plan:hover {
        transform: translateY(-5px);
    }
}

/* FAQ Accordion */
.faq-section {
    background-color: var(--primary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.faq-question i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    color: #cbd5e1;
    padding: 1.5rem;
    margin: 0;
}

/* Contact Form */
.form-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.lead-form .form-group {
    margin-bottom: 1.25rem;
}

.lead-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.lead-form input,
.lead-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #f8fafc;
}

.lead-form input:focus,
.lead-form select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    background-color: var(--white);
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 2.5rem;
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 2px solid transparent;
}

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

.btn-white:hover {
    background-color: #f0f0f0;
    color: var(--secondary-color);
}

/* Modifying btn-white inside form context */
.form-container .btn-white {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
}

.form-container .btn-white:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid var(--white);
    width: 20px;
    height: 20px;
    -webkit-animation: spin 1s linear infinite;
    /* Safari */
    animation: spin 1s linear infinite;
    position: absolute;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.client-logos:hover {
    opacity: 1;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    filter: grayscale(100%);
    transition: filter 0.3s ease, color 0.3s ease;
}

.logo-item:hover {
    filter: grayscale(0%);
    color: var(--secondary-color);
}

.logo-item i {
    font-size: 2.5rem;
}

/* Planos e Preços */
.pricing-grid {
    align-items: center;
}

.pricing-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.plan-desc {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    min-height: 44px;
}

.plan-features {
    text-align: left;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.plan-features li i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.plan-btn {
    width: 100%;
}

/* Glassmorphism e Highlight do Plano Pro */
.pro-plan {
    background: linear-gradient(135deg, rgba(13, 37, 63, 0.95), rgba(0, 102, 204, 0.95));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
    transform: scale(1.05);
    z-index: 10;
}

.pro-plan:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.text-white {
    color: var(--white) !important;
}

.extra-users-note {
    display: inline-block;
    background-color: #f1f5f9;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .pro-plan {
        transform: scale(1);
    }

    .pro-plan:hover {
        transform: translateY(-5px);
    }
}

/* FAQ Accordion */
.faq-section {
    background-color: var(--primary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.faq-question i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    color: #cbd5e1;
    padding: 1.5rem;
    margin: 0;
}