﻿/* ==========================================================================
    RFOSITES — Design System (Premium Enhancement)
    Identidade visual: #0F1115 · Gradiente #00D2FF → #0066FF
    Space Grotesk (Display) · Inter (UI)
    ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
   /* Cores oficiais da marca */
   --black-tech: #0F1115;
   --cyan: #00D2FF;
   --blue: #0066FF;
   --graphite: #1E232A;
   --white: #FFFFFF;

   /* Derivados — tema escuro (padrao) - Premium refinement */
   --bg: #0F1115;
   --bg-alt: #14171D;
   --surface: #1E232A;
   --surface-2: #252A32;
   --line: rgba(255, 255, 255, 0.08);
   --line-strong: rgba(255, 255, 255, 0.14);
   --line-glow: rgba(0, 210, 255, 0.25);

   --text: #FFFFFF;
   --text-muted: #A6B0C0;
   --text-dim: #6B7686;
   --text-accent: #00D2FF;

   --hero-a: rgba(0, 102, 255, 0.22);
   --hero-b: rgba(0, 210, 255, 0.14);
   --grid-line: rgba(255, 255, 255, 0.028);
   --grid-glow: rgba(0, 210, 255, 0.12);
   --card-grad: linear-gradient(160deg, #1E232A 0%, #14171D 100%);
   --thumb-grad: linear-gradient(150deg, #1E232A 0%, #0F1115 100%);
   --thumb-text: rgba(255, 255, 255, 0.10);
   --thumb-text-hover: rgba(255, 255, 255, 0.16);
   --cta-grad: linear-gradient(150deg, #1E232A 0%, #14171D 100%);
   --header-bg: rgba(15, 17, 21, 0.72);
   --header-bg-solid: rgba(15, 17, 21, 0.95);
   --header-bg-glass: rgba(15, 17, 21, 0.65);
   --nav-bg: rgba(15, 17, 21, 0.99);
   --field-bg: #14171D;
   --chip-bg: rgba(255, 255, 255, 0.04);
   --chip-glow: rgba(0, 210, 255, 0.12);
   --shadow-card: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
   --shadow-card-lg: 0 32px 80px -24px rgba(0, 0, 0, 0.6);
   --shadow-grad: 0 12px 40px -12px rgba(0, 102, 255, 0.45);
   --shadow-glow: 0 0 30px rgba(0, 210, 255, 0.4);

   --mark: url('../img/logo-light.png');

   --grad: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
   --grad-soft: linear-gradient(135deg, rgba(0, 210, 255, 0.14) 0%, rgba(0, 102, 255, 0.14) 100%);
   --grad-glow: linear-gradient(135deg, rgba(0, 210, 255, 0.3) 0%, rgba(0, 102, 255, 0.2) 100%);

   /* Tipografia - Enhanced hierarchy */
   --font-display: 'Space Grotesk', 'Montserrat', system-ui, sans-serif;
   --font-body: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif;
   --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

   /* Layout - Wide layout para presença visual impactante */
   --container: 1440px;
   --container-wide: 1600px;
   --gutter: clamp(2rem, 5vw, 3.5rem);
   --section-y: clamp(5rem, 10vw, 9rem);
   --section-y-lg: clamp(7rem, 12vw, 12rem);
   --content-max: 90ch;
   --content-max-wide: 100ch;

   /* Efeitos - Premium animations */
   --radius: 4px;
   --radius-lg: 8px;
   --radius-pill: 999px;
   --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
   --shadow-lg: 0 32px 80px -24px rgba(0, 0, 0, 0.6);
   --shadow-grad: 0 12px 40px -12px rgba(0, 102, 255, 0.45);
   --shadow-glow: 0 0 30px rgba(0, 210, 255, 0.4);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* ---------- Acoes flutuantes (WhatsApp + Voltar ao topo) ----------
     Tokens unicos para que os botoes flutuantes vivam em uma
     "pilha" vertical sem colidir entre si nem com a barra de CTA. */
  --fab-right: 1.5rem;
  --fab-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  --fab-size: 58px;
  --fab-icon: 28px;
  --fab-gap: 0.75rem;
  /* Y do segundo botao da pilha (o de cima). */
  --fab-stack-2: calc(var(--fab-bottom) + var(--fab-size) + var(--fab-gap));

  /* Altura do header fixo. Unica fonte de verdade: o painel do menu
     mobile comeca em `top: var(--header-h)`, entao os dois nao podem
     divergir. */
  --header-h: 76px;
}
/* Header mais baixo em telas deitados/curtas: o conteudo continua
   cabendo sem o usuario precisar rolar. */
@media (max-height: 560px) and (max-width: 1024px) {
  :root { --header-h: 64px; }
}

/* ==========================================================
   TEMA CLARO — Manual de Identidade Visual RFOSites
   "Versao Principal (Fundo Claro): Logotipo escuro com
    gradientes azuis aplicados sobre fundo branco ou neutro."
   ========================================================== */
[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-alt: #F4F6FA;
  --surface: #FFFFFF;
  --surface-2: #E9EDF3;
  --line: rgba(15, 17, 21, 0.10);
  --line-strong: rgba(15, 17, 21, 0.18);

  --text: #0F1115;
  --text-muted: #4B5565;
  --text-dim: #6E7887;

  --hero-a: rgba(0, 102, 255, 0.12);
  --hero-b: rgba(0, 210, 255, 0.10);
  --grid-line: rgba(15, 17, 21, 0.045);
  --card-grad: linear-gradient(160deg, #FFFFFF 0%, #F4F6FA 100%);
  --thumb-grad: linear-gradient(150deg, #FFFFFF 0%, #E9EDF3 100%);
  --thumb-text: rgba(15, 17, 21, 0.10);
  --thumb-text-hover: rgba(15, 17, 21, 0.16);
  --cta-grad: linear-gradient(150deg, #FFFFFF 0%, #F4F6FA 100%);
  --header-bg: rgba(255, 255, 255, 0.78);
  --header-bg-solid: rgba(255, 255, 255, 0.96);
  --nav-bg: rgba(255, 255, 255, 0.99);
  --field-bg: #FFFFFF;
  --chip-bg: rgba(15, 17, 21, 0.04);
  --shadow-card: 0 24px 60px -24px rgba(15, 17, 21, 0.22);
  --mark: url('../img/logo-dark.png');

  --grad-soft: linear-gradient(135deg, rgba(0, 210, 255, 0.16) 0%, rgba(0, 102, 255, 0.16) 100%);
}

@media (prefers-color-scheme: light) {
  html:not([data-theme]) {
    --bg: #FFFFFF;
    --bg-alt: #F4F6FA;
    --surface: #FFFFFF;
    --surface-2: #E9EDF3;
    --line: rgba(15, 17, 21, 0.10);
    --line-strong: rgba(15, 17, 21, 0.18);
    --text: #0F1115;
    --text-muted: #4B5565;
    --text-dim: #6E7887;
    --hero-a: rgba(0, 102, 255, 0.12);
    --hero-b: rgba(0, 210, 255, 0.10);
    --grid-line: rgba(15, 17, 21, 0.045);
    --card-grad: linear-gradient(160deg, #FFFFFF 0%, #F4F6FA 100%);
    --thumb-grad: linear-gradient(150deg, #FFFFFF 0%, #E9EDF3 100%);
    --thumb-text: rgba(15, 17, 21, 0.10);
    --thumb-text-hover: rgba(15, 17, 21, 0.16);
    --cta-grad: linear-gradient(150deg, #FFFFFF 0%, #F4F6FA 100%);
    --header-bg: rgba(255, 255, 255, 0.78);
    --header-bg-solid: rgba(255, 255, 255, 0.96);
    --nav-bg: rgba(255, 255, 255, 0.99);
    --field-bg: #FFFFFF;
    --chip-bg: rgba(15, 17, 21, 0.04);
    --shadow-card: 0 24px 60px -24px rgba(15, 17, 21, 0.22);
    --mark: url('../img/logo-dark.png');
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Acessibilidade ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem;
  z-index: 9999; padding: 0.75rem 1.25rem;
  background: var(--cyan); color: var(--black-tech);
  font-weight: 700; border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Tipografia ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.625rem); line-height: 1.14; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.125rem, 1.9vw, 1.375rem); line-height: 1.25; }
h4 { font-size: 1.0625rem; }

p { color: var(--text-muted); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.65; }
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-center { text-align: center; }
.text-dim { color: var(--text-dim); }
.text-sm { font-size: 0.875rem; line-height: 1.5; }
.text-xs { font-size: 0.75rem; line-height: 1.4; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-wide { max-width: var(--container-wide); }

.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center h2 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 1.25rem 0;
}
.section-head p { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.7; color: var(--text-secondary); }

.section--services-head {
  padding-block: clamp(4rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.section--services-head::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(0,210,255,0.05) 0%, transparent 70%);
  translate: -50% -50%;
  z-index: 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px;
  background: var(--grad); flex-shrink: 0;
}
.section-head--center .eyebrow::after {
  content: ''; width: 28px; height: 2px;
  background: var(--grad); flex-shrink: 0;
}

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.625rem;
  padding: 0.9375rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.9375rem; font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex-shrink: 0; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--grad); color: #FFFFFF; box-shadow: var(--shadow-grad); }
.btn--primary:hover { box-shadow: 0 16px 50px -10px rgba(0, 210, 255, 0.55); }
.btn--primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.btn--primary:hover::after { opacity: 1; }
.btn--primary > * { position: relative; z-index: 1; }

.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0, 210, 255, 0.06); }

.btn--wa { background: #25D366; color: #06331A; }
.btn--wa:hover { box-shadow: 0 12px 36px -10px rgba(37, 211, 102, 0.5); }

/* Botão fixo do header que abre o WhatsApp — sempre visível */
.btn--whatsapp-fixed {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #25D366; color: #06331A; font-weight: 600;
  border-radius: 999px; padding: .55rem 1rem;
  box-shadow: 0 6px 20px -4px rgba(37,211,102,.45);
  transition: transform .15s, box-shadow .2s;
}
.btn--whatsapp-fixed:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px -6px rgba(37,211,102,.6);
}
.btn--whatsapp-fixed svg { width: 1.125rem; height: 1.125rem; }

/* Hero WhatsApp (contato.html) — tom verde como destaque visual */
/* Hero WhatsApp (contato.html) — sem video de fundo, entao encurta a altura
   e usa o gradiente da marca em vez do scrim escuro.

   O tom verde vem de --wa, nao de valores fixos: o bloco escuro define
   o verde, e o claro redefine. Fixar `--bg` e `--grid-line` aqui
   deixava o modo claro com fundo preto e grade branca. O scrim
   tambem nao e necessario aqui — sem video atras, o texto ja tem
   contraste garantido pelo fundo solido do tema. */
.hero--wa {
  min-height: auto;
  --wa: #25D366;
  --wa-strong: #1ec557;
  --wa-ink: #06331A;
  --wa-tint: rgba(37, 211, 102, 0.20);
  --hero-a: var(--wa-tint);
  --hero-scrim: none;
}
.hero--wa .eyebrow { color: var(--wa); }
.hero--wa .btn--primary { background: var(--wa); color: var(--wa-ink); }
.hero--wa .btn--primary:hover { background: var(--wa-strong); }
.hero--wa .btn--ghost { border-color: var(--line-strong); }
.hero--wa .hero__card { background: var(--card-grad); }

/* No tema claro o verde saturado perde contraste sobre branco: o
   escurece um degrau e vira um tom de marca, nao a cor do WhatsApp. */
[data-theme="light"] .hero--wa {
  --wa: #0E8A45;
  --wa-strong: #0B7740;
  --wa-ink: #FFFFFF;
  --wa-tint: rgba(14, 138, 69, 0.10);
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .hero--wa {
    --wa: #0E8A45;
    --wa-strong: #0B7740;
    --wa-ink: #FFFFFF;
    --wa-tint: rgba(14, 138, 69, 0.10);
  }
}

.btn--lg { padding: 0.9375rem 1.625rem; font-size: 0.9375rem; }
.btn--sm { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
.btn--block { width: 100%; }

/* ==========================================================================
    Header / Navegação
    Estrutura: Logo (esquerda) | Navegação (centro) | Ações (direita)
    ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
/* O desfoque vai num pseudo-elemento, NAO no .header: `backdrop-filter`
   (assim como `filter`/`transform`) torna o elemento um containing block
   para os descendentes `position: fixed`. Com ele no proprio header, o
   painel do menu mobile — que e .nav fixo dentro do header — passava a
   ser posicionado em relacao a caixa do header (~76px de altura) em vez
   da viewport, e o menu "bugava" com altura quase zero. */
.header::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: var(--header-bg-solid);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  transition: background-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
}
.header.is-scrolled::before {
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
}

.header__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; height: var(--header-h);
}

/* ---- Brand / Logo ---- */
.brand {
  display: flex; align-items: center; flex-shrink: 0;
  min-width: 0;
  padding: 0.5rem; margin: -0.5rem;
  border-radius: var(--radius);
  transition: background-color 0.25s var(--ease);
}
.brand__mark { max-width: 100%; }
.brand__mark img { max-width: 100%; height: auto; }
.brand:hover { background: var(--grad-soft); }

/* Logomarca RFOSites
   Proporcao real do arquivo: 7.06:1 — nunca usar width/height que nao respeitem essa razao.
   O manual define 120px de largura como minimo digital (= 17px de altura).
   No header usamos 24px de altura (~169px de largura), folga acima do minimo
   que ainda compete com o h1 gigante do hero sem roubar a hierarquia. */
.brand img { height: 24px; width: auto; display: block; }
.brand--footer img { height: 27px; width: auto; }

/* Abaixo de 420px de viewport a largura real do header aperta: encolhe mais
   um degrau em vez de deixar a navegacao espremer contra o logo. */
@media (max-width: 420px) {
  .brand img { height: 21px; }
  .brand--footer img { height: 24px; }
}

/* Troca de logomarca conforme o tema: clara no escuro, escura no claro. */
.brand__mark--dark { display: none; }
[data-theme="light"] .brand__mark--light { display: none; }
[data-theme="light"] .brand__mark--dark { display: inline-flex; }
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .brand__mark--light { display: none; }
  html:not([data-theme]) .brand__mark--dark { display: inline-flex; }
}

/* ---- Navegação principal ----
   Os links sao <a> diretos dentro de .nav (sem .nav__link no markup),
   entao todo o estilo precisa mirar em `.nav > a`. */
.nav {
   display: flex; align-items: center; gap: 0.25rem;
   flex: 1; justify-content: center;
   padding: 0.5rem;
}
.nav > a {
   position: relative;
   padding: 0.625rem 1rem;
   font-size: 0.9375rem; font-weight: 500;
   color: var(--text-muted);
   border-radius: var(--radius);
   transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav > a:hover { color: var(--text); background: var(--chip-bg); }
.nav > a::after {
   content: ''; position: absolute;
   left: 1rem; right: 1rem; bottom: 0.375rem;
   height: 2px; border-radius: 2px;
   background: var(--grad);
   transform: scaleX(0); transform-origin: right;
   opacity: 0;
   transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav > a:hover::after { transform: scaleX(1); transform-origin: left; opacity: 0.6; }
.nav > a[aria-current="page"] { color: var(--text); }
.nav > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; opacity: 1; }
/* O bloco de acao (divisor + botao orcamento/WhatsApp) existe so dentro
   do painel mobile; no desktop o header usa .header__cta. */
.nav > a.btn,
.nav__divider { display: none; }
.header__actions {
  display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0;
}

/* Alternador de tema */
.theme-toggle {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.theme-toggle:hover {
  color: var(--cyan); border-color: var(--cyan);
  background: var(--grad-soft); transform: translateY(-1px);
}
.theme-toggle:active { transform: translateY(0); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .theme-toggle .icon-sun { display: block; }
  html:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}

/* Botão CTA do header */
.header__cta {
  flex-shrink: 0;
  box-shadow: 0 4px 16px -4px rgba(0, 102, 255, 0.4);
}
.header__cta:hover { box-shadow: 0 8px 28px -6px rgba(0, 210, 255, 0.55); }

/* Separador visual entre tema e CTA */
.header__actions::before {
  content: ''; width: 1px; height: 22px;
  background: var(--line-strong); flex-shrink: 0;
}

.nav-toggle {
  display: none; width: 44px; height: 44px; flex-shrink: 0;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--radius); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; position: relative;
  width: 18px; height: 2px; background: var(--text); border-radius: 2px;
  transition: background-color 0.2s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.2s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .header__cta { display: none; }

  /* Painel fullscreen. Fica ABAIXO do header (z-index 1000) para o
     botao de fechar e a logomarca continuarem alcancaveis: sem isso o
     overlay cobriria o proprio toggle e o menu abriria "preso". */
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    z-index: 999;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    border: none;
    box-shadow: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    opacity: 0; visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-open { transform: translateX(0); opacity: 1; visibility: visible; }

  /* Alvos de toque: minimo 48px, largura cheia, texto legivel. */
  .nav > a {
    width: 100%; max-width: 22rem;
    min-height: 48px;
    display: flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 1.125rem; font-weight: 500;
    text-align: center;
    border-radius: var(--radius);
  }
  .nav > a::after { display: none; }
  .nav > a:hover,
  .nav > a[aria-current="page"] {
    background: var(--grad-soft); color: var(--cyan);
  }

  /* Mesmo seletor do bloqueio desktop (`.nav > a.btn`) para vencer a
     especificidade e exibir o CTA dentro do painel mobile. */
  .nav > a.btn {
    display: inline-flex;
    margin-top: 1rem; width: 100%; max-width: 22rem;
    min-height: 48px; justify-content: center;
    font-size: 0.9375rem; text-align: center;
  }
  .nav__divider { display: block; }
  .nav.is-open > a:not(.btn) {
    animation: navSlideIn 0.4s var(--ease-out) backwards;
  }
  .nav.is-open > a:not(.btn):nth-child(1) { animation-delay: 0.05s; }
  .nav.is-open > a:not(.btn):nth-child(2) { animation-delay: 0.1s; }
  .nav.is-open > a:not(.btn):nth-child(3) { animation-delay: 0.15s; }
  .nav.is-open > a:not(.btn):nth-child(4) { animation-delay: 0.2s; }
  .nav.is-open > a:not(.btn):nth-child(5) { animation-delay: 0.25s; }
  .nav.is-open > a:not(.btn):nth-child(6) { animation-delay: 0.3s; }
  .nav.is-open > a:not(.btn):nth-child(7) { animation-delay: 0.35s; }
  .nav.is-open > a:not(.btn):nth-child(8) { animation-delay: 0.4s; }
  .nav.is-open > a.btn { animation: navSlideIn 0.4s var(--ease-out) 0.45s backwards; }

  /* Telas baixas em paisagem: menu comeca no topo em vez de centralizar. */
  @media (max-height: 560px) {
    .nav { justify-content: flex-start; gap: 0.25rem; padding-top: 1rem; }
    .nav > a { min-height: 44px; padding-block: 0.5rem; }
    .nav > a.btn { margin-top: 0.5rem; }
    .nav__divider { margin-top: 0.75rem; }
  }
}
/* Trava de scroll com o menu mobile aberto. Como o painel so existe
   ate 1024px (sem scrollbar persistente), nao ha compensacao a fazer. */
body.nav-is-open { overflow: hidden; }

@keyframes navSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
    Hero
    ========================================================================== */
.hero {
  position: relative;
  min-height: 90vh;
  /* var(--header-h) = altura do header fixo; o clamp abaixo abre o
     respiro entre a barra e o conteudo do banner. */
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;

  /* Contraste adaptativo: o JS mede o brilho do frame e alterna
     .is-fg-dark (letras escuras) / padrao (letras claras). */
  --hero-fg: #FFFFFF;
  --hero-fg-soft: rgba(255, 255, 255, 0.82);
  --hero-grad: var(--grad);
  --hero-scrim: linear-gradient(180deg, rgba(15, 17, 21, 0.55) 0%, rgba(15, 17, 21, 0.82) 100%);
  --hero-shadow: 0 1px 10px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.5);
  --hero-badge-bg: var(--grad-soft);
  --hero-badge-border: rgba(0, 210, 255, 0.28);
  --hero-ghost-bg: rgba(0, 0, 0, 0.25);
  --hero-ghost-border: rgba(255, 255, 255, 0.45);
}
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    padding-top: calc(var(--header-h) + clamp(1.5rem, 5vw, 3.5rem));
    padding-bottom: clamp(2rem, 8vw, 4rem);
  }
}
.hero.is-fg-dark {
  --hero-fg: #0F1115;
  --hero-fg-soft: rgba(15, 17, 21, 0.78);
  --hero-grad: linear-gradient(135deg, #005FCC 0%, #003A9B 100%);
  --hero-scrim: linear-gradient(180deg, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0.60) 100%);
  --hero-shadow: 0 1px 10px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(255, 255, 255, 0.7);
  --hero-badge-bg: rgba(255, 255, 255, 0.55);
  --hero-badge-border: rgba(15, 17, 21, 0.18);
  --hero-ghost-bg: rgba(255, 255, 255, 0.5);
  --hero-ghost-border: rgba(15, 17, 21, 0.28);
}

