html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* impede scroll horizontal causado por filhos que extrapolam a viewport */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
    --bg: #0B0B0B;
    --surface: #1A1A1A;
    --surface-2: #151515;

    --text: #FFFFFF;
    --text-secondary: #CFCFCF;

    --primary: #1ED7C0;
}
h1,
h2,
h3 {
    color: var(--text);
}

p {
    color: var(--text-secondary);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);

    position: relative;
    overflow-x: hidden;
}
body::before {
    content: "";

    position: fixed;

    top: -300px;
    right: -250px;

    width: 700px;
    height: 700px;

    background:
        radial-gradient(
            circle,
            rgba(30,215,192,.06),
            transparent 70%
        );

    pointer-events: none;

    z-index: -1;
}

body::after {
    content: "";

    position: fixed;

    bottom: -350px;
    left: -250px;

    width: 700px;
    height: 700px;

    background:
        radial-gradient(
            circle,
            rgba(30,215,192,.04),
            transparent 70%
        );

    pointer-events: none;

    z-index: -1;
}

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  width: min(100% - 64px, 1200px);
  margin: 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── LOGO ── */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 28px;
  width: auto;
  display: block;
}

/* ── NAV ── */
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.nav a:hover {
  opacity: 0.65;
}

.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;

    background-image: url("assets/hero-cubo-ajustada.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 1;
}

.hero-overlay {
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 6vw 8vh;
  max-width: 980px;
  color: #fff;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  opacity: 0.85;
}

.hero-title {
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 0.85;
  letter-spacing: -0.07em;
  font-weight: 300;
  text-transform: uppercase;
  margin: 0;
}

.hero-subtitle {
  max-width: 520px;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  opacity: 0.9;
}

.hero-cta {
  display: inline-block;
  margin-top: 1.6rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding-bottom: 0.25rem;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 520px;
    height: 620px;
    object-fit: cover;

    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.08);

    box-shadow:
        0 30px 80px rgba(0,0,0,.45),
        0 0 80px rgba(30,215,192,.10);
}

.hero-image::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(30,215,192,.18), transparent 70%);
    filter: blur(30px);
    z-index: -1;
}

