:root {
  --color-primary: #2f49ff;
  --color-primary-dark: #2640d8;
  --color-bg: #f5f6f8;
  --color-text: #0b1220;
  --color-text-secondary: #556070;
  --color-white: #ffffff;
  --color-border-subtle: #e0e3ee;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  /* Cores da marca LivinHub */
  --livinhub-blue: #2f4cf6;
  --livinhub-green: #20c997;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden; /* impede scroll horizontal */
}

body {
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* TOPO / NAVEGAÇÃO */

.top-nav {
  /* já não é utilizada como header principal nesta landing page,
     mas mantida para compatibilidade com futuras páginas */
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.5rem;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-link {
  color: #444;
  position: relative;
  padding-bottom: 4px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--livinhub-blue);
  transition: width 0.2s ease-out, background 0.2s ease-out;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--livinhub-blue);
}

.nav-link-active {
  color: var(--color-primary-dark); /* azul mais escuro, como o "Hub" da logo */
  font-weight: 600;
}

.nav-link-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--color-primary-dark); /* underline acompanha o azul mais escuro */
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle-open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle-open span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* HERO */

.hero {
  padding: 0.8rem 0 1.4rem; /* reduz ainda mais o espaço inferior da hero */
  position: relative;
  overflow: visible; /* permite que o mockup fique 100% à frente */
}

.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden; /* shapes contidas dentro da hero */
  pointer-events: none;
}

.hero-block {
  position: absolute;
  height: 380px;
  border-radius: 40px;
  background: #2f49ff;
  z-index: 1;
}

/* LOGO + MENU DENTRO DA HERO (HEADER) */
.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 0.15rem;
  padding-bottom: 0.25rem; /* header ainda mais enxuto, mínimo de espaço */
  position: relative;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    backdrop-filter 200ms ease,
    -webkit-backdrop-filter 200ms ease;
}

.hero-brand {
  display: flex;
  align-items: center;
  margin-left: 0.25rem;
}

/* HEADER quando rola: fica fixo e ganha fundo/sombra, sem alterar tipografia */
.hero-nav.is-sticky {
  position: fixed;
  top: 0;
  left: 50%;                 /* centra o header na viewport */
  transform: translateX(-50%);
  max-width: 1120px;         /* mesma largura máxima do .container */
  width: 100%;
  padding-left: 1.5rem;      /* mesmo padding horizontal do .container */
  padding-right: 1.5rem;
  padding-top: 0.2rem;       /* mesma lógica de altura compacta */
  padding-bottom: 0.2rem;
  z-index: 9999;
  /* mantém o mesmo padding/tipografia do estado normal,
     usando a MESMA cor de fundo da página */
  background: var(--color-bg);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px; /* deixa as duas pontas inferiores arredondadas */
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

/* MENU NO TOPO DA HERO, À FRENTE DO CÍRCULO */
.hero-menu {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 3rem;
  font-size: 0.95rem;
}

.hero-menu-link {
  color: #444;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.hero-menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--livinhub-blue);
  transition: width 0.2s ease-out, background 0.2s ease-out;
}

.hero-menu-link:hover {
  color: var(--livinhub-blue);
}

.hero-menu-link:hover::after {
  width: 100%;
}

.hero-menu-link-active {
  color: var(--color-primary-dark); /* azul mais escuro, como o "Hub" da logo */
  font-weight: 600;
}

.hero-menu-link-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--color-primary-dark); /* underline acompanha o azul mais escuro */
}

/* Seletor de idioma no header */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 2rem;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.lang-btn:hover {
  background: rgba(148, 163, 184, 0.14);
}

.lang-btn-active {
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.6);
}

.lang-separator {
  opacity: 0.7;
}

.hero-block-left {
  left: 0;
  top: 3.2rem;
  width: 48%;
  min-width: 340px;
  max-width: 600px;
}