/* Glassmorphism overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-scrim);
  transition: background 0.6s var(--ease);
}

.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 78% 8%, var(--hero-a) 0%, transparent 58%),
    radial-gradient(ellipse 65% 50% at 12% 88%, var(--hero-b) 0%, transparent 60%),
    var(--bg);
}
/* Fundo estatico do hero. Antes era um clipe de 25 MB em autoplay, que
   dominava o LCP e consumia banda sem retorno visual (rodava a 20% de
   opacidade sob o scrim). Agora e uma imagem unica, ja reduzida, com
   overlay de gradiente em CSS puro para preservar a profundidade.
   image-set entrega AVIF/WebP quando o navegador suporta. */
.hero__bg {
  background-image:
    linear-gradient(180deg, rgba(15, 17, 21, 0.72) 0%, rgba(15, 17, 21, 0.88) 100%),
    radial-gradient(ellipse 80% 55% at 78% 8%, var(--hero-a) 0%, transparent 58%),
    radial-gradient(ellipse 65% 50% at 12% 88%, var(--hero-b) 0%, transparent 60%),
    image-set(
      url("../img/hero-bg.avif") type("image/avif"),
      url("../img/hero-bg.webp") type("image/webp"),
      url("../img/hero-bg.jpg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 32%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 32%, #000 25%, transparent 78%);
}
/* Variante do contato: mesma grade, aplicada fora do .hero (que já usa
   .hero__inner para o conteúdo). */
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 32%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 32%, #000 25%, transparent 78%);
}

.hero__inner {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
  position: relative;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.625rem;
  padding: 0.5rem 1rem 0.5rem 0.625rem;
  border: 1px solid var(--hero-badge-border);
  border-radius: 999px;
  font-size: 0.8125rem; font-weight: 500;
  margin-bottom: 1.75rem;
}
.hero__badge strong { font-weight: 700; }
.hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(0, 210, 255, 0.05); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.55), 0 0 20px rgba(0, 210, 255, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(0, 210, 255, 0), 0 0 30px rgba(0, 210, 255, 0.5); }
}

