:root {
    --bg: #0a0a0b;
    /* fundo quase preto */
    --elev: #121215;
    /* superfícies elevadas */
    --muted: #a1a6b3;
    /* texto secundário */
    --text: #f2f4f8;
    /* texto primário */
    --grad: linear-gradient(90deg, #00e1ff 0%, #7b2cff 50%, #ff3ff0 100%);
    --grad-soft: linear-gradient(135deg, #00e1ff33, #7b2cff33);
    --radius: 18px;
    --shadow: 0 14px 40px rgba(0, 0, 0, .35);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, .26);
    --max: 1200px;
}

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

html {
    scroll-behavior: smooth
}

body {
    font-family: "Outfit", "Inter", Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
}

h1 {
    font-family: "Outfit", "Poppins", sans-serif;
}

p {
    font-family: "Figtree", "Inter", sans-serif;
}

a {
    color: inherit;
    text-decoration: none
}

img,
video {
    max-width: 100%;
    display: block
}

/* ===== NAV ===== */
.nav {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 60;
    display: flex;
    justify-content: center;
    backdrop-filter: saturate(180%) blur(12px);
    background: rgba(10, 10, 11, .52);
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.nav__inner {
    width: 100%;
    max-width: var(--max);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700
}

.brand img {
    height: 42px;
    border-radius: 10px
}

.spacer {
    flex: 1
}

.menu {
    display: flex;
    gap: 16px
}

.menu a {
    opacity: .9;
    padding: 10px 12px;
    border-radius: 10px
}

.menu a:hover {
    background: rgba(255, 255, 255, .06)
}

.btn {
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-weight: 600;
    transition: transform .18s ease, box-shadow .22s ease, filter .2s ease;
    box-shadow: var(--shadow-soft);
    will-change: transform
}

.btn:hover {
    transform: translateY(-1px)
}

.btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .18)
}

.btn--pulse {
    position: relative
}

.btn--pulse::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    background: var(--grad);
    filter: blur(14px);
    opacity: .35;
    z-index: -1;
    animation: pulse 2.4s ease-in-out infinite
}

@keyframes pulse {

    0%,
    100% {
        opacity: .22
    }

    50% {
        opacity: .45
    }
}

/* ===== HERO (vídeo) ===== */
header.hero {
    padding-top: 88px;
    position: relative;
    overflow: hidden
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(22%) contrast(1.1) brightness(.55)
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 600px at 20% 10%, rgba(0, 225, 255, .35), transparent 60%), linear-gradient(to bottom, rgba(0, 0, 0, .25),
            rgba(0, 0, 0, .78))
}

.hero__container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 110px 20px 70px
}

.tag {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    font-size: 12px;
    letter-spacing: .5px;
    text-transform: uppercase
}

.hero__title {
    font-size: clamp(30px, 5.4vw, 64px);
    line-height: 1.05;
    margin: 16px 0
}

.hero__subtitle {
    max-width: 900px;
    font-size: clamp(15px, 2.1vw, 20px);
    color: var(--muted)
}

.hero__actions {
    margin-top: 26px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

/* KPIs */
.strip {
    margin-top: 38px;
    background: var(--grad);
    padding: 18px;
    border-radius: 16px;
    box-shadow: var(--shadow)
}

.strip__grid {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px
}

.kpi {
    background: rgba(0, 0, 0, .18);
    padding: 16px 14px;
    border-radius: 14px;
    text-align: center
}

.kpi b {
    font-size: clamp(22px, 3.2vw, 30px)
}

.kpi span {
    display: block;
    opacity: .92
}

/* ===== SECTIONS ===== */
section {
    padding: 70px 20px
}

.container {
    max-width: var(--max);
    margin: 0 auto
}

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px
}

.h2 {
    font-size: clamp(22px, 3.6vw, 36px);
    margin: 0
}

.muted {
    color: var(--muted)
}

