:root {
    --bg-color: #0F172A;
    --card-bg: #1E293B; 
    --text-main: #F8FAFC; 
    --text-muted: #94A3B8;
    --primary-purple: #8B5CF6;
    --secondary-green: #10B981;
    --secondary-green-hover: #057f58;
    --tertiary-blue: #38BDF8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, .btn-cta {
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.navbar ul {
    margin-right: 30px;
    list-style: none;
    display: flex;
    gap: 2rem;
}

/* Animação de aproximação da logo */
@keyframes logo-approach {
    from {
        opacity: 0;
        transform: scale(0.82) translateY(-6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.logo-animate {
    animation: logo-approach 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .logo-animate {
        animation: none;
    }
}

/* Botão CTA no header (desktop) */
#nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-cta a.btn-cta {
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.navbar ul a {
    text-decoration: none;
    color: var(--text-main);
    position: relative;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.navbar ul a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 1.1rem;
    right: 1.1rem;
    background-color: var(--tertiary-blue);
    transition: width 0.3s ease-in-out;
}

.navbar ul a:hover {
    color: var(--tertiary-blue);
}

.navbar ul a:hover::after {
    width: calc(100% - 2.2rem);
}

.navbar ul a.active {
    color: var(--tertiary-blue);
    border-color: var(--tertiary-blue);
    animation: nav-pulse 2.2s ease-in-out infinite;
}

.navbar ul a.active::after {
    width: 0 !important;
}

@keyframes nav-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.45);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(56, 189, 248, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar ul a.active {
        animation: none;
    }
}

/* Botão hambúrguer (3 barrinhas), só aparece no mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 19px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 210;
}

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

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(4, 7, 15, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 150;
}

.nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

body.nav-open {
    overflow: hidden;
}

.hero-proof {
    display: flex;
}

.hero-proof span{
    margin-bottom: 25px;
    margin-left: 10px;
    padding: 3px;
    font-size: 14px;
    color: var(--secondary-green);
    border: 2px solid var(--secondary-green-hover);
    border-radius: 12px;
}

.btn-cta,
.btn-secondary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-block;
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--primary-purple);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.4s ease, transform 0.2s ease;
}

.btn-cta::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 0%;
    background-color: var(--secondary-green-hover);
    z-index: -1;
    transition: width 0.45s ease;
}

.btn-cta:hover,
.btn-secondary:hover {
    color: #fff;
    transform: translateY(-2px);
}

.btn-cta:hover::before,
.btn-secondary:hover::before {
    width: 100%;
}

/* Responsividade Básica (chrome global: navbar) */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .navbar .logo img {
        width: 250px !important;
    }

    .hero-content {
        margin-top: -50px;
    }

    #nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(300px, 80vw);
        background-color: #0F172A;
        border-left: 1px solid rgba(139, 92, 246, 0.25);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.45);
        padding: 6rem 2rem 2rem;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 200;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    #nav-menu.is-open {
        transform: translateX(0);
    }

    .navbar ul {
        
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .navbar ul a {
        display: block;
        width: 100%;
        padding: 0.85rem 1.1rem;
    }

    .navbar ul a::after {
        display: none;
    }

    .nav-cta {
        margin-top: 1rem;
    }

    .nav-cta a {
        display: block;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    #nav-menu {
        transition: none;
    }
}

@media (max-width: 400px) {
    .navbar .logo img {
        width: 150px !important;
    }
}
