/* ============================================================
   S2 Studio — Stylesheet v2 (Figma merge)
   ============================================================ */

/* --- CSS Custom Properties (Theme) --- */
:root {
  /* Light mode tokens (Figma-adapted) */
  --bg: #fafafa;
  --fg: #09090b;
  --muted: #71717a;
  --muted-dim: #71717a;
  --card-bg: rgba(0, 0, 0, 0.02);
  --card-border: #d4d4d8;
  --glass-bg: rgba(0, 0, 0, 0.02);
  --glass-border: #d4d4d8;
  --glass-strong-bg: rgba(0, 0, 0, 0.04);
  --glass-strong-border: #d4d4d8;
  --divider: #d4d4d8;
  --dot-grid-color: rgba(0, 0, 0, 0.15);
  --glow-color: rgba(0, 0, 0, 0.04);
  --badge-bg: rgba(0, 0, 0, 0.03);
  --badge-border: #d4d4d8;
  --btn-primary-bg: #09090b;
  --btn-primary-fg: #fafafa;
  --btn-ghost-border: #a1a1aa;
  --btn-ghost-fg: #52525b;
  --heading-gradient: linear-gradient(180deg, #09090b 30%, #a1a1aa 100%);
  --num-stroke: #a1a1aa;

  --font-display: 'Geist', system-ui, -apple-system, sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', monospace;
  --radius: 0.625rem;
  --radius-md: 0.8rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

.dark {
  --bg: #09090b;
  --fg: #fafafa;
  --muted: #a1a1aa;
  --muted-dim: #a1a1aa;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: #27272a;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: #27272a;
  --glass-strong-bg: rgba(255, 255, 255, 0.07);
  --glass-strong-border: #3f3f46;
  --divider: #27272a;
  --dot-grid-color: rgba(255, 255, 255, 0.35);
  --glow-color: rgba(255, 255, 255, 0.05);
  --badge-bg: rgba(255, 255, 255, 0.04);
  --badge-border: #27272a;
  --btn-primary-bg: #fafafa;
  --btn-primary-fg: #09090b;
  --btn-ghost-border: #3f3f46;
  --btn-ghost-fg: #a1a1aa;
  --heading-gradient: linear-gradient(180deg, #fafafa 30%, #71717a 100%);
  --num-stroke: #71717a;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  transition: color 0.3s ease, background-color 0.3s ease;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul { list-style: none; }

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

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

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); }
.font-mono, .section-tag, .badge-pill, .process-num, .footer-mono { font-family: var(--font-mono); }

.heading-gradient {
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Utility --- */
.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;
}
.hidden { display: none !important; }
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 42rem; margin: 0 auto; padding: 0 1.5rem; }

/* Logo visibility by theme */
.logo-light { display: none !important; }
.logo-dark { display: block; }
.dark .logo-light { display: block !important; }
.dark .logo-dark { display: none !important; }

/* Screenshot figures */
.ss-figure { margin: 0; }
.ss-img { width: 100%; height: auto; display: block; border-radius: var(--radius-md); }

/* Section spacing */
.section { padding: 7rem 0; position: relative; overflow: hidden; }

/* Dot grid background */
.dot-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--dot-grid-color) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.1;
}
.dark .dot-grid { opacity: 0.05; }

/* Ambient glow blob */
.glow-blob {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: var(--glow-color);
  filter: blur(80px);
}

/* --- Glass System --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

.glass-strong {
  background: var(--glass-strong-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--glass-strong-border);
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; font-weight: 500; font-size: 0.875rem;
  border-radius: 9999px; padding: 0.75rem 2rem;
  transition: all 0.2s; white-space: nowrap; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  font-weight: 700;
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.dark .btn-primary:hover {
  box-shadow: 0 8px 32px rgba(255,255,255,0.12);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--btn-ghost-border);
  color: var(--btn-ghost-fg);
  font-weight: 500;
}
.btn-ghost:hover {
  border-color: rgba(0,0,0,0.15);
  color: var(--fg);
  background: var(--card-bg);
}
.dark .btn-ghost:hover {
  border-color: rgba(255,255,255,0.35);
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }
.btn-full { width: 100%; }
.form-btn-content { display: inline-flex; align-items: center; gap: 0.5rem; }

/* --- Section Tags (AI-style labels) --- */
.section-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  background: var(--badge-bg); border: 1px solid var(--badge-border);
  font-size: 0.65rem; font-family: var(--font-mono);
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 1rem;
}
.section-tag svg { width: 12px; height: 12px; flex-shrink: 0; }
.section-tag a { color: inherit; text-decoration: underline; text-underline-offset: 2px; display: inline-flex; align-items: center; gap: 0.3rem; }
.section-tag a svg { display: inline-block; flex-shrink: 0; }
.section-tag a:hover { color: var(--fg); }

/* --- Badge Pills (tags inside cards) --- */
.badge-pill {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.6rem; border-radius: 9999px;
  background: var(--badge-bg); border: 1px solid var(--badge-border);
  font-size: 0.55rem; font-family: var(--font-mono);
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.08em; white-space: nowrap;
}

/* --- Glow border (hover) --- */
.glow-hover:hover {
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 0 30px rgba(0,0,0,0.04);
}
.dark .glow-hover:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 0 30px rgba(255,255,255,0.05);
}

/* --- Navbar --- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-inner {
  max-width: 72rem; margin: 0 auto;
  height: 3.5rem; /* 56px top bar */
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  border: 1px solid transparent; /* pré-alocada: só a cor anima na transição para a pill */
  interpolate-size: allow-keywords; /* permite animar max-width → fit-content (Chrome/Edge) */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Initial: full-width, transparent */
#navbar .nav-links { display: none; gap: 1.5rem; align-items: center; }
#navbar .nav-link {
  font-size: 0.875rem; font-weight: 600; color: var(--muted);
  transition: color 0.2s; letter-spacing: 0.02em;
}
#navbar .nav-link:hover { color: var(--fg); }

.nav-logo { display: flex; align-items: center; }
/* No estado pill, o espaço à volta do logo vem do padding do próprio logo */
#navbar.scrolled .nav-logo { padding: 0 1.5rem; }
.nav-logo-svg { width: 4.5rem; height: 1rem; color: var(--fg); }
.dark .nav-logo-svg { color: #fafafa; }
.nav-logo-img { width: auto; height: 2.5rem; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 1.25rem 0.5rem calc(1.25rem + 3px); border-radius: 9999px;
  background: var(--btn-primary-bg); color: var(--btn-primary-fg);
  font-size: 0.8rem; font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nav-cta svg { flex-shrink: 0; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.dark .nav-cta:hover { box-shadow: 0 6px 20px rgba(255,255,255,0.12); }

/* Scroll state: transforms into floating pill, 16px from screen top */
#navbar.scrolled { top: 1rem; padding: 0 1rem; }
#navbar.scrolled .nav-inner {
  max-width: calc(72rem - 3rem); padding: 0.5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  gap: 0.25rem;
}
.dark #navbar.scrolled .nav-inner {
  background: rgba(255,255,255,0.06);
}

/* Mobile nav */
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
/* Centered layout (index): logo à esquerda, menu centrado, CTA à direita */
.nav-inner-center .nav-logo { flex: 1 1 0; }
.nav-inner-center .nav-links { flex: 0 0 auto; }
.nav-inner-center .nav-actions { flex: 1 1 0; justify-content: flex-end; }
/* pAInel nav: logo à esquerda, links + CTA à direita */
.nav-painel { justify-content: flex-start; }
.nav-painel .nav-logo { margin-right: auto; }
/* O CTA de desktop vive agora em .nav-actions: esconder em mobile, mostrar em desktop */
.nav-actions .nav-cta { display: none; }
.nav-cta-mobile {
  display: none;
  align-items: center; gap: 0.3rem;
  padding: 0.35rem 0.9rem; border-radius: 9999px;
  background: var(--btn-primary-bg); color: var(--btn-primary-fg);
  font-size: 0.7rem; font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta-mobile svg { flex-shrink: 0; }
.nav-cta-mobile:hover { transform: translateY(-1px); }
.mobile-menu-btn { padding: 0.5rem; color: var(--fg); }
#mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  padding: 5rem 1.5rem 1.5rem;
  flex-direction: column; gap: 1.25rem;
}
#mobile-menu.open { display: flex; }
#mobile-menu .mob-link {
  font-size: 0.875rem; font-weight: 600; color: var(--muted);
}
#mobile-menu .mob-link:hover { color: var(--fg); }

