/* ============================================================
   Mondego Code — Soluções Digitais Inteligentes
   Custom styles (tudo que vai além do utilitário Tailwind)
   Paleta oficial: assets/paleta_cores.png
   ============================================================ */

:root {
  --ink: #111827;        /* Grafite */
  --muted: #64748b;      /* Cinza Slate */
  --primary: #1a65c6;    /* Azul Mondego */
  --primary-hover: #0b4da2;
  --deep: #0b1f45;       /* Azul Profundo */
  --sky: #4da3ff;        /* Azul Celeste Tech */
  --mist: #eaf4ff;       /* Azul Névoa */
  --digital: #22c55e;    /* Verde Digital */
  --digital-hover: #16a34a;
}

/* Dissuasores de cópia casual de imagens (ver js/protect.js — não é
   proteção real, só dificulta arrastar/tocar-e-segurar/selecionar). */
img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none; /* iOS: remove o menu de "Guardar imagem" no toque longo */
  -webkit-user-select: none;
  user-select: none;
}

/* Google Translate: usamos o widget só como motor de tradução — a UI
   própria dele (barra, balão, sublinhado) fica sempre escondida; quem
   comanda é o nosso seletor de bandeiras (ver js/i18n.js). A classe do
   iframe da barra muda de vez em quando (ofuscada pela Google), mas
   ".skiptranslate" é a marca estável que ela sempre inclui. */
#google_translate_element,
iframe.skiptranslate,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight { background: none !important; box-shadow: none !important; }
body { top: 0 !important; position: static !important; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Evita flash de conteúdo antes do GSAP assumir */
.hero-line,
.hero-sub,
.hero-cta,
.section .eyebrow,
.section .section-title {
  will-change: transform, opacity;
}

/* Logo PNG tem fundo branco — multiply funde-o com fundos claros */
.logo-img {
  mix-blend-mode: multiply;
}

/* ---------- Tipografia auxiliar ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--deep);
}

#contactos .section-title {
  color: #fff;
}

/* ---------- Navbar ---------- */
#navbar {
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

#navbar.is-glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 20px 50px -30px rgba(11, 31, 69, 0.25);
  border-radius: 24px;
}

.nav-link {
  position: relative;
  color: var(--ink);
  transition: color 0.3s ease;
  padding-block: 6px;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.mobile-link {
  display: block;
  padding: 12px 8px;
  border-radius: 14px;
  transition: background 0.25s ease, color 0.25s ease;
}

.mobile-link:hover {
  background: var(--mist);
  color: var(--primary);
}

#mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Burger */
.burger-line {
  position: absolute;
  height: 2px;
  width: 18px;
  background: var(--primary);
  border-radius: 999px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.burger-line:nth-child(1) { transform: translateY(-3.5px); }
.burger-line:nth-child(2) { transform: translateY(3.5px); }

#burger[aria-expanded="true"] .burger-line:nth-child(1) { transform: rotate(45deg); }
#burger[aria-expanded="true"] .burger-line:nth-child(2) { transform: rotate(-45deg); }

/* Ícone de perfil (acesso ao painel admin) */
.profile-btn {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.06);
}

/* ---------- Botões ----------
   Botão principal #1A65C6 · hover #0B4DA2 (sugestão de uso da paleta)
   CTA WhatsApp   #22C55E · hover #16A34A                              */
.btn-primary,
.btn-white,
.btn-whatsapp,
.show-all {
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  box-shadow: 0 12px 30px -12px rgba(26, 101, 198, 0.55);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: scale(1.03);
  box-shadow: 0 16px 36px -12px rgba(11, 77, 162, 0.6);
}

.btn-whatsapp {
  background-color: var(--digital);
  box-shadow: 0 12px 30px -12px rgba(34, 197, 94, 0.5);
}

.btn-whatsapp:hover {
  background-color: var(--digital-hover);
  transform: scale(1.03);
  box-shadow: 0 16px 36px -12px rgba(22, 163, 74, 0.55);
}

.btn-white:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 40px -18px rgba(255, 255, 255, 0.4);
}

.btn-primary:active,
.btn-white:active,
.btn-whatsapp:active {
  transform: scale(0.98);
}

