/*
Theme Name: ACM Digital
Theme URI: https://acmdigital.online
Author: ACM.DIGITAL
Description: Tema profissional para ACM.DIGITAL — segurança eletrônica, automação, software e IA. Design dark com identidade SpaceX-inspired.
Version: 10.0
License: Proprietary
Text Domain: acm-digital
*/

/* ═══════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    background: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s, color .2s; }
button { font-family: inherit; cursor: pointer; }

:root {
    --g: #2df5b0;
    --g-dim: rgba(45, 245, 176, 0.15);
    --dim: rgba(255, 255, 255, 0.6);
    --line: rgba(255, 255, 255, 0.08);
    --small: rgba(255, 255, 255, 0.4);
    --bg: #000;
    --bg2: #0a0a0a;
}

/* ═══════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════ */
#nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 48px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: padding .3s, background .3s, border-color .3s;
    will-change: transform;
}
#nav.scrolled {
    padding: 14px 48px;
    background: rgba(0,0,0,0.85);
    border-bottom-color: var(--line);
}
.nav-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.nav-logo .acm { color: #fff; }
.nav-logo .dot-digital { color: var(--g); }
.nav-cta {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--g);
    padding: 10px 18px;
    border: 1px solid var(--g);
    transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--g); color: #000; }

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #000;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(45,245,176,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(45,245,176,0.05) 0%, transparent 50%);
    z-index: 0;
}
.hexgrid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(45,245,176,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45,245,176,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}
.hero-center {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}
.big-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(58px, 14vw, 160px);
    letter-spacing: -0.02em;
    line-height: 0.9;
    margin-bottom: 24px;
}
.big-logo .acm { color: #fff; }
.big-logo .dot-digital { color: var(--g); }
.hero-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(11px, 1.4vw, 14px);
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--dim);
    text-transform: uppercase;
    margin-top: 8px;
}
.hero-btns {
    position: absolute;
    bottom: 140px;
    z-index: 3;
    display: flex; gap: 16px;
}
.btn-solid, .btn-outline {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 14px 28px;
    border: 1px solid var(--g);
    cursor: pointer;
    transition: background .2s, color .2s, transform .2s;
    display: inline-flex;
    align-items: center;
}
.btn-solid { background: var(--g); color: #000; }
.btn-solid:hover { background: transparent; color: var(--g); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--g); }
.btn-outline:hover { background: var(--g); color: #000; transform: translateY(-2px); }

.hero-caption {
    position: absolute;
    bottom: 30px; left: 48px; right: 48px;
    z-index: 3;
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--small);
    text-transform: uppercase;
}
.hero-caption-left span { color: var(--g); }
.hero-caption-right { display: flex; align-items: center; gap: 10px; }
.scroll-bar {
    width: 30px; height: 1px;
    background: var(--g);
    position: relative; overflow: hidden;
}
.scroll-bar::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(255,255,255,0.4);
    animation: sb 2s ease-in-out infinite;
}
@keyframes sb {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* ═══════════════════════════════════════════════
   SECTION SHARED
   ═══════════════════════════════════════════════ */
.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.22em;
    color: var(--g);
    text-transform: uppercase;
    margin-bottom: 24px;
}
.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(42px, 6vw, 80px);
    line-height: 0.95;
    letter-spacing: -0.01em;
    margin-bottom: 32px;
}
.section-title em {
    font-style: normal;
    color: var(--g);
    font-weight: 500;
}
.section-body {
    font-size: 16px;
    line-height: 1.7;
    color: var(--dim);
    max-width: 540px;
}

/* ═══════════════════════════════════════════════
   SOBRE
   ═══════════════════════════════════════════════ */
.sobre {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 140px 48px;
    align-items: center;
    background: #000;
    border-top: 1px solid var(--line);
}
.stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.stat-n {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 1;
    color: var(--g);
}
.stat-n b { font-size: 32px; font-weight: 500; }
.stat-l {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--small);
    text-transform: uppercase;
    margin-top: 8px;
}
.sobre-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg2);
}
.sobre-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}
.sobre-img:hover img { transform: scale(1.03); }

/* ═══════════════════════════════════════════════
   SERVIÇOS
   ═══════════════════════════════════════════════ */
.servicos {
    padding: 140px 48px;
    border-top: 1px solid var(--line);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}
.service-card {
    background: var(--bg2);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: border-color .3s, transform .3s;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    border-color: var(--g);
    transform: translateY(-4px);
}
.service-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--bg);
    margin: 0;
}
.service-visual img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.service-card:hover .service-visual img { transform: scale(1.05); }
.service-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-icon {
    font-size: 26px;
    margin-bottom: 14px;
    line-height: 1;
}
.card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #fff;
}
.card-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--dim);
}

