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

:root {
    --navy-deep: #0F1F3A;
    --navy: #1E3A5F;
    --navy-light: #131b2e;
    --navy-mid: #1a2540;
    --ink: #1A2332;
    --ink-soft: #5A6478;
    --surface-soft: #F5F7FA;
    --white-dim: #D1D9E6;
    --accent-blue: #2563EB;
    --accent-blue-hover: #1D4ED8;
    --logo-gray: #6B7280;
    --border-dark: rgba(255,255,255,0.15);
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    background: #ffffff;
}
:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
    border-radius: 4px;
}
.reveal { transition: opacity 600ms ease-out, transform 600ms ease-out; }
.reveal.pre-reveal { opacity: 0; transform: translateY(20px); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }

/* ── NAV ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    background: transparent;
    border: none;
    height: 72px;
    transition: background 200ms ease-out, box-shadow 200ms ease-out;
}
.navbar.scrolled {
    background: rgba(15,31,58,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
/* Quando a página não tem hero escuro, força fundo navy para o nav ficar legível */
.navbar.solid {
    background: rgba(15,31,58,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
.nav-container {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center;
    padding: 0 48px; height: 72px;
    gap: 32px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: #fff;
    font-family: var(--font-display);
    font-weight: 700; font-size: 1.375rem;
    letter-spacing: -0.01em;
}
.logo img { display: block; height: 32px; width: auto; }
.nav-links {
    display: flex; list-style: none; gap: 32px; align-items: center;
    margin: 0 auto;
}
.nav-links .drawer-actions,
.nav-links .drawer-close-wrapper { display: none; }
.nav-links a {
    display: inline-flex; align-items: center; gap: 4px;
    text-decoration: none; color: #fff;
    font-weight: 500; font-size: 15px;
    opacity: 0.92; transition: opacity 0.2s;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; }
.nav-links a.active { border-bottom: 2px solid var(--accent-blue); padding-bottom: 4px; }
.nav-links a .chev { width: 10px; height: 10px; opacity: 0.7; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-icon-btn {
    display: inline-flex; align-items: center; gap: 8px;
    color: #fff; text-decoration: none;
    font-size: 15px; font-weight: 500;
    opacity: 0.92; transition: opacity 0.2s;
    background: none; border: none; cursor: pointer;
}
.nav-icon-btn:hover { opacity: 1; }
.lang-switcher {
    display: flex; gap: 4px; padding: 3px;
    background: rgba(255,255,255,0.08); border-radius: 8px;
    border: 1px solid var(--border-dark);
}
.lang-btn {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 6px;
    text-decoration: none; font-size: 15px;
    transition: background 0.2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.1); }
.lang-btn.active {
    background: rgba(255,255,255,0.2);
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.5);
}
.btn-login-link {
    color: #fff; text-decoration: none;
    font-size: 15px; font-weight: 500;
    opacity: 0.92; transition: opacity 0.2s;
}
.btn-login-link:hover { opacity: 1; }
.btn-demo {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    background: var(--accent-blue); color: #fff !important;
    border-radius: 8px; font-weight: 600; font-size: 15px;
    text-decoration: none; transition: background 200ms ease-out;
}
.btn-demo:hover { background: var(--accent-blue-hover); }
.mobile-menu-btn {
    display: none; flex-direction: column; gap: 4px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.mobile-menu-btn span {
    width: 22px; height: 2px; background: #fff; transition: 0.3s;
}

/* ── HERO (páginas internas — sem vídeo) ── */
.hero {
    position: relative;
    min-height: 420px;
    display: flex; align-items: center;
    background: var(--navy-deep);
    overflow: hidden;
    padding: 120px 0 80px;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(1000px 500px at 20% 0%, rgba(37,99,235,0.12) 0%, transparent 60%),
        radial-gradient(800px 400px at 80% 100%, rgba(37,99,235,0.18) 0%, transparent 60%),
        linear-gradient(180deg, var(--navy-deep) 0%, #0A1628 100%);
    z-index: 0;
}
.hero-container {
    position: relative; z-index: 2;
    max-width: 1280px; margin: 0 auto;
    padding: 0 48px; width: 100%;
}
.hero-content { max-width: 720px; }
.hero-content.center { margin: 0 auto; text-align: center; }
.eyebrow {
    display: inline-block;
    font-size: 13px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--accent-blue);
    margin-bottom: 20px;
}
.hero-title,
.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 700; line-height: 1.1;
    color: #fff; letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 18px; font-weight: 400;
    color: var(--white-dim);
    line-height: 1.55; margin-bottom: 0;
    max-width: 640px;
}
.hero-content.center .hero-subtitle { margin-left: auto; margin-right: auto; }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-content.center .cta-group { justify-content: center; }

.btn-hero-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px;
    background: var(--accent-blue); color: #fff;
    border-radius: 8px;
    font-weight: 600; font-size: 15px;
    text-decoration: none;
    transition: background 200ms ease-out;
}
.btn-hero-primary svg { transition: transform 200ms ease-out; }
.btn-hero-primary:hover { background: var(--accent-blue-hover); }
.btn-hero-primary:hover svg { transform: translateX(4px); }
.btn-hero-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.4);
    color: #fff; border-radius: 8px;
    font-weight: 600; font-size: 15px;
    text-decoration: none;
    transition: background 200ms ease-out;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.1); }