/* ---------- Hero: slideshow com troca animada ---------- */
.hero-slides {
  filter: drop-shadow(0 40px 50px rgba(11, 31, 69, 0.18));
}

.hero-slide {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: contain;
  opacity: 0;
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-dot {
  height: 8px;
  width: 8px;
  border-radius: 999px;
  background: #cbd5e1;
  transition:
    background-color 0.3s ease,
    width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-dot:hover {
  background: var(--sky);
}

.hero-dot.is-active {
  width: 24px;
  background: var(--primary);
}

.float-dot {
  position: absolute;
  z-index: 5;
  height: 12px;
  width: 12px;
  border-radius: 999px;
  border: 2.5px solid var(--sky);
  background: #fff;
  opacity: 0;
}

/* ---------- Serviços (faixa) ---------- */
.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 64px;
  padding: 10px 18px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #9db4d3;
  cursor: pointer;
  user-select: none;
  transition:
    color 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

.brand-item:hover {
  color: var(--primary);
  transform: scale(1.06);
}

.brand-item--active {
  color: var(--primary);
  box-shadow: 0 10px 40px -18px rgba(26, 101, 198, 0.3);
  background: var(--mist);
}

/* ---------- Phones ---------- */
.phone {
  width: 230px;
  border-radius: 36px;
  background: linear-gradient(160deg, #14315f, #0b1f45 60%, #123262);
  padding: 10px;
  box-shadow:
    0 60px 90px -40px rgba(11, 31, 69, 0.4),
    0 25px 40px -25px rgba(11, 31, 69, 0.3),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .phone { width: 250px; }
}

.phone::before {
  /* notch */
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 18px;
  border-radius: 999px;
  background: #0b1f45;
  z-index: 2;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  min-height: 440px;
}

/* ---------- Projetos ---------- */
.filter-pill {
  padding: 12px 24px;
  border-radius: 999px;
  background: #f5f7fa;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

.filter-pill:hover {
  transform: translateY(-2px);
  background: var(--mist);
  color: var(--primary);
  box-shadow: 0 12px 30px -16px rgba(26, 101, 198, 0.3);
}

.filter-pill.is-active {
  background: var(--primary);
  color: #fff;
}

.car-card {
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  background: var(--mist);
  cursor: pointer;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
  box-shadow: 0 10px 40px -18px rgba(11, 31, 69, 0.12);
}

/* Rotação aleatória dos projetos (quando há mais no Supabase do que
   cabem nos slots do grid): a imagem atual desliza para fora enquanto
   a próxima entra pelo lado, como um mini-carrossel dentro do próprio
   card — nunca mostra vazio/esbranquiçado no meio, e o grid nunca
   muda de tamanho nem de nº de cards. */
.car-card-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.car-card-slide {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.car-card-slide.is-current { transform: translateX(0); }
.car-card-slide.is-leaving { transform: translateX(-100%); }

.car-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.car-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 30px 60px -25px rgba(11, 31, 69, 0.3);
}

.car-card:hover img {
  transform: scale(1.06);
}

.car-card.is-hidden {
  display: none;
}

/* ---------- Features ---------- */
.feature-card {
  position: relative;
  border-radius: 25px;
  background: #fff;
  border: 1px solid rgba(26, 101, 198, 0.1);
  box-shadow: 0 10px 40px -24px rgba(11, 31, 69, 0.1);
  padding: 30px;
  min-height: 240px;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(26, 101, 198, 0.25);
  box-shadow: 0 30px 60px -30px rgba(26, 101, 198, 0.3);
}

.feature-icon {
  position: absolute;
  top: 30px;
  left: 30px;
  display: flex;
  height: 62px;
  width: 62px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.12) rotate(4deg);
}

/* ---------- CTA (Gradiente Premium: #071A33 → #0B1F45 → #1A65C6) ---------- */
.cta-block {
  background:
    radial-gradient(120% 160% at 20% 0%, #1a65c6 0%, #0b1f45 45%, #071a33 100%);
}

/* ---------- Footer ---------- */
.footer-link {
  position: relative;
  color: var(--ink);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
}

/* Ícones de redes sociais (rodapé) */
.social-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--primary);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.social-ico svg { height: 18px; width: 18px; }
.social-ico:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* ============================================================
   V2 — idiomas, marquee de skills, iPhones, filtros, features,
   água interativa, botões flutuantes, modais, cookies e legal
   ============================================================ */

/* ---------- Seletor de idiomas ---------- */
#lang-switch { position: relative; }

#lang-btn {
  transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#lang-btn:hover { background: #dbeafe; transform: scale(1.04); }

.lang-flag svg {
  display: block;
  height: 17px;
  width: 25px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(11, 31, 69, 0.1);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 224px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 60px -25px rgba(11, 31, 69, 0.3);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 60;
}

#lang-switch.is-open .lang-menu { opacity: 1; pointer-events: auto; transform: none; }

.lang-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
  text-align: left;
}

.lang-item:hover { background: var(--mist); color: var(--primary); }
.lang-item.is-active { background: var(--mist); color: var(--primary); }
.lang-item .check { margin-left: auto; opacity: 0; }
.lang-item.is-active .check { opacity: 1; }

/* ---------- Marquee de skills (pós-hero) ---------- */
.skills-marquee {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-row { overflow: hidden; }

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
  padding-block: 4px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 13px 24px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(26, 101, 198, 0.12);
  color: var(--deep);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px -20px rgba(11, 31, 69, 0.25);
  cursor: pointer;
  user-select: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

.skill-chip .dot {
  height: 8px;
  width: 8px;
  border-radius: 999px;
  background: var(--sky);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.skill-chip:hover {
  background: var(--mist);
  color: var(--primary);
  border-color: rgba(26, 101, 198, 0.3);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 34px -16px rgba(26, 101, 198, 0.4);
}

.skill-chip:hover .dot { transform: scale(1.6); background: var(--primary); }

.skill-chip.is-hl {
  background: linear-gradient(120deg, var(--primary), var(--sky));
  color: #fff;
  border-color: transparent;
}

.skill-chip.is-hl .dot { background: #fff; }

/* ---------- iPhone (mockups reais) ---------- */
.iphone {
  position: absolute;
  width: 244px;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(155deg, #f2f3f5 0%, #c6c9d0 22%, #83878f 55%, #b9bcc4 82%, #eceef1 100%);
  box-shadow:
    0 70px 100px -45px rgba(11, 31, 69, 0.45),
    0 30px 45px -28px rgba(11, 31, 69, 0.35);
}

@media (min-width: 640px) {
  .iphone { width: 262px; }
}

/* moldura interna preta (bezel) */
.iphone::before {
  content: "";
  position: absolute;
  inset: 3.5px;
  border-radius: 43px;
  background: #0a0c11;
}

/* botões laterais em titânio */
.iphone .ip-btn {
  position: absolute;
  width: 3.5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #d6d9de, #8e929b 50%, #cfd2d8);
}

.iphone .ip-btn--power { right: -3.5px; top: 176px; height: 66px; }
.iphone .ip-btn--volup { left: -3.5px; top: 132px; height: 44px; }
.iphone .ip-btn--voldn { left: -3.5px; top: 184px; height: 44px; }
.iphone .ip-btn--action { left: -3.5px; top: 96px; height: 24px; }

.iphone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  background: #fff;
  min-height: 480px;
  z-index: 1;
}

/* Dynamic Island */
.iphone .ip-island {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  border-radius: 999px;
  background: #0a0c11;
  z-index: 6;
}

.iphone .ip-island::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  height: 10px;
  width: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #2a3444 0%, #10141c 55%);
}

/* barra de estado iOS */
.ip-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--deep);
}

.ip-status.is-dark { color: #fff; }

.ip-status svg { height: 11px; }

/* indicador home */
.iphone .ip-home {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4.5px;
  border-radius: 999px;
  background: rgba(11, 31, 69, 0.28);
  z-index: 6;
}

.iphone .ip-home.is-dark { background: rgba(255, 255, 255, 0.4); }

/* screenshot real por cima do mockup (fallback: se faltar, remove-se via onerror) */
.ip-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
  z-index: 8;
  display: block;
}
.mb-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 10;
  display: block;
}

/* reflexo de vidro */
.iphone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 30%);
  pointer-events: none;
  z-index: 7;
}