@media (min-width: 768px) {
  #navbar .nav-links { display: flex; }
  .nav-actions .nav-cta { display: inline-flex; }
  .mobile-menu-btn { display: none; }
}
@media (max-width: 767px) {
  .nav-inner { padding: 0 0.75rem; gap: 0.5rem; }
  .nav-actions { gap: 0.5rem; }
  .nav-cta-mobile { display: inline-flex; }
  #navbar.scrolled { top: 0; padding: 0; }
  #navbar.scrolled .nav-inner {
    max-width: none; padding: 0.5rem 0.75rem;
    border-radius: 0; gap: 0.5rem;
    background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08);
    backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  }
  #navbar.scrolled .nav-logo { padding: 0; }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 6rem 0 4rem; overflow: hidden;
}
#hero .container { width: 100%; }
.hero-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 3rem;
  width: 100%;
}
.hero-text { flex: 1; min-width: 0; container-type: inline-size; }
.hero-logo-side {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 2rem;
}
.hero-logo-container {
  position: relative; width: 260px; height: 260px;
  display: flex; align-items: center; justify-content: center;
}
.hero-logo-glow {
  position: absolute; inset: -30px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  filter: blur(24px);
}
.hero-logo-3d {
  position: relative; z-index: 2;
  width: 168px; height: 168px;
  color: #09090b;
  transition: transform 0.1s ease-out; will-change: transform;
  display: flex; align-items: center; justify-content: center;
}
.dark .hero-logo-3d { color: #fafafa; }
.hero-logo-svg { width: 100%; height: 100%; }
.hero-logo-3d:hover { transform: scale(1.04); }

/* Rotating hero word — crossfade, occupies its own line */
.hero-rotate {
  display: block;
  position: relative;
  line-height: 1.02;
}
.hero-rotate-word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.hero-rotate-word.hr-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

#hero h1 {
  font-size: clamp(2.25rem, 6vw, 4rem); /* fallback p/ browsers sem container queries */
  font-size: clamp(2.25rem, 8cqw, 4rem); /* escala com a largura da coluna de texto — máx. 3 linhas */
  font-weight: 800; line-height: 1.02;
  letter-spacing: -0.025em; margin-bottom: 1.25rem;
  text-wrap: balance;
}
#hero .hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--muted); max-width: 34rem;
  line-height: 1.7; margin-bottom: 2rem;
}
.hero-ctas {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1.5rem;
}
.hero-big-numbers {
  display: flex; align-items: center; gap: 2rem;
}
.hero-big-numbers .stat-val {
  font-size: 2rem; font-weight: 800; line-height: 1;
  background: var(--heading-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-big-numbers .stat-label {
  font-size: 0.6rem; color: var(--muted);
  font-family: var(--font-mono); letter-spacing: 0.05em;
  margin-top: 0.25rem; text-transform: uppercase;
}
.hero-bg-dot {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--dot-grid-color) 1px, transparent 1px);
  background-size: 40px 40px; opacity: 0.1;
}
.dark .hero-bg-dot { opacity: 0.05; }
.hero-bg-glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: var(--glow-color); filter: blur(90px);
  width: 700px; height: 400px;
  top: 33%; left: 50%; transform: translate(-50%, -50%);
}

/* Mobile hero: stack vertically, match section layout */
@media (max-width: 767px) {
  #hero {
    display: block;
    min-height: auto;
    padding: 7rem 0 4rem;
  }
  .hero-inner { flex-direction: column-reverse; align-items: stretch; gap: 2rem; }
  .hero-logo-side { padding: 0 1rem; }
  .hero-logo-container { width: 170px; height: 170px; }
  .hero-logo-3d { width: 136px; height: 136px; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-section {
  padding: 3rem 0; overflow: hidden; position: relative;
}
.marquee-fade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to right, var(--bg) 0%, transparent 15%, transparent 85%, var(--bg) 100%);
}
.marquee-row { overflow: hidden; margin-bottom: 1.75rem; }
.marquee-row:last-child { margin-bottom: 0; }
.marquee-track { display: flex; align-items: center; width: max-content; }
.marquee-track.ltr { animation: marquee-ltr 56s linear infinite; }
.marquee-track.rtl { animation: marquee-rtl 72s linear infinite; }
/* Termo corrido, sem caixa — Geist Mono, ponto central entre termos */
.marquee-term {
  display: inline-flex; align-items: center;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 400;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee-term::after {
  content: ""; display: inline-block; flex-shrink: 0;
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; opacity: 0.45;
  margin: 0 2.5rem;
}

/* Tools marquee — mesmo estilo, uma linha */
.tool-marquee {
  padding: 2.5rem 0; overflow: hidden; position: relative;
}
.tool-track { display: flex; align-items: center; width: max-content; animation: marquee-ltr 64s linear infinite; }

/* Infinity statement — ∞ possibilidades com AI */
.infinity-statement { padding: 3rem 0; text-align: center; }
.inf-svg {
  width: clamp(11rem, 26vw, 18rem); height: auto;
  display: block; margin: 0 auto;
}
/* Stroke animation driven by JS — start hidden */
.inf-svg path {
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset 2.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.inf-svg path.erasing {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.inf-grad-start { stop-color: var(--fg); }
.inf-grad-end { stop-color: var(--muted); }
.inf-label {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--muted); margin-top: 0.5rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem; margin-top: 4rem;
}
/* Igualar alturas: o wrapper .reveal é o item da grid; o card estica até ao fundo */
.services-grid > .reveal { display: flex; }
.services-grid .service-card { flex: 1; }
.service-card {
  padding: 1.5rem; border-radius: var(--radius-lg);
  background: var(--card-bg); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex; flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 0 30px rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}
.dark .service-card:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 0 30px rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
}
.svc-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.svc-header h3 { margin-bottom: 0; line-height: 1.2; } /* centrado em altura com o icon */
.svc-icon {
  width: 2rem; height: 2rem; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-bg); border: 1px solid var(--card-border);
  color: var(--muted); flex-shrink: 0;
}
.svc-icon svg { width: 14px; height: 14px; }
.service-card h3 { font-size: 1rem; font-weight: 700; color: var(--fg); }
.service-card .svc-desc {
  font-size: 0.75rem; color: var(--muted); line-height: 1.6;
  margin-bottom: 1rem; flex: 1;
}
.svc-footer {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem;
  margin-top: auto;
}
.svc-tags { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.svc-more {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.7rem; color: var(--muted-dim); font-weight: 500;
  transition: color 0.2s, gap 0.2s;
}
.service-card:hover .svc-more { color: var(--muted); gap: 0.5rem; }
.project-card:hover .svc-more { color: var(--muted); gap: 0.5rem; }

/* TODO: remover quando as páginas de serviço existirem */
.service-card .svc-more { display: none; }

@media (max-width: 767px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-timeline {
  position: relative; max-width: 44rem; margin: 3rem auto 0;
}
/* Top segment: from top of timeline to first dot */
.process-timeline::before {
  content: ''; position: absolute; left: 50%; top: 0;
  width: 1px; height: calc(1.5rem - 6px);
  background: var(--divider); transform: translateX(-0.5px);
  pointer-events: none;
}
.process-step { position: relative; display: flex; margin-bottom: 2rem; }
/* Line segment: from this dot down to the next dot (or dashed for last) */
.process-step::after {
  content: ''; position: absolute; left: 50%; top: calc(1.5rem + 6px);
  bottom: calc(-3.5rem + 6px); width: 1px;
  background: var(--divider); transform: translateX(-0.5px);
  pointer-events: none;
}
.process-step:last-of-type::after {
  background: none;
  bottom: -2.5rem;
  border-left: 1px dashed var(--divider);
}
.process-dot {
  position: absolute; left: 50%; top: 1.5rem;
  transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--divider);
  z-index: 2;
}
.process-left, .process-right { width: 50%; }
.process-left { padding-right: 3rem; text-align: right; }
.process-right { padding-left: 3rem; margin-left: 50%; }
.process-card {
  padding: 1.5rem; border-radius: var(--radius-lg);
  background: var(--card-bg); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-block; text-align: left; max-width: 18rem;
}
.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 0 30px rgba(0,0,0,0.04);
}
.dark .process-card:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 0 30px rgba(255,255,255,0.05);
}
.process-num {
  font-size: clamp(3.5rem, 6vw, 4.75rem); font-weight: 800; line-height: 1;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  /* Apenas contorno 1px; no reveal o fill "pinta-se" de cima para baixo até 100% */
  color: transparent;
  -webkit-text-stroke: 1px var(--num-stroke);
  background-image: linear-gradient(to bottom, var(--num-stroke), var(--num-stroke));
  background-repeat: no-repeat;
  background-size: 100% 0%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-size 1.8s ease 0.5s;
}
.reveal.visible .process-num { background-size: 100% 100%; }
.process-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--fg); }
.process-card p { font-size: 0.75rem; color: var(--muted); line-height: 1.6; }
.process-quote {
  text-align: center; margin-top: 2.5rem;
  font-size: 1rem; color: var(--muted); font-weight: 500;
  max-width: 42rem; margin-left: auto; margin-right: auto;
  line-height: 1.7; font-style: normal;
}

