﻿/* ============ BASE / TOKENS ============ */
:root {
  --bg: #050a16;
  --bg-2: #0a1326;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eaf1ff;
  --muted: #9bb0d1;

  /* paleta azul */
  --primary: #3b82f6;
  --primary-2: #60c2ff;
  --accent: #2563eb;
  --accent-2: #1e40af;
  --primary-rgb: 59, 130, 246;
  --accent-rgb: 37, 99, 235;
  --accent2-rgb: 30, 64, 175;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* tipografia mais leve em todo o site */
b, strong, th, h1, h2, h3, h4, h5, h6 { font-weight: 500; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(var(--primary-rgb), 0.35); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* fundo com brilho */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 500px at 85% -10%, rgba(var(--accent-rgb), 0.22), transparent 65%),
    radial-gradient(600px 480px at 10% 5%, rgba(var(--primary-rgb), 0.18), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(var(--accent2-rgb), 0.14), transparent 65%),
    var(--bg);
  pointer-events: none;
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(7, 11, 22, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
  padding: 10px 0;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 1.16rem;
}
.logo__img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.logo:hover .logo__img {
  opacity: 0.88;
  transform: translateY(-1px);
}
/* versão antiga em texto (mantida como fallback) */
.logo__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--primary), var(--accent));
  color: #041028;
  font-weight: 500;
  font-size: 1.05rem;
}
.logo__text { font-style: italic; }
.logo__text span { color: var(--primary); font-style: italic; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 0.94rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: var(--surface); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.burger span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BOTÃ•ES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.2s;
  white-space: nowrap;
}
.btn .ico { width: 17px; height: 17px; transition: transform 0.25s; }
.btn:hover .ico { transform: translateX(3px); }