/* ---------- Filtro de projetos — TABS com sublinhado animado ---------- */
#filter-blob { display: none !important; }

.filter-bar {
  position: relative;
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 2px;
  padding: 0 2px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(26, 101, 198, 0.14);
  border-radius: 0;
  box-shadow: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-bar .filter-pill {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px 15px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.25s ease;
}

/* sublinhado gradiente que cresce a partir do centro */
.filter-bar .filter-pill::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1.5px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--primary), var(--sky));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.filter-bar .filter-pill:hover { color: var(--primary); }
.filter-bar .filter-pill.is-active { color: var(--deep); }
.filter-bar .filter-pill.is-active::after { transform: scaleX(1); }

.filter-count {
  min-width: 22px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--primary);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.25s ease;
}

.filter-bar .filter-pill.is-active .filter-count {
  background: linear-gradient(120deg, var(--primary), var(--sky));
  color: #fff;
  transform: scale(1.05);
}

/* legenda dos cards de projeto */
.car-card figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 15px;
  transform: translateY(130%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  text-align: left;
}

.car-card:hover figcaption { transform: none; opacity: 1; }

.car-card figcaption .t { font-size: 13px; font-weight: 700; color: var(--deep); }

.car-card figcaption .c {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
}

/* ---------- Botão outline (Quer um projeto assim) ---------- */
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  box-shadow: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(26, 101, 198, 0.55);
}