/* Process badge labels (steps 4 & 6) */
.process-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.6rem;
  padding: 0.2rem 0.6rem; border-radius: 9999px;
  font-size: 0.55rem; font-family: var(--font-mono); font-weight: 400;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--badge-bg); border: 1px solid var(--badge-border);
  white-space: nowrap;
}
.process-badge svg { flex-shrink: 0; opacity: 0.6; }

/* Dashed extension for last step — handled by .process-step:last-of-type::after above */

@media (max-width: 767px) {
  .process-timeline::before { left: 16px; }
  .process-step::after { left: 16px; }
  .process-dot { left: 16px; transform: translateX(-6px); }
  .process-step { flex-direction: column; }
  .process-left, .process-right { width: 100%; margin-left: 0; padding: 0 0 0 44px; text-align: left; }
  .process-card { max-width: 100%; }
}

/* ============================================================
   PROJETOS
   ============================================================ */
.projetos-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; margin-bottom: 1rem;
  align-items: stretch;
}
.project-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--card-border);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column; height: 100%;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 0 30px rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}
.dark .project-card:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 0 30px rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
}
a.project-card-link { text-decoration: none; color: inherit; }
.project-preview {
  height: 160px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03); color: var(--muted-dim);
  font-size: 0.7rem; flex-shrink: 0; overflow: hidden;
}
.project-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover .project-img { transform: scale(1.05); }
.project-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.project-body .case-tag {
  font-size: 0.6rem; font-family: var(--font-mono); color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem;
}
.project-body h3 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--fg); }
.project-body p { font-size: 0.7rem; color: var(--muted); line-height: 1.4; }
.project-body .project-note {
  font-size: 0.6rem; color: var(--muted-dim); margin-top: auto; padding-top: 0.5rem;
}
.project-body .svc-more { margin-top: auto; padding-top: 0.5rem; }

.project-placeholder {
  border-radius: var(--radius-lg); border: 1px dashed var(--divider);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 2rem 1rem; text-align: center;
  background: transparent; cursor: pointer; height: 100%;
  transition: border-color 0.2s;
}
.project-placeholder:hover { border-color: var(--muted); }
.project-placeholder .plus { font-size: 1.5rem; margin-bottom: 0.5rem; opacity: 0.3; }

/* ============================================================
   pAInel — split section, abstract mockups, page components
   ============================================================ */
.painel-split { display: grid; grid-template-columns: max-content 1fr; gap: 3rem; align-items: center; }
.painel-topics { display: flex; flex-direction: column; gap: 0.45rem; margin: 1.5rem 0; }

/* pAInel section title — link com ícone externo alinhado à direita */
.painel-title { position: relative; display: inline-block; }
.painel-title-link { color: inherit; text-decoration: none; }
.painel-title-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}
.painel-title-ext {
  display: inline-block;
  margin-left: 0.45em;
  vertical-align: text-top;
  color: var(--muted); opacity: 0.5;
  line-height: 1;
  transition: opacity 0.2s, color 0.2s;
}
.painel-title-link:hover .painel-title-ext { opacity: 1; color: var(--fg); }

/* pAInel media — print (fundo) + vídeo (over, centrado) com parallax */
.painel-media { position: relative; }
.painel-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 88%, var(--bg) 100%);
  pointer-events: none;
}
.feat-icon {
  width: 28px; height: 28px; border-radius: 0.5rem; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--badge-bg); border: 1px solid var(--badge-border);
  color: var(--fg);
}
.feat-icon svg { width: 14px; height: 14px; }

/* Browser-frame mockup (abstract CSS composition; body can be swapped for an <img> later) */
.mock-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
}
.mock-topbar {
  display: flex; align-items: center; gap: 0.35rem; padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--card-border); background: var(--glass-bg);
}
.mock-topbar i { width: 8px; height: 8px; border-radius: 50%; background: var(--badge-border); }
.mock-topbar span {
  margin-left: 0.5rem; flex: 1; max-width: 200px; height: 12px; border-radius: 6px;
  background: var(--badge-bg); border: 1px solid var(--badge-border);
}
.mock-canvas { padding: 1rem; }
.mock-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0.8rem; }

/* Skeleton primitives */
.mk-line { height: 8px; border-radius: 4px; background: var(--glass-strong-bg); }
.mk-line + .mk-line, .mk-line + .mk-chips, .mk-chips + .mk-line { margin-top: 0.5rem; }
.mk-line.w30 { width: 30%; }
.mk-line.w50 { width: 50%; }
.mk-line.w70 { width: 70%; }
.mk-line.w90 { width: 90%; }
.mk-box { border-radius: 0.5rem; background: var(--glass-bg); border: 1px solid var(--glass-border); }
.mk-row { display: flex; gap: 0.5rem; }
.mk-row + .mk-row { margin-top: 0.5rem; }
.mk-tile { flex: 1; padding: 0.6rem; }
.mk-tile .mk-line + .mk-line { margin-top: 0.4rem; }
.mk-chips { display: flex; gap: 0.35rem; }
.mk-chips i { height: 12px; width: 44px; border-radius: 6px; background: var(--badge-bg); border: 1px solid var(--badge-border); }
.mk-bars { display: flex; align-items: flex-end; gap: 0.3rem; height: 72px; padding: 0.6rem; }
.mk-bars i { flex: 1; background: var(--glass-strong-bg); border-radius: 3px 3px 0 0; }
.mk-doc { background: var(--bg); border: 1px solid var(--card-border); border-radius: 0.5rem; padding: 0.8rem; }
.mk-doc-total { height: 10px; border-radius: 5px; background: var(--glass-strong-bg); width: 40%; margin-left: auto; margin-top: 0.7rem; }
.mk-list-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.6rem; }
.mk-list-row + .mk-list-row { margin-top: 0.4rem; }
.mk-chips + .mk-list-row { margin-top: 0.6rem; }
.mk-ico { width: 18px; height: 18px; border-radius: 4px; background: var(--glass-strong-bg); flex-shrink: 0; }
.mk-list-row .mk-line { flex: 1; margin: 0; }
.mk-kanban { display: flex; gap: 0.5rem; }
.mk-kanban > div { flex: 1; padding: 0.5rem; }
.mk-kanban .mk-line { margin-bottom: 0.5rem; }
.mk-card { height: 34px; border-radius: 0.4rem; background: var(--glass-strong-bg); }
.mk-card + .mk-card { margin-top: 0.4rem; }

/* Overlapping mockup pair (index split, right column) */
.painel-mocks { position: relative; padding-bottom: 3.5rem; }
.painel-mocks .mock-back { width: 82%; }
.painel-mocks .mock-front { position: absolute; bottom: 0; right: 0; width: 62%; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }

/* pAInel page */
.painel-hero { padding: 7rem 0 1rem; text-align: center; }
.painel-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.painel-hero-sub { font-size: 1rem; color: var(--muted); max-width: 560px; margin: 0 auto 1rem; line-height: 1.6; }
.painel-hero-desc { font-size: 0.8rem; color: var(--muted); max-width: 640px; margin: 0 auto; line-height: 1.7; }

.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.step-card {
  padding: 1.25rem; border-radius: var(--radius-lg);
  background: var(--card-bg); border: 1px solid var(--card-border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 0 30px rgba(0,0,0,0.04);
}
.dark .step-card:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 0 30px rgba(255,255,255,0.05);
}
.step-card h3 { font-size: 0.9rem; font-weight: 700; margin: 0.5rem 0 0.35rem; }
.step-card p { font-size: 0.75rem; color: var(--muted); line-height: 1.55; }