/* Contraste do banner: a cor vem de --hero-fg, alternada pelo JS conforme o
   brilho do frame do vídeo (`.is-fg-dark` = letras escuras). */
.hero h1 { color: var(--hero-fg); }
.hero__desc { color: var(--hero-fg-soft); text-shadow: var(--hero-shadow); }
.hero__badge {
  color: var(--hero-fg);
  background: var(--hero-badge-bg);
  border-color: var(--hero-badge-border);
}
.hero__badge strong { color: var(--hero-fg); }
.hero__badge span { color: var(--hero-fg-soft); }

/* O trecho gradiente do título não recebe `color` (quebraria o
   background-clip:text) nem `text-shadow` (mancharia o corte da letra).
   Em vez disso o próprio gradiente escurece no modo de letra clara. */
.hero h1 .text-grad {
  background: var(--hero-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

/* O botão ghost acompanha o modo: branco sobre frame escuro, escuro sobre claro. */
.hero .btn--ghost {
  color: var(--hero-fg) !important;
  border-color: var(--hero-ghost-border) !important;
  background: var(--hero-ghost-bg) !important;
  text-shadow: var(--hero-shadow);
}
.hero .btn--ghost:hover {
  color: #06131A !important;
  background: var(--cyan) !important;
  border-color: var(--cyan) !important;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero__proof {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem 2.25rem; padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero__proof-item strong {
  display: block; font-family: var(--font-display);
  font-size: 1.875rem; font-weight: 700; line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__proof-item span { font-size: 0.8125rem; color: var(--text-dim); }

/* Hero visual — card de stack */
.hero__visual { position: relative; }
.hero__card {
  position: relative;
  padding: 1.75rem;
  background: var(--card-grad);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.hero__card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad);
}
.hero__card-head {
  display: flex; align-items: center; gap: 0.5rem;
  padding-bottom: 1.25rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.hero__card-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.hero__card-dot:nth-child(1) { background: #FF5F57; }
.hero__card-dot:nth-child(2) { background: #FEBC2E; }
.hero__card-dot:nth-child(3) { background: #28C840; }
.hero__card-title { margin-left: auto; font-size: 0.75rem; color: var(--text-dim); font-family: var(--font-body); }

.stack-list { display: flex; flex-direction: column; gap: 0.875rem; }
.stack-item {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.stack-item:hover { border-color: rgba(0, 210, 255, 0.35); transform: translateX(4px); background: rgba(0, 210, 255, 0.04); }
.stack-item__icon {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(0, 210, 255, 0.22);
  border-radius: var(--radius);
}
.stack-item__icon svg { width: 17px; height: 17px; stroke: var(--cyan); }
.stack-item strong { display: block; color: var(--text); font-size: 0.9375rem; font-weight: 600; }
.stack-item span { font-size: 0.8125rem; color: var(--text-dim); }

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  /* A proposta de valor lidera no mobile; o card de stack vem depois. */
  .hero__content { order: 1; }
  .hero__visual { order: 2; max-width: 480px; margin-inline: auto; width: 100%; }
  .hero__proof { gap: 1.5rem 2rem; }
}
@media (max-width: 640px) {
  .hero__actions .btn { width: 100%; }
  .hero__proof { gap: 1.25rem 1.75rem; }
  .hero__proof-item strong { font-size: 1.5rem; }
}

/* ==========================================================================
   Marquee de tecnologias
   ========================================================================== */
.marquee {
  padding-block: 2.25rem;
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__label {
  text-align: center; font-size: 0.6875rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 1.5rem; font-family: var(--font-display); font-weight: 600;
}
.marquee__track { display: flex; width: max-content; animation: scroll 34s linear infinite; }
.marquee__track:hover { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee__item {
  display: flex; align-items: center; gap: 0.625rem;
  padding-inline: 1.75rem;
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600;
  color: var(--text-dim); white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.marquee__item:hover { color: var(--text); }
.marquee__item i { width: 6px; height: 6px; background: var(--grad); border-radius: 50%; flex-shrink: 0; }

/* ==========================================================================
    Cards de serviço
    ========================================================================== */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  position: relative;
  padding: 2rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 210, 255, 0.3);
  box-shadow: var(--shadow-card);
}
.card:hover .card__icon { transform: scale(1.08); background: rgba(0, 210, 255, 0.1); }
.card:hover::before { transform: scaleX(1); }

.card__icon {
  width: 48px; height: 48px; margin-bottom: 1.5rem;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(0, 210, 255, 0.22);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.card:hover .card__icon { transform: scale(1.08); background: rgba(0, 210, 255, 0.1); }
.card__icon svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.card h3 { margin-bottom: 0.75rem; }
.card p { font-size: 0.9375rem; }
.card__link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.5rem; font-size: 0.875rem; font-weight: 600; color: var(--cyan);
  transition: gap 0.25s var(--ease);
}
.card__link:hover { gap: 0.75rem; }

.card__list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.25rem; }
.card__list li {
  display: flex; align-items: flex-start; gap: 0.625rem;
  font-size: 0.875rem; color: var(--text-dim);
}
.card__list li::before {
  content: ''; width: 5px; height: 5px; margin-top: 0.6em;
  background: var(--cyan); border-radius: 1px; flex-shrink: 0;
  transform: rotate(45deg);
}

/* Card com número (diferenciais) */
.card--numbered { position: relative; padding-top: 2.5rem; }
.card__num {
  position: absolute; top: 1.5rem; right: 1.75rem;
  font-family: var(--font-display); font-size: 2.75rem; font-weight: 700;
  line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.16;
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.stat { padding: 2.25rem 1.75rem; background: var(--bg-alt); text-align: center; transition: background-color 0.3s var(--ease); }
.stat:hover { background: var(--surface); }
.stat__value {
  font-family: var(--font-display); font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700; line-height: 1; margin-bottom: 0.5rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { font-size: 0.875rem; color: var(--text-dim); }
.stat__value--decimal { color: var(--text); background: none; background-clip: border-box; }

/* ==========================================================================
   Cases / Projetos
   ========================================================================== */
.case {
  display: flex; flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.case:hover { transform: translateY(-6px); border-color: rgba(0, 210, 255, 0.3); box-shadow: var(--shadow-card); }

.case__thumb {
  position: relative; aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  background: var(--thumb-grad);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.case__thumb::after {
  content: ''; position: absolute; inset: 0;
  background: var(--grad); opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.case:hover .case__thumb::after { opacity: 0.07; }
.case__thumb-text {
  font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700;
  letter-spacing: -0.03em; color: var(--thumb-text);
  transition: color 0.4s var(--ease); padding-inline: 1rem; text-align: center;
}
.case:hover .case__thumb-text { color: var(--thumb-text-hover); }
.case__tag {
  position: absolute; top: 0.875rem; left: 0.875rem; z-index: 1;
  padding: 0.3125rem 0.6875rem;
  background: var(--header-bg-solid);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: var(--radius);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--cyan);
}
.case__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.case__body h3 { margin-bottom: 0.625rem; font-size: 1.1875rem; }
.case__body p { font-size: 0.9375rem; margin-bottom: 1.25rem; }
.case__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.case__meta span {
  padding: 0.25rem 0.625rem;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.75rem; color: var(--text-dim);
}

/* Case destaque - case principal */
.case--featured {
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(0, 210, 255, 0.1), var(--shadow-card);
}
.case--featured:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.2), var(--shadow-card-lg);
}
.case--featured .case__thumb {
  border-bottom-color: rgba(0, 210, 255, 0.3);
}

/* Tag de case principal */
.case__tag--main {
  background: var(--grad);
  color: var(--black-tech);
  border: none;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 210, 255, 0.3);
}
.case__tag--main + .case__tag {
  top: 2.75rem; /* posiciona a segunda tag abaixo da principal */
}

/* ==========================================================================
   Case "ao vivo" — projeto com dominio publicado
   O selo fica sobre o setor, e o link para o site real encerra o card.
   Case de portfólio (entregue, sem dominio publico) usa o selo neutro
   abaixo: nao ha link porque prometer acesso a um site que nao existe
   seria o mesmo erro das metricas inventadas.
   ========================================================================== */
.case__tag--portfolio {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-strong);
  color: var(--text-muted);
}

.case__sector {
  position: absolute; bottom: 0.875rem; left: 0.875rem; right: 0.875rem;
  z-index: 1;
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
}

.case__visit {
  display: inline-flex; align-items: center; gap: 0.5rem;
  align-self: flex-start;
  margin-top: 1.25rem;
  padding: 0.5rem 0.875rem;
  background: var(--chip-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.8125rem; font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.case__visit svg { flex-shrink: 0; transition: transform 0.25s var(--ease); }
.case__visit:hover {
  background: var(--grad-soft);
  border-color: var(--line-glow);
  color: var(--cyan);
}
.case__visit:hover svg { transform: translate(2px, -2px); }
.case__visit:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Cards sem link (case de portfólio) nao deixam a meta grudada no texto. */
.case__meta:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .case__visit:hover svg { transform: none; }
}

/* O ciano puro perde contraste sobre branco: o link usa o azul da marca. */
[data-theme="light"] .case__visit:hover { color: var(--blue); }
[data-theme="light"] .case__tag--portfolio { color: var(--text-dim); background: rgba(15, 17, 21, 0.06); border-color: var(--line-strong); }

/* Grid responsivo para cases em destaque */
@media (max-width: 1024px) {
  .grid--4 .case--featured {
    grid-column: span 2;
  }
}
@media (max-width: 640px) {
  .grid--4 .case--featured {
    grid-column: span 1;
  }
  .case__tag--main + .case__tag {
    top: auto; bottom: 0.875rem; left: 0.875rem;
  }
}

/* ==========================================================================
   Showcase — case principal com visualização ao vivo (desktop + mobile)
   ========================================================================== */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 2rem); align-items: center;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: var(--card-grad);
  border: 1px solid rgba(0, 210, 255, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(0, 210, 255, 0.08), var(--shadow-card);
  position: relative; overflow: hidden;
}
.showcase::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 70% at 88% 12%, var(--grad-soft) 0%, transparent 62%);
}
.showcase > * { position: relative; z-index: 1; }
@media (max-width: 1024px) { .showcase { grid-template-columns: 1fr; } }

/* ==========================================================================
   Carrossel de cases (showcase + galeria)
   ========================================================================== */
.carousel {
  position: relative; width: 100%;
  overflow: hidden;
}
.carousel__track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  /* `pan-y` preserva o scroll vertical da pagina e libera o eixo X pro arrasto. */
  touch-action: pan-y;
}
.carousel__slide {
  flex: 0 0 100%; min-width: 0;
}
.carousel__prev, .carousel__next {
  position: absolute; top: 50%;
  width: clamp(2.5rem, 5vw, 3.25rem); height: clamp(2.5rem, 5vw, 3.25rem);
  transform: translateY(-50%);
  border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(15, 17, 21, 0.55);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 5;
}
.carousel__prev { left: 0.5rem; }
.carousel__next { right: 0.5rem; }
.carousel__prev:hover, .carousel__next:hover {
  background: var(--cyan); color: #06131A; border-color: var(--cyan);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.45), 0 0 8px rgba(0, 210, 255, 0.8);
}
.carousel__prev svg, .carousel__next svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.carousel__dots {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-top: 1.5rem;
}
.carousel__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-strong); border: 0; cursor: pointer; padding: 0;
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}
.carousel__dot.is-active {
  width: 24px;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.45);
  animation: pulse-glow 1.8s ease-in-out infinite;
}

/* Slide de texto (projeto sem captura de tela) */
.showcase--text { grid-template-columns: 1fr; }
.showcase--text .stage { display: none; }
.showcase--text > div { max-width: 44rem; margin: 0 auto; text-align: center; }
.showcase--text .showcase__links { justify-content: center; }
.showcase--text .showcase__url { margin: 0 auto; }

/* Galeria em carrossel: 3 / 2 / 1 imagem por viewport.
   O espaçamento é padding interno do slide, NÃO `gap` no track: o
   transform do carrossel é uma porcentagem da largura do track, e um
   `gap` acumulado faz o alinhamento derivar a cada página. */
.carousel--gallery .carousel__track { gap: 0; }
.carousel--gallery .carousel__slide {
  flex: 0 0 100%;
  padding: 0 0.5rem;
}
.carousel--gallery .carousel__slide:first-child { padding-left: 0; }
.carousel--gallery .carousel__slide:last-child  { padding-right: 0; }
@media (max-width: 560px) {
  .carousel--gallery .carousel__slide { padding: 0; }
  .carousel--gallery .carousel__prev { left: 0.25rem; }
  .carousel--gallery .carousel__next { right: 0.25rem; }
}

/* Carrossel de servicos: 3 / 2 / 1 card por viewport.
   Mesma razao do gallery — o espacamento entre cards e padding do slide,
   nunca `gap` no track, senao o transform em % desalinha a cada pagina. */
.carousel--services .carousel__track { gap: 0; }
.carousel--services .carousel__slide {
  display: flex;
  padding: 0 0.625rem;
}
/* O card sobe 6px no hover; sem esta folga o `overflow: hidden` do
   carrossel cortaria o topo do card e a sombra. */
.carousel--services { padding-block: 0.75rem 0.5rem; }

/* O padding do slide e interno, entao a coluna mais a esquerda de CADA
   pagina precisa zerar o lado externo.`:first-child`/`:last-child` sozinho
   nao resolve: num carrossel de 3 colunas so as paginas 1 e 3 tocariam a
   borda do container. O JS marca os slides da pagina visivel com
   `.is-page-edge-start` / `.is-page-edge-end`. */
.carousel--services .carousel__slide.is-page-edge-start { padding-left: 0; }
.carousel--services .carousel__slide.is-page-edge-end   { padding-right: 0; }

/* Reserva espaco para as setas flutuarem sobre a primeira/ultima coluna. */
.carousel--services .carousel__prev { left: -0.5rem; }
.carousel--services .carousel__next { right: -0.5rem; }

@media (max-width: 1080px) {
  /* Duas colunas: as setas voltam para dentro para nao cobrir o texto. */
  .carousel--services .carousel__prev { left: 0.25rem; }
  .carousel--services .carousel__next { right: 0.25rem; }
}
@media (max-width: 700px) {
  .carousel--services .carousel__slide { padding: 0; }
}

/* ==========================================================================
   Card de servico (carrossel) — redesign
   Superficie em vidro com luz superior, filete gradiente que acende no
   hover, indice editorial e hierarquia tipografica mais sharp.
   ========================================================================== */
.carousel--services .card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 2.25rem 2rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0) 42%),
    var(--card-grad);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 40px -28px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

