/* ==========================================================================
   Heydea — estilos globais
   ========================================================================== */

:root {
    --bg: #0a0b0a;
    --bg-2: #101210;
    --surface: #141714;
    --surface-2: #1a1e1b;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f4f6f4;
    --muted: #9ba39d;
    --muted-2: #6c746e;
    --accent: #03e373;
    --accent-soft: rgba(3, 227, 115, 0.12);
    --accent-ink: #04140b;

    --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --container: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(80px, 11vw, 150px);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    padding: 10px 16px; border-radius: var(--radius-sm);
    background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- Fundo ---------- */
.bg-grid {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-grid::after {
    content: ""; position: absolute; left: 50%; top: -260px;
    width: 900px; height: 600px; transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(3,227,115,0.16), transparent);
    filter: blur(20px);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * 0.6) 0; }
.section-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 24px 48px; margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head > div { max-width: 640px; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; }
.display { font-size: clamp(52px, 10vw, 148px); font-weight: 800; letter-spacing: -0.055em; line-height: 0.92; }
.h1 { font-size: clamp(44px, 7.4vw, 104px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; }
.h2 { font-size: clamp(34px, 5vw, 64px); }
.h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); line-height: 1.6; max-width: 620px; }
.muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 28px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 500; font-size: 15px; line-height: 1; white-space: nowrap; cursor: pointer;
    transition: transform .3s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { box-shadow: 0 12px 40px -8px rgba(3,227,115,0.55); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--dark { background: var(--accent-ink); color: var(--text); }
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn span[aria-hidden] { transition: transform .3s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    padding: 14px var(--gutter);
    transition: padding .3s var(--ease);
}
.site-header__inner {
    max-width: var(--container); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 10px 10px 10px 22px; border-radius: 999px;
    border: 1px solid transparent;
    transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled .site-header__inner {
    background: rgba(16, 18, 16, 0.72);
    border-color: var(--line);
    box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.site-logo img { height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
    padding: 10px 16px; border-radius: 999px; font-size: 15px; color: var(--muted);
    transition: color .2s, background-color .2s;
}
.site-nav a:not(.btn):hover { color: var(--text); background: rgba(255,255,255,0.05); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--text); }
.site-nav a[aria-current="page"]:not(.btn)::after {
    content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 7px;
    border-radius: 50%; background: var(--accent); vertical-align: middle;
}
.site-nav__cta { margin-left: 10px; }

.nav-toggle {
    display: none; position: relative; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line-strong); background: transparent; cursor: pointer; z-index: 2;
}
.nav-toggle span {
    position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--text);
    transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-header__inner { padding: 8px 8px 8px 18px; }
    .site-nav {
        position: fixed; inset: 0; z-index: 1;
        flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
        padding: 100px var(--gutter) 40px;
        background: var(--bg);
        opacity: 0; visibility: hidden; transform: translateY(-12px);
        transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
    }
    .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease); }
    .site-nav a:not(.btn) {
        padding: 6px 0; font-family: var(--font-display); font-size: 44px; font-weight: 700;
        letter-spacing: -0.04em; color: var(--text);
    }
    .site-nav a:not(.btn):hover { background: none; color: var(--accent); }
    .site-nav__cta { margin: 28px 0 0; padding: 18px 28px; font-size: 16px; }
    .site-logo { position: relative; z-index: 2; }
    .nav-open { overflow: hidden; }
}

.page-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.page-hero .lead { margin-top: 28px; }

/* ---------- Marquee ---------- */
.marquee {
    border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0;
    background: var(--bg-2);
}
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__item {
    display: flex; align-items: center; gap: 36px; padding-right: 36px;
    font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.02em;
    white-space: nowrap; color: var(--muted);
}
.marquee__item::after { content: "✦"; color: var(--accent); font-size: 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Pilares (index) ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.pillar { padding: 32px 28px 0 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar i { font-size: 20px; color: var(--accent); margin-bottom: 18px; }
.pillar h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 15px; }

/* ---------- Lista de serviços ---------- */
.service-list { border-top: 1px solid var(--line); counter-reset: svc; }
.service-row {
    position: relative; display: grid; grid-template-columns: 80px 1fr 1.1fr 40px; align-items: center; gap: 24px;
    padding: 28px 0; border-bottom: 1px solid var(--line);
    transition: padding .4s var(--ease);
}
.service-row::before {
    counter-increment: svc; content: counter(svc, decimal-leading-zero);
    font-size: 14px; color: var(--muted-2); font-variant-numeric: tabular-nums;
}
.service-row h3 { font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.035em; transition: color .3s; }
.service-row p { color: var(--muted); font-size: 15px; max-width: 420px; }
.service-row .arrow {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--line-strong); color: var(--muted);
    transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.service-row:hover { padding-left: 12px; }
.service-row:hover h3 { color: var(--accent); }
.service-row:hover .arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }

