/* =========================
   Variáveis + base
   ========================= */
:root {
  --bg: #0b1020;
  --text: #e9ecf1;
  --muted: #aeb6c7;
  --accent: #7c5cff;
  --accent2: #00d4ff;
  --shadow: 0 18px 60px rgba(0, 0, 0, .45);
  --radius: 18px;
  --maxw: 1100px;

  --danger: rgba(255, 59, 48, .92);
  --success: rgba(34, 197, 94, .92);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background: #060812;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% 15%, rgba(124, 92, 255, .35), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(0, 212, 255, .22), transparent 55%),
    linear-gradient(180deg, #070a14 0%, var(--bg) 70%, #060812 100%);
  overflow: hidden;
  /* desktop: slides */
}

a {
  color: inherit;
}

body.menu-open {
  overflow: hidden;
}

/* =========================
   Topbar
   ========================= */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 50;
  background: linear-gradient(180deg, rgba(7, 10, 20, .9) 0%, rgba(7, 10, 20, .55) 55%, rgba(7, 10, 20, 0) 100%);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: .2px;
  white-space: nowrap;
  text-decoration: none;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 30px rgba(124, 92, 255, .25);
  flex: 0 0 auto;
}

.logo-img {
  height: 56px;
  /* ajusta conforme precisares */
  width: auto;
  display: block;
}

@media (max-width: 920px) {
  .logo-img {
    height: 46px;
  }
}



@media (max-width: 920px){
  .topbar-actions{
    display:flex;              /* não esconder o container */
    gap:10px;
    align-items:center;
  }

  /* em mobile escondes só estes, mas manténs o hamburger */
  .topbar-actions .langbtn{ display:none; }
  .topbar-actions .btn-tertiary{ display:none; }

  .hamburger{ display:inline-flex !important; }
}
.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}



/**/
/* wrapper para ações + hamburger */
.topbar-right{
  display:flex;
  align-items:center;
  gap:10px;
}

/* em mobile escondes só idioma/contactos, não o wrapper */
@media (max-width: 920px){
  .topbar-actions{ display:none !important; }  /* podes manter se quiseres */
  .hamburger{ display:inline-flex !important; }
}

/* se queres hamburger também em desktop, liga-o aqui */
@media (min-width: 921px){
  .hamburger{ display:inline-flex !important; }
}

/* =========================
   Botões / idioma
   ========================= */

