/* ============================================================
   BLUESYS — Folha de estilos única (PT + EN)
   Todas as páginas carregam este ficheiro. Editar aqui altera
   o site inteiro. Organizado por secções — ver índice abaixo.

   1. Tokens          6. Secções          11. Notícias
   2. Base / reset    7. Serviços         12. Portfolio
   3. Acessibilidade  8. IA               13. Modal
   4. Navegação       9. Sobre            14. Rodapé
   5. Hero           10. Contacto         15. Responsivo
   ============================================================ */

/* ── 1. TOKENS ─────────────────────────────────────────────── */
:root {
  /* Marca */
  --brand:      #1a6fff;
  --brand-dark: #0d5ce0;
  --brand-soft: #4a9eff;
  --brand-lite: #7ab8ff;
  --brand2:     #8a3fff;
  --brand2-lite:#c084fc;
  --accent:     #ff6b35;
  --cyan:       #22d3ee;

  /* Superfícies */
  --dark:   #06080f;
  --dark2:  #08101e;
  --dark3:  #0d1628;
  --darkest:#030509;

  /* Texto */
  --text:       #f0f4ff;
  --text-soft:  rgba(200,210,255,0.82);
  --muted:      rgba(200,210,255,0.55);
  --faint:      rgba(255,255,255,0.28);

  /* Linhas e cartões */
  --border:      rgba(255,255,255,0.07);
  --border-lit:  rgba(255,255,255,0.14);
  --border-brand:rgba(26,111,255,0.28);
  --card-bg:     rgba(255,255,255,0.03);
  --card-hover:  rgba(255,255,255,0.06);

  /* Formas */
  --radius:    20px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  /* Ritmo */
  --gutter:    4rem;      /* margem lateral em desktop */
  --sec-y:     7rem;      /* espaçamento vertical de secção */
  --maxw:      1200px;
  --nav-h:     72px;

  /* Sombras */
  --shadow-card: 0 20px 60px rgba(0,0,0,0.4);
  --shadow-brand:0 4px 30px rgba(26,111,255,0.4);

  /* Movimento */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. BASE ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: rgba(26,111,255,0.35); color: #fff; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-soft); }

/* ── 3. ACESSIBILIDADE ─────────────────────────────────────── */
.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 2000; background: var(--brand); color: #fff;
  padding: 0.7rem 1.4rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

:focus-visible {
  outline: 2px solid var(--brand-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* Revelação ao deslizar — aplicada por assets/js/site.js */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

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

/* ── 4. NAVEGAÇÃO ──────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  min-height: var(--nav-h);
  padding: 1rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: rgba(6,8,15,0.62);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), padding 0.3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(6,8,15,0.88);
  border-bottom-color: var(--border);
  padding-block: 0.7rem;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 30px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  position: relative;
  color: var(--muted); text-decoration: none;
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.2px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--text); }

.nav-btn {
  background: var(--brand); color: #fff !important;
  padding: 0.55rem 1.4rem; border-radius: 50px;
  font-weight: 600 !important; font-size: 0.85rem !important;
  box-shadow: 0 0 20px rgba(26,111,255,0.28);
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-btn::after { display: none !important; }
.nav-btn:hover { background: var(--brand-dark); box-shadow: 0 0 32px rgba(26,111,255,0.5); }

.lang-sw { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 600; }
.lang-sw a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.lang-sw a::after { display: none !important; }
.lang-sw a:hover, .lang-sw a.lang-active { color: #fff; }
.lang-sw span { color: rgba(255,255,255,0.2); }

/* Botão hambúrguer — só visível em ecrãs pequenos */
.nav-toggle {
  display: none; width: 42px; height: 42px; flex-shrink: 0;
  align-items: center; justify-content: center;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-xs); cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.nav-toggle:hover { background: var(--card-hover); border-color: var(--border-lit); }
.nav-toggle span {
  display: block; position: relative; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: background 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ── 5. HERO ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 5rem) var(--gutter) 5rem;
}
.hero--home { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-bottom: 7.5rem; }
.hero--page { padding-bottom: 3.5rem; }

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(125deg, #06080f 0%, #0a0e1f 40%, #0d1535 70%, #06080f 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 100%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 1; }
.orb-1, .orb1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(26,111,255,0.22), transparent 70%); top: -10%; right: 12%; }
.orb-2, .orb2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,107,53,0.16), transparent 70%); bottom: -5%; right: 28%; }
.orb-3        { width: 320px; height: 320px; background: radial-gradient(circle, rgba(138,63,255,0.18), transparent 70%); top: 32%; right: 3%; }