.btn--primary {
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #031028;
  box-shadow: 0 14px 34px -14px rgba(var(--primary-rgb), 0.85);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -14px rgba(var(--primary-rgb), 0.95);
}
.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  background: var(--surface-strong);
  transform: translateY(-2px);
  border-color: rgba(var(--primary-rgb), 0.45);
}
.btn--sm { padding: 9px 16px; font-size: 0.88rem; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--full { width: 100%; }

/* ============ HERO ============ */
.hero { padding: 56px 0 0; position: relative; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 64px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.09);
  border: 1px solid rgba(var(--primary-rgb), 0.28);
  color: #bfdbfe;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 22px;
}
.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.18);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0.06); }
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(2.15rem, 5.4vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 300;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(100deg, var(--primary) 0%, var(--primary-2) 35%, var(--accent) 75%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: 1.075rem;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 30px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #fff;
}
.hero__stats span { font-size: 0.84rem; color: var(--muted); }

/* visual */
.hero__visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}
.about-intro {
  margin-bottom: 28px;
}
.about-video {
  margin: 0 auto 48px;
  max-width: 960px;
}
.hero-video {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}
.hero-video__frame {
  border-radius: 16px;
  overflow: hidden;
  background: #0b1020;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.hero-video__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--border);
}
.hero-video__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}
.hero-video__bar i:nth-child(2) { background: #febc2e; }
.hero-video__bar i:nth-child(3) { background: #28c840; }
.hero-video__bar span {
  margin-left: 8px;
  font-size: 0.74rem;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}
.hero-video__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050a14;
}
.hero-video__player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  vertical-align: top;
}
.hero-video__poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0;
  padding: 24px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background:
    radial-gradient(ellipse at center, rgba(37, 99, 235, 0.22) 0%, transparent 58%),
    linear-gradient(160deg, #07101f 0%, #0a1428 45%, #050a14 100%);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.hero-video__poster:hover .hero-video__cue,
.hero-video__poster:focus-visible .hero-video__cue {
  background: rgba(37, 99, 235, 0.95);
  transform: translateY(-1px);
}
.hero-video__poster:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -4px;
}
.hero-video__logo {
  width: min(52%, 240px);
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(37, 99, 235, 0.35));
}
.hero-video__cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-video__cue svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.hero-video__stage.is-playing .hero-video__poster {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.code-card {
  width: min(100%, 430px);
  background: linear-gradient(160deg, rgba(20, 27, 46, 0.95), rgba(10, 15, 27, 0.95));
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}
.code-card__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--border);
}
.code-card__bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ff5f57;
}
.code-card__bar i:nth-child(2) { background: #febc2e; }
.code-card__bar i:nth-child(3) { background: #28c840; }
.code-card__bar span {
  margin-left: 8px;
  font-size: 0.74rem;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}
.code-card__body {
  padding: 20px 18px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.79rem;
  line-height: 1.85;
  color: #c8d4ec;
  overflow-x: auto;
}
.c-key { color: #93c5fd; }
.c-fn { color: #82aaff; }
.c-str { color: #7dd3fc; }
.c-val { color: #f7c67f; }
.c-cmt { color: #5a6b8a; }
.c-ok { color: #4ade80; }

.metric-card {
  position: absolute;
  right: -6px;
  top: 22px;
  background: rgba(14, 21, 38, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  min-width: 128px;
}
.metric-card__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}
.metric-card strong {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--primary);
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  margin-top: 8px;
}
.bars i {
  flex: 1;
  background: linear-gradient(180deg, var(--primary), rgba(var(--primary-rgb), 0.15));
  border-radius: 2px;
  height: 40%;
}
.bars i:nth-child(2) { height: 58%; }
.bars i:nth-child(3) { height: 50%; }
.bars i:nth-child(4) { height: 74%; }
.bars i:nth-child(5) { height: 66%; }
.bars i:nth-child(6) { height: 88%; }
.bars i:nth-child(7) { height: 80%; }
.bars i:nth-child(8) { height: 100%; }

.metric-card--alt {
  right: auto;
  left: -10px;
  top: auto;
  bottom: 22px;
  text-align: center;
}
.ring {
  width: 56px;
  height: 56px;
  margin: 6px auto 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--primary) 0turn, var(--accent) 0.86turn, rgba(255,255,255,0.08) 0.86turn);
}
.ring span {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #0e1526;
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--primary);
}

.floating { animation: float 6s ease-in-out infinite; }
.floating.slow { animation-duration: 8.5s; animation-delay: 0.6s; }
.metric-card.floating { animation-delay: 1.4s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(-1.5deg); }
}
.metric-card.floating {
  animation-name: floatCard;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* marquee */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: marquee 34s linear infinite;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.marquee__track span:nth-child(even) { color: var(--primary); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ SEÃ‡Ã•ES ============ */
.section { padding: 96px 0; }
.section--alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-block: 1px solid var(--border);
}
.section__head {
  max-width: 680px;
  margin-bottom: 52px;
}
.section__head .section__lead { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin-bottom: 16px;
}
.section__lead { color: var(--muted); font-size: 1.03rem; }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* cards de serviÃ§o */
.card {
  background: linear-gradient(170deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px 180px at 15% 0%, rgba(var(--primary-rgb), 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.8);
}
.card:hover::after { opacity: 1; }

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(var(--primary-rgb), 0.16), rgba(var(--accent-rgb), 0.16));
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  color: var(--primary);
  margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }

.card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 9px;
}
.card p { color: var(--muted); font-size: 0.94rem; margin-bottom: 16px; }

.card__list { display: grid; gap: 7px; }
.card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.875rem;
  color: #b9c6e0;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.85;
}

/* passos */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.step:hover {
  background: var(--surface-strong);
  border-color: rgba(var(--primary-rgb), 0.3);
  transform: translateY(-4px);
}
.step__num {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.95), rgba(var(--accent-rgb), 0.35));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 10px;
}
.step h3 {
  font-family: var(--display);
  font-size: 1.03rem;
  margin-bottom: 8px;
  font-weight: 500;
}
.step p { color: var(--muted); font-size: 0.89rem; }