/* Filete superior: fino, gradiente da marca, acende da esquerda p/ direita. */
.carousel--services .card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
  z-index: 2;
}

/* Brilho radial que segue o topo do card — da profundidade ao superficie. */
.carousel--services .card::after {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  width: 140%; aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--chip-glow) 0%, transparent 62%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
  z-index: -1;
}

.carousel--services .card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 210, 255, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 32px 64px -28px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(0, 210, 255, 0.10);
}
.carousel--services .card:hover::before { transform: scaleX(1); }
.carousel--services .card:hover::after { opacity: 1; }
.carousel--services .card:focus-within {
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 0 0 3px var(--chip-glow);
}

/* Indice editorial 01..06 */
.carousel--services .card__index {
  position: absolute;
  top: 1.375rem; right: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--text-dim);
  opacity: 0.5;
  transition: opacity 0.4s var(--ease), color 0.4s var(--ease);
}
.carousel--services .card:hover .card__index { opacity: 1; color: var(--cyan); }

/* Icone: moldura com canto gradiente e leve rotacao no hover. */
.carousel--services .card__icon {
  position: relative;
  width: 52px; height: 52px;
  margin-bottom: 1.75rem;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 14px;
  transition: transform 0.45s var(--ease), background-color 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.carousel--services .card:hover .card__icon {
  transform: translateY(-2px) scale(1.06) rotate(-4deg);
  background: var(--grad-glow);
  border-color: rgba(0, 210, 255, 0.45);
  box-shadow: 0 10px 26px -10px rgba(0, 102, 255, 0.6);
}
.carousel--services .card__icon svg {
  width: 24px; height: 24px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hierarquia tipografica */
.carousel--services .card h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--text);
  transition: color 0.35s var(--ease);
}
.carousel--services .card:hover h3 { color: var(--cyan); }
.carousel--services .card > p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Lista: separadoreshairline, marcador vira seta no hover. */
.carousel--services .card__list {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.75rem;
  border-top: 1px solid var(--line);
}
.carousel--services .card__list li {
  position: relative;
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.6875rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-dim);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.carousel--services .card:hover .card__list li { color: var(--text-muted); }
.carousel--services .card__list li::before {
  content: '';
  width: 5px; height: 5px;
  margin-top: 0.55em;
  background: var(--cyan);
  border-radius: 1px;
  flex-shrink: 0;
  transform: rotate(45deg);
  opacity: 0.55;
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}
.carousel--services .card:hover .card__list li::before { opacity: 1; transform: rotate(135deg); }

