/* ═══════════════════════════════════════════════════════════
   RSG GROUP — "ELECTRIC SIGNAL"
   Dark premium · azul elétrico · Unbounded / Instrument Sans / IBM Plex Mono
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #04040b;
  --bg-2: #080814;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --blue: #2323ff;
  --blue-bright: #4d5aff;
  --blue-deep: #0000e0;
  --cyan: #00e5ff;

  --text: #f2f3ff;
  --muted: #9b9eb8;
  --muted-2: #6a6d87;

  --grad: linear-gradient(120deg, #4d5aff 0%, #00e5ff 100%);
  --grad-btn: linear-gradient(120deg, #1d1dff 0%, #0090ff 100%);

  --font-display: "Unbounded", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 20px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* grain sutil por cima de tudo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--blue); color: #fff; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ── Tipografia base ─────────────────────────── */

.tag {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}
.tag::before { content: "// "; color: var(--muted-2); }
.tag--center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead {
  color: var(--muted);
  max-width: 640px;
  font-size: 18px;
  margin-bottom: 56px;
}

/* ── Botões ──────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s, border-color 0.35s;
  will-change: transform;
}

.btn--primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(77, 90, 255, 0.4), 0 12px 40px -8px rgba(35, 35, 255, 0.55);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(77, 90, 255, 0.7), 0 20px 50px -8px rgba(35, 35, 255, 0.75);
}
.btn--primary svg { transition: transform 0.35s var(--ease); }
.btn--primary:hover svg { transform: translateX(4px); }

.btn--xl { padding: 20px 44px; font-size: 17px; }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { border-color: var(--blue-bright); background: rgba(77, 90, 255, 0.08); transform: translateY(-3px); }

.btn--line {
  border-color: var(--line-strong);
  color: var(--text);
  padding: 13px 26px;
  font-size: 14px;
}
.btn--line:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

.btn--nav {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.35);
  color: #4ade80;
  padding: 10px 20px;
  font-size: 14px;
}
.btn--nav:hover { background: rgba(37, 211, 102, 0.22); transform: translateY(-2px); }

/* ── Nav ─────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(4, 4, 12, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
}

.nav__logo { display: inline-flex; align-items: center; gap: 12px; }
.nav__logo-mark { width: 34px; height: 34px; filter: drop-shadow(0 0 12px rgba(35, 35, 255, 0.8)); }
.nav__logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.nav__logo-word em { font-style: normal; font-weight: 400; color: var(--blue-bright); }

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links > a:not(.btn),
.nav__item > a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color 0.3s;
}
.nav__links > a:not(.btn)::after,
.nav__item > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links > a:not(.btn):hover,
.nav__item > a:hover { color: var(--text); }
.nav__links > a:not(.btn):hover::after,
.nav__item > a:hover::after { transform: scaleX(1); }

/* ── Dropdown (Serviços) ─────────────────────── */

.nav__item { position: relative; }
.nav__item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__item .caret {
  font-size: 8px;
  color: var(--blue-bright);
  transition: transform 0.3s var(--ease);
}
.nav__item:hover .caret,
.nav__item:focus-within .caret { transform: rotate(180deg); }

.nav__sub {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  min-width: 230px;
  padding: 10px;
  display: grid;
  gap: 2px;
  background: rgba(8, 8, 20, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 30, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  z-index: 101;
}
/* ponte invisível para não perder o hover entre o link e o painel */
.nav__sub::before {
  content: "";
  position: absolute;
  top: -16px; left: 0; right: 0;
  height: 16px;
}
.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav__sub a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.25s, color 0.25s;
}
.nav__sub a:hover { background: rgba(77, 90, 255, 0.14); color: var(--text); }
.nav__sub a.is-current { color: var(--cyan); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
}
.nav__burger span {
  width: 26px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 90px;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}
.hero__glow--1 {
  width: 640px; height: 640px;
  background: rgba(20, 20, 255, 0.34);
  top: -180px; right: -120px;
  animation: drift 14s ease-in-out infinite alternate;
}
.hero__glow--2 {
  width: 480px; height: 480px;
  background: rgba(0, 229, 255, 0.13);
  bottom: -160px; left: -140px;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, 50px) scale(1.15); }
}

.hero__inner {
  position: relative;
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  flex: 1;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(46px, 7.4vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-block: 8px 28px;
}
.hero__title span { display: block; }

.hero__title-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--blue-bright);
  text-shadow: 0 0 60px rgba(35, 35, 255, 0.45);
}

