:root {
    --deep-purple: #1F062A;
    --medium-purple: #3C0D45;
    --light-lilac: #A385D7;
    --accent-yellow: #F2C800;
    --cream: #F7F0D9;
    --white: #FFFFFF;
    --border-radius: 24px;
    --transition: all 0.3s ease;
}

::selection {
    background-color: var(--accent-yellow);
    color: var(--deep-purple);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--deep-purple);
    color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Krona One', sans-serif;
    font-weight: normal;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 5rem 0;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(31, 6, 42, 0.9);
    backdrop-filter: blur(10px);
    height: 80px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    width: 120px;
    height: 40px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.logo span {
    color: var(--accent-yellow);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--cream);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-yellow);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-yellow);
    transition: var(--transition);
}

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

.nav-cta {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--deep-purple);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(242, 200, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--cream);
    border: 2px solid var(--cream);
}

.btn-secondary:hover {
    background-color: rgba(247, 240, 217, 0.1);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--cream);
}

/* Imagem Heros */
.microcopy {
    font-size: 0.9rem;
    color: var(--light-lilac);
}

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

.hero-image::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="%23F2C800" stroke-width="0.4" /></svg>');
    background-size: 30px 30px;
    opacity: 0.2;
    z-index: -1;
}

.mockup-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

/* Footer */
footer {
    background: var(--medium-purple);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    color: var(--white);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--accent-yellow);
    bottom: -8px;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--cream);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-yellow);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--cream);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-yellow);
    color: var(--deep-purple);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-lilac);
}

/* Tooltip container */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    z-index: 1000;
}

/* Tooltip box */
.tooltip .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background-color: var(--cream);
    color: var(--deep-purple);
    text-align: center;
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
    white-space: nowrap;
    font-size: 0.9rem;
    z-index: 1000;
}

/* Triângulo */
.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--cream) transparent transparent transparent;
}

/* Mostrar ao passar o mouse */
.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) scale(1);
    bottom: 150%;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .logo img {
        width: 5rem;
    }

    .hero-image {
        display: none;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .about-content {
        flex-direction: column;
    }

    .hero-cta {
        justify-content: center;
    }
}

/* Overlay para fechar o menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

@media (max-width: 768px) {

    /* Menu desktop - esconder no mobile */
    .nav-links,
    .nav-cta {
        display: none;
    }

    /* Menu mobile ativo */
    .nav-links.active,
    .nav-cta.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        background: var(--white);
        border-radius: var(--border-radius);
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }

    /* Links do menu mobile */
    .nav-links.active a {
        font-size: 1.2rem;
        color: var(--deep-purple);
        font-weight: 500;
        text-decoration: none;
        transition: color 0.3s ease;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-links.active a:hover {
        color: var(--accent-yellow);
    }

    /* Botão Orçamento no mobile */
    .nav-cta.active {
        display: none;
    }

    .nav-cta.active .btn-primary {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
        background-color: var(--accent-yellow);
        color: var(--deep-purple);
        border-radius: 12px;
        font-weight: bold;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    /* Mostrar ícone do menu mobile */
    .mobile-menu {
        display: block;
        z-index: 1000;
        cursor: pointer;
    }
}

@media (min-width: 769px) {

    /* Menu desktop - mostrar */
    .nav-links,
    .nav-cta {
        display: flex;
    }

    .mobile-menu {
        display: none;
    }

    .menu-overlay {
        display: none;
    }
}

@media (max-width: 768px) {

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

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

    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }

    .newsletter-input,
    .newsletter-btn {
        border-radius: 50px;
        width: 100%;
    }
}