.hero-block-right {
  position: absolute;
  top: 270px; /* desce ainda mais o bloco azul da direita */
  right: -90px; /* traz o bloco um pouco mais para a esquerda */
  transform: translateY(30px); /* mantém o deslocamento vertical */
  width: 48vw;        /* aumenta a largura, avançando mais para a esquerda */
  max-width: 620px;   /* permite maior largura em ecrãs grandes */
  height: 380px;      /* mantém a altura original */
  border-radius: 40px;
}

/* CÍRCULO DECORATIVO À DIREITA (METADE VISÍVEL) */
.hero-circle {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  /* anel com 70% azul e 30% verde, ligeiramente rodado para baixo */
  background: conic-gradient(
    from -130deg,
    #2f49ff 0 70%,
    #20c997 70% 100%
  );
  border: none;
  /* cria o “furo” no centro, mantendo só o anel colorido */
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 20px),
    #000 calc(100% - 20px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 20px),
    #000 calc(100% - 20px)
  );
  z-index: 1;
  animation: hero-circle-spin 6s ease-in-out infinite;
}

.hero-circle-right {
  top: 22px; /* sobe ligeiramente para alinhar melhor com o menu */
  right: -40px; /* afasta ligeiramente mais o círculo para a direita */
}

/* Animação: movimento vertical suave (sem rotação) */
@keyframes hero-circle-spin {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
  45% {
    transform: translateY(-6px); /* pequeno extra para dar sensação de inércia */
  }
  60% {
    transform: translateY(-10px); /* pausa ligeira com movimento suave */
  }
  90% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0); /* pausa final antes de recomeçar */
  }
}

/* PONTINHOS DECORATIVOS À ESQUERDA (ESTILO FLYER) */
.hero-dots {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  /* cria uma grelha 4x4 de pontos */
  box-shadow:
    10px 0 #cbd5e1, 20px 0 #cbd5e1, 30px 0 #cbd5e1,
    0 10px #cbd5e1, 10px 10px #cbd5e1, 20px 10px #cbd5e1, 30px 10px #cbd5e1,
    0 20px #cbd5e1, 10px 20px #cbd5e1, 20px 20px #cbd5e1, 30px 20px #cbd5e1,
    0 30px #cbd5e1, 10px 30px #cbd5e1, 20px 30px #cbd5e1, 30px 30px #cbd5e1;
  opacity: 0.9;
}

.hero-dots-left {
  left: -0.5rem; /* afasta um pouco mais para a esquerda, parcialmente fora da área visível */
  top: 110px; /* sobe mais um pouco os pontinhos para o alinhamento ideal */
}

/* Pontinhos decorativos duplicados ao lado do telemóvel (abaixo, lado direito) */
.hero-dots-right {
  right: 1.5%; /* afasta 0,5% para a direita, ajuste bem fino */
  top: 610px;  /* desce mais um pouco os pontinhos em relação ao mockup */
}

/* Mockup de telefone flutuando entre os blocos azuis */
.hero-phone {
  position: absolute;
  top: 9.5rem;
  right: 22%;
  z-index: 10;
  pointer-events: none;
}

.hero-phone-img {
  width: 300px;
  height: auto;
  display: block;
  filter: drop-shadow(0 22px 40px rgba(15, 23, 42, 0.35));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-top: 6.5rem; /* desce ainda mais o bloco com o fundomockup, texto e mockup-phone */
}

.hero-visual-wrapper {
  position: relative;
  max-width: 1600px; /* permite que o mockup ocupe quase toda a largura da hero */
  margin: 0 auto;
}

.hero-mockup-img {
  width: 195%;          /* mockup ainda maior para destacar a faixa */
  max-width: none;      /* não limitar pela largura original da imagem */
  margin-left: -47.5%;  /* recentra o fundo na hero (largura 195%) */
  margin-top: -6rem;    /* sobe ainda mais a imagem dentro da hero */
  height: auto;
  display: block;
  transform: translate3d(0, var(--hero-bg-offset, 0px), 0);
  transition: transform 80ms linear;
}