/* projetos — galeria */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.gcard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.gcard:hover {
  transform: translateY(-5px) scale(1.03);
  border-color: rgba(var(--primary-rgb), 0.4);
  box-shadow: 0 22px 40px -28px rgba(var(--primary-rgb), 0.8);
  z-index: 2;
}
.gcard__title {
  font-family: var(--display);
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.gcard__desc { color: var(--muted); font-size: 0.9rem; }

/* cards de projeto — imagem + barra de ação (sem sobreposição) */
.gcard--fincare,
.gcard--allone,
.gcard--maintenance,
.gcard--condoplus,
.gcard--ergosense {
  --gcard-bg: none;
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 12px;
  padding: 14px 14px 14px;
  background: linear-gradient(180deg, rgba(4, 10, 24, 0.92) 0%, rgba(4, 10, 24, 0.7) 55%, rgba(4, 10, 24, 0.94) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  align-content: stretch;
  grid-template-rows: auto 1fr auto;
  height: 100%;
}
.gcard--fincare .gcard__head,
.gcard--fincare .gcard__open,
.gcard--allone .gcard__head,
.gcard--allone .gcard__open,
.gcard--maintenance .gcard__head,
.gcard--maintenance .gcard__open,
.gcard--condoplus .gcard__head,
.gcard--condoplus .gcard__open,
.gcard--ergosense .gcard__head,
.gcard--ergosense .gcard__open {
  position: relative;
  z-index: 2;
}
.gcard--fincare::before,
.gcard--allone::before,
.gcard--maintenance::before,
.gcard--condoplus::before,
.gcard--ergosense::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--gcard-bg);
  background-size: cover;
  background-position: center 12%;
  background-repeat: no-repeat;
  opacity: 0.28;
  filter: blur(14px);
  transform: scale(1.12);
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.4s ease;
  z-index: 0;
  will-change: transform;
  pointer-events: none;
}
.gcard--fincare:hover,
.gcard--allone:hover,
.gcard--maintenance:hover,
.gcard--condoplus:hover,
.gcard--ergosense:hover {
  transform: translateY(-5px);
}
.gcard--fincare:hover::before,
.gcard--allone:hover::before,
.gcard--maintenance:hover::before,
.gcard--condoplus:hover::before,
.gcard--ergosense:hover::before {
  transform: scale(1.16);
  opacity: 0.42;
}
.gcard--fincare:focus-within::before,
.gcard--allone:focus-within::before,
.gcard--maintenance:focus-within::before,
.gcard--condoplus:focus-within::before,
.gcard--ergosense:focus-within::before {
  transform: scale(1.16);
  opacity: 0.42;
}
@media (prefers-reduced-motion: reduce) {
  .gcard--fincare::before,
  .gcard--allone::before,
  .gcard--maintenance::before,
  .gcard--condoplus::before,
  .gcard--ergosense::before { transition: none; }
  .gcard--fincare:hover::before,
  .gcard--fincare:focus-within::before,
  .gcard--allone:hover::before,
  .gcard--allone:focus-within::before,
  .gcard--maintenance:hover::before,
  .gcard--maintenance:focus-within::before,
  .gcard--condoplus:hover::before,
  .gcard--condoplus:focus-within::before,
  .gcard--ergosense:hover::before,
  .gcard--ergosense:focus-within::before { transform: scale(1.12); }
}

/* imagem de fundo por projeto */
.gcard--fincare { --gcard-bg: url("image/Ficare/0.0-Pricipal1.png"); }
.gcard--allone { --gcard-bg: url("image/AllOne/0-Inicial.png"); }
.gcard--maintenance { --gcard-bg: url("image/Maintenance/0-login.png"); }
.gcard--condoplus { --gcard-bg: url("image/Condoplus/0-login.png"); }
.gcard--ergosense { --gcard-bg: url("image/ErgoSense/0-Landing.png"); }
.gcard--fincare .tag,
.gcard--allone .tag,
.gcard--maintenance .tag,
.gcard--condoplus .tag,
.gcard--ergosense .tag {
  backdrop-filter: blur(6px);
  margin-bottom: 0;
  background: rgba(4, 10, 24, 0.82);
  border-color: rgba(var(--primary-rgb), 0.45);
}

/* preview emoldurado — imagem inteira, sem recorte, nunca encosta no botão */
.gcard__shot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  height: 170px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.22);
  background: rgba(4, 10, 24, 0.9);
  box-shadow: 0 14px 26px -22px rgba(0, 0, 0, 0.9);
  transition: border-color 0.3s, box-shadow 0.3s;
  line-height: 0;
}
.gcard__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gcard--fincare:hover .gcard__shot,
.gcard--allone:hover .gcard__shot,
.gcard--maintenance:hover .gcard__shot,
.gcard--condoplus:hover .gcard__shot,
.gcard--ergosense:hover .gcard__shot {
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: 0 18px 32px -22px rgba(0, 0, 0, 0.95);
}

/* barra de ação isolada do preview */
.gcard__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
  grid-row: 3;
}
.gcard--fincare .gcard__open,
.gcard--allone .gcard__open,
.gcard--maintenance .gcard__open,
.gcard--condoplus .gcard__open,
.gcard--ergosense .gcard__open { margin-top: 0; flex: 0 0 auto; }

.gcard__open { align-self: flex-end; }
.gcard__open .ico { width: 14px; height: 14px; }
.gcard__open:hover .ico { transform: none; }