.btn-outline:active { transform: scale(0.98); }

/* ---------- Features (O que nos define) ---------- */
.feature-card {
  --mx: 50%;
  --my: 50%;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

/* holofote que segue o cursor */
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(26, 101, 198, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.feature-card:hover::before { opacity: 1; }

/* número fantasma */
.fc-num {
  position: absolute;
  right: 20px;
  top: 6px;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(26, 101, 198, 0.16);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), -webkit-text-stroke-color 0.35s ease;
  pointer-events: none;
}

.feature-card:hover .fc-num {
  -webkit-text-stroke-color: rgba(26, 101, 198, 0.45);
  transform: translateY(-5px) scale(1.06);
}

/* anel orbital no ícone */
.feature-icon::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 999px;
  border: 1.5px dashed rgba(26, 101, 198, 0.4);
  opacity: 0;
  transition: opacity 0.35s ease;
  animation: fc-spin 10s linear infinite;
}

.feature-card:hover .feature-icon::after { opacity: 1; }

@keyframes fc-spin { to { transform: rotate(360deg); } }

/* risquinho que cresce sob o título */
.fc-line {
  display: block;
  height: 3px;
  width: 28px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--sky));
  transform: scaleX(0.4);
  transform-origin: left;
  opacity: 0.5;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.feature-card:hover .fc-line { transform: scaleX(2.2); opacity: 1; }

/* ---------- CTA: água densa interativa ---------- */
#water-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  border-radius: inherit;
  display: block;
}

/* ---------- Botões flutuantes ---------- */
#fab-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

#quote-fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 15px 24px;
  background: linear-gradient(120deg, var(--primary), var(--sky));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 18px 44px -14px rgba(26, 101, 198, 0.7);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

#quote-fab:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 24px 52px -14px rgba(26, 101, 198, 0.8); }
#quote-fab:active { transform: scale(0.97); }

#to-top {
  height: 48px;
  width: 48px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(26, 101, 198, 0.15);
  box-shadow: 0 14px 34px -16px rgba(11, 31, 69, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease, color 0.3s ease;
}

#to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
#to-top:hover { background: var(--primary); color: #fff; }

@media (max-width: 520px) {
  #quote-fab .fab-label { display: none; }
  #quote-fab { padding: 15px; }
}