/* Link de rodape: sublinhado que cresce e seta que avanca. */
.carousel--services .card__link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: auto;
  align-self: flex-start;
  position: relative;
  padding-bottom: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  transition: gap 0.3s var(--ease);
}
.carousel--services .card__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.carousel--services .card:hover .card__link::after { transform: scaleX(1); transform-origin: left; }
.carousel--services .card__link svg { flex-shrink: 0; transition: transform 0.3s var(--ease); }
.carousel--services .card__link:hover svg { transform: translateX(3px); }

.carousel--services .card__link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Sem movimento: o card nao sobe, mas continua legivel e com contraste. */
@media (prefers-reduced-motion: reduce) {
  .carousel--services .card:hover { transform: none; }
  .carousel--services .card:hover .card__icon { transform: none; }
}

/* Tema claro: o realce superior e a borda interna precisam inverter,
   senao o card fica chapado e a borda some sobre o branco. */
[data-theme="light"] .carousel--services .card {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-alt) 100%);
  box-shadow: 0 1px 0 rgba(15, 17, 21, 0.05) inset, 0 18px 40px -30px rgba(15, 17, 21, 0.45);
}
[data-theme="dark"] .carousel--services .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 0 1px rgba(0, 210, 255, 0.5), 
              0 40px 100px -20px rgba(0, 0, 0, 0.85),
              0 0 40px rgba(0, 210, 255, 0.15);
  border-color: rgba(0, 210, 255, 0.5);
}
.carousel--services .card:hover .card__icon {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(0, 102, 255, 0.15));
  transform: scale(1.08);
}
.carousel--services .card:hover .card__link {
  color: var(--white);
  gap: 0.75rem;
}
.carousel--services .card:hover .card__link::after {
  width: 100%;
}
.carousel--services .card:hover .card__link svg {
  transform: translateX(4px);
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .carousel--services .card {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-alt) 100%);
    box-shadow: 0 1px 0 rgba(15, 17, 21, 0.05) inset, 0 18px 40px -30px rgba(15, 17, 21, 0.45);
  }
}

.showcase__title { font-size: clamp(1.75rem, 3.4vw, 2.75rem); margin-bottom: 0.875rem; }
.showcase__lead { font-size: 1.0625rem; margin-bottom: 1.75rem; }
.showcase__links { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 1.75rem; }