/* ═══════════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════════ */
.marquee-wrap {
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 32px 0;
    background: #000;
}
.marquee {
    display: flex;
    gap: 64px;
    animation: marq 30s linear infinite;
    will-change: transform;
    width: max-content;
}
.marquee-item {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 28px;
    letter-spacing: 0.04em;
    color: var(--small);
    white-space: nowrap;
}
.marquee-item:nth-child(odd) { color: var(--g); }
@keyframes marq {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════
   PROCESS
   ═══════════════════════════════════════════════ */
.process {
    padding: 140px 48px;
    border-top: 1px solid var(--line);
}
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 60px;
    border: 1px solid var(--line);
}
.pstep {
    padding: 40px 32px;
    border-right: 1px solid var(--line);
    transition: background .3s;
}
.pstep:last-child { border-right: none; }
.pstep:hover { background: rgba(45,245,176,0.03); }
.pstep-n {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 36px;
    color: var(--g);
    margin-bottom: 18px;
    line-height: 1;
}
.pstep-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 12px;
    color: #fff;
}
.pstep-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--dim);
}

/* ═══════════════════════════════════════════════
   CTA / CONTATO (substitui formulário)
   ═══════════════════════════════════════════════ */
.contact-cta {
    padding: 140px 48px;
    border-top: 1px solid var(--line);
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(45,245,176,0.08) 0%, transparent 50%),
        #000;
    position: relative;
    overflow: hidden;
}
.contact-cta::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(45,245,176,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45,245,176,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 60%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 60%);
    pointer-events: none;
}
.cta-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}
.cta-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(38px, 5.5vw, 72px);
    line-height: 1;
    letter-spacing: -0.01em;
    margin-bottom: 32px;
}
.cta-title em {
    font-style: normal;
    color: var(--g);
    font-weight: 500;
}
.cta-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--dim);
    margin: 0 auto 40px;
    max-width: 580px;
}
.cta-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 56px;
}
.cta-chat-btn {
    padding: 18px 40px;
    font-size: 14px;
    letter-spacing: 0.2em;
}
.cta-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 40px;
    margin-top: 8px;
}
.ci-mini {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--dim);
}
.ci-mini-l {
    color: var(--g);
    margin-right: 12px;
    letter-spacing: 0.12em;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
footer {
    padding: 32px 48px;
    border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between;
    background: #000;
}
.ft-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.04em;
}
.ft-logo .acm { color: #fff; }
.ft-logo .dot-digital { color: var(--g); }
.ft-copy {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    color: var(--small);
}
.ft-links { display: flex; gap: 28px; }
.ft-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--small);
    text-transform: uppercase;
}
.ft-links a:hover { color: var(--g); }

/* ═══════════════════════════════════════════════
   REVEAL ANIMATIONS (GPU accelerated)
   ═══════════════════════════════════════════════ */
.rv {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
    will-change: opacity, transform;
}
.rv.on {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
.d1 { transition-delay: .12s; }
.d2 { transition-delay: .22s; }
.d3 { transition-delay: .32s; }

/* ═══════════════════════════════════════════════
   MOBILE — TABLET (860px)
   ═══════════════════════════════════════════════ */
@media (max-width: 860px) {
    #nav { padding: 16px 24px; }
    #nav.scrolled { padding: 12px 24px; }
    .nav-cta { padding: 8px 14px; font-size: 11px; letter-spacing: 0.14em; }

    .hero { min-height: 100vh; min-height: 100svh; }
    .hero-btns {
        bottom: 130px;
        flex-direction: column;
        width: calc(100% - 48px);
        max-width: 320px;
    }
    .btn-solid, .btn-outline { width: 100%; justify-content: center; padding: 16px; }
    .hero-caption {
        left: 24px; right: 24px;
        bottom: 24px;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
    }

    .sobre {
        grid-template-columns: 1fr;
        padding: 80px 24px;
        gap: 56px;
    }
    .stats { gap: 24px; }
    .stat-n { font-size: 42px; }
    .sobre-img { aspect-ratio: 1; max-width: 480px; margin: 0 auto; }

    .servicos, .process, .contact-cta { padding: 80px 24px; }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .process-grid { grid-template-columns: 1fr 1fr; }
    .pstep:nth-child(2) { border-right: none; }
    .pstep:nth-child(1), .pstep:nth-child(2) { border-bottom: 1px solid var(--line); }

    footer {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
        text-align: center;
    }
    .ft-links { display: none; }

    .marquee-item { font-size: 22px; }
}

/* ═══════════════════════════════════════════════
   MOBILE PHONE (560px)
   ═══════════════════════════════════════════════ */
@media (max-width: 560px) {
    #nav { padding: 14px 18px; }
    .nav-logo { font-size: 16px; }

    .big-logo { font-size: clamp(48px, 13vw, 80px); }
    .hero-tagline { font-size: 10px; letter-spacing: 0.16em; }
    .hero-btns { width: calc(100% - 36px); bottom: 110px; }

    .sobre, .servicos, .process, .contact-cta {
        padding-left: 18px;
        padding-right: 18px;
    }

    .services-grid { grid-template-columns: 1fr; }
    .service-content { padding: 22px; }
    .card-title { font-size: 18px; }

    .process-grid { grid-template-columns: 1fr; }
    .pstep {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: 28px 24px;
    }
    .pstep:last-child { border-bottom: none; }

    .cta-info { gap: 10px; }
    .ci-mini { font-size: 11px; }
}

/* ═══════════════════════════════════════════════
   ACESSIBILIDADE
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .rv { opacity: 1 !important; transform: none !important; }
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--g);
    outline-offset: 2px;
}

.entry-content { max-width: none; }