/* ---------- Grelha de serviços (servicos.php) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.service-card {
    position: relative; display: flex; flex-direction: column; gap: 14px;
    padding: clamp(28px, 3vw, 40px); min-height: 280px; background: var(--bg);
    transition: background-color .3s;
}
.service-card:hover { background: var(--surface); }
.service-card__num { position: absolute; top: 28px; right: 32px; font-size: 13px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.service-card__icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent); font-size: 20px; margin-bottom: 18px;
    transition: transform .4s var(--ease);
}
.service-card:hover .service-card__icon { transform: rotate(-8deg) scale(1.06); }
.service-card h3 { font-size: 24px; letter-spacing: -0.025em; }
.service-card p { color: var(--muted); font-size: 15px; flex: 1; }
.service-card__link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--accent); }
.service-card__link i { transition: transform .3s var(--ease); }
.service-card:hover .service-card__link i { transform: translateX(4px); }

/* ---------- Processo ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process-step {
    position: relative; padding: 28px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line); min-height: 240px;
    display: flex; flex-direction: column;
}
.process-step__num {
    font-family: var(--font-display); font-size: 64px; font-weight: 800; letter-spacing: -0.05em; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px var(--line-strong); margin-bottom: auto;
    transition: color .4s, -webkit-text-stroke-color .4s;
}
.process-step:hover .process-step__num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.process-step h3 { font-size: 22px; margin: 28px 0 8px; letter-spacing: -0.02em; }
.process-step p { color: var(--muted); font-size: 15px; }

/* ---------- Projetos ---------- */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); }
.project-card {
    display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; color: inherit;
}
.project-card__media {
    position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 3;
    background: var(--surface); border: 1px solid var(--line);
}
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.04); }
.project-card__media .view {
    position: absolute; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 18px;
    transform: scale(0.6); opacity: 0; transition: transform .4s var(--ease), opacity .3s;
}
.project-card:hover .view { transform: scale(1) rotate(-45deg); opacity: 1; }
.project-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 4px 0; }
.project-card__meta strong { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.project-card__meta span { font-size: 14px; color: var(--muted); }

.project-card--placeholder .project-card__media {
    display: grid; place-items: center; text-align: center; padding: 32px;
    background:
        radial-gradient(circle at 30% 20%, rgba(3,227,115,0.14), transparent 60%),
        var(--surface);
    border-style: dashed; border-color: var(--line-strong);
}
.project-card--placeholder h3 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 10px; }
.project-card--placeholder p { color: var(--muted); max-width: 320px; margin: 0 auto 22px; font-size: 15px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.filter-btn {
    padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
    color: var(--muted); font-size: 14px; cursor: pointer; transition: all .25s;
}
.filter-btn:hover { color: var(--text); border-color: var(--text); }
.filter-btn.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination button {
    min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong);
    background: transparent; cursor: pointer; transition: all .25s;
}
.pagination button:hover:not(:disabled) { border-color: var(--text); }
.pagination button.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pagination button:disabled { opacity: .35; cursor: default; }

/* ---------- Modal de projeto ---------- */
.modal, .lightbox {
    position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px;
    background: rgba(5,6,5,0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
}
.modal.is-open, .lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.modal__dialog {
    position: relative; width: min(1100px, 100%); max-height: calc(100vh - 40px); overflow: auto;
    display: grid; grid-template-columns: 1.1fr 1fr;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
    transform: translateY(16px) scale(.98); transition: transform .4s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__media { background: #000; min-height: 320px; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.modal__tag { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.modal__title { font-size: clamp(28px, 3vw, 40px); }
.modal__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--muted); }
.modal__desc { color: var(--muted); }
.modal__label { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-2); }
.modal__video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.modal__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.modal__gallery button { padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: none; aspect-ratio: 1; }
.modal__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.modal__gallery button:hover img { transform: scale(1.08); }
.modal__close, .lightbox__close {
    position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line-strong); background: rgba(10,11,10,0.7); cursor: pointer; font-size: 16px;
    display: grid; place-items: center; transition: background-color .2s, color .2s;
}
.modal__close:hover, .lightbox__close:hover { background: var(--accent); color: var(--accent-ink); }
.lightbox { z-index: 310; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); object-fit: contain; }
.lightbox__close { position: fixed; top: 20px; right: 20px; }
[hidden] { display: none !important; }

