/* ==========================================================
   Macan Tecnologia — estilos do site
   ========================================================== */
:root {
  --bg: #050b18;
  --bg-2: #081226;
  --surface: #0c1830;
  --surface-2: #11203d;
  --line: rgba(148, 180, 230, .12);
  --line-strong: rgba(148, 180, 230, .24);
  --text: #eaf1fb;
  --muted: #92a4c3;
  --blue: #1f7fd0;
  --blue-2: #0f5fa8;
  --cyan: #2fb8f0;
  --red: #e2432b;
  --whats: #25d366;
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
::selection { background: var(--blue); color: #fff; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .container { width: min(1200px, 100% - 64px); } }

/* Brilho que segue o cursor */
.cursor-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, -20%), rgba(47, 184, 240, .07), transparent 60%);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s;
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--primary { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #fff; box-shadow: 0 10px 30px -10px rgba(31, 127, 208, .7); }
.btn--primary:hover { box-shadow: 0 14px 40px -10px rgba(47, 184, 240, .8); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-strong); background: rgba(255,255,255,.02); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--cyan); background: rgba(47,184,240,.08); }
.btn--light { background: #fff; color: var(--bg); }
.btn--light:hover { transform: translateY(-2px); }
.btn--whats { background: var(--whats); color: #062b14; box-shadow: 0 10px 30px -10px rgba(37, 211, 102, .6); }
.btn--whats:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(37, 211, 102, .8); }
.btn--whats svg { width: 20px; height: 20px; fill: currentColor; }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(226, 67, 43, .18); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s, border-color .4s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(5, 11, 24, .78); backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--muted); position: relative; transition: color .25s; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%; background: var(--cyan); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--text); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(5, 11, 24, .97); backdrop-filter: blur(20px);
    font-size: 24px; font-family: var(--font-head);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__cta { margin-top: 12px; font-size: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 120px; overflow: hidden; isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__glow {
  position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(50% 60% at 85% 20%, rgba(31, 127, 208, .28), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(226, 67, 43, .12), transparent 70%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}
.hero__content { position: relative; }
.hero__title { font-size: clamp(44px, 8.4vw, 116px); font-weight: 800; letter-spacing: -.045em; line-height: .98; margin-bottom: 30px; }
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; padding-bottom: .08em; }
.rotator > span {
  grid-area: 1 / 1; opacity: 0; transform: translateY(100%);
  background: linear-gradient(100deg, var(--cyan), var(--blue) 55%, var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform .8s var(--ease), opacity .8s var(--ease);
}
.rotator > span.is-active { opacity: 1; transform: none; }
.rotator > span.is-leaving { opacity: 0; transform: translateY(-100%); }
.hero__lead { max-width: 580px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin: 0 0 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.scroll-hint__mouse { width: 24px; height: 38px; border: 1.5px solid var(--line-strong); border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; }
.scroll-hint__mouse span { width: 3px; height: 8px; border-radius: 3px; background: var(--cyan); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: var(--bg-2); position: relative; }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--font-head); font-weight: 600; font-size: clamp(18px, 2vw, 24px); color: var(--muted); padding: 0 34px; display: flex; align-items: center; gap: 34px; white-space: nowrap; }
.marquee__track span::after { content: '✦'; color: var(--blue); font-size: .6em; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section__title { font-size: clamp(34px, 5.2vw, 68px); font-weight: 700; letter-spacing: -.035em; }
.section__title em { font-style: normal; color: var(--muted); font-weight: 400; }
.section__lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 600px; margin: 24px 0 0; }

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.service {
  --x: 50%; --y: 50%;
  position: relative; padding: 34px 30px 30px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line);
  overflow: hidden; transition: transform .5s var(--ease), border-color .4s;
}
.service::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at var(--x) var(--y), rgba(47, 184, 240, .14), transparent 60%);
}
.service:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.service:hover::before { opacity: 1; }
.service > * { position: relative; }
.service__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 26px;
  background: linear-gradient(135deg, rgba(47, 184, 240, .18), rgba(31, 127, 208, .06)); border: 1px solid rgba(47, 184, 240, .25);
}
.service__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 22px; margin-bottom: 12px; }
.service p { color: var(--muted); margin: 0 0 20px; }
.service ul { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; }
.service li { display: flex; gap: 10px; align-items: center; }
.service li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; }

/* ---------- Processo ---------- */
.process { padding: clamp(90px, 12vw, 160px) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.process__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 8vw, 120px); }
.process__sticky { position: sticky; top: calc(var(--header-h) + 60px); align-self: start; }
.process__counter { margin-top: 48px; font-family: var(--font-head); display: flex; align-items: baseline; gap: 12px; }
.process__num { font-size: clamp(90px, 12vw, 170px); font-weight: 800; line-height: .9; letter-spacing: -.06em; background: linear-gradient(135deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .3s; }
.process__total { font-size: 22px; color: var(--muted); }
.process__bar { margin-top: 28px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; max-width: 340px; }
.process__bar span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--cyan), var(--red)); transition: width .6s var(--ease); }
.process__steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0 40px 36px; border-left: 1px solid var(--line); position: relative; opacity: .28; transition: opacity .6s var(--ease); }
.step::before { content: ''; position: absolute; left: -6px; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--line-strong); transition: background .4s, border-color .4s, box-shadow .4s; }
.step.is-active { opacity: 1; }
.step.is-active::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 6px rgba(47, 184, 240, .15); }
.step__tag { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); font-weight: 600; }
.step h3 { font-size: clamp(30px, 3.6vw, 48px); margin: 14px 0 18px; }
.step p { color: var(--muted); font-size: 18px; max-width: 460px; margin: 0; }