/* CARROSSEL PORTFÓLIO */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .06);
    background: linear-gradient(180deg, rgba(255, 255, 255, .04),
            rgba(255, 255, 255, .02));
    box-shadow: var(--shadow-soft)
}

.slides {
    display: flex;
    transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}

.slide {
    min-width: 100%;
    position: relative
}

.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.slide__caption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 12px 14px;
    border-radius: 12px;
    max-width: min(92%, 720px)
}

.controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px
}

.control {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .12);
    cursor: pointer
}

.dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28)
}

.dot.is-active {
    background: #fff
}

/* GRID PORTFÓLIO (complemento) */
.grid {
    display: grid;
    gap: 18px
}

.grid--portfolio {
    grid-template-columns: repeat(12, 1fr)
}

.card {
    grid-column: span 4;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04),
            rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    transform: translateY(0);
    transition: transform .25s ease, box-shadow .25s ease
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35)
}

.card__img {
    aspect-ratio: 16/10;
    background: #101014
}

.card__body {
    padding: 16px
}

.chip {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    font-size: 12px;
    color: var(--muted)
}

.card__body .chip {
    margin-bottom: 10px
}

/* CORREÇÃO DE IMAGENS - EVITA ESTICAMENTO E BAIXA RESOLUÇÃO */
.card__img img,
.slide img,
.seg__media {
  width: 100%;
  height: 100%;
  object-fit: cover; /* mantém proporção e preenche o container */
  object-position: center;
  image-rendering: -webkit-optimize-contrast; /* melhora nitidez */
  border-radius: inherit;
}

.slide img {
  aspect-ratio: 16/9; /* define proporção padrão */
}

/* === CORREÇÃO VISUAL PARA SEGMENTOS ATENDIDOS === */
.seg {
  aspect-ratio: 16 / 9; /* mantém altura proporcional em qualquer tela */
  overflow: hidden;
  position: relative;
}

.seg__media {
  background-size: cover !important; /* evita distorção */
  background-position: center !important; /* centraliza o foco da imagem */
  background-repeat: no-repeat;
  filter: brightness(.75) contrast(1.1);
  transition: transform .4s ease;
}

.seg:hover .seg__media {
  transform: scale(1.03); /* leve zoom ao passar o mouse */
}

/* SERVIÇOS */
.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.service {
    background: radial-gradient(120% 120% at -10% -10%, rgba(0, 225, 255, .25),
            transparent 50%), var(--elev);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    padding: 20px;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service p {
    padding-bottom: 16px;
}

.service a {
    margin-top: auto !important;
}

.service__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--grad);
    display: grid;
    place-items: center;
    font-weight: 700;
    margin-bottom: 12px
}

.service h3 {
    margin: 6px 0 8px
}

.service p {
    color: var(--muted)
}

/* PROVA SOCIAL */
.testis {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    margin-top: 20px;
}

.testi {
    background: var(--elev);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    padding: 18px 20px;
    flex: 1 1 280px;
    min-width: 280px;
    box-sizing: border-box;
    transition: transform 0.2s ease, background 0.2s ease;
}

.testi:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
}

/* SEGMENTOS (slider horizontal) */
#segmentos .container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seg-wrap {
    position: relative
}

.seg-scroll {
    display: flex;
    gap: 14px;
    overflow: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 6px 10px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
}

.seg {
    min-width: min(86vw, 560px);
    scroll-snap-align: center;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.seg__media {
    position: absolute;
    inset: 0;
    background: var(--bg) center/cover;
    filter: brightness(.65) contrast(1.1)
}

.seg__body {
    position: relative;
    z-index: 1;
    padding: 18px;
    margin-top: auto;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .6))
}

.seg__body h3 {
    margin-bottom: 6px
}

.seg__body a {
    flex: 0;
    width: max-content;
}

.seg-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .12);
    display: grid;
    place-items: center;
    z-index: 2;
    cursor: pointer
}