/* Grelha do hero da página inicial: texto à esquerda, visual 3D à direita */
.hero-layout {
  position: relative; z-index: 10;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 4rem; align-items: center;
}
.hero-content { max-width: 640px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(26,111,255,0.12); border: 1px solid rgba(26,111,255,0.3);
  color: var(--brand-lite); font-size: 0.72rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; padding: 0.45rem 1.1rem; border-radius: 50px;
  margin-bottom: 1.75rem;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-soft); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.45; transform:scale(1.35); } }

.hero-logo { margin-bottom: 1.75rem; }
.hero-logo img { height: 46px; width: auto; }

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 900;
  line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 1.35rem; color: #fff;
}
.hero h1 .line2 {
  display: block;
  background: linear-gradient(90deg, #ffffff 0%, var(--brand-soft) 40%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero p, .hero-sub {
  font-size: clamp(1rem, 1.15vw, 1.1rem); color: var(--muted);
  max-width: 560px; line-height: 1.8; margin-bottom: 2.25rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Cabeçalho das páginas internas */
.hero-inner { position: relative; z-index: 10; max-width: var(--maxw); margin: 0 auto; }
.hero-inner h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 900;
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1rem; color: #fff;
}

/* Botões */
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #6040ff);
  color: #fff; padding: 0.9rem 2.1rem; border-radius: 50px;
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  position: relative; overflow: hidden; border: none; cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, #2a7fff, #7050ff);
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(26,111,255,0.55); }
.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
  background: rgba(255,255,255,0.06); color: #fff;
  padding: 0.9rem 2.1rem; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--border-lit); display: inline-block; cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }

.scroll-ind {
  position: absolute; bottom: 2.25rem; left: var(--gutter); z-index: 10;
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--muted); font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
}
.scroll-line { width: 40px; height: 1px; background: var(--muted); position: relative; overflow: hidden; }
.scroll-line::after {
  content: ''; position: absolute; inset: 0; width: 14px;
  background: var(--brand-soft); animation: scrollSlide 2.2s var(--ease) infinite;
}
@keyframes scrollSlide { 0% { transform: translateX(-14px); } 100% { transform: translateX(40px); } }

/* Em ecrãs baixos não há espaço para o indicador sem chocar com os botões. */
@media (max-height: 760px) { .scroll-ind { display: none; } }

/* ── 5b. VISUAL 3D DO HERO ─────────────────────────────────── */
.hero-visual {
  position: relative; z-index: 10;
  aspect-ratio: 1 / 1; width: 100%; max-width: 480px; margin-inline: auto;
  perspective: 1100px; perspective-origin: 50% 50%;
}
.scene-3d {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.scene-3d.is-live { transition: transform 0.12s linear; }
.layer-3d {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  display: flex; align-items: center; justify-content: center;
}

/* Anéis orbitais */
.ring-3d { position: absolute; border-radius: 50%; border: 1px solid; transform-style: preserve-3d; }
.ring-a { width: 100%; height: 100%; border-color: rgba(26,111,255,0.16); transform: translateZ(-40px) rotateX(72deg); animation: spin 26s linear infinite; }
.ring-b { width: 78%;  height: 78%;  border-color: rgba(138,63,255,0.20); transform: translateZ(0) rotateX(66deg) rotateY(14deg); animation: spin 19s linear infinite reverse; }
.ring-c { width: 96%;  height: 96%;  border-color: rgba(255,107,53,0.14); transform: translateZ(30px) rotateY(74deg); animation: spin 32s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Cubo central */
.cube-3d {
  position: relative; width: 168px; height: 168px;
  transform-style: preserve-3d;
  animation: cubeSpin 26s linear infinite;
}
@keyframes cubeSpin {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to   { transform: rotateX(-18deg) rotateY(360deg); }
}
.cube-face {
  position: absolute; inset: 0;
  border: 1px solid rgba(122,184,255,0.35);
  background: linear-gradient(135deg, rgba(26,111,255,0.16), rgba(138,63,255,0.10));
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 40px rgba(26,111,255,0.18);
  border-radius: 6px;
}
.cube-face svg { width: 52px; height: 52px; stroke: var(--brand-lite); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.cf-front  { transform: translateZ(84px); }
.cf-back   { transform: rotateY(180deg) translateZ(84px); }
.cf-right  { transform: rotateY(90deg)   translateZ(84px); }
.cf-left   { transform: rotateY(-90deg)  translateZ(84px); }
.cf-top    { transform: rotateX(90deg)   translateZ(84px); }
.cf-bottom { transform: rotateX(-90deg)  translateZ(84px); }

/* Cartões flutuantes */
.card-3d {
  position: absolute;
  background: rgba(10,14,28,0.72);
  border: 1px solid var(--border-lit);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
  min-width: 150px;
}
.c3-top { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.5rem; }
.c3-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-soft); flex-shrink: 0; }
.c3-dot.is-accent { background: var(--accent); }
.c3-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.c3-val { font-size: 1.15rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; line-height: 1.1; }
.c3-sub { font-size: 0.66rem; color: var(--muted); margin-top: 0.2rem; }

.c3-bars { display: flex; align-items: flex-end; gap: 4px; height: 30px; margin-top: 0.5rem; }
.c3-bars i { display: block; width: 7px; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--brand-soft), rgba(26,111,255,0.25)); animation: barPulse 2.4s var(--ease) infinite; }
.c3-bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.c3-bars i:nth-child(2) { height: 68%; animation-delay: 0.2s; }
.c3-bars i:nth-child(3) { height: 52%; animation-delay: 0.4s; }
.c3-bars i:nth-child(4) { height: 88%; animation-delay: 0.6s; }
.c3-bars i:nth-child(5) { height: 62%; animation-delay: 0.8s; }
@keyframes barPulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }

.c3-code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.62rem; line-height: 1.7; color: var(--muted); }
.c3-code b { color: var(--brand-lite); font-weight: 600; }
.c3-code em { color: var(--accent); font-style: normal; }

.card-a { top: 2%;     left: 0;   transform: translateZ(110px); animation: float3d 7s ease-in-out infinite; }
.card-b { bottom: 14%; right: 0;  transform: translateZ(130px); animation: float3d 8.5s ease-in-out infinite 0.8s; }
.card-c { bottom: 0;   left: 7%;  transform: translateZ(64px);  animation: float3d 9.5s ease-in-out infinite 1.6s; }
@keyframes float3d { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* Rede de nós */
.net-3d { position: absolute; inset: 0; transform: translateZ(-90px); opacity: 0.8; }
.net-3d svg { width: 100%; height: 100%; overflow: visible; }
.net-line { stroke: rgba(122,184,255,0.28); stroke-width: 1; fill: none; }
.net-node { fill: var(--brand-soft); }
.net-node.n-alt { fill: var(--accent); }

.hero-visual-glow {
  position: absolute; inset: 8%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(26,111,255,0.28), transparent 68%);
  filter: blur(52px);
}

@media (prefers-reduced-motion: reduce) {
  .cube-3d, .ring-a, .ring-b, .ring-c, .card-a, .card-b, .card-c, .c3-bars i { animation: none !important; }
}

/* ── 6. SECÇÕES ────────────────────────────────────────────── */
.sec { padding: var(--sec-y) var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.sec-narrow { max-width: 880px; }

.sec-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--brand-soft); margin-bottom: 1.1rem;
}
.sec-label::before { content: ''; display: block; width: 20px; height: 1px; background: var(--brand-soft); }

.sec-title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 800; color: #fff;
  line-height: 1.14; letter-spacing: -0.025em; margin-bottom: 1rem;
}
.sec-sub { font-size: 1.02rem; color: var(--muted); max-width: 560px; line-height: 1.8; margin-bottom: 3.5rem; }

.sec-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem;
}
.sec-head-row .sec-sub { margin-bottom: 0; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--brand-lite); text-decoration: none; font-weight: 600; font-size: 0.9rem;
  transition: gap 0.25s var(--ease), color 0.2s;
}
.link-arrow:hover { gap: 0.85rem; color: #fff; }

.breadcrumb {
  position: relative; z-index: 10;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--muted); margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--brand-lite); }
.breadcrumb span { color: rgba(255,255,255,0.2); }
.breadcrumb [aria-current] { color: var(--text-soft); }

/* Barra de estatísticas */
.stats {
  background: linear-gradient(180deg, var(--dark2) 0%, var(--dark3) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 2.5rem var(--gutter);
}
.stats-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center;
}
.stat-n { font-size: clamp(1.8rem, 3vw, 2.2rem); font-weight: 900; color: #fff; letter-spacing: -0.03em; }
.stat-n .accent { color: var(--brand-soft); }
.stat-l { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; letter-spacing: 0.5px; font-weight: 500; }
.stat-sep { border-right: 1px solid var(--border); }

/* ── 7. SERVIÇOS ───────────────────────────────────────────── */
.svc-bg { background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; }

.svc-card {
  background: var(--card-bg); border: 1px solid var(--border);
  padding: 2.5rem 2rem; position: relative; overflow: hidden;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease),
              border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.svc-card:first-child   { border-radius: var(--radius) 0 0 0; }
.svc-card:nth-child(3)  { border-radius: 0 var(--radius) 0 0; }
.svc-card:nth-child(4)  { border-radius: 0 0 0 var(--radius); }
.svc-card:last-child    { border-radius: 0 0 var(--radius) 0; }
.svc-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,111,255,0.06), transparent 60%);
  opacity: 0; transition: opacity 0.35s;
}
.svc-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.svc-card:hover { background: var(--card-hover); transform: translateY(-4px); border-color: var(--border-brand); box-shadow: var(--shadow-card); }
.svc-card:hover::before { opacity: 1; }
.svc-card:hover::after  { transform: scaleX(1); }

