@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===========================
   1. CSS Custom Properties
   =========================== */

:root {
    --bg-primary: #F8FAFC;
    --bg-secondary: #EFF4F8;
    --bg-card: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --accent: #083B87;
    --accent-light: #5483B3;
    --accent-hover: #062D66;
    --accent-surface: #E8F0FE;
    --border: #CBD5E1;
    --cta-gradient: linear-gradient(135deg, #083B87, #5483B3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-full: 999px;
    --nav-bg: rgba(248, 250, 252, 0.85);
    --nav-scrolled: rgba(248, 250, 252, 0.97);
}

[data-theme="dark"] {
    --bg-primary: #0B1120;
    --bg-secondary: #111827;
    --bg-card: #1E293B;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --accent: #5483B3;
    --accent-light: #7BA4CF;
    --accent-hover: #3B6A9B;
    --accent-surface: #172554;
    --border: #334155;
    --cta-gradient: linear-gradient(135deg, #5483B3, #083B87);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --nav-bg: rgba(11, 17, 32, 0.85);
    --nav-scrolled: rgba(11, 17, 32, 0.97);
}

/* ===========================
   2. Reset & Base
   =========================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

input {
    font-family: inherit;
    border: none;
    outline: none;
}

/* ===========================
   3. Layout
   =========================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: 5rem 0;
}

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

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

/* ===========================
   4. Buttons
   =========================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--cta-gradient);
    border-radius: var(--radius-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
    opacity: 0.92;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: #fff;
    transform: scale(1.03);
}

/* ===========================
   5. Badge
   =========================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    background-color: var(--accent-surface);
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.badge i {
    font-size: 1rem;
}

/* ===========================
   6. Cards
   =========================== */

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    color: #fff;
    background: var(--cta-gradient);
    border-radius: 12px;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ===========================
   7. Navigation
   =========================== */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background-color: var(--nav-scrolled);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-logo img {
    height: 28px;
    width: auto;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-cta {
    display: none;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: background-color 0.3s, transform 0.3s;
    font-size: 1.15rem;
}

.theme-toggle:hover {
    background-color: var(--accent-surface);
    transform: rotate(30deg);
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 999;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: right 0.35s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

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

.mobile-menu-header img {
    height: 24px;
    width: auto;
}

.mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-link {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: background-color 0.2s;
}

.mobile-link:hover {
    background-color: var(--bg-secondary);
}

.mobile-cta {
    text-align: center;
    margin-top: auto;
}

body.menu-open {
    overflow: hidden;
}

/* ===========================
   8. Hero
   =========================== */

.hero {
    padding-top: 7rem;
    padding-bottom: 4rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.text-accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 520px;
}

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

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

.hero-graphic {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-ring {
    width: 260px;
    height: 260px;
    border: 3px solid var(--accent-light);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse-ring 4s ease-in-out infinite;
}

.hero-ring--sm {
    position: absolute;
    width: 180px;
    height: 180px;
    border-width: 2px;
    opacity: 0.15;
    animation-delay: 1s;
}

.hero-icon {
    position: absolute;
    font-size: 4rem;
    color: var(--accent);
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.08); opacity: 0.35; }
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.blur-1 {
    width: 300px;
    height: 300px;
    background-color: var(--accent);
    opacity: 0.12;
    top: -40px;
    right: -60px;
    animation: blur-pulse 5s ease-in-out infinite;
}

.blur-2 {
    width: 200px;
    height: 200px;
    background-color: var(--accent-light);
    opacity: 0.1;
    bottom: -30px;
    left: -40px;
    animation: blur-pulse 5s ease-in-out infinite 1.5s;
}

@keyframes blur-pulse {
    0%, 100% { opacity: 0.12; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.15); }
}

/* ===========================
   9. Sobre
   =========================== */

.sobre {
    background-color: var(--bg-secondary);
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* ===========================
   10. Como Funciona
   =========================== */

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    counter-reset: step;
}

.step-card {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: var(--cta-gradient);
    border-radius: 50%;
}

.step-card .card-icon {
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ===========================
   11. Benefícios
   =========================== */

.beneficios {
    background-color: var(--bg-secondary);
}

.beneficios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* ===========================
   12. Diferenciais
   =========================== */

.diferenciais-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.diferencial {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.diferencial-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
    color: var(--accent);
    background: var(--accent-surface);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.diferencial:hover .diferencial-icon {
    transform: scale(1.08);
    background: var(--cta-gradient);
    color: #fff;
}

.diferencial-text h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.diferencial-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ===========================
   13. CTA Section
   =========================== */

.cta-section {
    background: var(--cta-gradient);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.cta-content > p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto 2rem;
}

.cta-form input {
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.25s, background-color 0.25s;
}

.cta-form input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.cta-form input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.cta-form .btn-primary {
    background: #fff;
    color: var(--accent);
    font-weight: 700;
}

.cta-form .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.cta-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.cta-proof strong {
    color: #fff;
}

.cta-avatars {
    display: flex;
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 0.8rem;
    margin-left: -8px;
}

.avatar:first-child {
    margin-left: 0;
}

/* ===========================
   14. FAQ
   =========================== */

.faq-section {
    background-color: var(--bg-secondary);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item.active {
    border-color: var(--accent-light);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.15rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    background: none;
    cursor: pointer;
    transition: color 0.25s;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-arrow {
    font-size: 1.35rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer p {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===========================
   15. Footer
   =========================== */

.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 24px;
    width: auto;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.65;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.footer-col > a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    transition: color 0.25s;
}

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

.socials {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: color 0.25s, background-color 0.25s, border-color 0.25s;
}

.socials a:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.copyright {
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

/* ===========================
   16. Animations (Scroll Reveal)
   =========================== */

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

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

/* ===========================
   17. Responsive — min-width 640px
   =========================== */

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

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

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

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

    .cta-form {
        flex-direction: row;
    }

    .cta-form input {
        flex: 1;
    }
}

/* ===========================
   18. Responsive — min-width 768px
   =========================== */

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

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

    .diferencial--reverse {
        flex-direction: row-reverse;
    }

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

/* ===========================
   19. Responsive — min-width 1024px
   =========================== */

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }

    .nav-cta {
        display: inline-flex;
    }

    .hamburger {
        display: none;
    }

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

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

    .hero {
        padding-top: 9rem;
        padding-bottom: 5rem;
    }
}

/* ===========================
   20. Responsive — min-width 1280px
   =========================== */

@media (min-width: 1280px) {
    .container {
        padding: 0 2rem;
    }

    .nav-container.container {
        padding: 0.5rem 2rem;

    }

    .section {
        padding: 6rem 0;
    }
}