/* Telemóvel sobre o fundo azul */
.hero-phone-overlay {
  position: absolute;
  right: -20%;          /* aproxima ainda mais o telemóvel da margem direita do fundo */
  top: 44%;             /* volta o telemóvel para a posição anterior */
  transform: translate3d(0, var(--hero-phone-offset, 0px), 0) translateY(-50%);
  width: 340px;         /* reduz ligeiramente o tamanho do mockup */
  height: auto;
  z-index: 3;           /* acima do fundo azul e atrás/aparte do texto */
  opacity: 0;
  margin-top: 0;
  /* entrada e depois flutuação contínua */
  animation:
    hero-phone-enter 0.8s ease-out 0.6s forwards,
    hero-phone-float 7s ease-in-out 1.6s infinite alternate;
  transition: transform 80ms linear;
}

.hero-text-overlay {
  position: absolute;
  left: 4%;             /* afasta ainda mais o texto para a esquerda */
  top: 50%;              /* desce o bloco de texto dentro da faixa */
  transform: translateY(-50%);
  max-width: 360px;
  color: var(--color-white);
  /* o container fica estável; animamos título e subtítulo separadamente */
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--color-primary-dark);
}

.hero-title {
  font-size: clamp(2.1rem, 2.6vw + 0.9rem, 2.8rem); /* título ligeiramente menor */
  line-height: 1.02;
  margin: 0;
  text-transform: uppercase;
  color: var(--color-white);
  max-width: 32rem;
  opacity: 0;
  animation: hero-title-enter 0.6s ease-out 0s forwards; /* título entra primeiro */
}

.hero-subtitle {
  margin: 0;
  font-size: 1.02rem;
  color: #e4ebff;
  max-width: 32rem;
  margin-top: 0.75rem;
  opacity: 0;
  animation: hero-subtitle-enter 0.6s ease-out 0.2s forwards; /* entra cerca de 0.2s depois do título */
}

/* Animação de entrada suave do título da hero */
@keyframes hero-title-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animação de entrada suave do subtítulo da hero */
@keyframes hero-subtitle-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animação de entrada suave do telemóvel */
@keyframes hero-phone-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0) translateY(-50%);
  }
  to {
    opacity: 1;
    transform: translate3d(0, var(--hero-phone-offset, 0px), 0) translateY(-50%);
  }
}

/* Micro-movimento flutuante do telemóvel */
@keyframes hero-phone-float {
  0% {
    margin-top: 0;
  }
  50% {
    margin-top: -6px; /* sobe ligeiramente */
  }
  100% {
    margin-top: 0; /* volta à posição original */
  }
}

.hero-highlight-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-highlight-title {
  margin: 0 0 0.6rem;
  font-weight: 600;
  font-size: 1rem;
}

.hero-highlight-sub {
  color: var(--color-primary);
}

.hero-highlight-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  display: grid;
  gap: 0.25rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.45rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out,
    background 0.1s ease-out, color 0.1s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  box-shadow: 0 12px 30px rgba(47, 73, 255, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(47, 73, 255, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-text);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.btn-secondary:hover {
  background: var(--color-white);
}

.btn-lg {
  padding: 0.8rem 1.7rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--color-text);
}

.btn-outline:hover {
  background: var(--color-primary-dark); /* azul mais escuro ao passar o mouse */
  color: #ffffff;
  border-color: var(--color-primary-dark);
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.hero-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, 0.12);
}

.hero-visual { }
/* estilos de telefone removidos */

/* Mockup do telefone entre os blocos azuis */
.hero-device {
  position: absolute;
  right: 100px;
  top: 110px; /* sobe o mockup 20px */
  z-index: 5;
}

.hero-device img {
  width: 380px;
  height: auto;
  display: block;
}