.painel-zig { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; margin-top: 3.5rem; }
.painel-zig:first-of-type { margin-top: 0; }
.painel-zig.rev .zig-text { order: 2; }
.painel-zig.rev .mock-frame { order: 1; }
.zig-text h3 { font-size: 1.2rem; font-weight: 700; margin: 0.8rem 0 0.5rem; }
.zig-text p { font-size: 0.8rem; color: var(--muted); line-height: 1.65; }
.zig-badges { display: flex; gap: 0.4rem; margin-top: 0.9rem; flex-wrap: wrap; }

.painel-extra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.extra-card { padding: 1.25rem; border-radius: var(--radius-lg); background: var(--card-bg); border: 1px solid var(--card-border); }
.extra-card h3 { font-size: 0.85rem; font-weight: 700; margin: 0.6rem 0 0.3rem; }
.extra-card p { font-size: 0.72rem; color: var(--muted); line-height: 1.5; }

.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }

.painel-coming { text-align: center; padding: 1rem 0 2rem; }
.badge-lg { font-size: 0.75rem; padding: 0.45rem 1.1rem; }

@media (max-width: 767px) {
  .painel-split, .painel-zig { grid-template-columns: 1fr; }
  .painel-media-col { order: 1; }
  .painel-topics-col { order: 2; }
  .painel-zig.rev .zig-text { order: 1; }
  .painel-zig.rev .mock-frame { order: 2; }
  .painel-mocks { padding-bottom: 0; }
  .painel-mocks .mock-back { width: 100%; }
  .painel-mocks .mock-front { position: static; width: 100%; margin-top: 1rem; box-shadow: none; }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .painel-extra-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* pAInel topic card (icon + título) */
.painel-feat {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.75rem; border-radius: 0.75rem;
  background: var(--card-bg); border: 1px solid var(--card-border);
  font-size: 0.8rem;
}

@media (max-width: 767px) {
  .projetos-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SOBRE NÓS
   ============================================================ */
.values-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem; margin-bottom: 3rem;
}
.values-row > .reveal { display: flex; }
.values-row .value-card { flex: 1; }
.value-card {
  padding: 1.25rem; border-radius: 0.75rem;
  background: var(--card-bg); border: 1px solid var(--card-border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 0 30px rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}
.dark .value-card:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 0 30px rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
}
.value-card-inner { display: flex; align-items: flex-start; gap: 0.65rem; }
.value-card-inner svg {
  width: 16px; height: 16px; color: var(--muted);
  flex-shrink: 0; margin-top: 1px;
}
.value-card h4 { font-size: 0.8rem; font-weight: 700; color: var(--fg); margin-bottom: 0.2rem; }
.value-card p { font-size: 0.75rem; color: var(--muted); line-height: 1.45; }

.sobre-desc {
  font-size: 0.9rem; color: var(--muted); line-height: 1.7;
}

.sobre-quote {
  position: relative; padding: 2.5rem 1.5rem 2rem;
  margin-top: 2rem; max-width: 42rem; margin-left: auto; margin-right: auto;
}
.sobre-quote-open {
  position: absolute; top: -2rem; left: -0.25rem;
  font-size: 8rem; font-weight: 900; line-height: 1;
  pointer-events: none;
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  color: var(--muted);
  opacity: 0.35;
}
.sobre-quote-close {
  position: absolute; bottom: -1.5rem; right: -0.25rem;
  font-size: 8rem; font-weight: 900; line-height: 1;
  pointer-events: none;
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  color: var(--muted);
  opacity: 0.35;
}
.sobre-quote blockquote {
  font-size: 1rem; color: var(--muted); line-height: 1.7;
  font-weight: 500; position: relative; z-index: 2;
}
.sobre-quote cite {
  display: block; font-size: 0.7rem; color: var(--muted);
  margin-top: 1rem; font-family: var(--font-mono);
  font-style: normal; position: relative; z-index: 2;
}

@media (max-width: 1023px) {
  .values-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .values-row { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACTO
   ============================================================ */
.cta-card {
  border-radius: var(--radius-xl); overflow: hidden; position: relative;
  text-align: center; padding: 3rem 2rem;
  background: linear-gradient(160deg, var(--card-bg), var(--bg), var(--card-bg));
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.cta-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--glow-color), transparent 70%);
  pointer-events: none; z-index: 0;
}
.cta-card-inner { position: relative; z-index: 2; max-width: 36rem; margin: 0 auto; }
.contact-form {
  display: flex; flex-direction: column; gap: 1rem; text-align: left;
}
.form-row { display: flex; gap: 0.75rem; }
.form-input, .form-textarea {
  width: 100%; padding: 0.75rem 1rem; border-radius: 0.75rem;
  background: var(--card-bg); border: 1px solid var(--card-border);
  color: var(--fg); font-family: var(--font-body); font-size: 0.8rem;
  outline: none; transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--muted); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-error { margin-top: 0.25rem; font-size: 0.7rem; color: #ef4444; min-height: 1rem; }
.contact-divider-text {
  text-align: center; font-size: 0.78rem; color: var(--muted);
  margin: 2rem 0 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
  white-space: nowrap;
}
.contact-divider-text::before,
.contact-divider-text::after {
  content: ''; flex: 1; height: 1px; background: var(--divider);
}
.contact-links {
  display: flex; align-items: center; justify-content: center;
  gap: 0.6rem;
}
.contact-link {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: var(--muted); font-weight: 500;
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.contact-link:hover { border-color: var(--muted); }
.contact-link-card {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.75rem; border-radius: 9999px;
  font-size: 0.7rem; color: #71717a; font-weight: 500;
  background: var(--card-bg); border: 1px solid var(--card-border);
  transition: all 0.2s;
}
.contact-link-card:hover {
  transform: translateY(-2px);
  color: var(--fg);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}
.dark .contact-link-card:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 4px 16px rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.15);
}
@media (max-width: 767px) {
  .contact-links { flex-wrap: wrap; }
}

/* Toast */
.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  padding: 0.75rem 1.5rem; border-radius: 9999px;
  font-size: 0.875rem; font-weight: 500;
  background: var(--fg); color: var(--bg); z-index: 200;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  animation: toast-in 0.3s ease-out;
}
.toast.error { background: #ef4444; color: #fff; }

/* ============================================================
   LANGUAGE SUGGESTION BANNER
   ============================================================ */
.lang-banner {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.75rem;
  max-width: calc(100% - 2rem); padding: 0.5rem 0.5rem 0.5rem 1rem;
  border: 1px solid var(--card-border); border-radius: 9999px;
  background: var(--bg); color: var(--fg);
  font-size: 0.8125rem; line-height: 1.3; z-index: 150;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.lang-banner a { font-weight: 600; color: var(--fg); text-decoration: underline; white-space: nowrap; }
.lang-banner-close {
  width: 1.75rem; height: 1.75rem; flex: none; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 0.75rem; cursor: pointer;
}
.lang-banner-close:hover { background: var(--card-bg); color: var(--fg); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--divider);
  background: #09090b; color: var(--muted);
  padding: 3rem 1.5rem 1.5rem;
}
.dark .footer { background: #09090b; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; max-width: 72rem; margin: 0 auto 2.5rem;
}
.footer h4 { font-size: 0.8rem; font-weight: 700; color: #e4e4e7; margin-bottom: 0.75rem; }
.footer ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer a {
  font-size: 0.75rem; color: #71717a;
  border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s;
}
.footer a:hover { border-color: #d4d4d8; color: #e4e4e7; }
.footer-logo-sq { width: 4rem; height: 4rem; margin-bottom: 1rem; color: #d4d4d8; }
.footer-logo-2l { display: block; width: 9rem; height: auto; margin-bottom: 1rem; }

/* Brand column — footer always dark, keep tag in dark-mode colors */
.footer-col-brand .section-tag {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid #27272a !important;
  color: #a1a1aa !important;
}

/* External link icon */
.footer-ext-link { display: inline-flex; align-items: center; gap: 0.3rem; }
.footer-ext-link svg { flex-shrink: 0; }

/* Actions column (social + switches) */
.footer-col-actions { display: flex; flex-direction: column; gap: 1.75rem; align-items: flex-start; }

/* Social */
.footer-socials { display: flex; gap: 0.5rem; }
.footer .footer-social-btn {
  width: 2rem; height: 2rem; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid #27272a;
  color: #71717a; transition: all 0.2s;
}
.footer .footer-social-btn:hover {
  color: #e4e4e7;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 4px 16px rgba(255,255,255,0.04);
}

.footer-switches { display: flex; gap: 1rem; margin-top: 3rem; }
.footer-switch-item { display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-start; }
.footer-switch-label { font-size: 0.65rem; color: #a1a1aa; font-weight: 500; }
.footer-switch-group {
  display: flex; gap: 2px; padding: 2px;
  border-radius: 9999px; border: 1px solid #27272a;
  background: rgba(255,255,255,0.03);
}
.footer-switch-btn {
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #d4d4d8; font-size: 0.65rem;
  transition: all 0.2s;
}
.footer-switch-btn:hover { color: #fff; }
.footer-switch-btn.active { background: rgba(255,255,255,0.1); color: #e4e4e7; }

/* Flag icons — grayscale when inactive, color when active */
.flag-icon { font-size: 0.85rem; line-height: 1; filter: grayscale(1); transition: filter 0.2s; }
.footer-switch-btn.active .flag-icon { filter: grayscale(0); }

.footer-bottom {
  border-top: 1px solid #27272a;
  padding-top: 1.25rem; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem 1.5rem;
  max-width: 72rem; margin: 0 auto;
  font-size: 0.65rem; font-weight: 300; color: #a1a1aa;
}
.footer-bottom .mono { font-family: var(--font-mono); font-weight: 300; letter-spacing: 0.05em; }
.footer-heart {
  display: inline-block; color: inherit; font-size: 0.8rem;
  animation: heart-pulse 1.2s ease-in-out infinite;
  margin: 0 0.2rem; vertical-align: middle; line-height: 1;
}
@keyframes heart-pulse {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.2); }
  60% { transform: scale(1); }
}

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col-brand { grid-column: 1 / -1; }
  .footer-col-actions { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col-brand { grid-column: auto; }
  .footer-col-actions { grid-column: auto; flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes marquee-ltr {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-rtl {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 20px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Marquee track hover pause */
.marquee-track:hover, .tool-track:hover { animation-play-state: paused; }

/* Inline SVG icon sizing */
.icon-sm { width: 14px !important; height: 14px !important; flex-shrink: 0; }
.icon-md { width: 20px !important; height: 20px !important; flex-shrink: 0; }

/* ============================================================
   pAInel One-Pager — New Section Styles
   ============================================================ */

/* 3-column trust grid (pAInel page) */
.trust-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
@media (max-width: 767px) {
  .trust-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .trust-grid-3 { grid-template-columns: 1fr; }
}

/* Built to Last — tech foundations section */
.tech-section {
  position: relative;
  background: #050508;
  border-top: 1px solid #1a1a2e;
  border-bottom: 1px solid #1a1a2e;
  overflow: hidden;
}
.dark .tech-section { background: #050508; }
.light .tech-section {
  background: #f4f4f5;
  border-color: #d4d4d8;
}
.tech-section .dot-grid {
  opacity: 0.03;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.tech-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e4e4e7;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.light .tech-col h4 { color: #18181b; }
.tech-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
}
.tech-col li {
  font-size: 0.72rem;
  color: #71717a;
  line-height: 1.55;
  padding-left: 1rem;
  position: relative;
}
.tech-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3f3f46;
}
@media (max-width: 767px) {
  .tech-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Invoice list mockup */
.mock-invoice-list { display: flex; flex-direction: column; gap: 0.4rem; }
.mock-invoice-row {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.4rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.mock-invoice-row .mk-ico { width: 20px; height: 20px; border-radius: 4px; background: var(--glass-strong-bg); flex-shrink: 0; }
.mock-invoice-row .mk-line { flex: 1; margin: 0; }
.mock-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg);
  z-index: 2;
}
.dark .mock-modal-overlay { background: rgba(0,0,0,0.5); }
.mock-modal-card {
  width: 75%;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0.8rem;
}
.mock-modal-card .mk-line + .mk-line { margin-top: 0.4rem; }
.mock-modal-card .mk-row { margin-top: 0.5rem; }
.mock-modal-card .mk-row .mk-line { margin-top: 0; }

/* Dashboard mockup */
.mock-dash-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.mock-dash-tile {
  padding: 0.6rem; border-radius: 0.5rem;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
}
.mock-dash-tile .mk-line:first-child { height: 6px; width: 50%; }
.mock-dash-tile .mk-line:last-child { height: 20px; width: 70%; margin-top: 0.4rem; background: var(--glass-strong-bg); }
.mock-dash-chart {
  margin-top: 0.5rem;
  display: flex; align-items: flex-end; gap: 0.3rem;
  height: 64px; padding: 0.5rem;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
}
.mock-dash-chart i {
  flex: 1; background: var(--glass-strong-bg);
  border-radius: 3px 3px 0 0;
}

/* Chat mockup */
.mock-chat-panel { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.3rem; }
.mock-chat-bubble {
  max-width: 85%; padding: 0.5rem 0.6rem; border-radius: 0.6rem;
  font-size: 0.6rem;
}
.mock-chat-bubble.user {
  align-self: flex-end;
  background: var(--glass-strong-bg);
  border: 1px solid var(--glass-border);
}
.mock-chat-bubble.ai {
  align-self: flex-start;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.mock-chat-bubble .mk-line { height: 6px; }
.mock-chat-bubble .mk-line + .mk-line { margin-top: 0.3rem; }
.mock-chat-source {
  margin-top: 0.3rem;
  display: flex; align-items: center; gap: 0.3rem;
}
.mock-chat-source i {
  width: 12px; height: 12px; border-radius: 3px;
  background: var(--glass-strong-bg);
}

/* Kanban columns mockup */
.mock-kanban-cols { display: flex; gap: 0.4rem; }
.mock-kanban-col {
  flex: 1; padding: 0.4rem;
  border-radius: 0.5rem;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
}
.mock-kanban-col .mk-line { margin-bottom: 0.4rem; }
.mock-kanban-col .mk-card { height: 28px; }
.mock-kanban-col .mk-card + .mk-card { margin-top: 0.35rem; }

/* Business grid (3×2) */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}
.business-card {
  padding: 1.25rem; border-radius: var(--radius-lg);
  background: var(--card-bg); border: 1px solid var(--card-border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.business-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 0 30px rgba(0,0,0,0.04);
}
.dark .business-card:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 0 30px rgba(255,255,255,0.05);
}
.business-card h4 { font-size: 0.85rem; font-weight: 700; margin: 0.5rem 0 0.3rem; }
.business-card p { font-size: 0.72rem; color: var(--muted); line-height: 1.5; }

/* Planeamento highlight subsection */
.planeamento-highlight {
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}
.planeamento-highlight h4 {
  font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem;
}
.planeamento-highlight p {
  font-size: 0.78rem; color: var(--muted); line-height: 1.6;
  max-width: 48ch;
}

@media (max-width: 767px) {
  .business-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .business-grid { grid-template-columns: 1fr; }
}

/* Demo form (pAInel page) */
.demo-form {
  display: flex; flex-direction: column; gap: 0.75rem; text-align: left;
  max-width: 32rem; margin: 1.5rem auto 0;
}
.demo-form-row { display: flex; gap: 0.75rem; }
.demo-form .form-input,
.demo-form .form-textarea {
  width: 100%; padding: 0.75rem 1rem; border-radius: 0.75rem;
  background: var(--card-bg); border: 1px solid var(--card-border);
  color: var(--fg); font-family: var(--font-body); font-size: 0.8rem;
  outline: none; transition: border-color 0.2s;
}
.demo-form .form-input:focus,
.demo-form .form-textarea:focus { border-color: var(--muted); }
.demo-form .form-input::placeholder,
.demo-form .form-textarea::placeholder { color: var(--muted); }
.demo-form .form-textarea { resize: vertical; min-height: 90px; }
.demo-form .form-hint {
  font-size: 0.65rem; color: var(--muted);
  margin-top: -0.25rem;
}
.demo-form .form-error { margin-top: 0.2rem; font-size: 0.7rem; color: #ef4444; min-height: 1rem; }
@media (max-width: 480px) {
  .demo-form-row { flex-direction: column; }
}

/* pAInel hero CTA */
.painel-hero-cta {
  display: flex; justify-content: center; margin-top: 1.5rem;
}

/* Value cards 4-col grid variant (brand section) */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-top: 2rem;
}
@media (max-width: 1023px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .brand-grid { grid-template-columns: 1fr; }
}

/* Section header (centered tag + h2) */
.section-header {
  text-align: center; margin-bottom: 0.5rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.section-header p {
  font-size: 0.85rem; color: var(--muted); line-height: 1.6;
  max-width: 52ch; margin: 0 auto;
}

/* ============================================================
   pAInel One-Pager — Redesign (2026-08)
   ============================================================ */

/* Shared section helpers */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.section-sub {
  font-size: 0.9rem; color: var(--muted); line-height: 1.6;
  max-width: 56ch; margin: 0 auto;
}

/* --- Statement banners (chavões) — big marquee-style type --- */
.statement-banner {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.statement-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 auto 1.75rem;
  max-width: 24ch;
  text-wrap: balance;
}
@media (max-width: 767px) {
  .statement-banner { padding: 4rem 0; }
}

/* --- Hero (full-bleed) --- */
.painel-hero { padding: 7rem 0 0; text-align: center; }
.painel-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.08;
  max-width: 22ch; margin: 0 auto 1rem; text-wrap: balance;
}
.painel-hero-sub {
  font-size: 1rem; color: var(--muted);
  max-width: 560px; margin: 0 auto 1.75rem; line-height: 1.65;
}

/* Email-only hero form (pill input + button) */
.hero-email { position: relative; max-width: 420px; margin: 0 auto; }
.hero-email input {
  width: 100%; height: 3.25rem; padding: 0 8.5rem 0 1.5rem;
  border-radius: 9999px; border: 1px solid var(--card-border);
  background: var(--card-bg); color: var(--fg);
  font-family: var(--font-body); font-size: 0.9rem; outline: none;
  transition: border-color 0.2s;
}
.hero-email input:focus { border-color: var(--muted); }
.hero-email input::placeholder { color: var(--muted); }
.hero-email-btn {
  position: absolute; top: 50%; right: 0.4rem; transform: translateY(-50%);
  height: 2.5rem; padding: 0 1.25rem; border-radius: 9999px;
  background: var(--btn-primary-bg); color: var(--btn-primary-fg);
  font-size: 0.85rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: box-shadow 0.2s, transform 0.2s;
  white-space: nowrap;
}
.hero-email-btn:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.dark .hero-email-btn:hover { box-shadow: 0 6px 20px rgba(255,255,255,0.12); }
.hero-email .form-error { position: absolute; top: calc(100% + 0.25rem); left: 0; right: 0; margin: 0; }

/* Hero dashboard media — print (fundo) + vídeo (over, centrado 50%) */
.hero-media {
  max-width: 1100px; margin: 3.5rem auto 4rem;
  position: relative;
}
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 85%, var(--bg) 100%);
  pointer-events: none;
}
.hero-print img {
  width: 100%; height: auto; display: block;
  filter: blur(1px);
  border-radius: var(--radius-md);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.hero-video-shot {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; pointer-events: none;
}
.hero-video-inner {
  width: 50%;
  pointer-events: auto;
  will-change: transform;
}
.hero-video-inner video {
  width: 100%; height: auto; display: block;
}
.hero-figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}
.hero-print:hover img {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.dark .hero-print:hover img {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.orcamento-shot {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.orcamento-shot:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.dark .orcamento-shot:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
@media (max-width: 767px) {
  .hero-media { margin-left: 1rem; margin-right: 1rem; }
}

/* --- Feature split: imagem 2/3 + texto 1/3 --- */
.feat-split {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 2.5rem; align-items: center;
}
.feat-split.rev { grid-template-columns: 2fr 1fr; }
.feat-split.rev .feat-text { order: 2; }
.feat-split.rev .ss-figure { order: 1; }
/* blocos feat-split empilhados (Dashboard) */
.feat-split + .feat-split { margin-top: 4rem; }
#dashboard { padding-top: 1.5rem; }
#dashboard .section-title { margin-bottom: 2.5rem; }
#dashboard .feat-icon { width: 48px; height: 48px; }
#dashboard .feat-icon svg { width: 24px; height: 24px; }
.feat-text h3 {
  font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em;
  margin: 0.8rem 0 0.5rem; line-height: 1.2;
}
.feat-text p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

/* Scroll-zoom (aumento ligeiro ao entrar) + hover-lift */
.scroll-zoom .ss-img {
  transform: scale(0.96);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.scroll-zoom.in .ss-img { transform: scale(1); }
.feat-split .scroll-zoom {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.feat-split .scroll-zoom:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.dark .feat-split .scroll-zoom:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

/* --- Orçamentação: screenshot full-width + pop-ups flutuantes --- */
.orcamento-shot {
  position: relative;
  margin: 2.5rem 0 100px;
}
.orcamento-shot .ss-img { width: 100%; }
.orcamento-popups, .trabalho-popups {
  position: absolute; inset: 0; pointer-events: none;
}

/* outer: posição + parallax (sem transition — resposta imediata ao scroll) */
.orc-pop, .trabalho-pop {
  position: absolute;
  transform: translateX(var(--parallax-x, 0px)) translateY(var(--parallax-y, 0px)) rotate(var(--parallax-rot, 0deg));
}

/* inner img: revelação (opacity + translate) com stagger */
.orc-pop img, .trabalho-pop img {
  width: 100%; display: block;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  /* sombra a acompanhar o alpha (drop-shadow) + vidro suave */
  filter: drop-shadow(0 6px 16px rgba(113, 113, 122, 0.32));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(255, 255, 255, 0.05) 100%);
}
.dark .orc-pop img, .dark .trabalho-pop img {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.005) 45%, rgba(255, 255, 255, 0.02) 100%);
}
.orcamento-popups.in .orc-pop img, .trabalho-popups.in .trabalho-pop img { opacity: 1; transform: translateY(0); }
.orcamento-popups.in .orc-pop-2 img { transition-delay: 0.12s; }
.orcamento-popups.in .orc-pop-3 img { transition-delay: 0.24s; }
.trabalho-popups.in .trabalho-pop-2 img { transition-delay: 0.12s; }

.orc-pop-1 { left: calc(33% - 80px); bottom: -70px; width: 30%; }
.orc-pop-2 { right: -6%; top: 22%; width: 26%; }
.orc-pop-3 { right: -6%; top: 58%; width: 26%; }

/* --- Plano de Trabalhos: pop-ups flutuantes (kanban) --- */
.trabalho-shot { position: relative; }
.trabalho-pop-1 { left: -12%; bottom: -25%; width: 45%; }
.trabalho-pop-2 { left: 65%; top: 40%; width: 30%; }

@media (max-width: 1023px) {
  .orcamento-shot { margin-bottom: 85px; }
  .orc-pop-1 { bottom: -50px; }
  .orc-pop-2 { right: 0; }
  .orc-pop-3 { right: 0; }
}
@media (max-width: 767px) {
  .orcamento-shot { margin-bottom: 70px; }
  .orc-pop-1 { left: calc(30% - 80px); bottom: -48px; width: 38%; }
  .orc-pop-2 { top: 18%; width: 34%; }
  .orc-pop-3 { top: 54%; width: 34%; }
}
@media (max-width: 479px) {
  .orc-pop-1 { width: 42%; }
  .orc-pop-2 { width: 40%; }
  .orc-pop-3 { display: none; }
}

/* --- Dashboard tabs (cards clicáveis: Dashboard · Indicadores · Análises IA) --- */
.dash-tabs { display: flex; flex-direction: column; gap: 0.75rem; }
.dash-tab {
  text-align: left; padding: 1.1rem 1.25rem; border-radius: var(--radius-lg);
  background: var(--card-bg); border: 1px solid var(--card-border);
  cursor: pointer; color: var(--fg); font: inherit;
  display: flex; flex-direction: column; gap: 0.45rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background 0.25s;
}
.dash-tab-head { display: flex; align-items: center; gap: 0.6rem; }
.dash-tab h3, .dash-tab-head {
  font-size: 0.95rem; font-weight: 700; line-height: 1.25; margin: 0;
}
.dash-tab-head .feat-icon { width: 26px; height: 26px; }
.dash-tab p {
  font-size: 0.75rem; color: var(--muted); line-height: 1.55; margin: 0;
}
.dash-tab .zig-badges { margin-top: 0.1rem; }
.dash-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 8px 30px rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
}
.dark .dash-tab:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 8px 30px rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.2);
}
.dash-tab.active {
  background: var(--glass-strong-bg);
  border-color: var(--muted);
  box-shadow: 0 0 0 1px var(--muted);
}
.dash-tab.active p { color: var(--fg); }
.dash-visual { min-width: 0; }
.dash-panel { display: none; }
.dash-panel.active { display: block; }

/* --- Horizontal tabs (features médias) --- */
.htabs { margin-top: 3rem; }
.htabs-nav {
  display: flex; gap: 0.4rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 2.25rem;
}
.htab-btn {
  padding: 0.5rem 1.25rem; border-radius: 9999px;
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--card-border); background: transparent;
  transition: all 0.2s;
}
.htab-btn:hover { color: var(--fg); border-color: var(--muted); }
.htab-btn.active { color: var(--fg); background: var(--card-bg); border-color: var(--muted); }
.htab-panel { display: none; }
.htab-panel.active { display: block; }

/* --- Feature grid (low) --- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; margin-top: 2.5rem;
}
.feature-card {
  padding: 1.25rem; border-radius: var(--radius-lg);
  background: var(--card-bg); border: 1px solid var(--card-border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 0 30px rgba(0,0,0,0.04);
}
.dark .feature-card:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 0 30px rgba(255,255,255,0.05);
}
.feature-card h4 { font-size: 0.85rem; font-weight: 700; margin: 0.5rem 0 0.25rem; }
.feature-card p { font-size: 0.72rem; color: var(--muted); line-height: 1.5; }

/* Teaser "Brevemente" */
.teaser {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  margin-top: 2rem; padding: 1rem 1.5rem; border-radius: var(--radius-lg);
  border: 1px dashed var(--card-border); color: var(--muted); font-size: 0.8rem;
}

/* --- Backoffice: grelha 2x2 com print que desvanece --- */
.shot-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem; margin-top: 2.5rem;
}
.shot-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--card-border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.shot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 0 30px rgba(0,0,0,0.04);
}
.dark .shot-card:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 0 30px rgba(255,255,255,0.05);
}
.shot-media { margin: 0; aspect-ratio: 20 / 9; }
.shot-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top; display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}
.shot-body { padding: 0 1.25rem 1.25rem; }
.shot-body h4 { font-size: 0.9rem; font-weight: 700; margin: 0.6rem 0 0.25rem; }
.shot-body p { font-size: 0.75rem; color: var(--muted); line-height: 1.55; }

/* --- IA sempre à mão (texto sobre imagem) --- */
.ia-hand-block {
  position: relative; overflow: hidden;
  aspect-ratio: 1440 / 853; display: flex; align-items: center;
}
.ia-hand-figure { position: absolute; inset: 0; margin: 0; }
.ia-hand-figure img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 80%);
  mask-image: linear-gradient(to right, transparent 0%, #000 80%);
}
.ia-hand-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.ia-hand-block:hover .ia-hand-figure::after {
  opacity: 1;
}
.ia-hand-copy { position: relative; z-index: 1; max-width: 48rem; padding: 3rem; }
.ia-hand-copy .feat-icon { margin-bottom: 1rem; }
.ia-hand-copy .section-title { text-align: left; }
.ia-hand-copy p { color: var(--muted); line-height: 1.65; max-width: 36ch; }

@media (max-width: 767px) {
  .shot-grid { grid-template-columns: 1fr; }
  .ia-hand-block { aspect-ratio: auto; }
  .ia-hand-copy { padding: 1.5rem; }
  .ia-hand-figure img { object-position: center; }
}

/* --- Quem serve (segmentos) --- */
.quem-serve {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; margin-top: 2.5rem;
}
.quem-card {
  padding: 1.5rem; border-radius: var(--radius-lg);
  background: var(--card-bg); border: 1px solid var(--card-border);
  text-align: center; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.quem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 0 30px rgba(0,0,0,0.04);
}
.dark .quem-card:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 0 30px rgba(255,255,255,0.05);
}
.quem-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.4rem; }
.quem-card p { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* --- Planos --- */
.plans-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-top: 2.5rem; align-items: stretch;
}
.plan-card {
  padding: 1.75rem; border-radius: var(--radius-lg);
  background: var(--card-bg); border: 1px solid var(--card-border);
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 0 30px rgba(0,0,0,0.04);
}
.dark .plan-card:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 0 30px rgba(255,255,255,0.05);
}
.plan-head { display: flex; flex-direction: column; gap: 0.35rem; }
.plan-name {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.plan-price { display: flex; align-items: baseline; gap: 0.3rem; }
.plan-price .plan-amount { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.plan-price .plan-per { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.plan-annual {
  display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--muted);
}
.plan-badge {
  font-size: 0.62rem; font-weight: 700; color: var(--fg);
  background: var(--badge-bg); border: 1px solid var(--badge-border);
  padding: 0.15rem 0.55rem; border-radius: 9999px; white-space: nowrap;
}
.plan-features {
  display: flex; flex-direction: column; gap: 0.55rem;
  border-top: 1px solid var(--card-border); padding-top: 1rem;
  flex: 1;
}
.plan-feat {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-size: 0.75rem; color: var(--fg); line-height: 1.45;
}
.plan-feat strong { font-weight: 700; }
.plan-feat.off { color: var(--muted-dim); }
.plan-mark {
  width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px;
  color: var(--fg);
}
.plan-mark.off { color: var(--muted-dim); opacity: 0.4; }
.plan-extra {
  display: block; font-size: 0.65rem; color: var(--muted);
  margin-top: 0.15rem;
}

/* Faixas por cima e por baixo dos planos (trial, parceiros) */
.plan-strip {
  margin-top: 2.5rem; padding: 1.25rem 1.75rem; border-radius: var(--radius-lg);
  background: var(--card-bg); border: 1px solid var(--card-border);
  display: flex; align-items: center; gap: 1.1rem;
}
.plan-strip.trial { border-color: var(--fg); }
.plan-strip + .plans-grid, .plans-grid + .plan-strip { margin-top: 1rem; }
.plan-strip-icon {
  width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: 0.65rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--badge-bg); border: 1px solid var(--badge-border);
}
.plan-strip-icon svg { width: 18px; height: 18px; }
.plan-strip-text { flex: 1; min-width: 0; }
.plan-strip-text h4 {
  font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.plan-strip-text p { font-size: 0.78rem; color: var(--muted); line-height: 1.55; }
.plan-strip .btn { flex-shrink: 0; }

.founding-pack {
  margin-top: 1rem; padding: 1.5rem 1.75rem; border-radius: var(--radius-lg);
  border: 1px dashed var(--card-border); background: var(--card-bg);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.founding-badge {
  display: inline-block; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.3rem;
}
.founding-text h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.founding-text p { font-size: 0.78rem; color: var(--muted); line-height: 1.55; }

/* Texto por baixo dos planos */
.plans-more {
  margin-top: 2.5rem; text-align: center;
  font-size: 0.85rem; color: var(--muted); line-height: 1.6;
}

/* --- Confiança footer (marca + built to last) --- */
.trust-footer {
  margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.trust-footer-item {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 1.25rem; border-radius: var(--radius-lg);
  background: var(--card-bg); border: 1px solid var(--card-border);
}
.trust-footer-item p { font-size: 0.78rem; color: var(--muted); line-height: 1.55; }

/* Demo sub */
.demo-sub { font-size: 0.9rem; color: var(--muted); max-width: 28rem; margin: 0 auto 0.5rem; line-height: 1.6; }

/* --- Responsive --- */
@media (max-width: 767px) {
  .feat-split { grid-template-columns: 1fr; gap: 1.5rem; }
  .feat-split.rev { grid-template-columns: 1fr; }
  .feat-split.rev .feat-text { order: 1; }
  .feat-split.rev .ss-figure { order: 2; }
  .dash-tabs { gap: 0.5rem; }
  .dash-tab { padding: 1rem 1.1rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .quem-serve { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .trust-footer { grid-template-columns: 1fr; }
  .founding-pack { flex-direction: column; align-items: flex-start; }
  .plan-strip { flex-direction: column; align-items: flex-start; }
  .hero-email input { padding-right: 1.5rem; padding-left: 1.25rem; }
  .hero-email-btn { position: static; transform: none; width: 100%; height: 3rem; justify-content: center; margin-top: 0.5rem; }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Páginas legais — /legal/*.html
   ============================================================ */

/* --- Layout das páginas legais --- */
.legal-main { padding: 7rem 0 5rem; }
.legal-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

/* --- Cabeçalho do documento --- */
.legal-header { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--divider); }
.legal-eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin-bottom: 1rem;
}
.legal-eyebrow a { color: var(--muted); transition: color 0.2s; }
.legal-eyebrow a:hover { color: var(--fg); }
.legal-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
}
.legal-meta {
  margin-top: 1.25rem;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--muted); line-height: 1.8;
}
.legal-meta strong { color: var(--fg); font-weight: 600; }

/* --- Índice lateral --- */
.legal-toc { position: sticky; top: 5.5rem; max-height: calc(100vh - 8rem); overflow-y: auto; }
.legal-toc-title {
  font-family: var(--font-mono); font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin-bottom: 0.875rem;
}
.legal-toc ol { list-style: none; counter-reset: none; }
.legal-toc li { margin-bottom: 0.125rem; }
.legal-toc a {
  display: block; padding: 0.3rem 0.625rem;
  font-size: 0.8125rem; line-height: 1.45; color: var(--muted);
  border-left: 2px solid transparent; border-radius: 0 var(--radius) var(--radius) 0;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.legal-toc a:hover { color: var(--fg); background: var(--card-bg); border-left-color: var(--card-border); }
.legal-toc .legal-toc-sub a { padding-left: 1.5rem; font-size: 0.75rem; }

/* --- Corpo do documento --- */
.legal-body { max-width: 44rem; font-size: 0.9375rem; line-height: 1.75; color: var(--muted); }
.legal-body > * + * { margin-top: 1.125rem; }
.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3;
  color: var(--fg); margin-top: 3.25rem; scroll-margin-top: 5.5rem;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em;
  color: var(--fg); margin-top: 2rem; scroll-margin-top: 5.5rem;
}
.legal-body strong { color: var(--fg); font-weight: 600; }
.legal-body em { font-style: italic; }
.legal-body a {
  color: var(--fg); text-decoration: underline;
  text-decoration-color: var(--card-border); text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s;
}
.legal-body a:hover { text-decoration-color: var(--fg); }
.legal-body code {
  font-family: var(--font-mono); font-size: 0.85em;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 0.3rem; padding: 0.1em 0.35em; color: var(--fg);
  overflow-wrap: anywhere;
}
.legal-body ul, .legal-body ol { padding-left: 1.25rem; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.legal-body li::marker { color: var(--muted); }
.legal-body hr { border: none; border-top: 1px solid var(--divider); margin: 2.5rem 0; }
.legal-body .legal-quote { margin: 1.5rem 0; padding: 1.25rem 1.5rem; border: 1px solid var(--card-border); border-radius: 0.75rem; background: var(--card-bg); }
.legal-body .legal-quote p { margin: 0 0 1rem; }
.legal-body .legal-quote p:last-child { margin-bottom: 0; }

/* --- Tabelas --- */
.legal-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal-table {
  width: 100%; min-width: 22rem; border-collapse: collapse;
  font-size: 0.8125rem; line-height: 1.6;
}
.legal-table th, .legal-table td {
  text-align: left; vertical-align: top;
  padding: 0.6rem 0.875rem; border-bottom: 1px solid var(--divider);
}
.legal-table th {
  color: var(--fg); font-weight: 600;
  font-family: var(--font-mono); font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom-color: var(--card-border);
}
.legal-table tbody tr:last-child td { border-bottom: none; }
.legal-table td strong { color: var(--fg); }
/* Tabelas de duas colunas sem cabeçalho — usadas nos blocos de identificação */
.legal-table--plain th { display: none; }
.legal-table--plain td:first-child { color: var(--fg); font-weight: 600; width: 30%; white-space: nowrap; }

/* --- Navegação entre documentos --- */
.legal-nav {
  margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--divider);
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.legal-nav a {
  font-size: 0.8125rem; color: var(--muted);
  padding: 0.4rem 0.75rem; border: 1px solid var(--card-border);
  border-radius: var(--radius); background: var(--card-bg);
  transition: color 0.2s, border-color 0.2s;
}
.legal-nav a:hover { color: var(--fg); border-color: var(--muted); }

/* --- Centro Legal: grelha de cartões --- */
.legal-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; margin-top: 2rem; }
.legal-card {
  display: block; padding: 1.25rem;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}
.legal-card:hover { border-color: var(--muted); background: var(--glass-strong-bg); transform: translateY(-2px); }
.legal-card h3 { font-size: 0.9375rem; font-weight: 650; color: var(--fg); margin-bottom: 0.4rem; }
.legal-card p { font-size: 0.8125rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* --- Nota de idioma --- */
.legal-lang-note {
  display: flex; gap: 0.625rem; align-items: flex-start;
  margin-top: 2rem; padding: 0.75rem 1rem;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); font-size: 0.75rem; color: var(--muted);
}
.legal-lang-note svg { flex-shrink: 0; margin-top: 0.1rem; color: var(--muted); }

/* --- Ligações legais no rodapé --- */
.footer-legal-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.35rem 1.25rem;
  font-size: 0.65rem; font-weight: 300;
}
.footer-legal-links a {
  color: #a1a1aa;
  border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.footer-legal-links a:hover { color: #fafafa; border-bottom-color: #52525b; }

/* --- Responsivo --- */
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 2rem; }
  .legal-toc {
    position: static; max-height: none; order: -1;
    padding: 1rem; background: var(--card-bg);
    border: 1px solid var(--card-border); border-radius: var(--radius-md);
  }
  .legal-toc .legal-toc-sub { display: none; }
  .legal-body { max-width: none; }
}
@media (max-width: 640px) {
  .legal-main { padding: 6rem 0 4rem; }
  .page-content { padding: 6.5rem 0 4rem; }
  .legal-body h2 { margin-top: 2.5rem; }
}

/* ============================================================
   Componentes partilhados que faltavam
   Usados por 404.html, servicos/*.html e /legal/*.html
   ============================================================ */

/* --- Rodapé simples (sem grelha) --- */
.footer-inner {
  max-width: 72rem; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; text-align: center;
}
.footer-inner .footer-bottom { border-top: none; padding-top: 0; margin-top: 0; }
.footer-inner .footer-bottom { justify-content: center; }

/* --- Botão flutuante de tema --- */
.theme-toggle {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-strong-bg);
  border: 1px solid var(--glass-strong-border);
  color: var(--muted);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.theme-toggle:hover { color: var(--fg); border-color: var(--muted); transform: translateY(-2px); }

/* Mostra só o ícone do tema escolhido. Sem data-theme (JS ainda não correu),
   o estado inicial do documento é dark. */
.theme-icon { display: none; }
.theme-icon-dark { display: block; }
html[data-theme="dark"] .theme-icon-dark,
html[data-theme="light"] .theme-icon-light,
html[data-theme="system"] .theme-icon-system { display: block; }
html[data-theme="light"] .theme-icon-dark,
html[data-theme="system"] .theme-icon-dark { display: none; }

/* --- Variante de botão em contorno --- */
.btn-outline {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--fg);
  font-size: 0.8125rem; padding: 0.625rem 1.25rem;
}
.btn-outline:hover { border-color: var(--muted); background: var(--card-bg); }

.lang-btn {
  padding: 0.25rem 0.625rem; border-radius: 9999px;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--muted); transition: color 0.2s, background-color 0.2s;
}
.lang-btn:hover { color: var(--fg); }
.lang-btn.active { color: var(--fg); background: var(--glass-strong-bg); }

/* --- Página 404 --- */
.not-found-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  gap: 0.75rem; padding: 6rem 1.5rem 4rem;
}
.not-found-code {
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 14vw, 7rem); font-weight: 600;
  line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px var(--num-stroke);
}
.not-found-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; letter-spacing: -0.02em;
}
.not-found-page p { color: var(--muted); font-size: 0.9375rem; margin-bottom: 0.75rem; }

.footer-logo { display: inline-flex; opacity: 0.85; transition: opacity 0.2s; }
.footer-logo:hover { opacity: 1; }