/* ---------- Overlays (modal de orçamento + lightbox) ---------- */
.mc-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(7, 26, 51, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mc-overlay.is-open { opacity: 1; pointer-events: auto; }

.mc-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 28px;
  padding: 34px;
  max-height: 90vh;
  overflow: auto;
  transform: translateY(26px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mc-overlay.is-open .mc-dialog { transform: none; }

.mc-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  height: 38px;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--mist);
  color: var(--deep);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.mc-close:hover { background: var(--primary); color: #fff; transform: rotate(90deg); }

/* Botão "voltar" — espelha o X de fechar, do lado esquerdo */
.mc-back {
  left: 16px;
  right: auto;
}

.mc-back:hover { background: var(--primary); color: #fff; transform: translateX(-2px); }

/* Quando o botão de voltar está visível, dá espaço ao eyebrow para não
   ficar por baixo do ícone (ambos ficam na mesma linha, topo esquerdo). */
.mc-back:not(.hidden) ~ .eyebrow { padding-left: 46px; }

#lightbox .mc-dialog { max-width: 880px; padding: 14px; }

#lightbox img {
  width: 100%;
  border-radius: 20px;
  background: var(--mist);
  max-height: 64vh;
  object-fit: cover;
}

.q-field {
  width: 100%;
  border-radius: 16px;
  background: var(--mist);
  padding: 13px 16px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  border: 1.5px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.q-field:focus { border-color: var(--primary); background: #fff; }

textarea.q-field { min-height: 110px; resize: vertical; }

/* honeypot: invisível para humanos */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  height: 1px;
  width: 1px;
  opacity: 0;
}

/* ---------- Aviso de cookies ---------- */
#cookie-banner {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 75;
  max-width: 370px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(26, 101, 198, 0.1);
  box-shadow: 0 30px 70px -25px rgba(11, 31, 69, 0.4);
  padding: 22px;
  transform: translateY(150%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

#cookie-banner.is-in { transform: none; }

@media (max-width: 520px) {
  #cookie-banner { left: 12px; right: 12px; bottom: 86px; max-width: none; }
}

/* ---------- Páginas legais ---------- */
.legal-hero {
  background: radial-gradient(120% 160% at 20% 0%, #1a65c6 0%, #0b1f45 45%, #071a33 100%);
  border-radius: 40px 40px 0 0;
}

.legal-body h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--deep);
  margin: 36px 0 12px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p,
.legal-body li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 10px;
}

.legal-body ul { margin: 0 0 14px 20px; }
.legal-body li { list-style: disc; margin-bottom: 6px; }
.legal-body strong { color: var(--ink); font-weight: 700; }
.legal-body a { color: var(--primary); font-weight: 600; }
.legal-body a:hover { text-decoration: underline; }

/* ============================================================
   V3 — modal de orçamento em passos, pilares azul-escuro,
   MacBook mockup, correções de filtros/imagens em desktop
   ============================================================ */

/* ---------- Modal de orçamento: mais largo no desktop ---------- */
.mc-dialog--quote { max-width: 560px; }

@media (min-width: 768px) {
  .mc-dialog--quote { max-width: 780px; padding: 40px 44px; }
}

/* Botões de escolha (sei / não sei) */
.q-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1.5px solid rgba(26, 101, 198, 0.14);
  background: var(--mist);
  color: var(--deep);
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

.q-choice-btn:hover {
  border-color: var(--primary);
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(26, 101, 198, 0.45);
}

.q-choice-btn:active { transform: scale(0.98); }

.q-choice-icon {
  display: flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  margin-bottom: 6px;
  box-shadow: 0 8px 20px -10px rgba(26, 101, 198, 0.4);
}

.q-choice-btn:hover .q-choice-icon { background: var(--primary); color: #fff; }

select.q-field {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a65c6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 40px;
  cursor: pointer;
}

/* ---------- Pilares (O que nos define): azul escuro + branco ---------- */
.feature-card {
  background: linear-gradient(150deg, #10315f 0%, var(--deep) 55%, #071a33 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 44px -24px rgba(7, 26, 51, 0.55);
}

.feature-card h3 { color: #fff; }

.feature-card:hover {
  border-color: rgba(77, 163, 255, 0.45);
  box-shadow: 0 30px 60px -28px rgba(11, 31, 69, 0.65);
}

.feature-card::before {
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(77, 163, 255, 0.2), transparent 65%);
}

.feature-card .feature-icon {
  background: #fff !important;
}

.feature-card .fc-num {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.22);
}

.feature-card:hover .fc-num {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.5);
}

.feature-icon::after {
  border-color: rgba(255, 255, 255, 0.4);
}

.feature-card .fc-line {
  background: linear-gradient(90deg, #fff, var(--sky));
}

/* ---------- Projetos: filtros estáveis + imagens nítidas ---------- */
@media (min-width: 1024px) {
  .filter-bar { flex-wrap: nowrap; }
  .filter-bar .filter-pill { white-space: nowrap; }
}

/* Grelhas limitadas para as imagens não esticarem além da resolução */
#fleet-grid-lg,
#fleet-grid-sm {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.car-card img {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.car-card:hover img {
  transform: translateZ(0) scale(1.04);
}

/* Lightbox sem recorte forçado (mostra a imagem completa) */
#lightbox img {
  object-fit: contain;
  max-height: 70vh;
}

/* ---------- Hero: canvas de fluxo ---------- */
#hero-flow {
  display: block;
  pointer-events: none;
}

/* ---------- MacBook mockup ---------- */
.macbook {
  position: relative;
  width: min(660px, 100%);
  filter: drop-shadow(0 55px 60px rgba(11, 31, 69, 0.3));
}

.macbook-screen {
  position: relative;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #1a1d24, #0a0c11 30%);
  padding: 16px 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
}

.macbook-screen > div {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9.8;
}

.macbook-cam {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  height: 5px;
  width: 5px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #2a3444 0%, #10141c 60%);
}

.macbook-base {
  position: relative;
  height: 16px;
  margin: 0 -6.5%;
  background: linear-gradient(180deg, #eceef1 0%, #c6c9d0 45%, #8e929b 100%);
  border-radius: 2px 2px 16px 16px;
}

.macbook-base::after {
  content: "";
  position: absolute;
  inset-inline: 8%;
  bottom: -7px;
  height: 7px;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: rgba(11, 31, 69, 0.22);
  filter: blur(4px);
}

.macbook-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 7px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #9aa0ab, #c9cdd5);
}

/* ============================================================
   V4 — Filtro robusto, efeitos por scroll (features) e uma
   revisão mobile completa (centrar, justificar, cards, etc.)
   ============================================================ */

/* Filtro de projetos: tabs com sublinhado já são scroll-horizontal por
   defeito (ver bloco base). Nada a sobrepor no mobile. */

/* ---------- Features: efeitos ativados por scroll (mobile) ----------
   No desktop os efeitos vêm no :hover; em ecrãs sem hover (touch),
   a classe .in-view (adicionada por IntersectionObserver) ativa-os. */
@media (hover: none) {
  .feature-card.in-view::before { opacity: 1; }
  .feature-card.in-view .fc-num {
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px) scale(1.06);
  }
  .feature-card.in-view .feature-icon::after { opacity: 1; }
  .feature-card.in-view .fc-line { transform: scaleX(2.2); opacity: 1; }
  .feature-card.in-view {
    border-color: rgba(77, 163, 255, 0.5);
    box-shadow: 0 26px 54px -26px rgba(11, 31, 69, 0.6);
  }
}

