/* 1. VARIÁVEIS E ESTILOS GLOBAIS */
:root {
    --purple-light: #f3f0ff;
    --purple: #7f56d9;
    --purple-dark: #6941c6;
    --purple-gradient: linear-gradient(90deg, #7f56d9, #9e77ed);
    --white: #ffffff;
    --gray-100: #f9fafb;
    --gray-300: #d0d5dd;
    --gray-500: #667085;
    --gray-900: #101828;
    --shadow: 0px 8px 16px rgba(17, 17, 26, 0.05), 0px 4px 8px rgba(17, 17, 26, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-900);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 120px 0;
    text-align: center;
}

h1 { font-size: 3.5rem; line-height: 1.2; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
    color: var(--gray-500);
    line-height: 1.6;
}

.subtitle {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 16px auto 0 auto;
}

.highlight {
    color: var(--purple);
}

.pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    background-color: var(--purple-light);
    color: var(--purple);
    font-weight: 500;
    margin-bottom: 24px;
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: grid;
    place-content: center;
    background-color: var(--purple-light);
    color: var(--purple);
    font-size: 28px;
    margin-bottom: 20px;
}

/* 2. COMPONENTES REUTILIZÁVEIS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.btn-primary {
    background: var(--purple-gradient);
    color: var(--white);
    border-color: var(--purple);
}
.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: var(--white);
    color: var(--gray-900);
    border-color: var(--gray-300);
}
.btn-secondary:hover {
    background-color: var(--purple-light);
    border-color: var(--purple-light);
}

.card {
    background-color: var(--white);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease-in-out;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 12px 24px rgba(17, 17, 26, 0.1), 0px 8px 16px rgba(17, 17, 26, 0.1);
}

/* 3. HEADER E NAVEGAÇÃO */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 24px;
    position: relative;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.25rem;
}
.logo i {
    font-size: 28px;
    width: 40px;
    height: 40px;
    display: grid;
    place-content: center;
    background: var(--purple-gradient);
    color: var(--white);
    border-radius: 8px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 32px;
}
header nav {
    display: flex;
    gap: 32px;
}
header nav a {
    font-weight: 500;
    color: var(--gray-500);
    transition: color 0.2s;
}
header nav a:hover {
    color: var(--purple);
}
.hamburger {
    display: none; /* Escondido no desktop */
    background: none;
    border: none;
    font-size: 28px;
    color: var(--gray-900);
    cursor: pointer;
    z-index: 1001;
}

/* 4. SEÇÕES */
#hero { padding: 60px 0; }
.hero-buttons { margin-top: 40px; display: flex; justify-content: center; gap: 16px; }
#features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-bottom: 32px; }
#features .card { display: flex; flex-direction: column; align-items: center; }
#stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 32px; }
.stat-card { align-items: center; }
.stat-card h2 { font-size: 3rem; color: var(--purple); }
.stat-card p { font-weight: 500; }

#portfolio { padding-bottom: 160px; }
#portfolio h2 { margin-bottom: 16px; }
.apps-grid { margin-top: 64px; display: flex; justify-content: center; }
.app-card { text-align: left; width: 100%; max-width: 380px; }
.app-header { display: flex; align-items: center; gap: 16px; }
.app-icon-img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.app-category { font-size: 0.875rem; color: var(--purple); font-weight: 500; }
.app-description { margin: 16px 0; min-height: 50px; }
.app-stats { display: flex; gap: 24px; color: var(--gray-500); font-weight: 500; margin-bottom: 24px; }
.app-stats span { display: flex; align-items: center; gap: 6px; }
.app-stats i { color: #f5c518; }
.app-buttons { display: flex; gap: 12px; }
.app-buttons .btn { width: 100%; }

.about-card { max-width: 900px; margin: 0 auto; text-align: left; }
.about-card .pill-tag { margin-bottom: 32px; }
.about-card h2 { margin-bottom: 24px; }
.about-card p { margin-bottom: 16px; }
.about-card p:last-child { margin-bottom: 0; }

#contact h2 { margin-bottom: 16px; }
.contact-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.contact-card { display: flex; flex-direction: column; align-items: center; }
.contact-card p { margin-top: 4px; margin-bottom: 12px; }
.contact-card a { font-weight: 600; color: var(--purple); text-decoration: underline; }
.btn-large { margin-top: 48px; padding: 16px 32px; font-size: 1.125rem; }

/* 5. FOOTER */
footer { background-color: var(--white); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 64px; text-align: left; }
.footer-col .logo { margin-bottom: 24px; }
.footer-col p { margin-bottom: 16px; }
.footer-col > span { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--gray-900); }
.footer-col > span i { color: var(--purple); }
.footer-col h4 { margin-bottom: 24px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: var(--gray-500); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--purple); }
.copyright { margin-top: 64px; padding: 32px 20px; border-top: 1px solid var(--gray-300); display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; color: var(--gray-500); }

/* 6. RESPONSIVIDADE (MOBILE) */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
    section { padding: 80px 0; }

    /* Menu Hamburger */
    .hamburger { display: block; }
    .header-right {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: center;
        padding: 24px 0;
        gap: 20px;
        z-index: 1000;
    }
    .header-right.active {
        display: flex;
    }
    header nav {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* Grids de Cards */
    #features, #stats, .contact-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        text-align: center;
    }

    .copyright {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}