/*
 * Mana Lab — Home (brutalista) — CSS dedicado, escrito à mão (SEM Tailwind).
 * Usado só pelo template de página "Home Mana Lab" (templates/template-home-mana.php).
 * Auto-contido: não depende do mana-components.css nem do Tailwind compilado.
 *
 * Cores puxam os tokens do Kit do Elementor (var --e-global-color-*), com
 * fallback pro hex — se o cliente mudar a cor no Kit, a home acompanha.
 */

:root {
	--mlds-violeta: var(--e-global-color-mana_violeta, #7c05f2);
	--mlds-verde: var(--e-global-color-mana_verde, #10b981);
	--mlds-ciano: var(--e-global-color-mana_ciano, #06b6d4);
	--mlds-magenta: var(--e-global-color-mana_magenta, #ec4899);
	--mlds-tech-900: var(--e-global-color-mana_tech_900, #0d0d12);
	--mlds-tech-800: var(--e-global-color-mana_tech_800, #141419);
	--mlds-tech-700: var(--e-global-color-mana_tech_700, #1c1c24);
	--mh-display: 'Space Grotesk', sans-serif;
	--mh-mono: 'JetBrains Mono', monospace;
	--mh-body: 'Inter', sans-serif;
}

/* ===== BASE ===== */
.mana-home, .mana-home * { box-sizing: border-box; }
.mana-home {
	margin: 0; background: var(--mlds-tech-900); color: #fff;
	font-family: var(--mh-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
	scroll-behavior: smooth;
}
.mana-home h1, .mana-home h2, .mana-home h3, .mana-home h4 { font-family: var(--mh-display); font-weight: 500; letter-spacing: -.01em; }
/* reset de margem com :where() = especificidade ZERO, pra NÃO vencer as
   margens específicas (.mh-*-title, .mh-*-desc, etc.) que dão o respiro. */
.mana-home :where(h1, h2, h3, h4, p) { margin: 0; }
.mana-home a { color: inherit; text-decoration: none; }
.mana-home img, .mana-home svg, .mana-home video { display: block; max-width: 100%; }
.mana-home ::selection { background: rgba(124, 5, 242, .35); color: #f4e9ff; }

/* utilitários pontuais */
.mh-section { position: relative; max-width: 1152px; margin: 0 auto; padding: 50px 16px; border-top: 1px solid var(--mlds-tech-700); }
.mh-eyebrow { font-family: var(--mh-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--mlds-violeta); margin-bottom: 16px; }
.mh-h2 { font-size: clamp(1.875rem, 4vw, 3rem); line-height: 1.1; }
.mh-lead { color: #a1a1aa; font-size: clamp(.875rem, 2vw, 1rem); line-height: 1.7; }
.mh-hl { color: var(--mlds-violeta); }
.mh-white { color: #fff; }
.mh-verde { color: var(--mlds-verde); }
.num { font-family: var(--mh-mono); font-size: 11px; color: #52525b; }
@media (min-width: 768px) { .mh-section { padding: 50px 24px; } }

/* ===== GRADE DE FUNDO ===== */
.bg-grid { background-image: linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; }

/* ===== FUNDO MANA WAVE ===== */
.mana-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.mana-bg .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; mix-blend-mode: screen; }
.mana-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, transparent 30%, var(--mlds-tech-900) 82%); }
@media (max-width: 767px) { #topo .mana-bg::after { background: radial-gradient(160% 85% at 50% 0%, transparent 8%, var(--mlds-tech-900) 58%); } }

/* ===== NAV GLASS ===== */
#nav { position: fixed; top: 20px; left: 0; right: 0; z-index: 1000; transition: top .35s cubic-bezier(.16,1,.3,1); }
#nav .bar {
	max-width: 748px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; min-height: 48px;
	padding: 14px 18px; border-radius: 9999px; border: 1px solid rgba(255,255,255,.09);
	background: rgba(0,0,0,.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
	transition: padding .35s cubic-bezier(.16,1,.3,1), background .35s, box-shadow .35s, transform .35s cubic-bezier(.16,1,.3,1);
}
#nav.scrolled { top: 8px; }
#nav.scrolled .bar { padding: 9px 16px; background: rgba(13,13,18,.82); transform: scale(.965); box-shadow: 0 10px 40px -12px rgba(0,0,0,.7); }
#nav .mh-logo { width: 188px; height: auto; flex-shrink: 0; }
.mh-nav-links { display: none; align-items: center; gap: 28px; }
.nav-link { font-family: var(--mh-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #a1a1aa; transition: color .2s; }
.nav-link:hover { color: #fff; }
/* #nav vence o display:inline-flex base do .glow-btn (por causa do id) */
#nav .mh-nav-cta { display: none; }
@media (min-width: 768px) { .mh-nav-links { display: flex; } }
@media (min-width: 420px) { #nav .mh-nav-cta { display: inline-flex; } }
/* abaixo de 420px (sem CTA) o logo fica centralizado, igual ao original */
@media (max-width: 419px) {
	#nav .bar { position: relative; justify-content: flex-end; }
	#nav .bar > a:first-child { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
}

/* ===== BOTÕES ===== */
.glow-btn, .ghost-btn { -webkit-appearance: none; appearance: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.glow-btn {
	position: relative; overflow: hidden; border-radius: 9999px; padding: 14px 30px; background: rgba(255,255,255,.04);
	border: 1px solid rgba(124,5,242,.4); font-family: var(--mh-mono); font-size: 11px; letter-spacing: .12em;
	text-transform: uppercase; color: #fff; transition: border-color .3s;
}
.glow-btn::before { content: ''; position: absolute; inset: -2px; z-index: 0; background: conic-gradient(from 0deg, transparent 0%, transparent 75%, var(--mlds-violeta) 100%); animation: mh-spin 2.4s linear infinite; }
.glow-btn::after { content: ''; position: absolute; inset: 1px; background: var(--mlds-tech-900); border-radius: 9999px; z-index: 1; }
.glow-btn span { position: relative; z-index: 2; }
.glow-btn:hover { border-color: var(--mlds-violeta); }
@keyframes mh-spin { to { transform: rotate(360deg); } }
.ghost-btn {
	padding: 14px 30px; border-radius: 9999px; background: rgba(255,255,255,.03); border: 1px solid var(--mlds-tech-700);
	font-family: var(--mh-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #fff; transition: all .3s;
}
.ghost-btn:hover { border-color: var(--mlds-ciano); box-shadow: inset 0 -20px 30px -10px rgba(6,182,212,.15); }

/* ===== CORNER-CARD ===== */
.corner-card {
	position: relative; border: 1px dashed var(--mlds-tech-700); background: rgba(20,20,25,.788); padding: 28px;
	transition: border-color .4s; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.corner-card:hover { border-color: rgba(124,5,242,.5); }
.corner-card .corner { position: absolute; width: 9px; height: 9px; border-color: var(--mlds-violeta); }
.corner-card .tl { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.corner-card .tr { top: -1px; right: -1px; border-top: 1px solid; border-right: 1px solid; }
.corner-card .bl { bottom: -1px; left: -1px; border-bottom: 1px solid; border-left: 1px solid; }
.corner-card .br { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }

/* ===== BADGE ===== */
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--mlds-tech-700); padding: 7px 14px; font-family: var(--mh-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #a1a1aa; }
.badge .dot { width: 6px; height: 6px; background: var(--mlds-verde); animation: mh-pulse 1.6s ease-in-out infinite; }
@keyframes mh-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.badge.mh-magenta { border-color: rgba(236,72,153,.4); color: var(--mlds-magenta); }
.badge.mh-verde { border-color: rgba(16,185,129,.4); color: var(--mlds-verde); }
.badge.mh-ciano { border-color: rgba(6,182,212,.4); color: var(--mlds-ciano); }
.badge.mh-violeta { border-color: rgba(124,5,242,.4); color: var(--mlds-violeta); }

/* ===== CAMPOS ===== */
.field label { display: block; font-family: var(--mh-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #71717a; margin-bottom: 6px; }
.field input { width: 100%; background: rgba(255,255,255,.03); border: 1px solid var(--mlds-tech-700); border-radius: 0; padding: 12px 14px; color: #fff; font-size: 14px; outline: none; transition: border-color .2s; }
.field input:focus { border-color: var(--mlds-violeta); box-shadow: 0 0 0 1px var(--mlds-violeta); }

/* ===== MARQUEE ===== */
.marquee-wrap { position: relative; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%); }
.marquee-track { display: flex; width: max-content; animation: mh-marquee 42s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.logo-item { height: 28px; width: auto; max-width: 140px; object-fit: contain; opacity: .45; filter: grayscale(1) brightness(1.6); transition: opacity .3s, filter .3s, transform .3s; }
.logo-item:hover { opacity: 1; filter: grayscale(0) brightness(1) drop-shadow(0 0 10px rgba(124,5,242,.5)); transform: scale(1.08); }
@keyframes mh-marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@media (min-width: 768px) { .logo-item { height: 34px; max-width: 170px; } }

/* ===== PARALLAX SHAPES ===== */
.parallax-shape { position: absolute; pointer-events: none; z-index: -1; --p: 0; --r: 0deg; transform: scale(calc(.78 + var(--p) * .4)) rotate(var(--r)); transition: transform .12s linear; }
.parallax-shape img { width: 100%; height: auto; }
.parallax-shape.solid img { opacity: calc(.12 + var(--p) * .88); filter: grayscale(calc(1 - var(--p))) saturate(calc(.15 + var(--p) * 1.2)) brightness(calc(.65 + var(--p) * .5)); transition: opacity .12s linear, filter .12s linear; }
@media (max-width: 767px) { .parallax-shape { display: none; } }

/* ===== REVEAL ===== */
.reveal > * { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in-view > * { opacity: 1; transform: none; }
.reveal.in-view > *:nth-child(2) { transition-delay: .08s; }
.reveal.in-view > *:nth-child(3) { transition-delay: .16s; }
.reveal.in-view > *:nth-child(4) { transition-delay: .24s; }
.reveal.in-view > *:nth-child(n+5) { transition-delay: .3s; }

/* ===================================================================
   SEÇÕES
   =================================================================== */

/* ---- HERO ---- */
#topo { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 112px 16px 64px; overflow: hidden; }
@media (min-width: 768px) { #topo { padding: 128px 24px 96px; } }
.mh-hero-inner { position: relative; z-index: 2; max-width: 1152px; margin: 0 auto; width: 100%; }
.mh-hero-grid { display: flex; flex-direction: column; gap: 32px; }
.mh-hero-col { width: 100%; }
.mh-hero-badge { margin-bottom: 24px; border-radius: 9999px; background: rgba(0,0,0,.36); }
.mh-hero-title { font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 20px; }
.mh-hero-lead { max-width: 28rem; margin-bottom: 32px; }
.mh-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.mh-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 28rem; border-top: 1px solid var(--mlds-tech-700); padding-top: 24px; }
.mh-stat-num { font-family: var(--mh-display); font-size: clamp(1.5rem, 3vw, 1.875rem); }
.mh-stat-cap { margin-top: 4px; }
.mh-hero-card { padding: 8px 8px 8px 0; background: rgba(20,20,25,.7); }
.mh-hero-card-badge { position: absolute; top: -12px; left: 16px; z-index: 10; background: var(--mlds-tech-900); }
.mh-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.mh-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mh-hero-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 0 4px; }
@media (min-width: 768px) {
	.mh-hero-grid { flex-direction: row; align-items: center; gap: 48px; }
	.mh-hero-col { width: 50%; }
	.mh-hero-card { padding: 10px; }
}

/* ---- O LAB ---- */
.mh-lab-grid { position: relative; z-index: 10; display: grid; gap: 40px; align-items: center; }
.mh-lab-quote { min-height: 260px; display: flex; align-items: center; justify-content: flex-start; background: rgba(20,20,25,.4); }
.mh-lab-quote h4 { font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.25; }
.mh-lab-p { margin-bottom: 16px; }
@media (min-width: 768px) {
	.mh-lab-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
	.mh-lab-quote { justify-content: center; text-align: center; padding-left: 32px; padding-right: 32px; }
}

/* ---- MÉTODO ---- */
.mh-metodo-head { position: relative; z-index: 10; margin-bottom: 48px; }
.mh-metodo-head .mh-h2 { max-width: 42rem; }
.mh-metodo-grid { position: relative; z-index: 10; display: grid; grid-template-columns: 1fr; gap: 16px; }
.mh-metodo-num { margin-bottom: 16px; }
.mh-metodo-title { font-size: 1.25rem; margin-bottom: 8px; }
.mh-metodo-desc { color: #a1a1aa; font-size: .875rem; line-height: 1.6; }
@media (min-width: 640px) { .mh-metodo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mh-metodo-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---- CASES ---- */
.mh-cases-head { position: relative; z-index: 10; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 48px; }
.mh-cases-grid { position: relative; z-index: 10; display: grid; grid-template-columns: 1fr; gap: 20px; }
.mh-case-badge { margin-bottom: 24px; }
.mh-case-title { font-size: 1.5rem; line-height: 1.18; margin-bottom: 14px; }
.mh-case-desc { color: #a1a1aa; font-size: .875rem; line-height: 1.65; margin-bottom: 28px; }
.mh-case-embed { border: 1px solid var(--mlds-tech-700); background: #000; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 2px; }
.mh-case-embed iframe { width: 100%; height: 100%; border: 0; }
@media (min-width: 640px) { .mh-cases-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- CLIENTES ---- */
.mh-clientes { position: relative; max-width: 100%; padding: 50px 0; border-top: 1px solid var(--mlds-tech-700); overflow: hidden; }
.mh-clientes-head { max-width: 1152px; margin: 0 auto 56px; padding: 0 16px; text-align: center; }
.mh-clientes-head .mh-eyebrow { margin-bottom: 12px; }
.mh-clientes-title { font-size: clamp(1.5rem, 3vw, 1.875rem); }

/* ---- CONTATO ---- */
.mh-contato { position: relative; overflow: hidden; border-top: 1px solid var(--mlds-tech-700); padding: 50px 16px; }
.mh-contato-inner { position: relative; z-index: 2; max-width: 48rem; margin: 0 auto; }
.mh-contato-head { text-align: center; margin-bottom: 40px; }
.mh-contato-head .badge { margin-bottom: 24px; }
.mh-contato-title { font-size: clamp(1.875rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 16px; }
.mh-contato-sub { max-width: 28rem; margin: 0 auto; }
.mh-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mh-form .mh-col2 { grid-column: 1 / -1; }
.mh-form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 8px; }
.mh-form-actions a { color: var(--mlds-violeta); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 639px) { .mh-form { grid-template-columns: 1fr; } .mh-contato { padding: 50px 16px; } }
@media (min-width: 768px) { .mh-contato { padding: 50px 24px; } }

/* ---- FOOTER ---- */
.mh-footer { border-top: 1px solid var(--mlds-tech-700); padding: 48px 16px; }
.mh-footer-inner { max-width: 1152px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.mh-footer-logo { height: 34px; width: auto; flex-shrink: 0; }
.mh-footer-tag { max-width: 28rem; }
.mh-footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.mh-footer-links a { transition: color .2s; }
.mh-footer-links a:hover { color: var(--mlds-violeta); }
.mh-footer-copy { text-align: center; margin-top: 40px; color: #3f3f46; }
@media (min-width: 768px) {
	.mh-footer { padding: 48px 24px; }
	/* grid 1fr auto 1fr: colunas laterais iguais => a tagline fica no centro
	   REAL da página, não só no meio do espaço entre logo e links. */
	.mh-footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: left; }
	.mh-footer-logo { justify-self: start; }
	.mh-footer-tag { justify-self: center; text-align: center; max-width: 32rem; margin: 0; padding: 0 24px; }
	.mh-footer-links { justify-self: end; }
}

/* ============================================================
   BLINDAGEM contra estilos globais do site (tema/Jetpack fazem
   "h2,h3,h4 { font-size:1em; font-weight:700 }" e o Kit do
   Elementor força cor nos headings). O prefixo .mana-home sobe
   a especificidade e reafirma tamanho/peso/cor/família certos.
   ============================================================ */
.mana-home h1, .mana-home h2, .mana-home h3, .mana-home h4 {
	font-family: var(--mh-display); font-weight: 500; color: #fff; letter-spacing: -.01em;
}
.mana-home .mh-hero-title { font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.02; letter-spacing: -.02em; }
.mana-home .mh-h2 { font-size: clamp(1.875rem, 4vw, 3rem); line-height: 1.1; }
.mana-home .mh-metodo-title { font-size: 1.25rem; }
.mana-home .mh-case-title { font-size: 1.5rem; line-height: 1.18; }
.mana-home .mh-clientes-title { font-size: clamp(1.5rem, 3vw, 1.875rem); }
.mana-home .mh-contato-title { font-size: clamp(1.875rem, 4vw, 3rem); line-height: 1.1; }
.mana-home .mh-lab-quote h4 { font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.25; }
.mana-home .mh-stat-num { font-family: var(--mh-display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 1.875rem); }
.mana-home .mh-hl { color: var(--mlds-violeta); }
.mana-home .mh-white { color: #fff; }
.mana-home .mh-verde { color: var(--mlds-verde); }
/* botões: o tema estiliza <button>; reafirma o glow/ghost no .mana-home (esp.
   maior) pra o <button> do form ficar IDÊNTICO ao <a> do hero. */
.mana-home button.glow-btn, .mana-home button.ghost-btn {
	-webkit-appearance: none; appearance: none; background-image: none;
	box-shadow: none; text-shadow: none; font-family: var(--mh-mono); line-height: 1; margin: 0;
}
.mana-home .glow-btn { border-radius: 9999px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(124, 5, 242, .4); color: #fff; }
.mana-home .ghost-btn { border-radius: 9999px; background: rgba(255, 255, 255, .03); border: 1px solid var(--mlds-tech-700); color: #fff; }

/* ===== reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
	.mana-home *, .reveal > * { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}