/* ============================================================
   Revisão mobile (≤ 768px): centrar botões e títulos, justificar
   textos, cards em coluna, mockups adaptados
   ============================================================ */
@media (max-width: 768px) {
  /* Títulos e eyebrows centrados */
  .hero-title,
  .section-title,
  .eyebrow,
  #sobre .app-copy,
  #loja .loja-copy {
    text-align: center;
  }

  /* Parágrafos justificados (leitura em blocos) */
  .hero-sub,
  #sobre .app-copy p,
  #loja .loja-copy p,
  #projetos > p,
  #features > p,
  .legal-body p {
    text-align: justify;
    text-justify: inter-word;
    margin-left: auto;
    margin-right: auto;
  }

  /* Subtítulos de secção centrados (não justificar linhas curtas) */
  #projetos > p,
  #features > p,
  #contactos p {
    text-align: center;
  }

  /* Botões e grupos de CTA centrados */
  .hero-cta,
  #sobre .app-copy .btn-primary,
  #loja .loja-copy,
  .app-copy,
  .loja-copy {
    justify-content: center;
  }
  .hero-cta { justify-content: center; }
  #sobre .app-copy > .btn-primary,
  #loja .loja-copy > .btn-primary,
  #loja .loja-copy > #loja-cta {
    display: inline-flex;
  }
  #sobre .app-copy,
  #loja .loja-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  /* listas de benefícios centradas mas legíveis */
  #loja .loja-copy ul { align-items: flex-start; text-align: left; }

  /* ---- "O que nos define": CARROSSEL horizontal 1-a-1 ---- */
  #features-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 6px;
    /* sangra até às margens para o carrossel respirar */
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  #features-grid::-webkit-scrollbar { display: none; }
  /* topo do card: ícone e número LADO A LADO (grid, sem sobreposição) */
  .feature-card {
    scroll-snap-align: center;
    min-height: 210px;
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "icon num" "title title" "line line";
    align-content: start;
    align-items: center;
    gap: 6px 10px;
  }
  .feature-card .feature-icon {
    grid-area: icon;
    position: static;
    transform: none;
    justify-self: start;
  }
  .feature-card:hover .feature-icon,
  .feature-card.in-view .feature-icon { transform: scale(1.08); }
  .feature-card .fc-num {
    grid-area: num;
    position: static;
    justify-self: end;
    font-size: 42px;
    line-height: 1;
    transform: none;
  }
  .feature-card:hover .fc-num,
  .feature-card.in-view .fc-num { transform: translateY(-2px) scale(1.05); }
  .feature-card h3 { grid-area: title; margin-top: 14px !important; text-align: left; }
  .feature-card .fc-line { grid-area: line; margin-top: 4px; transform-origin: left; }

  /* ---- Projetos: CARROSSEL horizontal 1-a-1 ---- */
  #fleet-grid-lg,
  #fleet-grid-sm {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 6px;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  #fleet-grid-lg::-webkit-scrollbar,
  #fleet-grid-sm::-webkit-scrollbar { display: none; }
  #fleet-grid-lg .car-card,
  #fleet-grid-sm .car-card { scroll-snap-align: center; }
  .car-card { aspect-ratio: 16 / 10; }
  /* No telemóvel a legenda (nome + categoria) só aparece dentro do
     lightbox ao abrir o projeto — no grid fica sempre escondida,
     sem depender de :hover (que não existe em toque). */
  .car-card figcaption { display: none; }

  /* ---- Telemóveis: só UM no mobile (o outro partia o layout) ---- */
  #phone-back { display: none; }
  #phone-front {
    position: relative;
    left: auto; top: auto;
    margin: 0 auto;
    /* a inclinação e o movimento são dados pelo GSAP (main.js) */
  }
  #sobre .relative.flex { min-height: 0; }
  .iphone { width: min(260px, 78vw); }

  /* CTA e cartões não “esticam” demasiado */
  .cta-block { padding-left: 22px; padding-right: 22px; }

  /* Navbar: esconder CTA de texto para dar espaço */
  #navbar .btn-primary.hidden.sm\:inline-flex { display: none; }

  /* ---- Rodapé centrado ---- */
  #footer .grid > div { text-align: center; }
  #footer a[aria-label] { justify-content: center; }
  #footer .max-w-\[280px\] { margin-left: auto; margin-right: auto; }
  #nav-footer { align-items: center; }
  #footer form { max-width: 340px; margin-left: auto; margin-right: auto; }
  #footer .mt-20 { justify-items: center; }
  #footer .mt-20 > div:first-child {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px 32px;
  }
  #footer .md\:justify-self-end { justify-self: center; }
}