.hero__lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 14px;
}
.hero__lead strong { color: var(--cyan); font-weight: 600; }

.hero__sub {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted-2);
  max-width: 460px;
  margin-bottom: 36px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
}
.hero__robot {
  width: min(100%, 460px);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 30px 60px rgba(35, 35, 255, 0.45));
  animation: float 5.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
.hero__robot-ring {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(77, 90, 255, 0.4);
  animation: spin 30s linear infinite;
}
.hero__robot-ring::before,
.hero__robot-ring::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}
.hero__robot-ring::before { top: 6%; left: 12%; }
.hero__robot-ring::after { bottom: 10%; right: 6%; background: var(--blue-bright); box-shadow: 0 0 16px var(--blue-bright); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Marquees ────────────────────────────────── */

.marquee { overflow: hidden; position: relative; }

.marquee--hero {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  padding-block: 18px;
  margin-top: 40px;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 42px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee__track--slow { animation-duration: 40s; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee--hero span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}
.marquee--hero i { color: var(--blue-bright); font-style: normal; font-size: 10px; }

/* ── Stats ───────────────────────────────────── */

.stats {
  padding-block: 96px;
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(35, 35, 255, 0.08), transparent 65%);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 42px 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.stat::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(220px 140px at 20% 0%, rgba(77, 90, 255, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.stat:hover { transform: translateY(-6px); border-color: rgba(77, 90, 255, 0.5); }
.stat:hover::before { opacity: 1; }

.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 4.6vw, 64px);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__num em { font-style: normal; }
.stat__label {
  position: relative;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Pilares ─────────────────────────────────── */

.pillars { padding-block: 60px 40px; }

.pillars__grid { display: grid; gap: 28px; }

.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.4s;
}
.pillar:hover { border-color: rgba(77, 90, 255, 0.45); }
.pillar--flip .pillar__media { order: 2; }

.pillar__media {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(35, 35, 255, 0.18), rgba(4, 4, 11, 0.4) 75%);
  display: grid;
  place-items: center;
}
.pillar__media img {
  width: 88%;
  max-height: 400px;
  object-fit: contain;
  transition: transform 0.7s var(--ease);
}
.pillar:hover .pillar__media img { transform: scale(1.05) rotate(-1deg); }

.pillar__body { padding: clamp(32px, 4vw, 56px); }

.pillar__hash {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.pillar__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.pillar__body > p { color: var(--muted); font-size: 16px; margin-bottom: 22px; }

.pillar__body ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.pillar__body li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--muted);
}

/* ── Grade de serviços ───────────────────────── */

.services { padding-block: 90px 40px; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.service {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 34px 30px 30px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.service::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service:hover { transform: translateY(-6px); border-color: rgba(77, 90, 255, 0.45); background: var(--surface-2); }
.service:hover::after { transform: scaleX(1); }

.service__idx {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue-bright);
  display: block;
  margin-bottom: 16px;
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
}
.service p { color: var(--muted); font-size: 14.5px; }

/* ── Portfólio ───────────────────────────────── */

.portfolio { padding-block: 90px 60px; }

.tabs {
  display: inline-flex;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px;
  background: var(--surface);
  margin-bottom: 48px;
}
.tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: 100px;
  transition: background 0.3s, color 0.3s;
}
.tab.is-active { background: var(--grad-btn); color: #fff; }
.tab:not(.is-active):hover { color: var(--text); }

.tabpanel { display: none; }
.tabpanel.is-active { display: block; }

.sites__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.site-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.site-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 90, 255, 0.55);
  box-shadow: 0 24px 60px -20px rgba(35, 35, 255, 0.35);
}