.showcase__url {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.875rem;
  color: var(--text);
  padding: 0.5rem 0.875rem;
  background: var(--chip-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.showcase__url:hover { border-color: var(--cyan); color: var(--cyan); }
.showcase__url svg { width: 14px; height: 14px; stroke: var(--cyan); fill: none; stroke-width: 2; }

.showcase__facts { display: flex; flex-direction: column; gap: 0.875rem; margin-bottom: 1.75rem; }
.showcase__fact { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9375rem; }
.showcase__fact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.2em; stroke: var(--cyan); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Moldura de navegador (usada pelo slide de projeto e pelo lightbox) ---- */
.device-browser {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card-lg);
}
.device-browser__bar {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.device-browser__dots { display: flex; gap: 5px; flex-shrink: 0; }
.device-browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.device-browser__dots i:nth-child(1) { background: #FF5F57; }
.device-browser__dots i:nth-child(2) { background: #FEBC2E; }
.device-browser__dots i:nth-child(3) { background: #28C840; }
.device-browser__url {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.device-browser__url svg { width: 11px; height: 11px; stroke: var(--cyan); fill: none; stroke-width: 2; flex-shrink: 0; }

/* Print estático dentro da moldura */
.device-browser__frame { position: relative; aspect-ratio: 16 / 10; background: var(--bg); overflow: hidden; }
.device-browser__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }


/* ==========================================================================
   Slide de projeto — foco em desktop
   A moldura de celular foi removida: o `aspect-ratio: 9/19.5` ao lado do
   16/10 do navegador estourava a altura do slide em telas medias e a
   captura mobile saia cortada. Cada projeto agora ocupa um slide inteiro
   com a captura de desktop em tamanho de leitura confortavel.
   ========================================================================== */
.project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--card-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* Faixa de acento no topo, com a cor do status. */
.project::before {
  content: '';
  position: absolute; inset: 0 0 auto 0;
  height: 2px;
  background: var(--project-accent, var(--grad));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.project__body { min-width: 0; }

.project__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

/* Badge de status: no ar / concluido / portfólio */
.project__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}
.project__status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
/* Concluido: verde, com anel pulsante discreto. */
.project__status--done { color: #35D07F; background: rgba(53, 208, 127, 0.09); }
.project__status--done::before { animation: status-pulse 2.4s var(--ease-in-out) infinite; }
@keyframes status-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; }
  50% { opacity: 0.65; box-shadow: 0 0 0 4px transparent; }
}

.project__delivered {
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0.5rem 0;
  display: block;
}

.project__title {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.project__lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 46ch;
}
.project__lead strong { color: var(--text); font-weight: 600; }

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding: 0;
  list-style: none;
}
.project__tags li {
  padding: 0.25rem 0.625rem;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.project__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Coluna da captura */
.project__shot { min-width: 0; }
.project__shot .device-browser__frame { aspect-ratio: 16 / 10; }
.project__shot .device-browser__frame img {
  object-fit: cover;
  object-position: top center;
  /* Zoom lento no hover: da a sensacao de que a captura esta "viva",
     sem roubar a atencao do titulo nem do texto do slide. */
  transition: transform 0.7s var(--ease);
}
.project__shot:hover .device-browser__frame img { transform: scale(1.035); }
.project__shot .device-browser {
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.project__shot:hover .device-browser {
  border-color: rgba(0, 210, 255, 0.28);
  box-shadow: var(--shadow-grad);
}
.project__caption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.project__caption svg { width: 14px; height: 14px; stroke: var(--cyan); fill: none; stroke-width: 2; flex-shrink: 0; }

/* Abaixo de 1024px o slide empilha: texto em cima, captura embaixo. */
@media (max-width: 1024px) {
  .project { grid-template-columns: 1fr; }
  .project__lead { max-width: none; }
}
/* Em telas pequenas a captura e o que mais importa: ela vai primeiro. */
@media (max-width: 640px) {
  .project { padding: 1.25rem; gap: 1.25rem; }
  .project__title { font-size: 1.5rem; }
  .project__lead { font-size: 0.9375rem; }
  .project__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .project__status::before { animation: none; }
  .project__shot:hover .device-browser__frame img { transform: none; }
}

/* Botão que abre a visualização ao vivo */
.shot {
  position: absolute; inset: 0; z-index: 4;
  display: block; width: 100%; padding: 0;
  border: 0; cursor: pointer;
  background: transparent;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.device-browser__frame:hover .shot,
.shot:focus-visible { opacity: 1; }

.shot::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 17, 21, 0.35) 0%, rgba(15, 17, 21, 0.82) 100%);
}
.shot__label {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.8125rem; font-weight: 700;
  color: #FFFFFF; letter-spacing: 0.01em; text-align: center;
}
.shot__label svg { width: 30px; height: 30px; stroke: var(--cyan); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.shot__label small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.6875rem; color: rgba(255, 255, 255, 0.72); }


/* ==========================================================================
   Lightbox — visualização ao vivo em popup
   ========================================================================== */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6, 7, 9, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox__panel {
  position: relative;
  display: flex; flex-direction: column;
  width: 100%; max-width: 1180px; max-height: 100%;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), var(--shadow-card);
  transform: translateY(18px) scale(0.965);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s var(--ease);
}
.lightbox.is-open .lightbox__panel { transform: translateY(0) scale(1); opacity: 1; }

.lightbox__bar {
  display: flex; align-items: center; gap: 0.875rem; flex-wrap: wrap;
  padding: 0.875rem 1rem;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.lightbox__title { display: flex; align-items: baseline; gap: 0.5rem; margin-right: auto; min-width: 0; }
.lightbox__title strong { font-family: var(--font-display); font-size: 1rem; color: var(--text); white-space: nowrap; }
.lightbox__title span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }

.lightbox__devices { display: flex; gap: 2px; padding: 3px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-pill); }
.lightbox__device {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.4375rem 0.875rem; border: 0; cursor: pointer;
  background: transparent; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600; color: var(--text-dim);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lightbox__device svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__device:hover { color: var(--text); }
.lightbox__device.is-active { background: var(--cyan); color: #06131A; }

.lightbox__open {
  display: inline-flex; align-items: center; gap: 0.4375rem;
  padding: 0.5rem 0.9375rem;
  font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600;
  color: var(--text); background: var(--chip-bg);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lightbox__open:hover { border-color: var(--cyan); color: var(--cyan); }
.lightbox__open svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.lightbox__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--chip-bg); color: var(--text-dim); cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.lightbox__close:hover { border-color: var(--cyan); color: var(--cyan); transform: rotate(90deg); }
.lightbox__close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.lightbox__body {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  background: var(--bg-alt);
}
.lightbox__frame {
  position: relative; width: 100%;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: max-width 0.42s cubic-bezier(0.16, 1, 0.3, 1), aspect-ratio 0.42s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.3s var(--ease);
}
.lightbox__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.lightbox__frame[data-device="desktop"] { max-width: 100%; aspect-ratio: 16 / 10; }
.lightbox__frame[data-device="mobile"] {
  max-width: 380px; aspect-ratio: 9 / 18;
  border-radius: 26px; padding: 8px; background: var(--surface);
  border: 1px solid var(--line-strong);
}
.lightbox__frame[data-device="mobile"] iframe { border-radius: 19px; }

body.is-locked { overflow: hidden; }

@media (max-width: 640px) {
  .lightbox { padding: 0.75rem; }
  .lightbox__bar { gap: 0.5rem; padding: 0.75rem; }
  .lightbox__title { width: 100%; margin-right: 0; }
  .lightbox__open span { display: none; }
  .lightbox__frame[data-device="mobile"] { max-width: 260px; }
}

/* ==========================================================================
   Galeria — projetos anteriores (fora do ar)
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.gallery__item {
  position: relative; display: block;
  aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--thumb-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  max-width: 350px; max-height: 350px;
  margin: 0 auto;
}
.gallery__item:hover { transform: translateY(-5px); border-color: rgba(0, 210, 255, 0.3); box-shadow: var(--shadow-card); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); max-width: 350px; max-height: 350px; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.25rem;
  padding: 1.125rem;
  background: linear-gradient(180deg, transparent 42%, rgba(15, 17, 21, 0.9) 100%);
  text-align: left;
}
.gallery__name {
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700;
  color: #FFFFFF; letter-spacing: -0.01em; line-height: 1.2;
  text-transform: capitalize;
}
.gallery__sector { font-size: 0.75rem; color: rgba(255, 255, 255, 0.72); }

/* ==========================================================================
   Cases com imagem — thumbnail real
   ========================================================================== */
.case__thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.case:hover .case__thumb img { transform: scale(1.04); }
.case__thumb--img .case__thumb-text { display: none; }

/* Link externo no card */
.case__ext {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.25rem; font-size: 0.875rem; font-weight: 600; color: var(--cyan);
  transition: gap 0.25s var(--ease);
}
.case:hover .case__ext { gap: 0.75rem; }
.case__ext svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Depoimentos
   ========================================================================== */
.testimonial {
  display: flex; flex-direction: column;
  padding: 2rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.testimonial:hover { transform: translateY(-4px); border-color: rgba(0, 210, 255, 0.28); }

.testimonial__quote {
  flex: 1; margin-bottom: 1.75rem;
  font-size: 1rem; line-height: 1.7; color: var(--text);
}
.testimonial__quote::before {
  content: '"'; display: block;
  font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 0.6;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 0.75rem;
}
.testimonial__author { display: flex; align-items: center; gap: 0.875rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.testimonial__avatar {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--grad);
  border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; color: var(--text);
  font-size: 1rem;
}
.testimonial__author strong { display: block; color: var(--text); font-size: 0.9375rem; font-weight: 600; }
.testimonial__author span { font-size: 0.8125rem; color: var(--text-dim); }

.stars { display: flex; gap: 0.1875rem; margin-bottom: 1.25rem; }
.stars svg { width: 15px; height: 15px; fill: var(--cyan); }

/* ==========================================================================
   Blog / Insights
   ========================================================================== */
.post {
  display: flex; flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.post:hover { transform: translateY(-6px); border-color: rgba(0, 210, 255, 0.3); box-shadow: var(--shadow-card); }
.post__thumb {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: var(--thumb-grad);
  border-bottom: 1px solid var(--line);
}
.post__thumb-text { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--thumb-text); }
.post__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post__meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.875rem; font-size: 0.75rem; color: var(--text-dim); }
.post__cat {
  padding: 0.25rem 0.625rem;
  background: var(--grad-soft); border: 1px solid rgba(0, 210, 255, 0.24);
  border-radius: var(--radius); color: var(--cyan); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.6875rem;
}
.post__body h3 { font-size: 1.125rem; margin-bottom: 0.625rem; }
.post__body p { font-size: 0.9375rem; margin-bottom: 1.25rem; }

/* ==========================================================================
   FAQ / Accordion
   ========================================================================== */
.faq { display: flex; flex-direction: column; gap: 0.75rem; max-width: 840px; margin-inline: auto; }
.faq__item {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.faq__item.is-open { border-color: rgba(0, 210, 255, 0.3); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  width: 100%; padding: 1.375rem 1.5rem;
  background: transparent; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; color: var(--text);
  transition: color 0.25s var(--ease);
}
.faq__q:hover { color: var(--cyan); }
.faq__icon {
  position: relative; width: 18px; height: 18px; flex-shrink: 0;
}
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  background: var(--cyan); border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq__icon::before { width: 14px; height: 2px; }
.faq__icon::after { width: 2px; height: 14px; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 1.5rem 1.375rem; font-size: 0.9375rem; }

/* ==========================================================================
   Formulários
   ========================================================================== */
.form { display: grid; gap: 1.125rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.875rem; font-weight: 500; color: var(--text);
}
.field label .req { color: var(--cyan); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.875rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text); font-size: 0.9375rem;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2300D2FF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.field select option { background: var(--bg-alt); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--cyan);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.12);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #FF5F57; }
.field__error { font-size: 0.8125rem; color: #FF8A85; min-height: 1.1em; }

.checkbox { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 0.2em; accent-color: var(--cyan); flex-shrink: 0; cursor: pointer; }

.form__status {
  padding: 1rem 1.25rem; border-radius: var(--radius);
  font-size: 0.9375rem; font-weight: 500;
  display: none; gap: 0.625rem; align-items: center;
}
.form__status.is-visible { display: flex; }
.form__status--ok { background: rgba(37, 211, 102, 0.1); border: 1px solid rgba(37, 211, 102, 0.35); color: #6EE7A8; }
.form__status--err { background: rgba(255, 95, 87, 0.1); border: 1px solid rgba(255, 95, 87, 0.35); color: #FF8A85; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--cta-grad);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}
.cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(0, 102, 255, 0.2) 0%, transparent 65%);
}
.cta::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad);
}
.cta h2 { margin-bottom: 1rem; }
.cta p { max-width: 38rem; margin: 0 auto 2.25rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ==========================================================================
    Footer
    ========================================================================== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.footer__grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__about p { font-size: 0.9375rem; margin: 1.25rem 0 1.75rem; max-width: 22rem; }
.footer__social { display: flex; gap: 0.625rem; }
.footer__social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer__social a:hover { border-color: var(--cyan); background: var(--grad-soft); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; stroke: var(--text-muted); fill: none; stroke-width: 1.8; transition: stroke 0.25s var(--ease); }
.footer__social a:hover svg { stroke: var(--cyan); }

.footer__col h4 { font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer__col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__col a { font-size: 0.9375rem; color: var(--text-dim); transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--cyan); }

.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem; color: var(--text-dim);
}
.footer__bottom a:hover { color: var(--cyan); }

/* ==========================================================================
   WhatsApp FAB
   ========================================================================== */
.wa-fab {
  position: fixed; right: var(--fab-right); bottom: var(--fab-bottom); z-index: var(--z-fab);
  width: var(--fab-size); height: var(--fab-size);
  display: grid; place-items: center;
  background: #25D366; color: #06331A;
  border-radius: 50%;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wa-fab:hover { transform: scale(1.06) translateY(-2px); box-shadow: 0 16px 40px -8px rgba(37, 211, 102, 0.55); }
.wa-fab:active { transform: scale(0.96); }
.wa-fab svg { width: var(--fab-icon); height: var(--fab-icon); fill: currentColor; }
.wa-fab::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366;
  animation: ripple 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.28); opacity: 0; }
}
@media (max-width: 640px) {
  :root {
    --fab-right: 1rem;
    --fab-size: 52px;
    --fab-icon: 25px;
    --fab-gap: 0.625rem;
  }
}

/* Com a barra fixa de CTA no mobile, a pilha sobe para nao ficar sob ela. */
@media (max-width: 768px) {
  :root:has(.mobile-cta) { --fab-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)); }
}