/* Telemóveis muito estreitos */
@media (max-width: 380px) {
  .iphone { width: min(240px, 80vw); }
}

/* ============================================================
   V5 — sem zoom nos inputs (mobile), botão de orçamento animado,
   modal compacto (cabe no ecrã), MacBook contido no mobile
   ============================================================ */

/* iOS/Android: font-size >= 16px evita o zoom automático ao focar campos */
@media (max-width: 768px) {
  input, select, textarea,
  .q-field, .field-input {
    font-size: 16px !important;
  }
}

/* Botão flutuante de orçamento — gradiente a passar + pulso subtil */
#quote-fab {
  background: linear-gradient(120deg, var(--primary), var(--sky), var(--primary));
  background-size: 220% 100%;
  animation: fabSheen 3.4s linear infinite, fabPulse 2.6s ease-in-out infinite;
}
@keyframes fabSheen { to { background-position: -220% 0; } }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 18px 44px -14px rgba(26,101,198,.7), 0 0 0 0 rgba(77,163,255,.5); }
  50% { box-shadow: 0 18px 44px -14px rgba(26,101,198,.75), 0 0 0 10px rgba(77,163,255,0); }
}
#quote-fab:hover { animation-play-state: paused; }

/* Modal de orçamento: caber sem scroll, layout mais compacto */
.mc-dialog--quote { padding: 24px; }
@media (min-height: 720px) and (min-width: 768px) {
  .mc-dialog--quote { padding: 34px 40px; }
}
.mc-dialog--quote .q-title,
.mc-dialog--quote #q-title { font-size: 21px; }
#quote-form { gap: 12px; }
#q-common { gap: 12px !important; }
textarea.q-field { min-height: 76px; }
.q-field { padding: 11px 14px; }
#quote-modal .eyebrow { font-size: 11px; }