/* Layout fixo dos blocos azuis em desktop */
@media (min-width: 960px) {
  .hero-block {
    height: 380px;
  }

  .hero-card {
    width: 720px;
    max-width: 720px;
  }

  .hero-block-right {
    /* mantém os mesmos valores base em desktop, já responsivos */
  }
}

/* SEÇÃO SOLUTIONS */

.solutions {
  padding: 1.4rem 0 2.2rem; /* compacta um pouco mais o espaço acima e abaixo das soluções */
  position: relative; /* permite posicionar o círculo decorativo à esquerda */
}

.section-header {
  text-align: left;
  max-width: 36rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.9rem;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.section-title-accent {
  color: var(--color-primary);
}

.section-subtitle {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.98rem;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

/* CÍRCULO DECORATIVO À ESQUERDA DA SECÇÃO "UMA PLATAFORMA / MÚLTIPLAS SOLUÇÕES" */
.solutions-circle-left {
  top: 2.8rem;      /* ajuste fino para alinhar melhor com o título */
  left: -2.6rem;    /* afasta ligeiramente para a direita, mantendo metade visível */
  transform: scale(0.9); /* ligeiramente mais pequeno que o do header */
}

.solution-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem 1.4rem;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out,
    box-shadow 0.2s ease-out;
}

.solution-title {
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin: 0 0 0.75rem;
}

.solution-text {
  margin: 0 0 0.75rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.solution-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  display: grid;
  gap: 0.25rem;
}

/* Efeito de “levitar” ao passar o mouse nos blocos de soluções */
.solution-card.is-visible-scroll:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
}

/* CTA */

.cta {
  padding: 0 0 2.2rem; /* reduz mais o espaço abaixo da CTA */
}

.cta-card {
  background: linear-gradient(130deg, #1f3cff, #1c2fd8);
  color: var(--color-white);
  border-radius: 28px;
  padding: 2.2rem 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center; /* centra o conteúdo dentro da faixa azul */
  text-align: center;      /* centraliza os textos */
  gap: 2rem;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.35);
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.cta-title {
  font-size: 1.5rem;
  margin: 0 0 0.6rem;
}

.cta-text {
  margin: 0;
  font-size: 0.98rem;
  opacity: 0.92;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* Espaçamento extra para o botão da CTA residencial */
#demo-residencial .cta-actions {
  margin-top: 1.2rem;
}

.cta-actions .btn-primary {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.45);
}

/* Botão mais estreito para o plano Founder */
#demo-residencial .btn-founder {
  padding: 0.6rem 1.2rem;
  min-width: 150px;
  align-self: center;
}

.cta-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

.cta-actions .btn-outline:hover {
  background: rgba(15, 23, 42, 0.12);
}

/* FUTURE SECTIONS PLACEHOLDERS */

.future-sections {
  padding: 0 0 6rem; /* ainda mais espaço entre os cards e o footer */
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.future-card {
  border-radius: 18px;
  padding: 1.4rem 1.4rem 1.3rem;
  border: 1px dashed rgba(148, 163, 184, 0.9);
  background: rgba(255, 255, 255, 0.9);
  text-align: center; /* centraliza os textos dos cards de segmento */
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.future-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.future-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
}

/* Botão compacto para os segmentos (Residencial, Empresarial, Setor Público) */
.future-card .btn-sm {
  margin-top: 0.9rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.78rem;
}

/* Estados visíveis ao fazer scroll (efeitos de entrada) */
.section-header.is-visible-scroll,
.solution-card.is-visible-scroll,
.future-card.is-visible-scroll {
  opacity: 1;
  transform: translateY(0);
}

.cta-card.is-visible-scroll {
  opacity: 1;
}

/* SEGMENTO RESIDENCIAL */
.segment-residencial {
  padding: 2.4rem 0 2.6rem;
}

/* HERO RESIDENCIAL – layout distinto da home */
.hero-residencial {
  padding-top: 2.4rem; /* afasta o mockup do menu fixo */
}

.hero-residencial .hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
}