/* ---------- Sobre ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.story__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__badge {
    position: absolute; left: 20px; bottom: 20px; padding: 14px 18px; border-radius: var(--radius);
    background: rgba(10,11,10,0.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line); font-size: 14px;
}
.story__badge strong { display: block; font-family: var(--font-display); font-size: 28px; letter-spacing: -0.03em; color: var(--accent); line-height: 1.1; }
.story__text p { color: var(--muted); margin-top: 18px; font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(32px, 3.4vw, 44px); letter-spacing: -0.04em; line-height: 1; }
.stat span { font-size: 14px; color: var(--muted); }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .4s var(--ease); }
.value:hover { border-color: rgba(3,227,115,0.4); transform: translateY(-4px); }
.value i { font-size: 22px; color: var(--accent); margin-bottom: 40px; display: block; }
.value h3 { font-size: 22px; margin-bottom: 8px; letter-spacing: -0.02em; }
.value p { color: var(--muted); font-size: 15px; }

/* ---------- CTA em bloco ---------- */
.cta-block {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    padding: clamp(40px, 7vw, 96px); background: var(--accent); color: var(--accent-ink);
    display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px;
}
.cta-block::after {
    content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%;
    border: 70px solid rgba(4,20,11,0.08);
}
.cta-block h2 { font-size: clamp(38px, 6vw, 84px); font-weight: 800; letter-spacing: -0.05em; line-height: .95; max-width: 760px; }
.cta-block p { margin-top: 18px; max-width: 520px; font-size: 17px; opacity: .8; }
.cta-block .btn { position: relative; z-index: 1; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-details { display: grid; gap: 12px; margin-top: 40px; }
.contact-item {
    display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius);
    border: 1px solid var(--line); background: var(--surface); transition: border-color .3s;
}
a.contact-item:hover { border-color: rgba(3,227,115,0.45); }
.contact-item i { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.contact-item small { display: block; font-size: 13px; color: var(--muted); }
.contact-item span { font-weight: 500; }

.form-card { padding: clamp(24px, 3.5vw, 44px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-2); }
.form-card h2 { font-size: 28px; letter-spacing: -0.03em; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 28px; font-size: 15px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea {
    width: 100%; padding: 15px 18px; border-radius: 14px; border: 1px solid var(--line-strong);
    background: var(--bg); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-card .btn { width: 100%; margin-top: 6px; }
.form-note { margin-top: 16px; font-size: 13px; color: var(--muted-2); text-align: center; }
.form-note a { text-decoration: underline; }
.form-feedback { padding: 14px 18px; border-radius: 14px; margin-bottom: 22px; font-size: 15px; border: 1px solid; }
.form-feedback.success { color: var(--accent); background: var(--accent-soft); border-color: rgba(3,227,115,0.35); }
.form-feedback.error { color: #ff8080; background: rgba(255,90,90,0.08); border-color: rgba(255,90,90,0.35); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Páginas legais ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; letter-spacing: -0.02em; margin: 48px 0 14px; }
.prose p, .prose li { color: var(--muted); font-size: 16px; line-height: 1.8; }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: none; margin-top: 10px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: 0.8em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--section); border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-cta { padding: clamp(56px, 8vw, 110px) 0; border-bottom: 1px solid var(--line); }
.footer-cta .eyebrow { margin-bottom: 14px; }
.footer-cta__link {
    display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 .3em;
    font-family: var(--font-display); font-size: clamp(40px, 7.5vw, 112px); font-weight: 800;
    letter-spacing: -0.055em; line-height: 1;
}
.footer-cta__link i { font-size: .6em; margin-left: .15em; transition: transform .4s var(--ease); }
.footer-cta__link:hover i { transform: translateX(14px) rotate(-45deg); color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 56px 0; }
.footer-brand img { height: 32px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 360px; font-size: 15px; }
.footer-socials { display: flex; gap: 10px; margin-top: 22px; }
.footer-socials a {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--line-strong); color: var(--muted); transition: all .25s;
}
.footer-socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.footer-title { font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.footer-list { display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.footer-list a:hover { color: var(--accent); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
    padding: 24px 0 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted-2);
}
.footer-bottom__links { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Animações de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 1s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .process, .values { grid-template-columns: repeat(2, 1fr); }
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
    .pillar:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 32px; }
    .service-row { grid-template-columns: 56px 1fr 40px; }
    .service-row p { grid-column: 2; grid-row: 2; }
    .service-row .arrow { grid-column: 3; grid-row: 1; }
}
@media (max-width: 860px) {
    .cta-block { grid-template-columns: 1fr; }
    .story, .contact, .modal__dialog { grid-template-columns: 1fr; }
    .story__media { aspect-ratio: 4 / 3; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .modal__media { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
    .service-grid, .process, .values, .pillars, .project-grid { grid-template-columns: 1fr; }
    .pillar, .pillar + .pillar { padding: 28px 0 0; border-left: 0; }
    .pillar + .pillar { border-top: 1px solid var(--line); margin-top: 28px; }
    .service-row { grid-template-columns: 1fr 40px; gap: 10px 16px; padding: 22px 0; }
    .service-row::before { grid-column: 1 / -1; }
    .service-row p { grid-column: 1; grid-row: 3; }
    .service-row .arrow { grid-column: 2; grid-row: 2; }
    .service-row:hover { padding-left: 0; }
    .stats { grid-template-columns: 1fr 1fr; }
    .hero__actions .btn { flex: 1; }
    .footer-grid { grid-template-columns: 1fr; }
    .process-step { min-height: 0; }
}

/* ---------- Ajustes ---------- */
.project-card__media { display: block; }
.project-card__meta { display: flex; }
.footer-cta__link { display: inline; }
.footer-cta__link .nowrap { white-space: nowrap; }
.footer-cta__link i { display: inline-block; vertical-align: middle; }
.contact .h1 { font-size: clamp(44px, 5.4vw, 76px); }
.footer-cta .eyebrow { display: flex; }
.process-step__num { margin-bottom: 0; }
.process-step h3 { margin-top: 48px; }

/* ==========================================================================
   Hero interativo (index)
   ========================================================================== */
.hero {
    position: relative; overflow: hidden;
    min-height: calc(100svh - 88px);
    display: flex; align-items: center;
    padding: 24px 0 110px;
}
.hero__canvas {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
    mask-image: linear-gradient(180deg, #000 70%, transparent);
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.hero__inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px;
    pointer-events: none;
}
.hero__inner a, .hero__inner .hero__stack { pointer-events: auto; }
.hero__title.display { font-size: clamp(56px, 7.6vw, 128px); letter-spacing: -0.045em; margin-bottom: 28px; }
.hero__title .line { display: block; }
.hero__content .lead { margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--lg { padding: 20px 34px; font-size: 16px; }

/* Entrada ao carregar */
.hero__in { animation: heroIn 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms + 80ms); }
.hero__title .hero__in { display: inline-block; }
@keyframes heroIn { from { opacity: 0; transform: translateY(40px); filter: blur(10px); } }

/* Palavra rotativa */
.rotator { white-space: nowrap; text-shadow: 0 0 60px rgba(3,227,115,0.35); }
.rotator__char { display: inline-block; }
.rotator__char.is-in { animation: charIn .7s var(--ease) both; animation-delay: calc(var(--c) * 35ms); }
.rotator__char.is-out { animation: charOut .38s ease-in both; animation-delay: calc(var(--c) * 18ms); }
@keyframes charIn { from { opacity: 0; transform: translateY(0.45em) rotate(10deg); filter: blur(8px); } }
@keyframes charOut { to { opacity: 0; transform: translateY(-0.35em) rotate(-8deg); filter: blur(8px); } }

/* Colagem de imagens */
.hero__visual { position: relative; height: clamp(440px, 40vw, 600px); }
.hero__visual::before {
    content: ""; position: absolute; inset: 10% 5%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(3,227,115,0.25), transparent);
    filter: blur(40px); animation: glow 6s ease-in-out infinite;
}
@keyframes glow { 50% { transform: scale(1.15); opacity: .7; } }
.hero__stack { position: absolute; inset: 0; --px: 0; --py: 0; }
.stack-card {
    position: absolute; margin: 0;
    transform: translate3d(calc(var(--px) * var(--depth) * 1px), calc(var(--py) * var(--depth) * 1px), 0);
    rotate: var(--r); transition: rotate .6s var(--ease);
}
.stack-card:hover { rotate: 0deg; z-index: 10; }
.stack-card__inner {
    width: 100%; height: 100%; overflow: hidden; border-radius: 22px;
    border: 1px solid var(--line-strong); background: var(--surface);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,0.9);
    animation: floaty 7s ease-in-out infinite;
    transition: scale .6s var(--ease), border-color .4s;
}
.stack-card:hover .stack-card__inner { scale: 1.05; border-color: rgba(3,227,115,0.6); }
.stack-card img { width: 100%; height: 100%; object-fit: cover; }
.stack-card--1 { width: 74%; aspect-ratio: 4 / 3; top: 4%; right: 0; z-index: 1; }
.stack-card--2 { width: 46%; aspect-ratio: 1; left: 2%; bottom: 4%; z-index: 3; }
.stack-card--2 .stack-card__inner { animation-delay: -2.5s; }
.stack-card--3 { width: 36%; aspect-ratio: 4 / 5; right: 6%; bottom: -2%; z-index: 2; }
.stack-card--3 .stack-card__inner { animation-delay: -4.5s; }
.stack-card figcaption {
    position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px;
    background: rgba(10,11,10,0.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-size: 12px; font-weight: 500;
}
@keyframes floaty { 50% { transform: translateY(-14px); } }
.stack-chip {
    position: absolute; top: 0; left: 10%; z-index: 4;
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
    background: rgba(16,18,16,0.8); border: 1px solid var(--line-strong);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    font-size: 13px; font-weight: 500;
    transform: translate3d(calc(var(--px) * var(--depth) * 1px), calc(var(--py) * var(--depth) * 1px), 0);
    rotate: var(--r);
}
.stack-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* Selo rotativo */
.spin-badge {
    position: absolute; z-index: 20; left: -36px; bottom: -28px;
    width: 136px; height: 136px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--accent); color: var(--accent-ink);
    box-shadow: 0 20px 50px -10px rgba(3,227,115,0.5);
    transition: transform .3s var(--ease);
}
.spin-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.spin-badge text { font-size: 10.6px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; fill: var(--accent-ink); }
.spin-badge i { font-size: 24px; rotate: -45deg; transition: rotate .4s var(--ease); }
.spin-badge:hover i { rotate: 0deg; }
.spin-badge:hover svg { animation-duration: 5s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Indicador de scroll */
.scroll-hint {
    position: absolute; left: 50%; bottom: 28px; z-index: 2; translate: -50% 0;
    width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid var(--line-strong);
}
.scroll-hint span {
    position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px;
    background: var(--accent); animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* Marquee mais forte */
.marquee { padding: 28px 0; }
.marquee__track { will-change: transform; }
.marquee__item { font-size: clamp(30px, 4.4vw, 64px); font-weight: 800; letter-spacing: -0.04em; color: var(--text); }
.marquee__item:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.45); }

/* ==========================================================================
   Efeitos globais
   ========================================================================== */
.scroll-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150;
    background: var(--accent); box-shadow: 0 0 12px var(--accent);
    transform: scaleX(0); transform-origin: left;
}

.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-active { opacity: 1; }
.cursor::before {
    content: ""; position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.5);
    transition: width .35s var(--ease), height .35s var(--ease), left .35s var(--ease), top .35s var(--ease), background-color .3s, border-color .3s, scale .2s;
}
.cursor.is-hover::before { left: -30px; top: -30px; width: 60px; height: 60px; border-color: var(--accent); background: rgba(3,227,115,0.08); }
.cursor.has-label::before { left: -48px; top: -48px; width: 96px; height: 96px; border-color: var(--accent); background: var(--accent); }
.cursor.is-down::before { scale: .85; }
.cursor__label {
    position: absolute; transform: translate(-50%, -50%); white-space: nowrap;
    font-size: 14px; font-weight: 600; color: var(--accent-ink); opacity: 0; transition: opacity .2s;
}
.cursor.has-label .cursor__label { opacity: 1; }
html.has-cursor [data-cursor], html.has-cursor [data-cursor] * { cursor: none; }

.spotlight { position: relative; }
.spotlight::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(3,227,115,0.13), transparent 65%);
    opacity: 0; transition: opacity .35s;
}
.spotlight:hover::before { opacity: 1; }

