/* =========================
   MP Empreendimento - CSS
   Separado do index.html
   ========================= */

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

:root {
    --bg: #0B1122;
    --bg2: #0e1628;
    --bg3: #131B31;
    --border: rgba(255, 255, 255, 0.09);
    --accent: #0E8BB8;
    --accent2: #0E8BB8;
    --text: #f0f0f0;
    --muted: #888;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11, 17, 34, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 68px;
}

.png {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo svg {
    width: 36px;
    height: 36px;
}

.nav-logo span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white);
    letter-spacing: -0.3px;
}

.nav-logo span em {
    color: var(--accent);
    font-style: normal;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s;
}

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

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

.nav-cta {
    background: var(--accent);
    color: #000 !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700 !important;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: var(--accent2) !important;
    color: #000 !important;
}

/* HERO */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 5% 60px;
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 30%, rgba(0, 229, 160, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 80% 80%, rgba(0, 229, 160, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 160, 0.1);
    border: 1px solid rgba(0, 229, 160, 0.25);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 2rem;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--white);
    margin-bottom: 1.4rem;
}

.hero-title .highlight {
    color: var(--accent);
    position: relative;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background: var(--accent2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 229, 160, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-num span {
    color: var(--accent);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* SECTIONS COMMON */
section {
    padding: 90px 5%;
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.section-sub {
    color: var(--muted);
    font-size: 1rem;
    max-width: 520px;
}

/* SERVICES */
#servicos {
    background: var(--bg2);
}

.services-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
    margin-bottom: 3.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5px;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.service-card {
    background: var(--bg3);
    padding: 2rem;
    transition: background 0.2s;
    position: relative;
}

.service-card:hover {
    background: #1a2442;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.service-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 229, 160, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--accent);
    font-size: 1.2rem;
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: -0.2px;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
}

/* WHY US */
#diferenciais {
    background: var(--bg);
}

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

.why-img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.02);
}

.why-visual {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.why-visual::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 229, 160, 0.12) 0%, transparent 70%);
}

.mock-window {
    background: var(--bg);
}

.mock-header {
    background: #0e1628;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mock-dot:nth-child(1) {
    background: #ff5f57;
}

.mock-dot:nth-child(2) {
    background: #febc2e;
}

.mock-dot:nth-child(3) {
    background: #28c840;
}

.mock-body {
    padding: 1.5rem;
}

.mock-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.mock-bar {
    height: 10px;
    background: var(--border);
    border-radius: 4px;
    flex: 1;
}

.mock-bar.filled {
    background: var(--accent);
    opacity: 0.6;
}

.mock-bar.short {
    flex: 0.4;
}

.mock-metric {
    background: rgba(0, 229, 160, 0.08);
    border: 1px solid rgba(0, 229, 160, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--muted);
}

.metric-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.why-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.why-icon {
    width: 42px;
    height: 42px;
    background: rgba(0, 229, 160, 0.08);
    border: 1px solid rgba(0, 229, 160, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.why-item h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.why-item p {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.6;
}

/* PORTFOLIO */
#portfolio {
    background: var(--bg2);
}

.portfolio-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg3);
    border: 1px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.portfolio-thumb {
    height: 180px;
    background: #131B31;
    overflow: hidden;
}

.portfolio-thumb .thumb-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.08);
    letter-spacing: -1px;
}

.portfolio-thumb .tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 229, 160, 0.15);
    border: 1px solid rgba(0, 229, 160, 0.3);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.portfolio-info {
    padding: 1.2rem 1.4rem;
}

.portfolio-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.portfolio-info p {
    font-size: 0.8rem;
    color: var(--muted);
}

/* STACK */
#stack {
    background: var(--bg);
}

.stack-header {
    text-align: center;
    margin-bottom: 3rem;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stack-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.8rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.stack-card:hover {
    border-color: rgba(0, 229, 160, 0.3);
    transform: translateY(-3px);
}

.stack-icon {
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
    display: block;
    color: var(--accent);
}

.stack-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stack-card p {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
}

/* CONTACT */
#contato {
    background: var(--bg2);
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.contact-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.contact-box {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
}

.contact-box h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.8rem;
}

.contact-box p {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.wa-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}

/* FOOTER */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 3rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.footer-logo span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--white);
}

.footer-logo span em {
    color: var(--accent);
    font-style: normal;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .services-header,
    .why-grid,
    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .why-img {
        max-width: 520px;
        margin: 0 auto;
    }

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

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

    .nav-links {
        display: none;
    }

    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

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