* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-1: #0b417e; /* azul escuro */
    --color-2: #1a543f; /* verde escuro */
    --color-3: #1b97ba; /* azul claro / destaque */
    --color-4: #53b353; /* verde claro / accent */
    --color-5: #896122; /* marrom/acento secundário */

    --primary: var(--color-3);
    --primary-dark: var(--color-1);
    --secondary: #eaf4fb;
    --text: #202124;
    --text-light: #5f6368;
    --border: #d7e3eb;
    --accent: var(--color-4);
    --accent-dark: var(--color-2);
    --highlight: var(--color-5);
    --integration-bg: rgba(152, 108, 51, 0.28);
    --integration-border: rgba(137, 97, 34, 0.45);
    --success: #1e8449;
    --danger: #d32f2f;
    --spacing: 1rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background-color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Header & Navigation */
.header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 900;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
}

.logo {
    width: 48px;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 44px;
    height: 36px;
    box-sizing: border-box;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    margin: 0;
    transition: transform 0.28s ease, opacity 0.28s ease, background 0.28s ease;
    transform-origin: center;
}

.header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Header-specific logo sizing and hide textual brand in header */
.header .logo {
    width: 120px;
    height: auto;
}

.header .logo-text {
    display: none;
}

/* keep logo-text visible in footer */
.footer .logo-text {
    display: inline-block;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn-login {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: opacity 0.3s;
}

.btn-login:hover {
    opacity: 0.8;
}

.btn-primary {
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 6px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.btn-secondary:hover {
    background: var(--secondary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f0f4f9 0%, #e8f0f9 100%);
}

.hero .container {
    text-align: center;
}

.hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge-icon {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Sections */
section {
    padding: 4rem 0;
}

h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Unique System Section */
.unique-system {
    background: var(--secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* What Controls Section */
.what-controls {
    background: white;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.control-item {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
}

.control-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.1);
}

.control-item h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.control-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Integrations Section */
.integrations {
    background: linear-gradient(135deg, #f0f4f9 0%, #e8f0f9 100%);
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.integration-card {
     background: rgba(214, 156, 72, 0.12);
     padding: 2rem;
     border-radius: 16px;
     text-align: center;
     box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
     border: 1px solid rgba(214, 156, 72, 0.18);
     transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
 }

.integration-card:hover {
     transform: translateY(-3px);
     box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
     background: rgba(214, 156, 72, 0.16);
 }
.integration-logo {
    max-width: 120px;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
    object-fit: contain;
}

.integration-card h4 {
    font-weight: 600;
    color: var(--accent-dark);
}

/* Gateways Section */
.gateways {
    background: white;
}

.gateways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.gateway-card {
    background: rgba(214, 156, 72, 0.12);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(214, 156, 72, 0.18);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.gateway-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    background: rgba(214, 156, 72, 0.16);
}

.gateway-logo {
    max-width: 120px;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
    object-fit: contain;
}

.gateway-card h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.gateway-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Pricing Section */
.pricing {
    background: var(--secondary);
}

.pricing-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pricing-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.pricing-info p {
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.pricing-info em {
    color: #999;
    font-size: 0.85rem;
}

/* Tables */
.pricing-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.table-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table-container h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table thead {
    background: var(--secondary);
}

.pricing-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border: 1px solid var(--border);
}

.pricing-table td {
    padding: 0.75rem;
    border: 1px solid var(--border);
    color: var(--text-light);
}

.pricing-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

/* Price Calculator */
.price-calculator {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.price-calculator h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.price-calculator > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.calculator-form {
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-group small {
    color: var(--text-light);
    font-size: 0.85rem;
}

.calculator-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.result-card h4 {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.result-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.calculator-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.breakdown-item {
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: 8px;
}

.breakdown-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.breakdown-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.calculator-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.summary-box {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-box.highlight {
    background: var(--primary);
    color: white;
}

.summary-box.highlight strong {
    color: white;
}

.summary-box span {
    color: var(--text-light);
    font-weight: 500;
}

.summary-box strong {
    font-size: 1.5rem;
    color: var(--primary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.contact-section {
    background: white;
    padding: 4rem 0;
}

.contact-card {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.contact-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-buttons .btn-primary,
.contact-buttons .btn-secondary {
    min-width: 220px;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.cta-section .btn-secondary {
    background: transparent;
    border-color: white;
    color: white;
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 72px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links,
    .nav-buttons {
        display: none;
        width: 100%;
    }

    .header.nav-open .nav-links,
    .header.nav-open .nav-buttons {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        justify-content: center;
        padding-top: 1rem;
    }

    .nav-buttons {
        flex-direction: column;
        padding-bottom: 1rem;
        gap: 0.75rem;
    }

    .btn-login,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
    }

    h2 {
        font-size: 1.75rem;
    }

    .features-grid,
    .controls-grid,
    .integrations-grid,
    .gateways-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile horizontal carousel for integrations and gateways */
    .integrations-grid,
    .gateways-grid {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .integrations-grid::-webkit-scrollbar,
    .gateways-grid::-webkit-scrollbar {
        height: 8px;
    }

    .integrations-grid::-webkit-scrollbar-thumb,
    .gateways-grid::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.08);
        border-radius: 8px;
    }

    .integration-card,
    .gateway-card {
        min-width: 220px;
        flex: 0 0 auto;
        scroll-snap-align: center;
    }

    /* Carousel controls (mobile) */
    .carousel-wrapper {
        position: relative;
        display: flex;
        align-items: center;
    }

    .carousel-btn {
        display: none;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255,255,255,0.85);
        border: 1px solid rgba(0,0,0,0.06);
        color: var(--text);
        width: 38px;
        height: 38px;
        border-radius: 999px;
        align-items: center;
        justify-content: center;
        padding: 6px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(16,24,40,0.06);
        transition: opacity 0.2s, transform 0.15s;
        z-index: 50;
        opacity: 0.95;
    }

    .carousel-btn svg {
        display: block;
        width: 18px;
        height: 18px;
    }

    .carousel-prev {
        left: 6px;
    }

    .carousel-next {
        right: 6px;
    }

    .carousel-btn:active {
        transform: translateY(-50%) scale(0.96);
    }

    .carousel-btn[disabled] {
        opacity: 0.35;
        cursor: default;
        pointer-events: none;
    }

    /* show controls on small viewports only */
    @media (max-width: 768px) {
        .carousel-btn { display: inline-flex; }
    }

    .pricing-tables {
        grid-template-columns: 1fr;
    }

    .calculator-summary {
        grid-template-columns: 1fr;
    }

    .summary-box {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons a {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero-features {
        gap: 1rem;
    }

    .feature-card,
    .control-item,
    .integration-card,
    .gateway-card,
    .table-container,
    .price-calculator,
    .contact-card {
        padding: 1.5rem;
    }

    .integration-logo,
    .gateway-logo {
        max-width: 80px;
        margin-bottom: 0.75rem;
    }

    .pricing-tabs,
    .pricing-tables,
    .calculator-results,
    .calculator-breakdown,
    .calculator-summary {
        grid-template-columns: 1fr;
    }

    .pricing-tables {
        gap: 1rem;
    }

    .summary-box {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .contact-card {
        max-width: 100%;
        padding: 2rem;
    }

    .contact-buttons .btn-primary,
    .contact-buttons .btn-secondary {
        min-width: 0;
        width: 100%;
    }

    .nav-brand {
        width: 100%;
        justify-content: center;
        display: flex;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar .container,
    .hero .container,
    .contact-card,
    .price-calculator,
    .table-container,
    .footer-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle,
    .section-subtitle,
    .cta-section p,
    .contact-card p {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-login {
        padding: 0.85rem 1rem;
    }

    .hero-buttons,
    .cta-buttons,
    .contact-buttons,
    .footer-content {
        gap: 0.75rem;
    }

    .pricing-table th,
    .pricing-table td {
        font-size: 0.9rem;
    }
}