@media (max-width: 860px) {
  .process__grid { grid-template-columns: 1fr; }
  .process__sticky { position: static; }
  .process__counter, .process__bar { display: none; }
  .step { min-height: 0; opacity: 1; padding: 34px 0 34px 28px; }
}

/* ---------- Power BI ---------- */
.powerbi__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.checks { list-style: none; padding: 0; margin: 32px 0 38px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li::before { content: '✓'; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: rgba(47, 184, 240, .14); color: var(--cyan); margin-top: 1px; }

.dash {
  border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); padding: 22px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255,255,255,.02) inset;
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); transition: transform .8s var(--ease);
}
.dash:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.dash__top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.dash__dots i:first-child { background: var(--red); }
.dash__title { font-size: 13px; color: var(--muted); }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { background: rgba(5, 11, 24, .5); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 4px; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi strong { font-family: var(--font-head); font-size: clamp(18px, 2vw, 26px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 12px; font-weight: 600; }
.kpi .up { color: #3ddc97; }
.kpi .down { color: #ff7a66; }
.dash__body { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; }
.dash__chart, .dash__donut { background: rgba(5, 11, 24, .5); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.bars { height: 170px; display: flex; align-items: flex-end; gap: 7px; }
.bars span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(to top, var(--blue-2), var(--cyan)); transform: scaleY(0); transform-origin: bottom; transition: transform 1s var(--ease); }
.bars span:nth-child(odd) { opacity: .75; }
.dash.is-visible .bars span { transform: scaleY(1); }
.dash.is-visible .bars span:nth-child(n) { transition-delay: calc(var(--i, 0) * 70ms); }
.bars__labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 10px; }
.dash__donut { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.dash__donut svg { width: 110px; height: 110px; transform: rotate(-90deg); }
.dash__donut circle { fill: none; stroke-width: 5; }
.donut__bg { stroke: var(--line); }
.donut__a { stroke: var(--cyan); }
.donut__b { stroke: var(--blue); }
.donut__c { stroke: var(--red); }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.legend .a { background: var(--cyan); } .legend .b { background: var(--blue); } .legend .c { background: var(--red); }

@media (max-width: 960px) {
  .powerbi__grid { grid-template-columns: 1fr; }
  .dash { transform: none; }
}
@media (max-width: 520px) {
  .dash { padding: 14px; }
  .dash__body { grid-template-columns: 1fr; }
  .kpi { padding: 10px; }
  .kpi strong { font-size: 16px; }
}

/* ---------- Projetos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-size: 14px; font-weight: 500; color: var(--muted); transition: all .3s; }
.filter:hover { color: var(--text); border-color: var(--cyan); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 22px; }
.projects__loading, .projects__empty { color: var(--muted); padding: 40px 0; }
.project {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); text-align: left; padding: 0; width: 100%;
  transition: transform .5s var(--ease), border-color .4s, opacity .4s;
}
.project:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.project:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.project__media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: var(--surface-2); }
.project__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.project:hover .project__media img { transform: scale(1.06); }
.project__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center;
  background:
    radial-gradient(80% 90% at 80% 10%, rgba(47, 184, 240, .35), transparent 60%),
    radial-gradient(60% 70% at 10% 100%, rgba(226, 67, 43, .22), transparent 60%),
    linear-gradient(135deg, var(--surface-2), var(--bg));
}
.project__placeholder strong { font-family: var(--font-head); font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; }
.project__placeholder::after {
  content: ''; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: radial-gradient(circle at center, #000, transparent 75%);
}
.project__badge { position: absolute; top: 16px; left: 16px; z-index: 1; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(5, 11, 24, .7); backdrop-filter: blur(8px); border: 1px solid var(--line-strong); }
.project__body { padding: 24px 26px 26px; display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.project__body h3 { font-size: 22px; margin-bottom: 8px; }
.project__body p { margin: 0; color: var(--muted); font-size: 15px; }
.project__go { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 18px; transition: all .4s var(--ease); }
.project:hover .project__go { background: var(--cyan); border-color: var(--cyan); color: var(--bg); transform: rotate(-45deg); }
.project.is-hidden { display: none; }

/* ---------- Diferenciais ---------- */
.values { background: var(--bg-2); border-top: 1px solid var(--line); }
.values__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); border-top: 1px solid var(--line); }
.value { padding: 36px 28px 36px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .value { padding: 40px 32px; border-right: 1px solid var(--line); } .value:last-child { border-right: 0; } }
.value__n { font-family: var(--font-head); font-size: 14px; color: var(--red); font-weight: 700; }
.value h3 { font-size: 22px; margin: 22px 0 12px; }
.value p { color: var(--muted); margin: 0; }

/* ---------- CTA ---------- */
.cta { padding: 0; }
.cta__inner {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); margin-block: clamp(70px, 9vw, 120px) 0;
  padding: clamp(50px, 8vw, 100px) clamp(24px, 6vw, 80px);
  background: radial-gradient(70% 120% at 100% 0%, rgba(47, 184, 240, .55), transparent 60%), linear-gradient(135deg, var(--blue-2), #0a2f63 60%, #13122e);
}
.cta__inner::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px; background: url('/img/icone-branco.png') center / contain no-repeat; opacity: .07; pointer-events: none; }
.cta h2 { font-size: clamp(30px, 4.4vw, 56px); letter-spacing: -.035em; margin-bottom: 18px; position: relative; }
.cta p { color: rgba(234, 241, 251, .8); font-size: 18px; margin: 0 0 34px; position: relative; }
.cta .hero__actions { position: relative; }

/* ---------- Contato / orçamento ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; }
.contact__list li { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact__list span { color: var(--muted); font-size: 14px; }
.contact__list a, .contact__list strong { font-weight: 600; }
.contact__list a:hover { color: var(--cyan); }
.form { display: grid; gap: 16px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.form__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.form__head svg { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: rgba(37, 211, 102, .14); fill: var(--whats); flex: none; }
.form__head strong { display: block; font-family: var(--font-head); font-size: 18px; }
.form__head span { font-size: 14px; color: var(--muted); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(5, 11, 24, .6); color: var(--text); font: inherit; font-size: 15px;
  transition: border-color .25s, box-shadow .25s;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { background: var(--surface); }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(47, 184, 240, .15); }
.form .is-invalid { border-color: var(--red); }
.form__status { margin: 0; font-size: 14px; min-height: 1.4em; }
.form__status.ok { color: #3ddc97; }
.form__status.err { color: #ff7a66; }
.hp { position: absolute; left: -9999px; opacity: 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 30px; background: var(--bg-2); margin-top: clamp(60px, 8vw, 100px); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__brand img { height: 48px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); max-width: 320px; margin: 0; }
.footer__nav, .footer__social { display: grid; gap: 12px; align-content: start; color: var(--muted); }
.footer__nav a:hover, .footer__social a:hover { color: var(--text); }
.footer__admin { font-size: 13px; opacity: .7; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  /* bottom alto para não cobrir o selo "Powered by Netlify" */
  position: fixed; right: 20px; bottom: 76px; z-index: 40; height: 60px; min-width: 60px;
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 16px;
  border-radius: 999px; background: var(--whats); color: #062b14; font-weight: 600; font-size: 15px;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6); transition: transform .3s var(--ease);
}
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--whats); animation: pulse 2.4s ease-out infinite; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.wa-float__label { padding-left: 6px; }
@media (max-width: 600px) { .wa-float__label { display: none; } .wa-float { padding: 0; justify-content: center; } }
@keyframes pulse { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(2, 6, 14, .82); backdrop-filter: blur(8px); animation: fade .3s; }
.modal__panel {
  position: relative; width: min(1100px, 100%); max-height: calc(100svh - 32px); overflow: auto;
  display: grid; grid-template-columns: 1.4fr 1fr; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line-strong); animation: pop .45s var(--ease);
}
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(5, 11, 24, .7); font-size: 24px; line-height: 1; }
.modal__gallery { position: relative; background: var(--bg); min-height: 320px; display: flex; flex-direction: column; }
.modal__gallery > img { flex: 1; width: 100%; object-fit: contain; max-height: 70svh; background: #02060e; }
.modal__gallery .project__placeholder { position: relative; flex: 1; min-height: 320px; }
.gal-btn { position: absolute; top: 45%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(5, 11, 24, .7); font-size: 26px; line-height: 1; }
.gal-btn--prev { left: 12px; } .gal-btn--next { right: 12px; }
.gal-btn[hidden] { display: none; }
.modal__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: var(--bg-2); }
.modal__thumbs:empty { display: none; }
.modal__thumbs button { flex: none; width: 76px; height: 50px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: .55; background: none; }
.modal__thumbs button.is-active { border-color: var(--cyan); opacity: 1; }
.modal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.modal__cat { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); font-weight: 600; }
.modal__body h3 { font-size: clamp(28px, 3vw, 38px); }
.modal__client { margin: 0; color: var(--muted); }
.modal__desc { color: var(--text); opacity: .88; }
.modal__desc p { margin: 0 0 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.tags span { padding: 6px 12px; border-radius: 999px; font-size: 13px; background: rgba(47, 184, 240, .1); border: 1px solid rgba(47, 184, 240, .22); color: #bfe7fb; }
.modal__body .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 860px) { .modal__panel { grid-template-columns: 1fr; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }
body.no-scroll { overflow: hidden; }

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

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