.seg-nav[data-dir="prev"] {
    left: 8px
}

.seg-nav[data-dir="next"] {
    right: 8px
}

/* LOGOS - marquee */
.marquee {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .03);
    padding: 10px
}

.marquee .track {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    animation: marq 28s linear infinite;
    will-change: transform;
    white-space: nowrap
}

.marquee img {
    height: 32px;
    opacity: .85;
    filter: grayscale(1)
}

@keyframes marq {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

/* FORM */
.form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow)
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 14px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: #0f0f12;
    color: var(--text)
}

.form textarea {
    grid-column: 1/-1;
    min-height: 110px
}

.form .actions {
    grid-column: 1/-1;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap
}

/* FOOTER */
footer {
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: #0a0a0b
}

.footer__grid {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 18px
}

.social {
    display: flex;
    gap: 10px
}

.social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .08);
    display: grid;
    place-items: center;
    border-radius: 10px
}

/* WHATSAPP FLOAT */
.whats {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #0b0b0b;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .35);
  transition: transform .18s ease, box-shadow .18s ease;
}

.whats:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(37, 211, 102, .45);
}

/* ÍCONE DO WHATSAPP DENTRO DO BOTÃO */
.whats-icon {
  width: 28px;
  height: 28px;
  display: block;
}

/* ANIMAÇÃO DE PULSO SUAVE DO BOTÃO WHATSAPP */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

.whats {
  animation: pulse 2.5s infinite ease-in-out;
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease
}

.reveal.is-visible {
    opacity: 1;
    transform: none
}

/* === CORREÇÃO VISUAL DAS IMAGENS === */
.slide img,
.card__img img,
.seg__media {
  width: 100%;
  height: 100%;
  object-fit: cover; /* impede esticamento e mantém proporção */
  object-position: center;
  image-rendering: -webkit-optimize-contrast; /* melhora nitidez */
  border-radius: inherit;
}

/* Garante proporção estável em slides */
.slide {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* RESPONSIVO */
@media (max-width:1080px) {
    .services {
        grid-template-columns: repeat(2, 1fr)
    }

    .testis {
        grid-template-columns: 1fr 1fr
    }

    .grid--portfolio {
        grid-template-columns: repeat(8, 1fr)
    }

    .card {
        grid-column: span 4
    }
}

@media (max-width:720px) {
    .menu {
        display: none
    }

    .strip__grid {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .services {
        grid-template-columns: 1fr
    }

    .testis {
        grid-template-columns: 1fr
    }

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

    .footer__grid {
        grid-template-columns: 1fr
    }

    .grid--portfolio {
        grid-template-columns: repeat(1, 1fr)
    }

    .card {
        grid-column: 1
    }

    .seg {
        min-width: 88vw
    }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease;
}

.navbar__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
}

.navbar__logo img {
  height: 32px;
  border-radius: 6px;
}

.navbar__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.navbar__links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  transition: opacity 0.25s ease;
}

.navbar__links a:hover {
  opacity: 0.75;
}

/* Botão "Contato" do menu */
.btn-nav {
  padding: 8px 18px;
  border-radius: 24px;
  background: linear-gradient(90deg, #8a2be2, #00bfff);
  color: #fff !important;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.btn-nav:hover {
  transform: scale(1.05);
}

/* Pequeno espaçamento extra para o conteúdo não ficar atrás da navbar */
.hero {
  margin-top: 80px;
}

/* ===== NAVBAR RESPONSIVA ===== */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.navbar__toggle .bar {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* Estado ativo (X) */
.navbar__toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.navbar__toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.navbar__toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Menu mobile fechado inicialmente */
@media (max-width: 768px) {
  .navbar__toggle {
    display: flex;
    z-index: 1100;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 280px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: right 0.35s ease;
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__links a {
    font-size: 1.2rem;
  }

  .btn-nav {
    padding: 10px 22px;
    font-size: 1rem;
  }
}