/* ==========================================================================
   Page hero (internas)
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  min-height: 400px;
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 70% 100% at 75% 0%, var(--hero-a) 0%, transparent 60%), var(--bg);
}
.page-hero__bg video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 1;
}
@media (max-width: 768px) {
  .page-hero__bg video {
    object-position: center 30%;
  }
}
.page-hero p { max-width: 42rem; margin-top: 1.25rem; font-size: 1.0625rem; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--text-dim); margin-bottom: 1.5rem; }
.breadcrumb a { transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb li + li::before { content: '/'; color: var(--line-strong); }
.breadcrumb [aria-current] { color: var(--text-muted); }

/* ==========================================================================
   Blocos de conteúdo
   ========================================================================== */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { margin-top: 2.75rem; margin-bottom: -0.25rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h3 { margin-top: 2rem; margin-bottom: -0.25rem; }
.prose ul { display: flex; flex-direction: column; gap: 0.75rem; }
.prose ul li { display: flex; gap: 0.75rem; }
.prose ul li::before { content: ''; width: 6px; height: 6px; margin-top: 0.65em; background: var(--cyan); flex-shrink: 0; transform: rotate(45deg); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  padding: 1.25rem 1.5rem; border-left: 3px solid var(--cyan);
  background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.0625rem; color: var(--text);
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split--reverse > *:first-child { order: 2; }
@media (max-width: 900px) { .split--reverse > *:first-child { order: 0; } }

.check-list { display: flex; flex-direction: column; gap: 1rem; }
.check-list li { display: flex; gap: 0.875rem; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; flex-shrink: 0; stroke: var(--cyan); fill: none; stroke-width: 2; margin-top: 0.15em; }
.check-list strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 0.125rem; }
.check-list span { font-size: 0.9375rem; color: var(--text-dim); }

/* ==========================================================================
   Coluna "Por que a RFOSites"
   Os pilares usam indice editorial (01..04) no mesmo registro visual dos
   cards de servico, para a coluna dialogue com o dossie ao lado em vez de
   ficar como uma lista de checkmarks sobre um painel denso.
   ========================================================================== */
.why__lead {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 46ch;
}

.pillar-list {
  list-style: none;
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.pillar {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
/* O recuo lateral abre espaco para a barra de luz aparecer sem empurrar
   o texto — animando padding o conteudo treme, por isso o detalhe sutil. */
.pillar:hover { background: var(--chip-bg); }
.pillar__index {
  flex-shrink: 0;
  min-width: 1.75rem;
  padding-top: 0.125rem;
  font-family: var(--font-display);
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
}
.pillar:hover .pillar__index { color: var(--cyan); }
.pillar__body { min-width: 0; }
.pillar__body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.pillar__body span {
  display: block;
  font-size: 0.9375rem; line-height: 1.6;
  color: var(--text-dim);
}

.why__cta { margin-top: 2.25rem; }

/* Sem movimento o pilar continua legivel e identificavel pelo indice. */
@media (prefers-reduced-motion: reduce) {
  .pillar:hover { background: transparent; }
}

/* ==========================================================================
   Dossier corporativo — painel de apresentação da empresa
   ========================================================================== */
.dossier {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: linear-gradient(165deg, var(--surface) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  isolation: isolate;
}
/* Filete superior aceso: dá o ar de "documento oficial" sem pesar. */
.dossier::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad);
  z-index: 2;
}
/* Brilho difuso no canto superior direito. */
.dossier::after {
  content: '';
  position: absolute; top: -30%; right: -20%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--chip-glow) 0%, transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.dossier__top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.dossier__label {
  display: block;
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.375rem;
}
.dossier__name {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.dossier__status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: var(--chip-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.dossier__status i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #28C840;
  box-shadow: 0 0 0 3px rgba(40, 200, 64, 0.18);
  animation: pulse-status 2.4s ease-in-out infinite;
}
@keyframes pulse-status {
  0%, 100% { box-shadow: 0 0 0 3px rgba(40, 200, 64, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(40, 200, 64, 0.05); }
}

.dossier__note {
  margin-top: 1.25rem;
  font-size: 0.9375rem; line-height: 1.65;
  color: var(--text-muted);
}

.dossier__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.dossier__cell {
  display: flex; flex-direction: column;
  padding: 1rem;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.dossier__cell:hover {
  border-color: var(--line-glow);
  background: var(--grad-soft);
  transform: translateY(-2px);
}
.dossier__icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  margin-bottom: 0.75rem;
  background: var(--grad-soft);
  border: 1px solid var(--line-glow);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.dossier__icon svg { width: 16px; height: 16px; stroke: var(--cyan); }
.dossier__cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9375rem; font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.dossier__cell span {
  font-size: 0.8125rem; line-height: 1.5;
  color: var(--text-dim);
}

.dossier__standards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  list-style: none;
}
.dossier__standards li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.8125rem; line-height: 1.45;
  color: var(--text-muted);
}
.dossier__standards svg {
  width: 14px; height: 14px; flex-shrink: 0;
  margin-top: 0.2em;
  fill: none; stroke: var(--cyan); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Em telas estreitas o dossiê vem antes do texto, mas as celulas mantem
   duas colunas ate o limite em que o texto ficaria curto demais. */
@media (max-width: 560px) {
  .dossier__grid,
  .dossier__standards { grid-template-columns: 1fr; }
}

/* No tema claro o ciano puro (#00D2FF) perde contraste sobre branco — os
   tracos dos icones viram o azul da marca, que mantem leitura. */
[data-theme="light"] .dossier__icon svg { stroke: var(--blue); }
[data-theme="light"] .dossier__standards svg { stroke: var(--blue); }
[data-theme="light"] .dossier__cell:hover { background: rgba(0, 102, 255, 0.05); }
[data-theme="light"] .dossier__icon { background: rgba(0, 102, 255, 0.07); }

@media (prefers-reduced-motion: reduce) {
  .pillar:hover { background: transparent; }
  .pillar__index { transition: none; }
}

.panel {
  padding: 1.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.panel--grad { background: var(--grad-soft); border-color: rgba(0, 210, 255, 0.25); }

/* Timeline */
.timeline { position: relative; display: flex; flex-direction: column; gap: 2rem; padding-left: 2.25rem; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue), transparent);
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: ''; position: absolute; left: -2.25rem; top: 7px;
  width: 16px; height: 16px;
  background: var(--bg); border: 2px solid var(--cyan);
  border-radius: 2px; transform: rotate(45deg);
}
.timeline__year {
  font-family: var(--font-display); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--cyan); margin-bottom: 0.375rem;
}
.timeline__item h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.timeline__item p { font-size: 0.9375rem; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; counter-reset: step; }
.step {
  position: relative; padding: 1.75rem 1.5rem;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  counter-increment: step;
}
.step::before {
  content: '0' counter(step);
  display: block; margin-bottom: 1rem;
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.9375rem; }

/* ==========================================================================
   Fundador — "Sobre mim"
   ========================================================================== */
.founder { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } }

.founder__figure { position: relative; max-width: 440px; margin-inline: auto; width: 100%; }
@media (max-width: 900px) { .founder__figure { max-width: 320px; } }

.founder__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-alt);
  aspect-ratio: 4 / 5;
}
.founder__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.founder__frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 17, 21, 0.55) 100%);
  pointer-events: none;
}
[data-theme="light"] .founder__frame::after { background: linear-gradient(180deg, transparent 62%, rgba(15, 17, 21, 0.28) 100%); }

.founder__badge {
  position: absolute; left: -1rem; bottom: 1.75rem; z-index: 2;
  padding: 0.875rem 1.125rem;
  background: var(--bg); border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: var(--radius); box-shadow: var(--shadow-grad);
}
.founder__badge strong {
  display: block; font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.founder__badge span { font-size: 0.75rem; color: var(--text-dim); }

.founder__role {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 1rem;
}
.founder__role::before { content: ''; width: 22px; height: 2px; background: var(--grad); }

.founder__name { font-size: clamp(1.9rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
.founder__tagline {
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600;
  color: var(--text); margin-bottom: 1.5rem;
}
.founder__text { display: flex; flex-direction: column; gap: 1.125rem; }
.founder__text p { font-size: 1rem; line-height: 1.75; }
.founder__text p:first-child { font-size: 1.125rem; color: var(--text); }

.founder__closing {
  margin-top: 1.75rem; padding: 1.25rem 1.5rem;
  background: var(--grad-soft);
  border: 1px solid rgba(0, 210, 255, 0.24);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 2vw, 1.25rem); font-weight: 600;
  color: var(--text);
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.founder__closing a { color: var(--cyan); display: inline-flex; align-items: center; gap: 0.5rem; }
.founder__closing a:hover { gap: 0.75rem; }
.founder__closing svg { transition: transform 0.25s var(--ease); }
.founder__closing a:hover svg { transform: translateX(3px); }

.founder__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.founder__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.75rem; padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
  .founder__badge { left: 0.75rem; bottom: 1rem; padding: 0.625rem 0.875rem; }
  .founder__badge strong { font-size: 1.25rem; }
  .founder__actions .btn { width: 100%; }
}

/* ==========================================================================
    Reveal animation
    ========================================================================== */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Staggered reveal: children reveal with delay */
[data-reveal] [data-reveal] {
  transition-delay: 0.1s;
}
[data-reveal] [data-reveal] [data-reveal] {
  transition-delay: 0.2s;
}
[data-reveal] [data-reveal] [data-reveal] [data-reveal] {
  transition-delay: 0.3s;
}

/* Parallax depth effect */
[data-parallax] {
  transform: translateZ(0);
  will-change: transform;
}

/* ==========================================================================
    Premium Animations
    ========================================================================== */

/* Entrance animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInFromTop {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@keyframes floatHorizontal {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

/* Pulse glow */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 210, 255, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 210, 255, 0.6), 0 0 60px rgba(0, 102, 255, 0.3); }
}