/* botão "Ver detalhes" — leva à página do projeto */
.gcard__details { margin-right: auto; }
.gcard__details .ico { width: 14px; height: 14px; }
.gcard--fincare .gcard__details,
.gcard--allone .gcard__details,
.gcard--maintenance .gcard__details,
.gcard--condoplus .gcard__details,
.gcard--ergosense .gcard__details { flex: 0 0 auto; }

/* modal da galeria */
.gmodal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.gmodal.is-open { opacity: 1; visibility: visible; }
.gmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 18, 0.82);
  backdrop-filter: blur(6px);
}
.gmodal__dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: #050c1a;
  box-shadow: 0 40px 90px -40px #000;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow: visible;
}
.gmodal.is-open .gmodal__dialog { transform: translateY(0) scale(1); }
.gmodal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.gmodal__title { font-family: var(--display); font-size: 1.15rem; }
.gmodal__desc { color: var(--muted); font-size: 0.86rem; margin-top: 2px; }
.gmodal__close {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.gmodal__close:hover {
  background: rgba(var(--primary-rgb), 0.35);
  border-color: var(--primary-2);
  transform: rotate(90deg);
}
.gmodal__close svg { width: 17px; height: 17px; }
.gmodal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.gmodal__foot .project__link {
  margin-top: 0;
  padding: 8px 16px;
  border: 1px solid rgba(var(--primary-rgb), 0.55);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.55);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 14px 34px -14px rgba(var(--primary-rgb), 0.85);
}
.gmodal__foot .project__link:hover {
  color: #fff;
  border-color: var(--primary-2);
  background: linear-gradient(135deg, #4b8ff8, #1d4ed8);
  box-shadow: 0 20px 40px -14px rgba(var(--primary-rgb), 0.95);
  transform: translateY(-1px);
}
.carousel__counter {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.gmodal .carousel { max-height: 42vh; overflow: visible; }
.gmodal .carousel__viewport { max-height: 42vh; overflow: visible; }

.project {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.3s, border-color 0.3s;
}
.project:hover { transform: translateY(-6px); border-color: rgba(var(--primary-rgb), 0.32); }
.project__body { padding: 20px 22px 24px; }
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 11px;
}
.project h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin-bottom: 7px;
}
.project p { color: var(--muted); font-size: 0.9rem; }

/* projeto em destaque (com carrossel) */
.project--featured {
  grid-column: 1 / -1;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}
.project--featured .project__body { padding: 22px 26px 26px; }

.project__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.45);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s, gap 0.25s;
}
.project__link svg { width: 15px; height: 15px; }
.project__link:hover {
  color: var(--primary-2);
  border-color: var(--primary-2);
  gap: 10px;
}

/* carrossel */
.carousel {
  position: relative;
  background: #060d1c;
}
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 10;
  max-height: 42vh;
  background: #060d1c;
  overflow: visible;
}
.carousel__slide img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  border-radius: 10px;
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.45s ease,
    border-radius 0.45s ease;
  will-change: transform;
}
/* efeito hover: a imagem cresce e sai para fora do card */
.carousel__slide:hover img {
  transform: scale(1.6) translateY(-4%);
  z-index: 30;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9);
  cursor: zoom-in;
}
.carousel__slide img.is-zoomed {
  transform: scale(1.9);
  object-position: top center;
  cursor: zoom-out;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
  background: rgba(4, 10, 22, 0.7);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  transition: background 0.25s, border-color 0.25s, opacity 0.25s;
  opacity: 0;
  z-index: 2;
}
.carousel:hover .carousel__btn,
.carousel:focus-within .carousel__btn { opacity: 1; }
.carousel__btn:hover {
  background: rgba(var(--primary-rgb), 0.85);
  border-color: var(--primary-2);
}
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__btn--prev { left: 14px; }
.carousel__btn--next { right: 14px; }

.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 46px;
  z-index: 2;
}
.carousel__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.32);
  transition: width 0.3s, background 0.3s;
}
.carousel__dot.is-active {
  width: 20px;
  background: var(--primary-2);
}

@media (max-width: 720px) {
  .carousel__btn { opacity: 1; width: 34px; height: 34px; }
  .carousel__btn--prev { left: 8px; }
  .carousel__btn--next { right: 8px; }
  .carousel__slide { aspect-ratio: 16 / 10; max-height: 38vh; }
  .gmodal { padding: 10px; }
  .gmodal .carousel,
  .gmodal .carousel__viewport { max-height: 38vh; }
  .carousel__slide:hover img { transform: scale(1.3) translateY(-2%); }
  .gmodal__head { padding: 14px 16px 12px; }
  .gmodal__foot { padding: 10px 16px; }
  .gallery { grid-template-columns: 1fr; }
}

