/* ==========================================================================
   Jeferson Costa Design — Landing page
   Estrutura:
   1. Tokens da marca (cores, fontes, medidas)
   2. Base
   3. Componentes (botões, rótulo, logo)
   4. Navegação
   5. Hero
   6. Seções e cards
   7. Portfólio
   8. Pacotes, FAQ, chamada final, rodapé
   9. Animações
   10. Responsivo
   ========================================================================== */

/* 1. Tokens da marca ------------------------------------------------------ */
:root {
  /* Cores do guia de marca */
  --tinta: #111111;          /* símbolo, textos e fundos fortes */
  --papel: #F2F0EB;          /* textos claros sobre o escuro */
  --violeta: #6B47FF;        /* a âncora: destaques, botões e links */
  --violeta-claro: #9C85FF;  /* violeta legível sobre fundo escuro */
  --lavanda: #E4DEFF;
  --pedra: #8A8780;

  /* Aplicação no escuro */
  --texto: var(--papel);
  --texto-apoio: #D8D5CE;
  --texto-suave: #A8A59E;
  --superficie: #1A1A1A;
  --superficie-2: #242424;
  --secao-alt: #161616;
  --borda: #2A2A2A;
  --borda-forte: #3A3A3A;

  /* Tipografia */
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Medidas */
  --container: 1200px;
  --nav-h: 76px;             /* atualizado pelo JS com a altura real da barra */
  --raio: 16px;

  /* Movimento */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Barra de rolagem na cor da marca */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--tinta); }
::-webkit-scrollbar-thumb {
  background: var(--violeta);
  border: 3px solid var(--tinta);       /* dá o respiro em volta do "polegar" */
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--violeta-claro); }
::-webkit-scrollbar-corner { background: var(--tinta); }
/* Firefox (que não lê as regras acima) */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--violeta) var(--tinta); scrollbar-width: thin; }
}

body {
  margin: 0;
  background: var(--tinta);
  color: var(--texto);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--texto-apoio); }
a:hover { color: #FFFFFF; }

h1, h2, h3, p { margin: 0; }

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

section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* 3. Componentes ---------------------------------------------------------- */

/* Rótulo com o quadradinho violeta (elemento-assinatura da marca) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--texto-apoio);
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--violeta);
  flex: none;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 16px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  transition: translate .25s ease, filter .25s ease, box-shadow .25s ease,
              background-color .25s ease, color .25s ease;
}
.btn:hover {
  translate: 0 -2px;
  filter: brightness(1.1);
  box-shadow: 0 12px 24px -12px rgba(107, 71, 255, .6);
}
.btn svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn--primary { background: var(--violeta); color: #FFFFFF; }
.btn--primary:hover { color: #FFFFFF; }
.btn--outline { border: 1px solid var(--borda-forte); color: var(--texto); }
.btn--outline-dark { border: 1px solid var(--tinta); color: var(--tinta); }
.btn--outline-dark:hover { color: var(--tinta); }
.btn--sm { padding: 12px 20px; font-size: 15px; border-radius: 10px; }
.btn--lg { padding: 18px 32px; font-size: 18px; }
.btn--block { width: 100%; padding: 14px 20px; font-size: 16px; border-radius: 10px; margin-top: auto; }

/* Link com seta */
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
}
.arrow { display: inline-block; transition: translate .25s ease; }
a:hover .arrow { translate: 4px 0; }

/* Logo (símbolo + nome) */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--tinta);
}
.logo:hover { color: inherit; }
.logo__mark { width: 24px; height: 32px; flex: none; }
.logo__j { fill: currentColor; transition: fill .25s ease; }
.logo__anchor { fill: var(--violeta); }
.logo__name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: currentColor;
}
.logo__name span { font-weight: 400; color: #6B6862; transition: color .25s ease; }

/* 4. Navegação ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--tinta);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(17, 17, 17, .08);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease,
              transform .35s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}
/* Recolhida ao rolar para baixo (classe colocada pelo JS) */
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
}
.nav__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: center;
  font-size: 15px;
}
.nav__link {
  color: #2A2A2A;
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .3s ease, color .25s ease;
}
.nav__link:hover,
.nav__link.is-active { color: var(--tinta); background-size: 100% 1px; }
.btn--nav { background: var(--tinta); color: var(--papel); }
.btn--nav:hover { color: var(--papel); }