.site-card__frame {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.site-card__dots { display: flex; gap: 5px; }
.site-card__dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.site-card:hover .site-card__dots i:nth-child(1) { background: #ff5f57; }
.site-card:hover .site-card__dots i:nth-child(2) { background: #febc2e; }
.site-card:hover .site-card__dots i:nth-child(3) { background: #28c840; }
.site-card__url {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 3px 12px;
}

.site-card__shot {
  display: block;
  position: relative;
  height: 320px;
  overflow: hidden;
}
.site-card__shot img {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0; left: 0;
  transition: transform 7s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.site-card:hover .site-card__shot img {
  transform: translateY(calc(-100% + 320px));
}

.site-card__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
}
.site-card__name em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio__hint {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted-2);
  text-align: center;
  margin-top: 32px;
}

.design__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.design-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.design-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.design-card:hover { transform: translateY(-6px); border-color: rgba(77, 90, 255, 0.5); }
.design-card:hover img { transform: scale(1.06); }

/* ── Clientes ────────────────────────────────── */

.clients { padding-block: 40px 90px; }

.marquee--logos {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding-block: 34px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee--logos img {
  height: 44px;
  width: auto;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(1) brightness(1.6);
  transition: opacity 0.3s, filter 0.3s;
}
.marquee--logos img:hover { opacity: 1; filter: none; }

/* ── Diferenciais ────────────────────────────── */

.unique {
  padding-block: 100px;
  background:
    radial-gradient(ellipse 70% 80% at 15% 50%, rgba(35, 35, 255, 0.12), transparent 65%);
  border-block: 1px solid var(--line);
}

.unique__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}

.unique__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 5.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.unique__title span { display: block; }
.unique__title-line2 {
  color: transparent;
  -webkit-text-stroke: 2px rgba(77, 90, 255, 0.9);
}
.unique__title i {
  font-style: normal;
  color: var(--cyan);
  -webkit-text-stroke: 0;
}

.unique__certs {
  display: grid;
  gap: 16px;
}
.unique__certs-label {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 8px;
}
.unique__certs-label strong { color: var(--text); font-size: 22px; }

.cert-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 26px;
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.cert-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 44px -12px rgba(35, 35, 255, 0.4);
}
.cert-card img { max-height: 56px; width: auto; }

/* ── Depoimentos ─────────────────────────────── */

.voices { padding-block: 100px 80px; }

.voices__featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-block: 48px 32px;
}

.quote {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 40px 38px 34px;
  overflow: hidden;
}
.quote::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(300px 200px at 0% 0%, rgba(77, 90, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.quote__mark { width: 34px; color: var(--blue-bright); margin-bottom: 20px; opacity: 0.9; }
.quote p { position: relative; font-size: 16.5px; color: #cdd0e4; margin-bottom: 26px; }
.quote footer { display: grid; gap: 2px; }
.quote footer strong { font-size: 16px; }
.quote footer span { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-2); }

.reviews {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 34px;
}
.reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.reviews__title { font-weight: 700; font-size: 18px; }
.reviews__meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
.reviews__stars { color: #fbbc04; letter-spacing: 2px; }

.reviews__nav { display: flex; gap: 10px; }
.reviews__nav button,
.team__nav button {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-size: 17px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.reviews__nav button:hover,
.team__nav button:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }

.reviews__viewport { overflow: hidden; }
.reviews__track {
  display: flex;
  gap: 20px;
  transition: transform 0.6s var(--ease);
}

.review {
  flex: 0 0 calc((100% - 40px) / 3);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  padding: 24px;
}
.review header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.review__avatar {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  background: var(--grad-btn);
  color: #fff;
}
.review header strong { font-size: 14.5px; display: block; }
.review header time { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }
.review__stars { margin-left: auto; color: #fbbc04; font-size: 12px; letter-spacing: 1px; }
.review p { font-size: 14px; color: var(--muted); }

/* ── Equipe ──────────────────────────────────── */

.team { padding-block: 80px 100px; overflow: hidden; }

.team__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.team__nav { display: flex; gap: 10px; }

.team__scroller {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-inline: max(24px, calc((100vw - var(--container)) / 2));
  padding-bottom: 20px;
  scrollbar-width: none;
  cursor: grab;
}
.team__scroller::-webkit-scrollbar { display: none; }
.team__scroller.is-dragging { cursor: grabbing; scroll-behavior: auto; }

.member {
  flex: 0 0 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.member:hover { transform: translateY(-8px); border-color: rgba(77, 90, 255, 0.5); }
.member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: linear-gradient(160deg, #0c0c1c, #12123a);
  filter: saturate(0.95);
  transition: filter 0.4s;
  pointer-events: none;
}
.member:hover img { filter: saturate(1.15); }
.member h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  padding: 16px 18px 2px;
}
.member p {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
  padding: 0 18px 18px;
}

/* ── Instagram ───────────────────────────────── */

.insta { padding-block: 40px 100px; }

.insta__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.insta__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.insta-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px 26px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.insta-card::before {
  content: "";
  position: absolute;
  top: -40%; right: -40%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 41, 118, 0.35), rgba(253, 89, 73, 0.15) 50%, transparent 75%);
  opacity: 0;
  transition: opacity 0.45s;
}
.insta-card:hover { transform: translateY(-6px); border-color: rgba(214, 41, 118, 0.5); }
.insta-card:hover::before { opacity: 1; }

.insta-card p { position: relative; font-size: 15.5px; font-weight: 500; color: #cdd0e4; }
.insta-card span {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--cyan);
}

/* ── CTA final ───────────────────────────────── */

.cta {
  position: relative;
  padding-block: 140px;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.cta__glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 900px; height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(35, 35, 255, 0.28), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.cta__inner { position: relative; }

.cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.cta__title span { display: block; }
.cta__title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta__lead {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 44px;
  font-size: 18px;
}

/* ── Footer ──────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr 1fr;
  gap: 40px;
  padding-block: 70px 50px;
}

.footer__brand p { color: var(--muted); font-size: 14.5px; margin-top: 18px; }

.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.footer__col a {
  color: var(--muted);
  font-size: 15px;
  width: fit-content;
  transition: color 0.3s;
}
.footer__col a:hover { color: var(--cyan); }
.footer__col address {
  font-style: normal;
  color: var(--muted-2);
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 6px;
}

.footer__bar { border-top: 1px solid var(--line); }
.footer__bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}
.footer__bar em { color: var(--blue-bright); font-style: normal; }

/* ── WhatsApp flutuante (widget Flut) ────────────
   O script da Flut injeta #flut-whatsapp-button com estilos
   inline — os !important abaixo replicam o layout do FAB
   original do site (posição, sombra verde, anel pulsante). */

#flut-whatsapp-button {
  right: 26px !important;
  bottom: 26px !important;
  width: 60px !important;
  height: 60px !important;
  background: #25d366 !important;
  border: none !important;
  box-shadow: 0 12px 34px -6px rgba(37, 211, 102, 0.6) !important;
  animation: none !important;
  transition: transform 0.35s var(--ease), box-shadow 0.35s !important;
}
#flut-whatsapp-button:hover {
  transform: translateY(-4px) scale(1.06) !important;
  box-shadow: 0 18px 44px -6px rgba(37, 211, 102, 0.8) !important;
}
#flut-whatsapp-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  from { transform: scale(1); opacity: 1; }
  to   { transform: scale(1.55); opacity: 0; }
}

/* ── Reveal on scroll ────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
.reveal.d5 { transition-delay: 0.5s; }

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

/* ═══════════ RESPONSIVO ═══════════ */

@media (max-width: 1024px) {
  .sites__grid, .services__grid, .design__grid { grid-template-columns: repeat(2, 1fr); }
  .insta__grid { grid-template-columns: repeat(2, 1fr); }
  .review { flex: 0 0 calc((100% - 20px) / 2); }
  .unique__inner { grid-template-columns: 1fr; gap: 44px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero { padding-top: 110px; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero__visual { order: -1; }
  .hero__robot { width: min(62%, 300px); }
  .hero__title { font-size: clamp(42px, 11vw, 64px); }
  .marquee--hero { margin-top: 56px; }

  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(78vw, 340px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    background: rgba(6, 6, 18, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    z-index: 99;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links > a:not(.btn), .nav__item > a { font-size: 20px; }
  .nav__burger { display: flex; position: relative; z-index: 100; }

  /* dropdown vira lista sempre visível no mobile */
  .nav__item .caret { display: none; }
  .nav__sub {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    padding: 8px 0 0 16px;
    background: none;
    border: none;
    border-left: 2px solid rgba(77, 90, 255, 0.35);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav__sub::before { display: none; }
  .nav__sub a { padding: 6px 0; font-size: 16px; }

  .stats__grid { grid-template-columns: 1fr; }
  .pillar { grid-template-columns: 1fr; }
  .pillar--flip .pillar__media { order: 0; }
  .pillar__media { min-height: 240px; }
  .voices__featured { grid-template-columns: 1fr; }
  .review { flex: 0 0 100%; }
  .team__head { flex-direction: column; align-items: flex-start; }
  .insta__head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .sites__grid, .services__grid, .design__grid, .insta__grid { grid-template-columns: 1fr; }
  .reviews { padding: 24px 20px; }
  .reviews__head { flex-direction: column; align-items: flex-start; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .member { flex: 0 0 200px; }
  .btn--xl { padding: 17px 32px; font-size: 15.5px; }
  #flut-whatsapp-button { right: 18px !important; bottom: 18px !important; width: 54px !important; height: 54px !important; }
}