.project-card__media { transition: transform .4s var(--ease); will-change: transform; }

@media (max-width: 1024px) {
    .hero { min-height: 0; padding: 32px 0 80px; }
    .hero__inner { grid-template-columns: 1fr; gap: 64px; }
    .hero__visual { height: clamp(320px, 60vw, 460px); max-width: 640px; width: 100%; margin: 0 auto; }
    .spin-badge { left: auto; right: -8px; bottom: -36px; width: 112px; height: 112px; }
    .scroll-hint { display: none; }
}
@media (max-width: 640px) {
    .hero__title.display { font-size: clamp(50px, 15vw, 72px); }
    .hero__visual { height: 300px; }
    .stack-card__inner { border-radius: 16px; }
    .spin-badge { width: 96px; height: 96px; right: 0; bottom: -40px; }
    .spin-badge text { font-size: 10px; }
}
.spin-badge text { font-size: 9.6px; letter-spacing: 1.2px; }
.hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.hero__content .lead { max-width: 560px; }
.stack-chip { z-index: 12; }
.stack-card figcaption { top: 12px; bottom: auto; left: auto; right: 12px; }
@media (max-width: 1024px) { .hero__inner { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Nova aposta: Sistemas de IA
   ========================================================================== */
.badge-new {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    background: var(--accent); color: var(--accent-ink);
    font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    vertical-align: middle; line-height: 1.2;
}
.badge-new--lg { padding: 8px 16px; font-size: 13px; gap: 8px; margin-bottom: 24px; animation: badgeGlow 2.4s ease-in-out infinite; }
@keyframes badgeGlow { 50% { box-shadow: 0 0 28px rgba(3,227,115,0.6); } }
.service-row h3 .badge-new { margin-left: 10px; position: relative; top: -0.2em; }
.service-row--new h3 { color: var(--accent); }

.service-card--new {
    grid-column: 1 / -1; min-height: 0;
    background: radial-gradient(circle at 100% 0%, rgba(3,227,115,0.16), transparent 55%), var(--bg);
}
.service-card--new .service-card__icon { background: var(--accent); color: var(--accent-ink); }
.service-card--new h2 { font-size: 30px; }

@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.ai__card {
    position: relative; isolation: isolate; border-radius: 32px;
    padding: clamp(28px, 5vw, 72px);
    background:
        radial-gradient(circle at 100% 0%, rgba(3,227,115,0.14), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(3,227,115,0.08), transparent 45%),
        var(--bg-2);
}
.ai__card::before, .ai__card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
}
.ai__card::after { border: 1px solid var(--line); }
.ai__card::before {
    padding: 1.5px; z-index: 1;
    background: conic-gradient(from var(--angle), transparent 0 55%, var(--accent) 72%, transparent 88%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: borderSpin 6s linear infinite;
}
@keyframes borderSpin { to { --angle: 360deg; } }

.ai__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.ai__content .lead { margin: 24px 0 36px; }
.ai__features { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; margin-bottom: 40px; }
.ai__features li { display: flex; gap: 14px; }
.ai__features i {
    flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent); font-size: 16px;
}
.ai__features h3 { font-size: 17px; letter-spacing: -0.015em; margin-bottom: 4px; line-height: 1.3; }
.ai__features p { color: var(--muted); font-size: 14px; line-height: 1.55; }

.ai__demo { margin: 0; }
.ai__demo figcaption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted-2); }
.chat {
    border-radius: 24px; overflow: hidden; border: 1px solid var(--line-strong);
    background: rgba(10,11,10,0.85);
    box-shadow: 0 40px 100px -30px rgba(3,227,115,0.3);
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.chat__head strong { display: block; font-size: 15px; }
.chat__head small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.chat__online { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 1.6s infinite; }
.chat__body { height: 340px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 20px; overflow: hidden; }
.chat__msg { max-width: 84%; padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; }
.chat__msg--user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.chat__msg--bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat__msg.is-new { animation: msgIn .4s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.chat__msg.is-typing { display: inline-flex; gap: 4px; padding: 15px 16px; }
.chat__msg.is-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typingDot 1s infinite; }
.chat__msg.is-typing span:nth-child(2) { animation-delay: .15s; }
.chat__msg.is-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat__input {
    display: flex; align-items: center; min-height: 52px; margin: 0 16px 16px; padding: 8px 8px 8px 18px;
    border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px;
}
.chat__caret { width: 2px; height: 18px; margin-left: 1px; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chat__send { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 13px; }

@media (max-width: 1024px) {
    .ai__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .ai__features { grid-template-columns: 1fr; }
    .chat__body { height: 300px; }
    .ai__card { border-radius: 24px; }
}