/* Shimmer effect */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Text reveal */
@keyframes textReveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* Gradient shift */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Rotate slow */
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Utility animation classes */
.animate-fade-in-up { animation: fadeInUp 0.8s var(--ease-out) forwards; }
.animate-fade-in-down { animation: fadeInDown 0.8s var(--ease-out) forwards; }
.animate-fade-in-left { animation: fadeInLeft 0.8s var(--ease-out) forwards; }
.animate-fade-in-right { animation: fadeInRight 0.8s var(--ease-out) forwards; }
.animate-scale-in { animation: scaleIn 0.6s var(--ease-out) forwards; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: floatSlow 8s ease-in-out infinite; }
.animate-float-horizontal { animation: floatHorizontal 5s ease-in-out infinite; }
.animate-pulse-glow { animation: pulseGlow 3s ease-in-out infinite; }
.animate-gradient-shift { animation: gradientShift 8s ease infinite; background-size: 200% 200%; }
.animate-rotate-slow { animation: rotateSlow 20s linear infinite; }
.animate-shimmer { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); background-size: 200% 100%; animation: shimmer 2s infinite; }

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* Hover lift effect */
.hover-lift {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

/* Hover glow effect */
.hover-glow {
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.hover-glow:hover {
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.4);
  border-color: rgba(0, 210, 255, 0.5);
}

/* Magnetic hover - subtle follow */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Text gradient animation */
.text-gradient-animated {
  background: var(--grad);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 4s ease infinite;
}

/* Card entrance stagger */
.card-entrance {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s var(--ease-out) forwards;
}

/* Section entrance */
.section-entrance {
  opacity: 0;
  transform: translateY(30px);
}
.section-entrance.is-visible {
  animation: fadeInUp 1s var(--ease-out) forwards;
}

/* Number counter animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px) scale(0.8); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Border draw animation */
@keyframes borderDraw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

/* Loading skeleton */
@keyframes skeletonPulse {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--surface) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}

/* Smooth scroll indicator */
.scroll-indicator {
  animation: fadeInUp 1s var(--ease-out) 0.5s forwards, float 3s ease-in-out infinite 1.5s;
  opacity: 0;
}

/* Focus ring animation */
@keyframes focusRing {
  0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.5); }
  100% { box-shadow: 0 0 0 8px rgba(0, 210, 255, 0); }
}
:focus-visible {
  animation: focusRing 0.5s var(--ease-out);
}

/* Page transition overlay */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.page-transition.is-active {
  transform: scaleY(1);
  transform-origin: bottom;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .animate-float, .animate-float-slow, .animate-float-horizontal,
  .animate-pulse-glow, .animate-gradient-shift, .animate-rotate-slow,
  .animate-shimmer { animation: none !important; }
}

/* ==========================================================================
    404
    ========================================================================== */
.error-page { display: grid; place-items: center; min-height: 100dvh; padding: 2rem; text-align: center; }
.error-page__code {
  font-family: var(--font-display); font-size: clamp(6rem, 22vw, 14rem); font-weight: 700;
  line-height: 0.85; letter-spacing: -0.05em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-page p { max-width: 32rem; margin: 1.5rem auto 2.5rem; }

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .header, .footer, .wa-fab, .back-to-top, .marquee, .hero__bg, .hero__grid { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3, h4 { color: #000; }
  p { color: #333; }
}

/* ==========================================================================
    Scroll Progress Bar
    ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--grad);
  z-index: 1000;
  transform-origin: left;
  transform: scaleX(0);
  box-shadow: var(--shadow-grad);
}

/* ==========================================================================
    Back to Top Button
    ========================================================================== */
.back-to-top {
  position: fixed;
  right: var(--fab-right);
  bottom: var(--fab-stack-2);
  width: var(--fab-size);
  height: var(--fab-size);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem) scale(0.9);
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  z-index: var(--z-fab);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  background: var(--surface);
  box-shadow: var(--shadow-grad);
  transform: translateY(-2px) scale(1.06);
}
.back-to-top:active { transform: translateY(0) scale(0.96); }
.back-to-top svg {
  width: var(--fab-icon);
  height: var(--fab-icon);
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ==========================================================================
    Toast Notifications
    ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-lg);
  opacity: 0;
  transform: translateX(calc(100% + 2rem));
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: auto;
  max-width: 360px;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.toast--success { border-left: 4px solid #22c55e; }
.toast--error { border-left: 4px solid #ef4444; }
.toast--info { border-left: 4px solid var(--cyan); }
.toast__icon { flex-shrink: 0; width: 20px; height: 20px; }
.toast--success .toast__icon { color: #22c55e; }
.toast--error .toast__icon { color: #ef4444; }
.toast--info .toast__icon { color: var(--cyan); }
.toast__message { flex: 1; font-size: 0.875rem; color: var(--text); }
.toast__close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.toast__close:hover { color: var(--text); background: var(--chip-bg); }

/* ==========================================================================
    Fixed Mobile CTA
    ========================================================================== */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: var(--header-bg-solid);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  z-index: 995;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
  .mobile-cta { display: flex; }
}
.mobile-cta__inner {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: var(--container-max);
  margin: 0 auto;
}
.mobile-cta__btn {
  flex: 1;
  min-width: 0;
  max-width: 160px;
}

/* Telas muito estreitas: o header e a barra de CTA nao cabem com o gutter padrao. */
@media (max-width: 400px) {
  .header__inner { gap: 0.75rem; }
  .header__inner .container { padding-inline: 1rem; }
  .brand { flex-shrink: 1; }
}

/* ==========================================================================
    Loading Skeleton
    ========================================================================== */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
}
.skeleton-text:last-child { width: 60%; margin-bottom: 0; }
.skeleton-title {
  height: 1.5rem;
  width: 70%;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-sm);
}
.skeleton-card {
  padding: 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.skeleton-thumb {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* ==========================================================================
     Button Variants complementares
     As medidas base de .btn--sm / .btn--lg ficam na secao "Botoes" (linha
     ~343). Aqui so entram as variantes que nao existiam ainda — declarar
     .btn--lg de novo fazia a versao daqui vencer por ordem de cascata e
     inflava o botao grande do hero.
     ========================================================================== */
.btn--block { display: flex; justify-content: center; width: 100%; }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.btn--ghost:hover {
  background: var(--chip-bg);
  border-color: var(--line-strong);
}
.btn--secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn--secondary:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
}

/* ==========================================================================
    Microinteractions & Enhanced Hover States
    ========================================================================== */
.card:hover,
.case:hover {
  transform: translateY(-4px);
  border-color: var(--line-glow);
  box-shadow: var(--shadow-card-lg), var(--shadow-grad);
}
.card:hover::before,
.case:hover::before {
  width: 100%;
  opacity: 1;
}
.card::before,
.case::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--grad);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease), opacity 0.3s var(--ease);
  opacity: 0;
}
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.3s var(--ease);
}
.btn:hover::after { transform: translateX(100%); }
.btn:focus-visible,
.nav a:focus-visible,
.theme-toggle:focus-visible,
.back-to-top:focus-visible,
.wa-fab:focus-visible,
.mobile-cta__btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
/* Indicador de link ativo do header: definido em `.nav > a` (secao
   Navegacao principal). Nao duplicar aqui. */

/* ==========================================================================
    Expanded Design Tokens
    ========================================================================== */
:root {
  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Border radius scale */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Container max width */
  --container-max: 1200px;

  /* Focus ring */
  --focus-ring: 2px solid var(--cyan);
  --focus-offset: 2px;

  /* Z-index scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 10000;
  --z-fab: 900;
}

.char {
  display: inline-block;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  &:not(:first-child) { margin-left: 0.05em; }
}

.char:hover { color: var(--cyan); }

/* ==========================================================================
   Contato page
   ========================================================================== */
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0        rgba(37,211,102,.55); }
  50%  { box-shadow: 0 0 0 1rem     rgba(37,211,102,.0); }
  100% { box-shadow: 0 0 0 0        rgba(37,211,102,.0); }
}
@media (prefers-reduced-motion: no-preference) {
  .wa-pulse { animation: wa-pulse 2.4s ease-out .3s infinite; }
  .wa-fab   { animation: wa-pulse 2.6s ease-out .5s infinite; }
}
.channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.channel {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.5rem;
  background: var(--card-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--text);
  transition: border-color .25s var(--ease), transform .25s var(--ease), background-color .25s var(--ease);
  text-decoration: none;
}
.channel:hover {
  border-color: rgba(0, 210, 255, 0.32);
  transform: translateY(-2px);
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .channel:hover { border-color: rgba(0, 102, 255, 0.34); }
}
.channel:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.channel__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: var(--chip-bg);
  border: 1px solid var(--line);
  color: var(--cyan);
}
.channel__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.channel--wa .channel__icon { color: var(--wa, #25D366); background: var(--wa-tint, rgba(37, 211, 102, 0.12)); border-color: var(--wa-tint, rgba(37, 211, 102, 0.3)); }
.channel--wa .channel__icon svg { fill: currentColor; stroke: none; }
.channel__body { min-width: 0; }
.channel__body strong { display: block; font-size: 1rem; font-weight: 600; margin-bottom: .1875rem; }
.channel__body span { display: block; font-size: .9375rem; color: var(--text-dim); line-height: 1.5; }
.channel__body span + span { margin-top: .1875rem; }
.channel__tag {
  display: inline-block;
  margin-top: .625rem;
  font-size: .6875rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan);
}
.channel--wa .channel__tag { color: var(--wa, #25D366); }
.contact-form-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-form-wrap { grid-template-columns: 1fr; }
}
.contact-aside {
  padding: 1.75rem;
  background: var(--card-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.contact-aside h3 { font-size: 1.0625rem; margin-bottom: 1rem; }
.contact-aside .steps { grid-template-columns: 1fr; gap: 0; counter-reset: cstep; }
.contact-aside .step {
  padding: 0 0 1.125rem 2.5rem;
  border-bottom: 1px solid var(--line);
}
.contact-aside .step:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-aside .step::before {
  width: 26px; height: 26px; font-size: .75rem;
  top: 0; left: 0;
}
.contact-aside .step h3 { margin-bottom: .1875rem; }
.contact-aside .step p { font-size: .875rem; }
.form__status a { color: var(--cyan); }