/* Lightbox de projeto: botão "Quero um destes" */
.lb-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ============================================================
   V6 — scrollbars invisíveis, ajustes mobile finos, mockups
   com movimento, features só-SVG, footer 2×2, skeletons
   ============================================================ */

/* Scrollbars invisíveis nos cartões/modais (mais agradável) */
.mc-dialog,
#content,
.q-body {
  scrollbar-width: none;
}
.mc-dialog::-webkit-scrollbar,
#content::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* Skeleton de carregamento — mostrado enquanto o Supabase hidrata,
   para não aparecerem os itens estáticos "a piscar" */
@keyframes mcShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
html.is-hydrating [data-skel] { position: relative; min-height: 120px; }
html.is-hydrating [data-skel] > * { visibility: hidden !important; }
html.is-hydrating [data-skel]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%);
  background-size: 200% 100%;
  animation: mcShimmer 1.4s ease-in-out infinite;
}
/* grelhas de skeleton (mantêm a altura enquanto carrega) */
html.is-hydrating #fleet-grid-lg,
html.is-hydrating #fleet-grid-sm,
html.is-hydrating #features-grid,
html.is-hydrating #skills-marquee { min-height: 180px; }

@media (max-width: 768px) {
  /* Modal de orçamento: menos altura (topo e base) no telemóvel */
  .mc-dialog--quote { padding: 16px 18px; }
  #quote-modal .mc-dialog { max-height: 88vh; }
  #quote-modal h3#q-title { margin-top: 4px; font-size: 19px; }
  #quote-modal .q-sub, #quote-modal [data-i18n="q_sub"] { font-size: 12.5px; margin-top: 4px; }
  #quote-form { margin-top: 14px; gap: 10px; }

  /* Projetos no telemóvel: swipe não faz zoom; só o toque abre o lightbox */
  .car-card:hover { transform: none; box-shadow: 0 10px 40px -18px rgba(11,31,69,.12); }
  .car-card:hover img { transform: translateZ(0) !important; }

  /* "O que nos define" (mobile): ao tocar, SÓ a animação do ícone (anel),
     sem levantar o card nem mudar sombra/borda */
  .feature-card.in-view,
  .feature-card.tapped {
    transform: none !important;
    border-color: rgba(255,255,255,.09) !important;
    box-shadow: 0 14px 44px -24px rgba(7,26,51,.55) !important;
  }
  .feature-card.in-view .fc-num,
  .feature-card.in-view .fc-line { transform: none; -webkit-text-stroke-color: rgba(255,255,255,.22); opacity: 1; }
  .feature-card.tapped .feature-icon::after { opacity: 1; }
  .feature-card.tapped .feature-icon { transform: scale(1.06); }
  .feature-card.tapped .fc-line { transform: scaleX(2.2); opacity: 1; }

  /* Footer: links em 2×2 (horizontal com quebra), centrado */
  #nav-footer {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 28px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  #nav-footer li { flex: 0 0 40%; text-align: center; }
}

/* ---------- Acessibilidade / performance ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