.btn-primary {
  border: 1px solid rgba(255, 255, 255, .18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #0b1020;
  min-width: 130px;
  background: linear-gradient(135deg, #7c5cff, #00d4ff);
  box-shadow: 0 10px 30px rgba(124, 92, 255, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-secondary {
  border: 1px solid white;
  background: rgba(255, 255, 255, .06);
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  cursor: pointer;
  user-select: none;
  min-width: 130px;
}

.btn-primary:hover {
  border-color: rgba(29, 161, 242, .9);
  box-shadow: 0 0 0 3px rgba(29, 161, 242, .18);
}

.btn-secondary:hover {
  border-color: rgba(29, 161, 242, .9);
  box-shadow: 0 0 0 3px rgba(29, 161, 242, .18);
}

.btn-tertiary {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #0b1020;
  cursor: pointer;
  user-select: none;
  min-width: 130px;
  background: linear-gradient(135deg, #7c5cff, #00d4ff);
  box-shadow: 0 10px 30px rgba(124, 92, 255, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}

.langbtn {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.langbtn .globe {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.langbtn .globe svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.langbtn .langtxt {
  font-weight: 650;
  font-size: 14px;
  color: rgba(233, 236, 241, .92);
}

.langbtn .langpill {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: rgba(233, 236, 241, .78);
}

html[data-lang="en"] .langbtn .langpill {
  border-color: rgba(124, 92, 255, .45);
  background: rgba(124, 92, 255, .18);
  color: rgba(233, 236, 241, .92);
}

/* =========================
   Hamburger
   ========================= */
.hamburger{
  display:inline-flex;           /* <- era none */
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  color:rgba(233,236,241,.92);
  align-items:center; justify-content:center;
  cursor:pointer;
}

.hamburger svg{
  width:20px; height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
}

.hamburger .icon-close{ display:none; }
.hamburger.is-open .icon-burger{ display:none; }
.hamburger.is-open .icon-close{ display:block; }




/* =========================
   Menu mobile
   ========================= */

.mnav-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index:80;
  opacity:0;
  pointer-events:none;
  transition:opacity 200ms ease;
}

.mnav-backdrop.open{
  opacity:1;
  pointer-events:auto;
}

.mnav{
  position:fixed;
  top:0;
  right:0;
  height:100vh;
  z-index:90;

  background:rgba(7,10,20,.92);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);

  border-left:1px solid rgba(255,255,255,.12);
  box-shadow:var(--shadow);

  opacity:1;
  pointer-events:none;
  transform:translateX(102%);
  transition:transform 220ms ease;
  overflow:hidden;
}

.mnav.open{
  pointer-events:auto;
  transform:translateX(0);
}

/* desktop: painel lateral a toda a altura, elegante */
@media (min-width: 921px){
  .mnav{
    top:0;
    right:0;
    width:440px;
    height:100vh;
    border-radius:0;
    transform:translateX(104%);
    opacity:0;
    transition:transform 320ms cubic-bezier(.2,.8,.2,1), opacity 220ms ease;
    background:
      radial-gradient(700px 420px at 20% 10%, rgba(0,212,255,.08), transparent 55%),
      rgba(7,10,20,.94);
  }

  .mnav.open{
    transform:translateX(0);
    opacity:1;
  }

  .mnav-header{
    min-height:72px;
  }

  .mnav-body{
    height:calc(100vh - 72px);
    text-align:right;
    gap:16px;
    padding:22px 24px 26px;
  }

  .mnav a.mnav-link{
    font-size:18px;
    font-weight:600;
    color:rgba(233,236,241,.86);
    letter-spacing:.2px;
  }

  .mnav-services{
    padding:0 12px 0 0;
  }

  .mnav-services li{
    padding-right:18px;
    padding-left:0;
  }

  .mnav-services li::before{
    right:0;
    left:auto;
  }

  .mnav-services a{
    font-weight:500;
    color:rgba(233,236,241,.78);
  }
}

/* header */
.mnav-header{
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 18px;
  border-bottom:1px solid rgba(255,255,255,.1);
}

.mnav-body{
  padding:16px 18px 18px;
  display:flex;
  flex-direction:column;
  gap:18px;

  height:calc(100vh - 68px);
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  justify-content:flex-start;
  text-align: right;
}

/* links */
.mnav a.mnav-link{
  display:block;
  
  color:rgba(233,236,241,.92);
  text-decoration:none;
  font-weight:650;
}

.mnav a.mnav-link:hover{
  color:rgba(0,212,255,.95);
}

/* serviços sublista (mantém o look da tua segunda imagem) */
.mnav-services{
  margin:0;
  padding:0 0 0 12px;
  display:grid;
  gap:10px;
  list-style:none;
}

.mnav-services li{
  position:relative;
  padding-left:0;
  padding-right:18px; /* espaço para a bolinha à direita */
}

.mnav-services li::before{
  content:"";
  position:absolute;
  right:0;            /* ← move para a direita */
  top:50%;
  transform:translateY(-50%);
  width:8px;
  height:8px;
  background:#00d4ff;
  border-radius:2px;
}

.mnav-services a{
  color:rgba(233,236,241,.86);
  text-decoration:none;
  font-weight:600;
}

.mnav-services a:hover{
  color:rgba(0,212,255,.95);
}

/* close btn */
.mnav-close{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:rgba(233,236,241,.9);
  width:44px;
  height:44px;
  border-radius:14px;
  cursor:pointer;
  font-size:22px;
}

@media (max-width: 920px){
  .mnav{
    inset:0;
    top:0; right:0;
    width:100vw; height:100vh;
    border-radius:0;
    border:0;
    background:rgba(7,10,20,.98);
    backdrop-filter:blur(10px);

    /* IMPORTANTE: fechado por defeito */
    transform:translateX(110%);
    opacity:0;
    pointer-events:none;
    transition:transform 220ms ease, opacity 220ms ease;
  }

  .mnav.open{
    transform:translateX(0);
    opacity:1;
    pointer-events:auto;
  }

  .mnav-backdrop{ display:none; }
}


 /*=========================
   Slider base
   ========================= */
.viewport {
  position: relative;
  height: 100%;
  width: 100%;
}

.track {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 640ms cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

section.slide {
  height: 100vh;
  width: 100%;
  padding: 42px 18px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   Layout / cards
   ========================= */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: center;
}

.card {
  background: rgba(18, 26, 51, .68);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.eyebrow {
  color: rgba(0, 212, 255, .95);
  letter-spacing: .12em;
  font-size: 12px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.06;
}

h1 {
  font-size: clamp(34px, 4.2vw, 56px);
}

h2 {
  font-size: clamp(28px, 3.2vw, 44px);
}

h3 {
  font-size: clamp(28px, 3.2vw, 44px);
}

p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

/* =========================
   Hero + carousel (slide 1)
   ========================= */
.hero-carousel {
  position: relative;
  width: 100%;
}

.hero-track {
  position: relative;
  min-height: 360px;
}

.hero-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.hero-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  padding: 0 12px;
}

.hero-title {
  margin: 0 0 14px;
  line-height: 1.05;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -.02em;
}

.hero-sub {
  margin: 0 auto;
  max-width: 920px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.85;
}

.hero-cta {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: -60px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .18);
  backdrop-filter: blur(6px);
  z-index: 5;
}

.hero-dots {
  display: inline-flex;
  gap: 6px;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
}

.hero-dot.is-active {
  background: rgba(255, 255, 255, .85);
}

.hero-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);

  color: rgba(255, 255, 255, .9);
  font-size: 22px;
  line-height: 1;

  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.hero-arrow:hover {
  background: rgba(0, 212, 255, .12);
  border-color: rgba(0, 212, 255, .55);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 212, 255, .18);
}

/* =========================
   Hero – centrar conteúdo em mobile
   ========================= */
@media (max-width: 920px){
  .hero-panel{
    min-height: 100svh;          /* altura real do viewport mobile */
    display: flex;
    flex-direction: column;
    justify-content: center;     /* centra verticalmente */
    align-items: center;         /* centra horizontalmente */
    text-align: center;
    padding: 140px 18px 140px;    /* espaço para header e dots */
  }
}
/* setas discretas só em desktop e só ao hover */
@media (min-width: 921px) {

  .hero-arrow {
    opacity: 0;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    transform: translateY(2px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .hero-carousel:hover .hero-arrow {
    opacity: .85;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hero-carousel:not(:hover) .hero-controls {
    opacity: .65;
    transition: opacity 180ms ease;
  }

  .hero-carousel:hover .hero-controls {
    opacity: .95;
    transition: opacity 180ms ease;
  }
}

@media (max-width: 920px){
  .hero-controls{
    bottom: 10px;      /* sobe/desce aqui */
  }
}


/* =========================
   Side dots + hint (desktop)
   ========================= */
.sidenav {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 60;
}

.sidenav button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .25);
  cursor: pointer;
  padding: 0;
}

.sidenav button[aria-current="true"] {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 14px 40px rgba(124, 92, 255, .25);
}

.hint {
  position: fixed;
  left: 18px;
  bottom: 14px;
  color: rgba(174, 182, 199, .9);
  font-size: 13px;
  z-index: 55;
  display: flex;
  gap: 10px;
  align-items: center;
}

.progress {
  width: 140px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
}

.bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  transition: width 320ms ease;
}

/* =========================
   Sobre nós: 3 cards
   ========================= */
.about3 {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.a3card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 10, 20, 0.35);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .25);
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

.a3card-accent {
  border-color: rgba(0, 212, 255, 0.22);
}

.a3card.is-active {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 18px 60px rgba(0, 212, 255, 0.08);
}

.a3icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: rgba(0, 212, 255, 0.85);
}

.a3icon svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.a3title {
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  margin: 0 0 10px;
  color: rgba(233, 236, 241, 0.92);
}

.a3text {
  color: rgba(174, 182, 199, 0.95);
  font-size: 15px;
  line-height: 1.75;
}

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



/* =========================
   Serviços carousel (slide 3)
   ========================= */
.card.services {
  padding: 24px;
}

.svc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.svc-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.svc-count {
  font-size: 13px;
  color: rgba(233, 236, 241, .7);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  border-radius: 999px;
  padding: 6px 10px;
  font-variant-numeric: tabular-nums;
}

.svc-arrow {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: rgba(233, 236, 241, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 12px;
}

.svc-arrow:hover {
  filter: brightness(1.08);
}

.svc-arrow svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

/* Viewport “plain”: sem border/background (remove a caixa interior) */
.svc-viewport {
  margin-top: 12px;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.svc-viewport--plain {
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/* Track / slides */
.svc-track {
  display: flex;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 520ms cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.svc-slide {
  flex: 0 0 100%;
  padding: 6px 0 0;
  /* menos “caixa”, mais integrado */
}

.svc-title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: rgba(233, 236, 241, .95);
}

.svc-text {
  margin: 0 0 12px;
  color: rgba(174, 182, 199, .95);
  font-size: 15px;
  line-height: 1.65;
}

#svcViewport {
  touch-action: pan-y;
}

/* =========================
   Logos (tecnologias)
   ========================= */
/* =========================
   Tecnologias (card) + shuffle
   ========================= */
.card.tech {
  padding: 24px;
}

.tech-head {
  margin-bottom: 12px;
}

.tech-viewport {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: center;
}

.tech-viewport img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(7, 10, 20, .28);
  opacity: .92;
  transform: rotateY(0deg) translateY(0);
  transition: transform 520ms ease, opacity 260ms ease;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* estado durante a troca */
.tech-viewport.is-shuffling img {
  opacity: 0;
  transform: rotateY(90deg) translateY(6px);
}

/* =========================
   Form
   ========================= */
/* =========================
   Form (final)
   ========================= */

/* Grid */
.form-grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

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

/* Labels */
.f-label{
  display:block;
  margin-bottom:6px;
  font-size:12px;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:rgba(233,236,241,.78);
}

/* Inputs / textarea / select
   16px obrigatório para evitar zoom no iOS */
.f-input,
.f-textarea,
.form select{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.04);
  color:rgba(233,236,241,.92);
  outline:none;

  font-size:16px;                 /* CRÍTICO iOS */
  line-height:1.3;
  -webkit-text-size-adjust:100%;
}

/* Textarea */
.f-textarea{
  resize:vertical;
  min-height:100px;
}

/* Blocos */
.f-block{
  margin-top:12px;
}

/* Consentimento */
.f-consent{
  margin-top:12px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:12px;                 /* pode ser pequeno */
  color:rgba(233,236,241,.78);
}

.f-consent a{
  color:inherit;
  text-decoration:underline;
}

/* Focus states */
.f-input:focus,
.f-textarea:focus,
.form select:focus{
  border-color:rgba(89,202,255,.55);
  box-shadow:0 0 0 3px rgba(89,202,255,.14);
}

/* Form wrapper – estabilidade em iOS */
.form{
  -webkit-overflow-scrolling:touch;
}

/* Estado do submit (AJAX) */
.form-status{
  margin-top:12px;
  font-size:14px;
}

.form-status.loading{ color:#9aa3b2; }
.form-status.success{ color:#3ad29f; }
.form-status.error{ color:#ff6b6b; }

/* Botão desativado */
button[disabled]{
  opacity:.6;
  cursor:not-allowed;
}


/* =========================
   Toast (alert)
   ========================= */
#toast {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  z-index: 99999;

  display: flex;
  align-items: center;
  gap: 12px;

  background: rgba(7, 10, 20, .88);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(233, 236, 241, .92);
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
  max-width: min(680px, calc(100vw - 24px));
  transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

#toast.toast-error {
  border-color: var(--danger);
  background: linear-gradient(180deg, rgba(255, 59, 48, .10), rgba(7, 10, 20, .88));
  box-shadow: 0 18px 60px rgba(255, 59, 48, .12);
}

#toast.toast-success {
  border-color: var(--success);
  background: linear-gradient(180deg, rgba(34, 197, 94, .10), rgba(7, 10, 20, .88));
  box-shadow: 0 18px 60px rgba(34, 197, 94, .12);
}

#toastMsg {
  font-size: 14px;
  line-height: 1.35;
}

.toast-close {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: rgba(233, 236, 241, .9);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  cursor: pointer;
  pointer-events: auto;
}

.toast-close:hover {
  filter: brightness(1.06);
}

/* =========================
   Mobile layout (scroll)
   ========================= */
@media (max-width: 920px) {
  body {
    overflow: auto;
    background: none !important;
    position: relative;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(1200px 700px at 20% 15%, rgba(124, 92, 255, .35), transparent 60%),
      radial-gradient(900px 600px at 80% 20%, rgba(0, 212, 255, .22), transparent 55%),
      linear-gradient(180deg, #070a14 0%, var(--bg) 70%, #060812 100%);
  }

  .viewport {
    height: auto;
  }

  .track {
    position: static;
    inset: auto;
    height: auto;
    transform: none !important;
    transition: none;
    will-change: auto;
  }

  section.slide {
    height: auto;
    min-height: 0;
    display: block;
    padding: 92px 18px 28px;
  }

  .wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sidenav,
  .hint {
    display: none;
  }

  .topbar-actions {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }

  .mnav {
    inset: 0;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: 0;
    background: rgba(7, 10, 20, .98);
    backdrop-filter: blur(10px);
    transform: none;
  }

  .mnav-backdrop {
    display: none;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .hero.logos {
    min-height: 260px;
  }
}

/* =========================
  Icons redes sociais 
   ========================= */


.contact-social {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.contact-social__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(233, 236, 241, .9);
  text-decoration: none;
  flex: 0 0 auto;
}

.contact-social__icon:hover {
  border-color: rgba(0, 212, 255, .5);
}

.contact-social__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}


/* =========================
   Footer — Desktop (fixo)
   ========================= */
.corner-footer {
  position: fixed;
  right: 18px;
  bottom: 14px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(233, 236, 241, .9);
}

.corner-footer .cf-prr {
  width: 240px;
  height: auto;
  opacity: .95;
}

.cf-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cf-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.cf-link:hover {
  border-bottom-color: rgba(255, 255, 255, .5);
}

.cf-sep {
  opacity: .6;
}


/* =========================
   Footer — Mobile
   ========================= */
.footer-mobile {
  margin-top: 32px;
  padding: 28px 18px 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer-mobile__wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 16px;
  text-align: center;
}

.footer-mobile__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}



.footer-mobile__icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-mobile__icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(233, 236, 241, .9);
  flex: 0 0 auto;
}


.footer-mobile__icon:hover {
  border-color: rgba(0, 212, 255, .5);
}

.footer-mobile__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-funders {
  margin-top: 6px;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.footer-funders img {
  height: 26px;
  width: auto;
  opacity: .95;
}

.footer-funders__links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
}

.footer-funders__links a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.footer-funders__links a:hover {
  border-bottom-color: rgba(255, 255, 255, .45);
}

.footer-funders__links .sep {
  opacity: .6;
}

.hide-desktop {
  display: none;
}

@media (max-width: 767px) {
  .hide-desktop {
    display: block !important;
  }
}

.hide-mobile {
  display: block;
}

@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

.hide {
  display: none !important;
}

/* slide 1 full viewport em mobile */
@media (max-width: 767px) {
  section.slide[data-slide="1"] {
    min-height: 100svh;
    height: 100svh;
    padding: 0;
  }

  section.slide[data-slide="1"] .hero-carousel {
    height: 100%;
  }

  section.slide[data-slide="1"] .hero-track {
    height: 100%;
    min-height: 100%;
  }

  section.slide[data-slide="1"] .hero-panel {
    inset: 0;
  }

  section.slide[data-slide="1"] .hero-wrap {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 12px 64px;
  }
}