.svc-icon-wrap {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);
  position: relative; z-index: 1; transition: background 0.35s, border-color 0.35s;
}
.svc-card:hover .svc-icon-wrap { background: rgba(26,111,255,0.15); border-color: rgba(26,111,255,0.4); }
.svc-icon-wrap svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.svc-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 0.7rem; position: relative; z-index: 1; }
.svc-card p  { font-size: 0.875rem; color: var(--muted); line-height: 1.75; position: relative; z-index: 1; }

.svc-tag {
  display: inline-block; margin-top: 1.2rem; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 0.3rem 0.8rem; border-radius: 50px;
  background: rgba(168,85,247,0.12); color: var(--brand2-lite);
  border: 1px solid rgba(168,85,247,0.25); position: relative; z-index: 1;
}
.svc-tag.blue { background: rgba(26,111,255,0.12); color: var(--brand-lite); border-color: rgba(26,111,255,0.25); }

.svc-featured {
  background: linear-gradient(135deg, rgba(26,111,255,0.08), rgba(138,63,255,0.06)) !important;
  border-color: rgba(138,63,255,0.2) !important;
}

/* ── 8. IA ─────────────────────────────────────────────────── */
.ai-bg { background: linear-gradient(180deg, var(--dark2) 0%, var(--dark) 100%); }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.ai-visual { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.ai-ring { position: absolute; border-radius: 50%; border: 1px solid; }
.ai-ring-1 { width: 100%; height: 100%; border-color: rgba(26,111,255,0.12); }
.ai-ring-2 { width: 75%;  height: 75%;  border-color: rgba(138,63,255,0.15); animation: spin 20s linear infinite; }
.ai-ring-3 { width: 50%;  height: 50%;  border-color: rgba(255,107,53,0.12); animation: spin 15s linear infinite reverse; }
.ai-core {
  width: 140px; height: 140px; border-radius: 50%; position: relative; z-index: 1;
  background: linear-gradient(135deg, rgba(26,111,255,0.13), rgba(138,63,255,0.13));
  border: 1px solid rgba(26,111,255,0.3);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px rgba(26,111,255,0.2), inset 0 0 40px rgba(138,63,255,0.1);
}
.ai-core svg { width: 56px; height: 56px; stroke: var(--brand-lite); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.orbit-node {
  position: absolute; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.orbit-node:nth-child(2) { top: 5%; left: 50%; transform: translateX(-50%); }
.orbit-node:nth-child(3) { top: 50%; right: 5%; transform: translateY(-50%); }
.orbit-node:nth-child(4) { bottom: 5%; left: 50%; transform: translateX(-50%); }
.orbit-node:nth-child(5) { top: 50%; left: 5%; transform: translateY(-50%); }

.ai-features { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 2.25rem; }
.ai-feat {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1.2rem 1.4rem;
  border-radius: var(--radius-sm); background: var(--card-bg); border: 1px solid var(--border);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.ai-feat:hover { background: var(--card-hover); border-color: var(--border-brand); transform: translateX(4px); }
.ai-feat-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(26,111,255,0.1); border: 1px solid rgba(26,111,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.ai-feat-icon svg { width: 18px; height: 18px; stroke: var(--brand-soft); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ai-feat h4 { font-size: 0.9rem; font-weight: 600; color: #fff; margin-bottom: 0.25rem; }
.ai-feat p  { font-size: 0.82rem; color: var(--muted); line-height: 1.65; }

/* ── 9. SOBRE ──────────────────────────────────────────────── */
.about-bg { background: var(--dark); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-card {
  padding: 1.75rem 1.25rem; border-radius: var(--radius-sm); background: var(--card-bg);
  border: 1px solid var(--border); text-align: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.about-card:hover { background: var(--card-hover); border-color: var(--border-brand); transform: translateY(-3px); }
.about-card .n { font-size: 2.3rem; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 0.2rem; }
.about-card .l { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.about-card:nth-child(1) .n { color: var(--brand-soft); }
.about-card:nth-child(2) .n { color: #a855f7; }
.about-card:nth-child(3) .n { color: var(--accent); }
.about-card:nth-child(4) .n { color: var(--cyan); }

.about-text h2 { font-size: clamp(1.75rem, 2.5vw, 2.35rem); font-weight: 800; color: #fff; margin-bottom: 1rem; letter-spacing: -0.02em; line-height: 1.2; }
.about-text p  { font-size: 0.92rem; color: var(--muted); line-height: 1.85; margin-bottom: 0.9rem; }

.check-list { list-style: none; margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.88rem; color: var(--text-soft); }
.chk {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; margin-top: 1px;
  background: rgba(26,111,255,0.15); border: 1px solid rgba(26,111,255,0.3);
  display: flex; align-items: center; justify-content: center;
}
.chk svg { width: 12px; height: 12px; stroke: var(--brand-soft); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── 10. CONTACTO ──────────────────────────────────────────── */
.contact-bg { background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; }
.contact-info h2 { font-size: clamp(1.75rem, 2.5vw, 2.35rem); font-weight: 800; color: #fff; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.contact-info > p { font-size: 0.92rem; color: var(--muted); line-height: 1.8; margin-bottom: 2.25rem; }

.c-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.4rem; }
.c-icon {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: var(--card-bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; transition: background 0.25s, border-color 0.25s;
}
.c-icon svg { width: 20px; height: 20px; stroke: var(--brand-soft); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.c-item:hover .c-icon { background: rgba(26,111,255,0.1); border-color: rgba(26,111,255,0.3); }
.c-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 0.2rem; display: block; }
.c-val   { font-size: 0.92rem; color: var(--text-soft); line-height: 1.5; display: block; }
a.c-val  { text-decoration: none; transition: color 0.2s; }
a.c-val:hover { color: var(--brand-lite); }

.contact-form {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.25rem; backdrop-filter: blur(10px);
}
.contact-form h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 1.75rem; }
.fg { margin-bottom: 1.05rem; }
.fg label { display: block; font-size: 0.7rem; font-weight: 600; color: var(--muted); margin-bottom: 0.45rem; text-transform: uppercase; letter-spacing: 1px; }
.fg input, .fg textarea, .fg select {
  width: 100%; padding: 0.8rem 1.05rem;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: #fff; font-size: 0.9rem;
  font-family: inherit; outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.fg input::placeholder, .fg textarea::placeholder { color: rgba(255,255,255,0.2); }
.fg input:focus, .fg textarea:focus, .fg select:focus {
  border-color: rgba(26,111,255,0.5); background: rgba(26,111,255,0.05); box-shadow: 0 0 0 3px rgba(26,111,255,0.1);
}
.fg textarea { resize: vertical; min-height: 110px; }
.fg-hint { font-size: 0.72rem; color: var(--muted); margin-top: 0.35rem; }

.form-btn {
  width: 100%; padding: 0.9rem;
  background: linear-gradient(135deg, var(--brand), #6040ff);
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 700; cursor: pointer; margin-top: 0.5rem;
  box-shadow: 0 4px 20px rgba(26,111,255,0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.2s;
}
.form-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26,111,255,0.45); }
.form-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-feedback { display: none; padding: 0.75rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: 0.875rem; }
.form-feedback.is-ok  { display: block; background: rgba(26,111,255,0.15); border: 1px solid rgba(26,111,255,0.3); color: var(--brand-lite); }
.form-feedback.is-err { display: block; background: rgba(255,80,80,0.1); border: 1px solid rgba(255,80,80,0.3); color: #ff9090; }

/* Campo-armadilha anti-spam — invisível para pessoas */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ── 11. NOTÍCIAS ──────────────────────────────────────────── */
.news-section, .portfolio-section { background: var(--dark); min-height: 55vh; }

.filters { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 0.5rem 1.15rem; border-radius: 50px; font-size: 0.82rem; font-weight: 600;
  background: var(--card-bg); border: 1px solid var(--border); color: var(--muted);
  cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.filter-btn:hover { background: var(--card-hover); color: var(--text); }
.filter-btn.active { background: rgba(26,111,255,0.15); border-color: rgba(26,111,255,0.45); color: var(--brand-lite); }

.news-cat {
  display: inline-block; font-size: 0.64rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 0.28rem 0.75rem; border-radius: 50px; margin-bottom: 0.9rem;
}
.cat-produto  { background: rgba(26,111,255,0.13);  color: var(--brand-lite);  border: 1px solid rgba(26,111,255,0.28); }
.cat-parceria { background: rgba(255,107,53,0.13);  color: #ffa077;            border: 1px solid rgba(255,107,53,0.28); }
.cat-empresa  { background: rgba(168,85,247,0.13);  color: var(--brand2-lite); border: 1px solid rgba(168,85,247,0.28); }
.cat-default  { background: rgba(255,255,255,0.06); color: var(--muted);       border: 1px solid var(--border); }

/* Cartão em destaque */
.featured-card {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; margin-bottom: 2.5rem;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.featured-card:hover { border-color: var(--border-brand); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feat-img { position: relative; min-height: 320px; overflow: hidden; }
.feat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.featured-card:hover .feat-img img { transform: scale(1.04); }
.feat-img-bg { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,111,255,0.16), rgba(138,63,255,0.10)); }
.feat-img img + .feat-img-bg { background: linear-gradient(90deg, rgba(6,8,15,0.5), transparent 60%); }
.feat-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: rgba(26,111,255,0.9); color: #fff; font-size: 0.64rem; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; padding: 0.3rem 0.8rem; border-radius: 50px;
}
.feat-body { padding: 2.25rem; display: flex; flex-direction: column; justify-content: center; }
.feat-body h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 800; color: #fff; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 0.85rem; }
.feat-body p  { font-size: 0.92rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.4rem; }

/* Grelha de cartões */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.news-card:hover { border-color: var(--border-brand); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.news-card:hover .card-img img { transform: scale(1.05); }
.card-img-bg { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,111,255,0.12), rgba(138,63,255,0.08)); }
.card-img img + .card-img-bg { background: linear-gradient(180deg, transparent 40%, rgba(6,8,15,0.55)); }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.02rem; font-weight: 700; color: #fff; line-height: 1.35; margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.card-body p  { font-size: 0.85rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.1rem; flex: 1; }
.card-footer  { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.news-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.news-date, .news-autor { font-size: 0.76rem; color: var(--muted); }
.news-date { display: inline-flex; align-items: center; gap: 0.4rem; }

.read-more {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--brand-lite); font-size: 0.85rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: gap 0.25s var(--ease), color 0.2s;
}
.news-card:hover .read-more, .featured-card:hover .read-more, .read-more:hover { gap: 0.7rem; color: #fff; }

/* ── Cartões sem imagem ────────────────────────────────────
   Quando não há imagem não se desenha um bloco vazio nem um ícone
   de recurso: o cartão ganha uma barra de cor no topo e um brilho
   ténue no canto, e o texto respira mais. Assim publicar uma notícia
   sem imagem continua a dar um cartão bem resolvido. */
.news-card--plain,
.featured-card--plain,
.proj-card--plain { position: relative; overflow: hidden; }

.news-card--plain::before,
.featured-card--plain::before,
.proj-card--plain::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--brand), var(--brand2) 55%, transparent);
}
.news-card--plain::after,
.featured-card--plain::after,
.proj-card--plain::after {
  content: ''; position: absolute; top: -34%; right: -18%;
  width: 62%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(26,111,255,0.16), transparent 68%);
  transition: opacity 0.3s var(--ease);
}
.news-card--plain:hover::after,
.featured-card--plain:hover::after,
.proj-card--plain:hover::after { opacity: 0.6; }

.news-card--plain .card-body,
.proj-card--plain .proj-body { padding: 1.85rem 1.6rem 1.5rem; }
.news-card--plain .card-body h3 { font-size: 1.12rem; line-height: 1.32; }
.news-card--plain .card-body p  { font-size: 0.88rem; }

/* Linha de topo: categoria/sector à esquerda, etiqueta à direita */
.card-topo {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.85rem;
}
.card-topo .news-cat,
.card-topo .proj-sector { margin-bottom: 0; }
.card-topo .proj-sector { flex: 1 1 auto; min-width: 0; }
.card-topo .estado-badge,
.card-topo .feat-badge { flex: 0 0 auto; }

/* Destaque sem imagem: uma faixa de largura inteira, sem coluna vazia */
.featured-card--plain {
  grid-template-columns: 1fr;
  background: linear-gradient(135deg, rgba(26,111,255,0.08), rgba(138,63,255,0.05));
  border-color: var(--border-brand);
}
.featured-card--plain .feat-body { padding: 2.5rem; }
.featured-card--plain .feat-body h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); max-width: 24ch; }
.featured-card--plain .feat-body p  { font-size: 1rem; max-width: 68ch; }

.feat-badge--inline { position: static; background: rgba(26,111,255,0.16); color: var(--brand-lite); border: 1px solid var(--border-brand); }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 4rem 1rem;
  color: var(--muted); font-size: 0.95rem;
  border: 1px dashed var(--border); border-radius: var(--radius);
}

/* Artigo completo */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-hero-img {
  width: 100%; aspect-ratio: 2 / 1; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 2.25rem;
}
.article-header { margin-bottom: 2rem; }
.article-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; color: #fff;
  line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 1rem;
}
.article-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); }
.article-content { font-size: 1.02rem; line-height: 1.9; color: var(--text-soft); }
.article-content p { margin-bottom: 1.4rem; }
.article-content p:first-of-type { font-size: 1.12rem; color: var(--text); }
.article-content a { color: var(--brand-lite); }

.back-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--card-bg); border: 1px solid var(--border); color: var(--text-soft);
  padding: 0.6rem 1.25rem; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; cursor: pointer; margin-bottom: 2rem;
  transition: background 0.2s, border-color 0.2s, gap 0.25s var(--ease);
}
.back-btn:hover { background: var(--card-hover); border-color: var(--border-lit); gap: 0.75rem; }

.share-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.share-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 1.4px; font-weight: 700; color: var(--muted); margin-right: 0.25rem; }
.share-btn {
  width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--card-bg); border: 1px solid var(--border); color: var(--muted);
  text-decoration: none; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.share-btn:hover { background: rgba(26,111,255,0.12); border-color: var(--border-brand); color: var(--brand-lite); }
.share-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Artigos relacionados */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

/* ── 12. PORTFOLIO ─────────────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.proj-card {
  display: flex; flex-direction: column; text-align: left; width: 100%;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; color: inherit; font: inherit; text-decoration: none;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.proj-card:hover { border-color: var(--border-brand); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.proj-card.is-featured { grid-column: span 2; }
.proj-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.proj-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.proj-card:hover .proj-thumb img { transform: scale(1.05); }
.proj-thumb-bg { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,111,255,0.12), rgba(138,63,255,0.08)); }
.proj-thumb img + .proj-thumb-bg { background: linear-gradient(180deg, transparent 45%, rgba(6,8,15,0.6)); }

.estado-badge {
  position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.75rem; border-radius: 50px;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(6,8,15,0.78); backdrop-filter: blur(8px); border: 1px solid var(--border-lit);
}
.estado-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
/* Variante para cartões sem imagem: a etiqueta entra na linha de topo
   do corpo em vez de flutuar sobre a miniatura. */
.estado-badge--inline {
  position: static; background: rgba(255,255,255,0.04); backdrop-filter: none;
  border-color: currentColor; opacity: 0.9;
}
.estado-funcionamento   { color: #4ade80; } .estado-funcionamento   .estado-dot { background: #4ade80; animation: pulse 2s infinite; }
.estado-desenvolvimento { color: #fbbf24; } .estado-desenvolvimento .estado-dot { background: #fbbf24; }
.estado-manutencao      { color: var(--brand2-lite); } .estado-manutencao .estado-dot { background: var(--brand2-lite); }
.estado-pausado         { color: #f87171; } .estado-pausado .estado-dot { background: #f87171; }
.estado-concluido       { color: var(--brand-lite); } .estado-concluido .estado-dot { background: var(--brand-lite); }

.proj-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.proj-sector { font-size: 0.68rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--brand-soft); margin-bottom: 0.6rem; }
.proj-body h3 { font-size: 1.05rem; font-weight: 700; color: #fff; line-height: 1.32; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.proj-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.1rem; }
.proj-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.proj-tag {
  font-size: 0.66rem; font-weight: 600; padding: 0.22rem 0.6rem; border-radius: 6px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--muted);
}
/* margin-top:auto empurra o rodapé para baixo: numa linha da grelha com
   cartões de alturas diferentes, o espaço sobra antes do rodapé e não
   entre a descrição e as etiquetas. */
.proj-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--border); }
.proj-meta { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; font-size: 0.74rem; color: var(--muted); }
.proj-client { display: inline-flex; align-items: center; gap: 0.4rem; }
.proj-client-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-soft); }
.proj-ano { font-variant-numeric: tabular-nums; }
.proj-arrow { color: var(--brand-lite); font-size: 1rem; transition: transform 0.25s var(--ease); }
.proj-card:hover .proj-arrow { transform: translateX(4px); }

/* ── 13. MODAL ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(3,5,9,0.82); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
  overflow-y: auto;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
  position: relative; width: 100%; max-width: 860px; max-height: 88vh; overflow-y: auto;
  background: linear-gradient(180deg, #0b1020, #070a12);
  border: 1px solid var(--border-lit); border-radius: var(--radius);
  transform: translateY(20px) scale(0.98); transition: transform 0.3s var(--ease);
}
.modal-overlay.is-open .modal { transform: none; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(6,8,15,0.7); border: 1px solid var(--border-lit); color: var(--text);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.modal-close:hover { background: rgba(255,80,80,0.15); border-color: rgba(255,80,80,0.4); transform: rotate(90deg); }
.modal-header { position: relative; padding: 2.25rem 2.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.modal-sector { font-size: 0.68rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--brand-soft); margin-bottom: 0.6rem; }
.modal-header h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; color: #fff; line-height: 1.22; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.modal-sub { font-size: 0.95rem; color: var(--muted); }
.modal-estado { margin-top: 1rem; }
.modal-estado .estado-badge { position: static; }
.modal-body { padding: 2rem 2.25rem 2.25rem; }
.modal-desc { font-size: 0.95rem; line-height: 1.85; color: var(--text-soft); margin-bottom: 1.75rem; }
.modal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.modal-block { padding: 1rem 1.15rem; border-radius: var(--radius-sm); background: var(--card-bg); border: 1px solid var(--border); }
.modal-block-label { display: block; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 0.35rem; }
.modal-block-val { font-size: 0.9rem; color: #fff; font-weight: 600; }
.modal-tags { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.modal-feat-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.7rem; }
.modal-feat-item { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.87rem; color: var(--text-soft); line-height: 1.6; }
.modal-feat-item::before { content: '\2713'; color: var(--brand-soft); font-weight: 700; flex-shrink: 0; }
.result-box { padding: 1.25rem 1.4rem; border-radius: var(--radius-sm); background: linear-gradient(135deg, rgba(26,111,255,0.09), rgba(138,63,255,0.06)); border: 1px solid var(--border-brand); margin-bottom: 1.75rem; }
.result-box-label { display: block; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--brand-soft); margin-bottom: 0.4rem; }
.result-box-val { font-size: 0.92rem; color: var(--text-soft); line-height: 1.75; }
.modal-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; margin-bottom: 1.75rem; }
.modal-gallery img { border-radius: var(--radius-sm); border: 1px solid var(--border); width: 100%; }
body.is-locked { overflow: hidden; }

/* ── 14. RODAPÉ ────────────────────────────────────────────── */
.site-footer { background: var(--darkest); padding: 3rem var(--gutter) 2rem; border-top: 1px solid var(--border); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-logos { display: flex; align-items: center; gap: 2rem; }
.footer-logos a { display: flex; align-items: center; text-decoration: none; }
.footer-logo-bluesys, .footer-logo-edial { height: 28px; width: auto; display: block; opacity: 0.55; transition: opacity 0.2s; }
.footer-logos a:hover img { opacity: 0.9; }
.footer-sep { width: 1px; height: 30px; background: rgba(255,255,255,0.12); flex-shrink: 0; }
.footer-right { text-align: right; }
.footer-right p { font-size: 0.8rem; color: var(--faint); line-height: 1.7; }
.footer-right strong { color: rgba(255,255,255,0.42); }
.footer-right a { color: var(--faint); text-decoration: none; transition: color 0.2s; }
.footer-right a:hover { color: var(--brand-lite); }

/* ── 15. RESPONSIVO ────────────────────────────────────────── */
@media (max-width: 1080px) {
  :root { --gutter: 2.5rem; --sec-y: 5.5rem; }
  .hero-layout { gap: 2.5rem; grid-template-columns: 1fr 0.8fr; }
  .ai-grid, .about-grid, .contact-grid { gap: 3.5rem; }
  .news-grid, .projects-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-card.is-featured { grid-column: span 2; }
}

@media (max-width: 900px) {
  :root { --gutter: 1.5rem; --sec-y: 4.5rem; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 999;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 1.5rem 1.75rem;
    background: rgba(6,8,15,0.97);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }
  .nav-links.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-links a { padding: 0.85rem 0; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav-links a::after { display: none; }
  .nav-btn { margin-top: 1rem; text-align: center; border-bottom: none !important; }
  .lang-sw { margin-top: 1.25rem; justify-content: center; }

  .hero--home { min-height: auto; padding-top: calc(var(--nav-h) + 3.5rem); }
  .hero-layout { grid-template-columns: 1fr; gap: 3rem; }
  .hero-content { order: 1; }
  .hero-visual { order: 2; max-width: 360px; }
  .scroll-ind { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .stat-sep:nth-child(2) { border-right: none; }

  .svc-grid { grid-template-columns: 1fr; }
  .svc-card, .svc-card:first-child, .svc-card:nth-child(3), .svc-card:nth-child(4), .svc-card:last-child { border-radius: 0; }
  .svc-grid .svc-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .svc-grid .svc-card:last-child  { border-radius: 0 0 var(--radius) var(--radius); }

  .ai-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .ai-visual { max-width: 340px; margin-inline: auto; }
  .featured-card { grid-template-columns: 1fr; }
  .feat-img { min-height: 220px; aspect-ratio: 16 / 9; }
  .feat-body { padding: 1.75rem; }
  .featured-card--plain .feat-body { padding: 1.75rem 1.5rem; }
  .contact-form { padding: 1.75rem; }
  .modal-header, .modal-body { padding-inline: 1.5rem; }
  .site-footer { padding: 2.5rem 1.5rem 2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { text-align: left; }
}

@media (max-width: 620px) {
  /* A tagline do hero não cabe numa linha em ecrãs estreitos. */
  .hero-badge { font-size: 0.64rem; letter-spacing: 1.2px; padding: 0.4rem 0.9rem; }
  .news-grid, .projects-grid, .related-grid { grid-template-columns: 1fr; }
  .proj-card.is-featured { grid-column: span 1; }
  .hero-logo img { height: 38px; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns a { text-align: center; justify-content: center; }
  .modal-overlay { padding: 1rem 0.75rem; }
  .modal { max-height: 92vh; }
}

@media print {
  .nav, .site-footer, .hero-visual, .filters, .share-row, .back-btn, .scroll-ind { display: none !important; }
  body { background: #fff; color: #000; }
  .article-content, .article-title { color: #000; }
}
