/* ===== Tokens ===== */
:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --surface: #111111;
  --surface-2: #161616;
  --border: #262626;
  --text: #ffffff;
  --text-dim: #a3a3a3;
  --text-faint: #6b6b6b;
  --white: #ffffff;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --container: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.15; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ===== Reveal on scroll ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  border: 1.5px solid transparent;
}
.btn--primary {
  background: var(--white);
  color: #000;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,255,255,.18);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--lg { padding: 18px 38px; font-size: 16px; }
.icon-wa { width: 18px; height: 18px; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background .3s var(--ease), padding .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  border-color: var(--border);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; flex-direction: column; gap: 2px; }
.logo__word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo__tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--white);
  transition: width .25s var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.hamburger span {
  width: 18px; height: 2px;
  background: var(--white);
  margin: 0 auto;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 180px 0 110px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero__row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  position: relative;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text-faint);
  margin: 0 0 20px;
}

.hero__title {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 300;
  letter-spacing: -0.01em;
}
.hero__title--strong {
  font-weight: 800;
  display: inline-block;
}

.hero__desc {
  margin: 26px 0 36px;
  max-width: 480px;
  font-size: 17px;
  color: var(--text-dim);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__visual { position: relative; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart__line {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: draw 1.8s var(--ease) .3s forwards;
}
.chart__spark {
  opacity: 0;
  animation: spark-in .6s var(--ease) 1.9s forwards;
}
.chart__bars rect {
  transform-origin: bottom;
  transform: scaleY(0);
  animation: grow .7s var(--ease) forwards;
}
.chart__bars rect:nth-child(1) { animation-delay: .15s; }
.chart__bars rect:nth-child(2) { animation-delay: .25s; }
.chart__bars rect:nth-child(3) { animation-delay: .35s; }
.chart__bars rect:nth-child(4) { animation-delay: .45s; }
.chart__bars rect:nth-child(5) { animation-delay: .55s; }
.chart__bars rect:nth-child(6) { animation-delay: .65s; }
.chart__bars rect:nth-child(7) { animation-delay: .75s; }
.chart__bars rect:nth-child(8) { animation-delay: .85s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spark-in { to { opacity: 1; } }
@keyframes grow { to { transform: scaleY(1); } }

/* ===== Section shared ===== */
.section__eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text-faint);
  margin: 0 0 14px;
  text-align: center;
}
.section__title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
  letter-spacing: -0.01em;
}

/* ===== Serviços ===== */
.servicos { padding: 100px 0; border-top: 1px solid var(--border); }

.servicos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: #3a3a3a;
  background: var(--surface-2);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  margin-bottom: 22px;
  color: var(--white);
  filter: drop-shadow(0 0 10px rgba(255,255,255,.15));
}
.card__icon svg { width: 30px; height: 30px; }

.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.card p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ===== Processo ===== */
.processo { padding: 100px 0; border-top: 1px solid var(--border); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 34px 24px 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
}
.step__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  color: transparent;
  -webkit-text-stroke: 1.4px #ffffff55;
  margin-bottom: 18px;
}
.step h3 { font-size: 17px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--text-dim); }

/* ===== Projetos executados ===== */
.projetos { padding: 100px 0; border-top: 1px solid var(--border); }

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: #3a3a3a;
  box-shadow: 0 16px 40px rgba(255,255,255,.06);
}

.portfolio-card__shot {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.portfolio-card__shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(1) contrast(1.05);
  transition: filter .5s var(--ease), transform .5s var(--ease);
}
.portfolio-card:hover .portfolio-card__shot img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.04);
}

.portfolio-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px 26px;
}
.portfolio-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}
.portfolio-card__desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.portfolio-card__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .25s var(--ease);
}
.portfolio-card:hover .portfolio-card__link { gap: 10px; }

/* ===== Diferenciais ===== */
.diferenciais { padding: 100px 0; border-top: 1px solid var(--border); }
.diferenciais__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.diferenciais .section__eyebrow,
.diferenciais .section__title { text-align: left; margin: 0 0 18px; }
.diferenciais__desc {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 460px;
}

.checklist { display: flex; flex-direction: column; gap: 20px; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.checklist svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: #fff;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.4));
}

/* ===== CTA final ===== */
.cta-final {
  padding: 130px 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-final::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(255,255,255,.09) 0%, transparent 70%);
  pointer-events: none;
}
.cta-final__inner { position: relative; }
.cta-final h2 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 300;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.cta-final h2 span { font-weight: 800; }
.cta-final p {
  color: var(--text-dim);
  font-size: 17px;
  margin-bottom: 40px;
}

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 36px;
}
.logo--footer .logo__word { font-size: 20px; }

.footer__nav { display: flex; flex-wrap: wrap; gap: 26px; }
.footer__nav a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color .2s var(--ease);
}
.footer__nav a:hover { color: var(--white); }

.footer__social { display: flex; gap: 20px; }
.footer__social a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer__social a:hover { color: var(--white); border-color: var(--white); }

.footer__copy {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

/* ===== Responsive ===== */
@media (max-width: 1020px) {
  .servicos__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__row { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 420px; margin: 0 auto; }
  .hero { padding-top: 150px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .hamburger { display: flex; }

  .header__row { position: relative; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: calc(100% + 14px);
    left: 24px; right: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
  }
  .nav.is-open .nav__link {
    width: 100%;
    padding: 12px 10px;
    border-radius: 8px;
  }
  .nav.is-open .nav__link:hover { background: var(--surface-2); }

  .diferenciais__row { grid-template-columns: 1fr; gap: 40px; }
  .diferenciais .section__eyebrow,
  .diferenciais .section__title { text-align: center; margin-left: auto; margin-right: auto; }
  .diferenciais__desc { margin: 0 auto; text-align: center; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .header__actions .btn--sm .btn__label { display: none; }
  .header__actions .btn--sm { padding: 11px 14px; }
  .hero { padding: 130px 0 80px; }
  .hero__title { font-size: 34px; }
  .hero__desc { font-size: 15.5px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .servicos, .processo, .diferenciais, .projetos { padding: 70px 0; }
  .servicos__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .section__title { margin-bottom: 40px; }
  .cta-final { padding: 90px 0; }
  .cta-final .btn { width: 100%; justify-content: center; }
  .footer__row { flex-direction: column; align-items: flex-start; }
  .footer__social { width: 100%; }
  .footer__social a { flex: 1; text-align: center; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 30px; }
  .btn--primary.btn--sm { padding: 10px 16px; }
}