/* sobre */
.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.about__text p { color: var(--muted); margin-bottom: 16px; }
.about__text strong { color: var(--text); font-weight: 500; }
.about__highlights { display: grid; gap: 12px; margin: 26px 0 30px; }
.highlight {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.94rem;
  color: #c3cfe6;
}
.highlight svg {
  width: 19px; height: 19px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--primary);
}

.about__panel { display: grid; gap: 16px; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.info-card h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 9px;
  font-weight: 500;
}
.info-card p { font-size: 0.95rem; }
.info-card .muted { color: var(--muted); font-size: 0.855rem; margin-top: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips span {
  font-size: 0.8rem;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #c3cfe6;
}

.quote-card {
  background: linear-gradient(150deg, rgba(var(--primary-rgb), 0.13), rgba(var(--accent-rgb), 0.1));
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: var(--radius-sm);
  padding: 22px;
}
.quote-card p { font-size: 0.96rem; line-height: 1.65; margin-bottom: 10px; }
.quote-card span { font-size: 0.8rem; color: var(--muted); }

/* contato */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 48px;
}
.contact__list { display: grid; gap: 14px; margin-top: 26px; }
.contact__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c3cfe6;
  font-size: 0.95rem;
}
.contact__list svg {
  width: 19px; height: 19px;
  color: var(--primary);
  flex-shrink: 0;
}
.contact__list a:hover { color: var(--primary); }

/* telefone com ícone do WhatsApp */
.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}
.contact__phone .contact__wa {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  box-sizing: border-box;
  color: #fff;
  background: #25d366;
  box-shadow: 0 6px 16px -8px rgba(37, 211, 102, 0.9);
  transition: transform 0.25s, box-shadow 0.25s;
}
.contact__phone:hover .contact__wa {
  transform: scale(1.08);
  box-shadow: 0 8px 20px -8px rgba(37, 211, 102, 1);
}
.contact__phone:hover span { color: var(--primary); }

.footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer__wa svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #25d366;
  transition: transform 0.25s;
}
.footer__wa:hover svg { transform: scale(1.12); }

.contact__form { display: grid; gap: 14px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 0.81rem;
  font-weight: 500;
  color: #aebbd4;
  letter-spacing: 0.01em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(6, 10, 20, 0.65);
  border: 1px solid var(--border-strong);
  font-size: 0.93rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: #5f6c87; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(var(--primary-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}
.field select option { background: #0b1120; }
.field input.invalid,
.field textarea.invalid { border-color: #ff6b6b; }

.form__note { font-size: 0.86rem; min-height: 20px; }
.form__note.ok { color: var(--primary); }
.form__note.err { color: #ff7b7b; }

/* honeypot anti-spam (invisível para humanos, visível para bots) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* botão em estado de envio */
.btn.is-loading { opacity: 0.72; cursor: progress; }
.btn.is-loading .ico { animation: btnSpin 1s linear infinite; }
@keyframes btnSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* footer */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(4, 7, 14, 0.7);
  padding-top: 56px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.footer__brand { max-width: 320px; }
.footer__brand p { color: var(--muted); font-size: 0.9rem; margin-top: 14px; }
.footer__cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer__cols div { display: grid; gap: 9px; align-content: start; }
.footer__cols h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 4px;
}
.footer__cols a,
.footer__cols span {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer__cols a:hover { color: var(--primary); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: #6f7c96;
}

/* voltar ao topo */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #031028;
  box-shadow: 0 16px 34px -14px rgba(var(--primary-rgb), 0.9);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 50;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ RESPONSIVO ============ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { min-height: 340px; order: -1; }
  .about-video { margin-bottom: 36px; }
  .hero-video { max-width: 100%; }
  .code-card { transform: none; }
  .metric-card { display: none; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .contact { grid-template-columns: 1fr; padding: 34px 26px; }
}

@media (max-width: 760px) {
  .logo__img { height: 32px; max-width: 140px; }
  .burger { display: flex; }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 24px;
    left: 24px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
    background: rgba(10, 16, 30, 0.97);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a { padding: 11px 14px; }
  .nav__cta { margin-top: 6px; text-align: center; }

  .section { padding: 68px 0; }
  .hero { padding-top: 28px; }
  .hero__actions .btn { flex: 1; }
  .hero__stats { gap: 26px; }
  .hero__stats strong { font-size: 1.5rem; }

  .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__cols { gap: 40px; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