/* ── SECTION HELPERS ── */
.section {
    padding: 120px 0;
    background: #fff;
}
.section.bg-light { background: var(--surface-soft); }
.section.bg-dark {
    background: var(--navy-deep);
    color: #fff;
}
.section-header {
    text-align: left;
    max-width: 680px;
    margin-bottom: 56px;
}
.section-header.center {
    text-align: center;
    margin-left: auto; margin-right: auto;
}
.section-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 13px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--accent-blue); margin-bottom: 16px;
}
.section-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700; color: var(--ink);
    letter-spacing: -0.02em; line-height: 1.15;
    margin-bottom: 16px;
}
.section-desc {
    font-size: 17px; color: var(--ink-soft);
    max-width: 620px; line-height: 1.6;
}
.section-header.center .section-desc {
    margin-left: auto; margin-right: auto;
}

/* ── CARD (genérico, reutilizável) ── */
.card {
    background: #fff;
    border: 1px solid #E5E9F0;
    border-radius: 16px;
    padding: 32px;
    transition: border-color 200ms ease-out, transform 200ms ease-out, box-shadow 200ms ease-out;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15,31,58,0.06);
    border-color: var(--accent-blue);
}
.card h2, .card h3 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.card h2 { font-size: 22px; }
.card h3 { font-size: 18px; }
.card p {
    color: var(--ink-soft);
    line-height: 1.65;
    font-size: 15px;
}
.card .card-icon {
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; margin-bottom: 20px;
    background: rgba(37,99,235,0.1);
    color: var(--accent-blue);
}
.card .card-icon.gradient-bg {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: #fff;
}

/* ── GRIDS / STATS ── */
.grid-3 {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.grid-2 {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat-item {
    text-align: center;
    padding: 32px 16px;
}
.stat-value {
    font-family: var(--font-display);
    font-size: 56px; font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.gradient-text {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.stat-label {
    font-size: 15px; color: var(--ink-soft);
    font-weight: 500;
}

/* ── CTA BLOCK ── */
.cta-section {
    padding: 96px 0;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 50%, #1E40AF 100%);
    color: #fff;
    text-align: center;
}
.cta-content h2 {
    font-family: var(--font-display);
    font-size: 36px; font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: #fff;
}
.cta-content p {
    font-size: 18px; opacity: 0.92;
    max-width: 600px; margin: 0 auto 32px;
}
.btn-white {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    background: #fff;
    color: var(--navy-deep) !important;
    border-radius: 8px;
    font-weight: 600; font-size: 16px;
    text-decoration: none;
    transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

/* ── FORMS ── */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 13px; font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}
.form-input,
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E5E9F0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}
.form-input:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px;
    border: none; border-radius: 8px;
    font-family: inherit; font-weight: 600; font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: background 200ms ease-out, transform 200ms ease-out;
}
.btn-primary {
    background: var(--accent-blue);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-blue-hover); }
.btn-block { width: 100%; }

.success-message {
    text-align: center; padding: 32px 24px;
    background: rgba(37,99,235,0.08);
    border: 1px solid rgba(37,99,235,0.25);
    border-radius: 12px;
    margin-top: 16px;
}
.success-message svg {
    color: var(--accent-blue);
    margin-bottom: 12px; width: 48px; height: 48px;
}
.success-message h3 {
    font-family: var(--font-display);
    font-size: 20px; font-weight: 600;
    color: var(--ink); margin-bottom: 6px;
}
.success-message p { color: var(--ink-soft); font-size: 14px; }

/* ── FOOTER (premium) ── */
.footer {
    background: #0A1628;
    padding: 0;
    border-top: 4px solid var(--accent-blue);
}
.footer-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 64px 48px 32px;
}
.footer-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px; flex-wrap: wrap;
    padding-bottom: 48px;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { display: inline-flex; align-items: center; text-decoration: none; }