.btn {
    display: inline-block;
    padding: 16px 30px;
    background: var(--primary);
    color: #06110f;
    text-decoration: none;
    font-weight: 800;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(30, 215, 192, 0);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(30, 215, 192, 0.22);
}
.problema {
    padding: 120px 8%;
    background: var(--surface-2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.titulo-pequeno {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.problema h2 {
    font-size: 42px;
    margin: 24px 0 60px;
    max-width: 800px;
}

.cards-problema {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(30, 215, 192, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.card h3 {
    margin-bottom: 16px;
    font-size: 24px;
}

.card p {
    color: #cfcfcf;
    line-height: 1.6;
}
.metodo {
    padding: 130px 8%;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.metodo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse at center top, rgba(30,215,192,.05), transparent 65%);
    pointer-events: none;
}

.metodo h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin: 20px 0 64px;
    max-width: 680px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.etapas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.etapa {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.etapa:hover {
    transform: translateY(-8px);
    border-color: rgba(30, 215, 192, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.numero {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
    color: rgba(30, 215, 192, 0.2);
    letter-spacing: -0.06em;
    transition: color 0.35s ease;
}

.etapa h3 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.etapa p {
    font-size: 0.875rem;
    line-height: 1.8;
    color: rgba(207, 207, 207, 0.65);
}
.servicos {
    background: var(--surface-2);
}

.servicos-cover {
    position: relative;
    min-height: 500px;
    background-image: url("assets/team-work.jpg");
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 0 8% 80px;
}

.servicos-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.5) 45%,
        rgba(21,21,21,1) 100%
    );
    z-index: 0;
}

.servicos-cover .container {
    position: relative;
    z-index: 1;
}

.servicos-cover h2 {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    max-width: 700px;
    margin: 16px 0 0;
}

.servicos-cards {
    padding: 64px 8% 120px;
    background: var(--surface-2);
}

.grid-servicos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.servico{
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.servico:hover {
    transform: translateY(-8px);
    border-color: rgba(30, 215, 192, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.servico h3 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.servico p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: rgba(207, 207, 207, 0.65);
}

@media (max-width: 900px) {
    .servicos-cover {
        min-height: 380px;
        padding: 0 6% 64px;
    }

    .grid-servicos {
        grid-template-columns: 1fr;
    }
}
.cases {
    padding: 120px 8%;
    background: var(--bg);
}

.cases h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin: 20px 0 56px;
    max-width: 750px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.grid-cases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.case:hover {
    transform: translateY(-8px);
    border-color: rgba(30, 215, 192, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.tag {
    display: inline-block;
    margin-bottom: 16px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(30, 215, 192, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.case h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.case p {
    font-size: 0.875rem;
    color: rgba(207, 207, 207, 0.65);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .case {
        grid-template-columns: 40px 1fr;
        gap: 0 28px;
        padding: 32px 0;
    }

    .case::before {
        font-size: 1.1rem;
    }

    .case:hover {
        padding-left: 8px;
    }
}
.cta {
    padding: 160px 8%;
    position: relative;
    overflow: hidden;
    text-align: center;
    background-image: url("assets/headset-man.jpg");
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(11,11,11,1) 0%,
        rgba(0,0,0,0.72) 18%,
        rgba(0,0,0,0.68) 55%,
        rgba(11,11,11,0.9) 85%,
        rgba(11,11,11,1) 100%
    );
    z-index: 0;
}

.cta-container {
    max-width: 860px;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin: 20px auto 24px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.cta p {
    color: rgba(207, 207, 207, 0.8);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
footer {
    background: #0b0b0b;
    padding: 80px 8% 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;

    /* estava center */
    align-items: flex-start;

    padding: 40px 0;
}

.footer-container h2 {
    font-size: 42px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.footer-container p {
    color: #cfcfcf;
    max-width: 450px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-links a {
    color: #cfcfcf;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 50px;
    padding-top: 30px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
    }
}
footer {
    background: #0b0b0b;
    padding: 80px 8% 30px;
    border-top: 1px solid rgba(139, 92, 246, 0.25);
}
.card,
.etapa,
.servico,
.case {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.card:hover,
.etapa:hover,
.servico:hover,
.case:hover {
    transform: translateY(-8px);
    border-color: rgba(30, 215, 192, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* ── MÉTODO – overrides para visual editorial ── */
.etapa {
    background: rgba(10, 10, 10, 0.5);
    border-color: rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.etapa::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.etapa:hover {
    background: rgba(30, 215, 192, 0.025);
    border-color: rgba(30, 215, 192, 0.15);
    transform: translateY(-6px);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5), 0 0 40px rgba(30, 215, 192, 0.05);
}

.etapa:hover::after {
    opacity: 1;
}

.etapa:hover .numero {
    color: var(--primary);
}

/* ── SERVIÇOS – overrides para visual editorial ── */
.servico {
    background: rgba(10, 10, 10, 0.4);
    border-color: rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.servico::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(30,215,192,.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.servico:hover {
    background: rgba(30, 215, 192, 0.025);
    border-color: rgba(30, 215, 192, 0.15);
    transform: translateY(-6px);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5), 0 0 40px rgba(30, 215, 192, 0.05);
}

.servico:hover::after {
    opacity: 1;
}

.servico svg {
    background: rgba(30, 215, 192, 0.1);
    padding: 5px;
    border-radius: 8px;
    width: 30px;
    height: 30px;
}

/* ── CASES – lista editorial com CSS counter ── */
.grid-cases {
    counter-reset: case-counter;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.06);
}

.case {
    counter-increment: case-counter;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0 48px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: transparent;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    backdrop-filter: none;
    transition: padding-left 0.35s ease, border-bottom-color 0.35s ease;
}

.case::before {
    content: counter(case-counter, decimal-leading-zero);
    grid-row: 1 / span 3;
    grid-column: 1;
    font-size: 1.4rem;
    font-weight: 900;
    color: rgba(30,215,192,.2);
    letter-spacing: -0.05em;
    line-height: 1;
    padding-top: 4px;
    transition: color 0.35s ease;
}

.case:hover {
    padding-left: 16px;
    border-bottom-color: rgba(30,215,192,.35);
    transform: none;
    box-shadow: none;
    background: transparent;
}

.case:hover::before {
    color: var(--primary);
}

.case .tag {
    grid-column: 2;
}

.case h3 {
    grid-column: 2;
}

.case p {
    grid-column: 2;
}

.cards-problema {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 280px;
}

.etapas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.grid-servicos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* .grid-cases – layout definido no bloco editorial override acima */

.problema,
.metodo,
.servicos,
.cases,
.cta {
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand img {
    height: 55px;
    margin-bottom: 20px;
}

.footer-brand p {
    margin-top: 0;
    max-width: 320px;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 30px;

    border-top: 1px solid rgba(255,255,255,.08);

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #888;
    font-size: 14px;
}

.footer-slogan {
    text-align: right;
}

@media (max-width: 900px) {

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-slogan {
        text-align: center;
    }

}
h3 {
    display: flex;
    align-items: center;
    gap: 12px;
}
svg {
    width: 24px;
    height: 24px;

    color: var(--primary);

    flex-shrink: 0;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 768px) {

    header {
        height: 80px;
        padding: 0 6%;
    }

    nav img {
        height: 48px;
    }

    nav ul {
        gap: 18px;
    }

    nav a {
        font-size: 13px;
    }

    .hero {
        min-height: auto;
        padding: 140px 6% 80px;
    }

    .hero h2 {
        font-size: 42px;
        line-height: 1.05;
    }

    .hero p {
        font-size: 17px;
    }

    .problema,
    .metodo,
    .cases {
        padding: 90px 6%;
    }

    .servicos-cards {
        padding: 48px 6% 90px;
    }

    .problema h2,
    .metodo h2,
    .cases h2 {
        font-size: 34px;
    }

    .cards-problema,
    .etapas,
    .grid-servicos {
        display: grid;
        grid-template-columns: 1fr;
    }

    .card,
    .etapa,
    .servico {
        padding: 28px;
    }

    .case {
        padding: 32px 0;
    }

    .servicos-cover {
        min-height: 420px;
        padding: 0 6% 56px;
        background-position: center center;
    }

    .cta {
        padding: 100px 6%;
    }

    .cta h2 {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
    }

    .cta p {
        font-size: 0.95rem;
    }

    .footer-container,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer-slogan {
        text-align: left;
    }
}
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 130px 7% 70px;
        text-align: left;
    }

    .hero h2 {
        font-size: 52px;
    }

    .hero-image img {
        height: 420px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 42px;
        letter-spacing: -1.5px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-image img {
        height: 340px;
    }
}
@media (max-width: 768px) {
  .cta::before {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.65) 0%,
      rgba(0,0,0,0.45) 35%,
      rgba(0,0,0,0.5) 65%,
      rgba(0,0,0,0.72) 100%
    );
  }

  .hero {
    min-height: 92vh;
    background-position: center top;
  }

  .hero-content {
    padding: 0 24px 56px;
  }

  .hero-title {
    font-size: clamp(2rem, 11.5vw, 3.5rem);
    line-height: 0.9;
  }

  .hero-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
  }

  .hero-subtitle {
    font-size: 1rem;
    max-width: 95%;
  }
}

/* ─────────────────────────────────────────
   CARROSSEL HORIZONTAL – Projetos Reais
   Ativo apenas em telas ≤ 768px
   ───────────────────────────────────────── */
@media (max-width: 768px) {

    /* Seção contém o scroll interno sem vazar */
    .cases {
        overflow: hidden;
        padding-left: 6%;
        padding-right: 0; /* padding-right movido para dentro do grid */
    }

    /* Transforma a lista vertical em trilho horizontal */
    .grid-cases {
        flex-direction: row;          /* sobrescreve flex-direction: column do desktop */
        overflow-x: auto;             /* scroll horizontal nativo */
        scroll-snap-type: x mandatory;/* snap a cada card */
        -webkit-overflow-scrolling: touch; /* scroll suave no iOS */
        scrollbar-width: none;        /* Firefox: esconde scrollbar */
        gap: 14px;
        border-top: none;             /* remove divisor horizontal do desktop */
        padding-right: 6%;            /* mostra borda do próximo card como dica visual */
        padding-bottom: 6px;          /* margem para sombra do card não ser cortada */
    }

    /* Chrome / Safari: esconde scrollbar */
    .grid-cases::-webkit-scrollbar {
        display: none;
    }

    /* Cada card ocupa ~84 % da tela – borda do próximo fica visível */
    .case {
        flex: 0 0 84%;                /* largura fixa, não encolhe */
        scroll-snap-align: start;     /* ancora no início do card ao soltar */
        display: flex;                /* substitui o grid de 2 colunas do desktop */
        flex-direction: column;
        border: 1px solid rgba(255,255,255,.08);
        border-bottom: 1px solid rgba(255,255,255,.08);
        border-radius: 14px;
        padding: 28px 22px;           /* padding uniforme nos 4 lados */
        background: rgba(255,255,255,.03);
        transition: border-color 0.3s ease;
    }

    /* Número do contador — vira bloco acima do conteúdo */
    .case::before {
        grid-row: auto;               /* cancela o span de linhas do desktop */
        grid-column: auto;
        font-size: 2.2rem;
        margin-bottom: 14px;
        padding-top: 0;
    }

    /* Remove posicionamento grid dos filhos (não são mais itens de grid) */
    .case .tag,
    .case h3,
    .case p {
        grid-column: auto;
    }

    /* Neutraliza o efeito de deslize lateral do hover (não faz sentido em touch) */
    .case:hover {
        padding-left: 22px;
        border-bottom-color: rgba(30,215,192,.3);
    }
}