/* VARIABLES */
:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-sec: #888888;
    --text-subtle: #9a9a9a;

    --border-color: rgba(255, 255, 255, 0.10);
    --border-light: rgba(255, 255, 255, 0.15);

    --font-primary: 'Inter', sans-serif;

    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.3s ease;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Garantia de preto absoluto em tudo */
html,
body {
    background: #000000;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

p {
    line-height: 1.6;
    color: var(--text-sec);
}

.text-glow {
    color: #fff;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.30);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

.mb-large {
    margin-bottom: 4rem;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.05rem 2.7rem;
    font-weight: 500;
    border-radius: 2px;
    transition: var(--transition-fast);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-size: 0.85rem;
}

.btn:focus-visible,
.nav-cta:focus-visible,
.floating-cta:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
}

.btn-primary {
    background: #ffffff;
    color: #000;
    border: 1px solid #ffffff;
    padding: 1.1rem 3rem;
    letter-spacing: 0.12em;
}

.btn-primary:hover {
    background: #e8e8e8;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.8rem 5%;
    z-index: 100;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-sec);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: #ffffff;
}

/* CTA discreto na navbar (institucional) */
.nav-cta {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.7rem 1.1rem;
    border: 1px solid var(--border-light);
    color: #fff;
    transition: var(--transition-fast);
}

.nav-cta:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

/* HERO */
.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
}

/* Profundidade cinematográfica */
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 8%;
    width: 760px;
    height: 760px;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.07) 0%,
            rgba(0, 0, 0, 0) 70%);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

.hero-bg-element {
    position: absolute;
    top: 50%;
    right: 12%;
    transform: translateY(-50%);
    width: 620px;
    height: 620px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.95;
}

.floating-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: float 9s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.06));
    will-change: transform;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-14px) rotate(1.2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding-top: 8rem;
    /* Extra breathing room */
}

.hero-title {
    font-size: clamp(3rem, 6.5vw, 6.8rem);
    /* Slightly larger for impact */
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.05;
    letter-spacing: -0.05em;
    /* Tighter for authority */
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    max-width: 650px;
    margin-bottom: 2.5rem;
    color: var(--text-subtle);
    font-weight: 400;
    line-height: 1.7;
    /* Improved rhythm */
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-microcopy {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
}

/* SECTIONS COMMON */
section {
    padding: 12rem 0;
    /* Increased vertical spacing */
    position: relative;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 500;
}

/* SOBRE */
.sobre {
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* ✅ Preenche o “vazio” com um 3D suave */
.sobre-visual {
    position: absolute;
    left: -160px;
    bottom: -120px;
    width: 560px;
    height: 560px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.10;
    filter: saturate(0) contrast(1.05);
}

/* glow + profundidade premium (sem virar cinza) */
.sobre-visual::before {
    content: "";
    position: absolute;
    inset: -80px;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.09) 0%,
            rgba(0, 0, 0, 0) 65%);
    opacity: 0.6;
    transform: translate(10px, 10px);
}

/* máscara para “sumir” nas bordas e ficar institucional */
.sobre-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 55% 45%,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.75) 70%,
            rgba(0, 0, 0, 1) 100%);
}

.sobre-visual img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: rotate(-12deg);
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.05));
}

.sobre .container {
    position: relative;
    z-index: 1;
}

.large-text {
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
    /* Slightly larger */
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: 3.5rem;
    font-weight: 400;
}

.secondary-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-sec);
}

.authority-line {
    margin-top: 1.8rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* SERVIÇOS */
.servicos {
    position: relative;
}

/* Subtle background gradient for depth */
.servicos::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
    z-index: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    padding: 4.5rem;
    /* More spacing inside cards */
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.01) 0%,
            rgba(255, 255, 255, 0) 100%);
    transition: var(--transition-slow);
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    /* Stronger border on hover */
    transform: translateY(-8px);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(255, 255, 255, 0) 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    /* Elegant hover shadow */
}

.service-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.service-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-subtle);
}

/* PROCESSO */
.processo {
    background-color: #000000;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.process-wrapper {
    position: relative;
    padding-top: 2rem;
}

.process-line {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
    z-index: 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.step {
    padding-top: 2rem;
}

.step-num {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95rem;
    color: #ffffff;
    background: var(--bg-color);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Slightly stronger */
    margin-bottom: 2rem;
    position: relative;
}

.step-num::before {
    content: '';
    position: absolute;
    top: -33px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 33px;
    background: var(--border-color);
}

.step-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.step-desc {
    font-size: 0.95rem;
}

/* IMPACTO */
.impacto {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.impact-text {
    font-size: clamp(3rem, 7vw, 7.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-align: center;
    text-transform: uppercase;
}

/* FOOTER / CTA */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 8rem 0 4rem;
}

.cta-wrapper {
    margin-bottom: 10rem;
}

.cta-title {
    font-size: clamp(2.8rem, 4.5vw, 4.5rem);
    /* Scaled up for impact */
    max-width: 900px;
    margin: 0 auto 1.5rem;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.cta-subtitle {
    max-width: 720px;
    margin: 0 auto 3rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.footer-tags {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-sec);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: #ffffff;
}

/* CTA FIXO (LEADS) */
.floating-cta {
    position: fixed;
    right: 28px;
    bottom: 28px;
    background: #ffffff;
    color: #000000;
    padding: 0.95rem 1.6rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 999;
    transition: 0.3s ease;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
}

.floating-cta:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.20);
    transform: translateY(-3px);
}

.floating-cta.is-hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

/* ANIMATIONS */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 1s var(--transition-slow) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-line {
        display: none;
    }

    .step-num::before {
        display: none;
    }

    /* reduz o 3D no tablet */
    .sobre-visual {
        position: absolute;
        left: -140px;
        top: 40px;
        /* sobe a imagem */
        width: 520px;
        height: 520px;
        pointer-events: none;
        z-index: 0;
        opacity: 0.99;
        /* menos claro */
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-bg-element {
        opacity: 0.35;
        right: -90px;
        width: 520px;
        height: 520px;
    }

    .hero::after {
        right: -120px;
        width: 640px;
        height: 640px;
        opacity: 0.7;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 2.5rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .nav-links {
        display: none;
    }

    .floating-cta {
        right: 16px;
        bottom: 16px;
        padding: 0.9rem 1.3rem;
    }

    /* no mobile, tira o 3D pra não poluir */
    .sobre-visual {
        display: none;
    }
}