.footer-logo img { height: 32px; width: auto; display: block; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}
.footer-col h4 {
    color: #fff;
    font-size: 14px; font-weight: 600;
    margin-bottom: 16px;
}
.footer-col ul {
    list-style: none; display: flex; flex-direction: column; gap: 10px;
}
.footer-col a {
    font-size: 14px; color: var(--white-dim);
    text-decoration: none;
    transition: color 200ms ease-out;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px; align-items: start;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-meta {
    display: flex; flex-direction: column; gap: 6px;
    font-size: 13px; color: #8B95A7;
    line-height: 1.5;
}
.footer-meta strong { color: var(--white-dim); font-weight: 500; }
.footer-contact {
    display: flex; flex-direction: column; gap: 12px;
    align-items: flex-end;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--white-dim);
    transition: background 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out;
}
.footer-social a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}
.footer-phone {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--white-dim);
    text-decoration: none;
    font-weight: 500;
}
.footer-phone:hover { color: #fff; }

/* ── WHATSAPP ── */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px;
    width: 56px; height: 56px; background: #25D366;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
    z-index: 999; transition: all 0.3s;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .nav-container { padding: 0 24px; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-container { padding: 0 24px; gap: 16px; }
    .nav-links { display: none; }
    .nav-actions .nav-icon-btn,
    .nav-actions .btn-login-link,
    .nav-actions .lang-switcher,
    .nav-actions .btn-demo { display: none; }
    .mobile-menu-btn { display: flex; margin-left: auto; position: relative; z-index: 1002; }

    .hero { padding: 110px 0 60px; min-height: 360px; }
    .hero-container { padding: 0 24px; }
    .hero-content h1, .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 16px; }
    .cta-group { flex-direction: column; }
    .cta-group a { width: 100%; justify-content: center; }

    .section { padding: 72px 0; }
    .section-title { font-size: 30px; }
    .section-desc { font-size: 16px; }
    .stat-value { font-size: 44px; }

    .footer-inner { padding: 48px 24px 24px; }
    .footer-header { padding-bottom: 32px; margin-bottom: 32px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
    .footer-bottom { grid-template-columns: 1fr; gap: 24px; }
    .footer-contact { align-items: flex-start; }

    .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

/* Mobile drawer */
.mobile-drawer-close {
    display: none;
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; cursor: pointer;
    color: #fff; padding: 8px;
}
@media (max-width: 768px) {
    .nav-links.active {
        display: flex; flex-direction: column;
        align-items: flex-start;
        position: fixed; top: 0; right: 0;
        width: 85%; max-width: 340px; height: 100vh;
        background: var(--navy-deep);
        padding: 80px 32px 32px;
        gap: 24px; margin: 0;
        box-shadow: -8px 0 24px rgba(0,0,0,0.3);
        z-index: 1001;
        overflow-y: auto;
        animation: drawerIn 240ms ease-out;
    }
    .nav-links.active a { font-size: 18px; color: #fff; }
    .nav-links.active a .chev { display: none; }
    .nav-links.active .drawer-close-wrapper {
        display: block;
        position: absolute; top: 20px; right: 20px;
    }
    .nav-links.active .drawer-actions {
        list-style: none;
        display: flex; flex-direction: column;
        gap: 12px; width: 100%;
        margin-top: 16px;
        padding-top: 24px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links.active .drawer-actions a {
        display: inline-flex; width: fit-content;
        color: var(--white-dim); font-size: 16px;
    }
    .nav-links.active .drawer-actions .btn-demo {
        background: var(--accent-blue); color: #fff;
        padding: 10px 20px; border-radius: 8px;
        font-weight: 600;
    }
    .nav-links.active .mobile-drawer-close { display: flex; }
    body.menu-open { overflow: hidden; }
    body.menu-open::before {
        content: '';
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }
}
@keyframes drawerIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