/* Barra sobre as seções escuras (classe colocada pelo JS) */
.nav.is-dark {
  color: var(--papel);
  background: rgba(17, 17, 17, .72);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.nav.is-dark .logo { color: var(--papel); }
.nav.is-dark .logo__name span { color: var(--texto-suave); }
.nav.is-dark .nav__link { color: var(--texto-apoio); }
.nav.is-dark .nav__link:hover,
.nav.is-dark .nav__link.is-active { color: #FFFFFF; }
.nav.is-dark .btn--nav { background: var(--violeta); color: #FFFFFF; }

/* 5. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 780px;
  margin-top: calc(-1 * var(--nav-h));  /* a foto começa por trás da barra */
  background: #FFFFFF;
  color: var(--tinta);
}
/* A foto para de crescer em 1920px; o resto fica branco */
.hero__media {
  position: absolute;
  inset: 0;
  max-width: 1920px;
  margin: 0 auto;
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;            /* a foto inteira, sempre encostada à direita e embaixo */
  object-position: right bottom;
  animation: heroIn 1.4s var(--ease) both;
}
.hero__content {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 88px) 24px 120px;
}
.hero__copy {
  max-width: min(580px, 48vw);    /* o texto nunca encosta no rosto */
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero .eyebrow { color: #3A3A3A; }
.hero__title {
  font-weight: 700;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.hl { color: var(--violeta); }
.hero__lead { font-size: 19px; color: #4A4843; max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 15px;
  color: #2A2A2A;
}
.checks li { display: flex; gap: 8px; align-items: center; }
.checks svg {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: var(--violeta); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* 6. Seções e cards ------------------------------------------------------- */
.section { padding: 96px 0; }
.section--alt {
  background: var(--secao-alt);
  border-top: 1px solid var(--superficie-2);
  border-bottom: 1px solid var(--superficie-2);
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin-bottom: 48px;
}
.section__head .section__head { margin-bottom: 0; }
.section__head--row {
  max-width: none;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
}

.h2 {
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -.03em;
}
.section__lead { font-size: 18px; color: var(--texto-suave); }

.grid { display: flex; flex-wrap: wrap; gap: 20px; }
.grid--stretch { align-items: stretch; }

.card {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
}
.card p { color: var(--texto-suave); }
.card__num { font-family: var(--mono); font-size: 14px; color: var(--violeta-claro); }
.card__title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.card__title--lg { font-size: 24px; }

.card--service { flex-basis: 320px; padding: 32px; gap: 16px; }
.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--superficie-2);
  display: flex; align-items: center; justify-content: center;
}
.card__icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--violeta-claro); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.list {
  margin: 0;
  padding-left: 20px;
  color: var(--texto-apoio);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Passos */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.step {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 2px solid var(--borda);
}
.step--active { border-top-color: var(--violeta); }
.step__num {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  color: var(--violeta-claro);
}
.step__title { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.step p { color: var(--texto-suave); }

/* 7. Portfólio ------------------------------------------------------------ */
.shots { display: flex; flex-wrap: wrap; gap: 20px; }
.shot {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.shot__frame {
  border-radius: var(--raio);
  border: 1px solid var(--borda);
  background: var(--superficie);
  overflow: hidden;
  transition: border-color .35s ease, box-shadow .35s ease;
}
.browser-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--borda);
}
.browser-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--borda-forte);
}
.browser-bar span {
  margin-left: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--superficie-2);
  border-radius: 6px;
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--texto-suave);
}
.shot__frame img {
  width: 100%;
  aspect-ratio: 1000 / 515;
  object-fit: cover;
  object-position: top center;
  transition: transform .7s var(--ease);
}
.shot:hover .shot__frame {
  border-color: rgba(107, 71, 255, .6);
  box-shadow: 0 22px 44px -20px rgba(107, 71, 255, .5);
}
.shot:hover .shot__frame img { transform: scale(1.04); }

.shot__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.shot__meta > div { display: flex; flex-direction: column; gap: 2px; }
.shot__title { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.shot__tag { font-size: 14px; color: var(--texto-suave); }

/* 8. Pacotes ------------------------------------------------------------- */
.card--plan { padding: 32px; gap: 20px; border-radius: 18px; }
.card--featured { background: #1C1A24; border: 2px solid var(--violeta); }
.card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.badge {
  background: var(--violeta);
  color: #FFFFFF;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Hover dos cards (problemas, serviços e pacotes) */
.card { transition: translate .35s ease, border-color .35s ease, box-shadow .35s ease; }
.card:hover {
  translate: 0 -6px;
  border-color: rgba(107, 71, 255, .6);
  box-shadow: 0 22px 44px -20px rgba(107, 71, 255, .5);
}

/* FAQ */
.faq { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.faq__item {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--superficie-2);
}
.faq__item h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.faq__item p { color: var(--texto-suave); }

/* Chamada final */
.section--cta { padding-top: 0; }
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px);
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: 24px;
}
.cta__mark { width: 36px; height: 48px; color: var(--papel); }
.cta__title { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; max-width: 820px; }
.cta__line { display: block; text-wrap: balance; }
.cta__lead { max-width: 600px; }

/* Rodapé */
.footer { border-top: 1px solid var(--superficie-2); }
.footer__inner {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--texto-suave);
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__mark { width: 15px; height: 20px; color: var(--papel); }
.footer__link { min-height: 44px; display: inline-flex; align-items: center; }

/* 9. Animações ------------------------------------------------------------ */

/* Entrada da foto do hero */
@keyframes heroIn {
  from { opacity: 0; scale: 1.04; }
  to   { opacity: 1; scale: 1; }
}

/* Entrada e saída com a rolagem: só vale quando o JS liga a classe .js-reveal */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .8s var(--ease) var(--d, 0ms),
    transform .8s var(--ease) var(--d, 0ms),
    translate .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* Quem prefere menos movimento não vê animação */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media img { animation: none; }
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .card:hover { translate: none; }
  .shot:hover .shot__frame img { transform: none; }
}

/* 10. Responsivo ---------------------------------------------------------- */
@media (max-width: 767px) {
  .hero { min-height: 0; }
  /* No celular a foto vertical ocupa a largura toda, no topo, e o texto começa onde ela clareia */
  .hero__media img { bottom: auto; height: auto; object-fit: initial; }
  .hero__content { padding-top: 112vw; padding-bottom: 72px; }
  .hero__copy { max-width: none; }
  .section { padding: 72px 0; }
  .section--cta { padding-top: 0; }
  .section__head { margin-bottom: 36px; }
}

/* No celular o menu mostra só a logo e o botão */
@media (max-width: 640px) {
  .nav__inner { padding: 14px 16px; }
  .nav__link { display: none; }
  .logo__name { font-size: 17px; }
  .btn--nav { padding: 10px 14px; font-size: 14px; }
  .shot, .faq__item { flex-basis: 100%; }
}
@media (max-width: 400px) {
  .logo__name span { display: none; }  /* em telas bem estreitas fica só "Jeferson Costa" */
}