.hero-residencial .hero-text-panel {
  position: relative;
  z-index: 3;
}

.hero-residencial .hero-text-overlay {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  max-width: 440px;
  padding: 1.8rem 1.6rem;
  border-radius: 24px;
  background: #ffffff;
  color: var(--color-text);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.hero-residencial .hero-title {
  color: var(--color-text);
}

.hero-residencial .hero-subtitle {
  color: var(--color-text-secondary);
}

.hero-residencial .hero-visual-wrapper {
  max-width: 100%;
}

.hero-residencial .hero-mockup-img {
  width: 135%;
  margin-left: -18%;
  margin-top: -4rem;
}

.hero-residencial .hero-phone-overlay {
  width: 256px; /* ~20% menor que o tamanho anterior (320px) */
}

@media (max-width: 960px) {
  .hero-residencial .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }

  .hero-residencial .hero-text-overlay {
    margin-bottom: 0.5rem;
  }

  .hero-residencial .hero-mockup-img {
    width: 180%;
    margin-left: -40%;
  }
}

/* Entrada em sequência para os cards de segmento */
.future-card.is-visible-scroll:nth-child(1) {
  transition-delay: 0s;
}

.future-card.is-visible-scroll:nth-child(2) {
  transition-delay: 0.15s;
}

.future-card.is-visible-scroll:nth-child(3) {
  transition-delay: 0.3s;
}

/* LIVINHUB FOUNDERS */
.founders-section {
  padding-top: 2.2rem;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.founders-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.founders-block {
  padding: 0.4rem 0;
}

.founders-title {
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin: 0 0 0.4rem;
}

.founders-text {
  margin: 0 0 0.4rem;
  font-size: 0.94rem;
  color: var(--color-text-secondary);
}

.founders-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  display: grid;
  gap: 0.25rem;
}

@media (max-width: 960px) {
  .founders-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* FOOTER */

.site-footer {
  border-top: none;
  background: var(--color-primary-dark); /* rodapé azul sólido */
  border-top-left-radius: 24px;
  border-top-right-radius: 24px; /* rodapé arredondado em cima */
  overflow: hidden;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 0.5rem 1.5rem;
  text-align: center;
  font-size: 0.78rem; /* letras menores no rodapé */
  color: #ffffff;
}

.footer-main-text {
  margin: 0;
  font-weight: 500;
}

.footer-sub-text {
  margin: 0.25rem 0 0;
  opacity: 0.9;
}

/* RESPONSIVIDADE */

@media (max-width: 960px) {
  .hero {
    padding-top: 1.4rem; /* menos espaço também em ecrãs médios */
  }

  .hero-block {
    height: 320px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
  }

  .hero-phone {
    position: static;
    margin: 0 auto;
    padding-top: 1rem;
  }

  .hero-phone-img {
    width: 220px;
    filter: drop-shadow(0 16px 32px rgba(15, 23, 42, 0.3));
  }

  .solutions-grid,
  .future-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 64px;
    padding: 0.75rem 1.5rem 1.1rem;
    background: rgba(245, 246, 248, 0.98);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    transform-origin: top;
    transform: scaleY(0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .nav-links-open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .hero {
    padding-top: 1.1rem; /* reduzido para manter o menu mais colado ao topo */
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-phone-img {
    width: 200px;
  }

  .hero-block {
    height: 300px;
  }

  .hero-copy {
    gap: 1.25rem;
  }

  .hero-highlight-card {
    padding: 1.1rem 1.15rem;
  }

  .hero-cta-group {
    width: 100%;
  }

  .hero-cta-group .btn {
    flex: 1;
    justify-content: center;
  }

  .solutions {
    padding-top: 2.4rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .solutions-grid,
  .future-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-card {
    padding: 1.7rem 1.5rem 1.6rem;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-center {
    width: 100%;
  }

  .footer-slogan {
    text-align: left;
  }

  .footer-right {
    width: 100%;
    justify-content: flex-start;
  }
}

