/* ==========================================================================
   Neat Growth — site estático (substitui o Framer)
   ========================================================================== */

/* ---------- Fontes (self-hosted, sem dependências externas) ---------- */
@font-face {
  font-family: "Antonio";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/antonio-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Antonio";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/antonio-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: "Oswald"; font-weight: 400; font-display: swap; src: url("../assets/fonts/oswald-400.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url("../assets/fonts/oswald-500.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url("../assets/fonts/oswald-700.woff2") format("woff2"); }
@font-face { font-family: "Anton"; font-weight: 400; font-display: swap; src: url("../assets/fonts/anton-400.woff2") format("woff2"); }
@font-face { font-family: "Grave Presse"; font-weight: 400; font-display: swap; src: url("../assets/fonts/grave-presse.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --bg: #000000;
  --surface: rgba(13, 13, 13, 0.8);
  --surface-solid: #0d0d0d;
  --accent: #fa244d;
  --purple: #814ac8;
  --purple-light: #df6bff;
  --text: #ffffff;
  --muted: #cccccc;
  --line: rgba(255, 255, 255, 0.08);

  --font-display: "Anton", "Impact", sans-serif;
  --font-condensed: "Antonio", "Oswald", sans-serif;
  --font-body: "Oswald", "Arial Narrow", sans-serif;
  --font-number: "Grave Presse", "Anton", sans-serif;

  --card-gradient: linear-gradient(149deg, rgba(129, 74, 200, 0.4) 0%, rgba(13, 13, 13, 0.8) 29%, rgba(13, 13, 13, 0.8) 74%, rgba(129, 74, 200, 0.4) 100%);
  --nav-h: 94px;
  --gutter: 40px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Tipografia ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-align: center;
  text-transform: uppercase;
}
.h-sub {
  font-family: var(--font-condensed);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-align: center;
  text-transform: uppercase;
}
.h-sub .plus { color: var(--accent); }
.eyebrow {
  font-family: var(--font-condensed);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.badge {
  display: inline-block;
  background: var(--surface);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--font-condensed);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Botões ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 13px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 1px 1px -0.6px rgba(0,0,0,.15), 0 2px 2px -1.2px rgba(0,0,0,.14), 0 4px 4px -1.9px rgba(0,0,0,.14), 0 7px 7px -2.5px rgba(0,0,0,.13), 0 14px 14px -3px rgba(0,0,0,.1), 0 30px 30px -3.75px rgba(0,0,0,.05);
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--secondary { background: var(--surface); }
.btn--secondary:hover { background: #1a1a1a; }
.btn svg { width: 14px; height: 14px; flex: none; }

/* efeito Framer: o texto desliza para cima no hover */
.btn__label { position: relative; display: block; height: 1em; overflow: hidden; }
.btn__label span { display: block; transition: transform .35s cubic-bezier(.65, 0, .35, 1); }
.btn__label span + span { position: absolute; top: 100%; left: 0; }
.btn:hover .btn__label span { transform: translateY(-100%); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: 100px var(--gutter); }
.section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  margin-bottom: 60px;
}
.section__header .h-display + .h-sub { margin-top: -8px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  background: var(--bg);
  min-height: var(--nav-h);
}
.nav__logo img { width: 62px; height: 62px; }
.nav__right { display: flex; align-items: center; gap: 24px; }
.nav__links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 4px;
  font-family: var(--font-condensed);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  transition: background-color .2s ease;
}
.nav__links a:hover { background: rgba(255,255,255,.06); }
.nav__cta .btn { padding: 14px 20px; min-width: 226px; }
.nav__burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; }
.nav__burger span { display: block; width: 30px; height: 2px; background: #fff; transition: transform .3s ease, opacity .3s ease; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 80px;
  overflow: hidden;
}
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__shape { position: absolute; width: 280px; pointer-events: none; will-change: transform; }
.hero__shape--left { left: 4%; top: 18%; }
.hero__shape--right { right: 0; bottom: -10%; width: 240px; }
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  max-width: 600px;
  text-align: center;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px 2px 2px;
  border-radius: 14px;
  background: var(--surface);
}
.hero__tag-new {
  padding: 6px 8px 8px;
  border-radius: 12px;
  background: var(--accent);
}
.hero__tag .eyebrow { font-size: 22px; }
.hero__wordmark { width: 180px; }
.hero__text { display: flex; flex-direction: column; gap: 18px; }
.hero__text p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.hero__text strong { font-weight: 700; }
.hero__cta { display: flex; gap: 15px; padding: 2px; flex-wrap: wrap; justify-content: center; }

/* animação de entrada (palavra a palavra) */
.reveal-words .w { display: inline-block; opacity: 0; transform: translateY(12px); filter: blur(4px); animation: word-in .6s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes word-in { to { opacity: 1; transform: none; filter: blur(0); } }

/* ---------- Logos (marquee) ---------- */
.logos { padding: 40px 0 60px; text-align: center; }
.logos .eyebrow { margin-bottom: 30px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; gap: var(--marquee-gap, 100px); padding-right: var(--marquee-gap, 100px); animation: marquee var(--marquee-speed, 40s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logos .marquee__track { align-items: center; }
.logos__item { display: flex; align-items: center; justify-content: center; flex: none; }
.logos__item img { width: auto; max-width: none; height: var(--h); }

/* ---------- Serviços ---------- */
.services { padding: 60px var(--gutter) 100px; }
.services__cards { display: flex; flex-direction: column; gap: 60px; max-width: 1000px; margin: 0 auto; }
.service {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 80px;
  align-items: center;
  min-height: 350px;
}
.service--flip { grid-template-columns: 1fr 450px; }
.service--flip .service__graphic { order: 2; }
.service__graphic {
  position: relative;
  height: 350px;
  border-radius: 18px;
  background: var(--surface);
  padding: 50px 50px 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.service__graphic img { width: 270px; height: 270px; object-fit: contain; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.service:hover .service__graphic img { transform: translateY(-8px) scale(1.03); }
.service__content { display: flex; flex-direction: column; gap: 20px; }
.service__content h3 {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 4px;
  text-underline-offset: 2px;
}
.services__cta { display: flex; justify-content: center; margin-top: 60px; }

/* ---------- Portefólio (marquee) ---------- */
.portfolio { padding: 100px 0; }
.portfolio .section__header { padding: 0 var(--gutter); }
.portfolio .marquee { -webkit-mask-image: none; mask-image: none; }
.portfolio .marquee__track { --marquee-gap: 20px; --marquee-speed: 70s; align-items: flex-start; padding-left: 20px; }
.portfolio__item { flex: none; width: 420px; border-radius: 12px; overflow: hidden; background: var(--surface-solid); }
.portfolio__item--story { width: 422px; }
.portfolio__item img { width: 100%; height: auto; }

/* ---------- Porque a Neat (process) ---------- */
.process { padding: 80px var(--gutter) 100px; }
.process .h-sub { font-size: 30px; }
.process__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 440px);
  gap: 20px;
  justify-content: center;
}
.process__bg { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 0; }
.process__circle {
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(6px);
}
.process__circle--big {
  width: 406px; height: 406px;
  background: linear-gradient(229deg, var(--purple-light) 13%, rgba(201,110,240,0) 35%, rgba(164,92,219,0) 64%, #8e51c3 88%);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%);
  mask: radial-gradient(circle, transparent 62%, #000 64%);
}
.process__circle--small {
  width: 300px; height: 300px;
  background: linear-gradient(141deg, var(--purple-light) 13%, rgba(201,110,240,0) 35%, rgba(164,92,219,0) 64%, #8e51c3 88%);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%);
  mask: radial-gradient(circle, transparent 60%, #000 62%);
  opacity: .8;
}
.process-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 30px 26px;
  border-radius: 8px;
  background: var(--surface);
  backdrop-filter: blur(2px);
}
.process-card__top { display: flex; flex-direction: column; gap: 12px; }
.process-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 52px;
  height: 50px;
  padding: 9px 18px;
  border-radius: 10px;
  background: var(--accent);
  font-family: var(--font-number);
  font-size: 32px;
  line-height: 1;
}
.process-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.process-card p { font-size: 20px; line-height: 1.4; }

/* ---------- Let's talk ---------- */
.talk { padding: 100px var(--gutter) 60px; display: flex; justify-content: center; }
.talk__box {
  width: 100%;
  max-width: 750px;
  min-height: 290px;
  border-radius: 12px;
  background: var(--card-gradient);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 50px 30px;
  text-align: center;
}
.talk__box p { font-weight: 400; font-size: 16px; line-height: 1.5; }

/* ---------- Contactos (cards) ---------- */
.contacts { padding: 0 var(--gutter) 60px; }
.contacts__grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 350px;
  padding: 32px 30px;
  border-radius: 8px;
  background: var(--card-gradient);
  transition: transform .2s ease;
}
a.contact-card:hover { transform: translateY(-2px); }
.contact-card__title { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 16px; }
.contact-card__title svg { width: 18px; height: 18px; fill: #fff; }
.contact-card__value { font-size: 20px; font-weight: 500; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 25px var(--gutter);
  border-top: 1px solid var(--line);
}
.footer__copy { font-family: var(--font-condensed); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; color: var(--muted); }
.footer__wordmark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100px; }
.footer__wordmark img { width: 100%; }
.footer__spacer { width: 100px; }

/* ---------- Página de contacto ---------- */
.contact-page { padding: calc(var(--nav-h) + 86px) var(--gutter) 100px; }
.contact-page .section__header { gap: 20px; }
.contact-page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 70px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
}
.contact-page__cards { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 25px; }
.contact-page__cards .contact-card {
  width: 340px;
  gap: 10px;
  padding: 20px 30px;
  background: radial-gradient(50% 75% at 98.9% 100%, rgba(129, 74, 200, 0.3) 0%, rgba(13, 13, 13, 0.8) 100%);
}
.form {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form label { display: flex; flex-direction: column; gap: 10px; }
.form label > span { font-size: 20px; font-weight: 500; }
.form label.full { grid-column: 1 / -1; }
.form input, .form textarea {
  width: 100%;
  padding: 15px 10px;
  border: 0;
  border-radius: 4px;
  background: var(--surface);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  outline: 2px solid transparent;
  outline-offset: 0;
  transition: outline-color .2s ease;
}
.form input:focus, .form textarea:focus { outline-color: var(--accent); }
.form input::placeholder, .form textarea::placeholder { color: var(--muted); opacity: 1; }
.form textarea { min-height: 100px; resize: vertical; }
.form__submit {
  grid-column: 1 / -1;
  width: 100%;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--accent);
  font-family: var(--font-condensed);
  font-weight: 500;
  font-size: 20px;
  color: #fff;
  transition: filter .2s ease;
}
.form__submit:hover { filter: brightness(1.08); }
.form__submit[disabled] { opacity: .6; cursor: default; }
.form__status { grid-column: 1 / -1; font-size: 16px; font-weight: 400; text-align: center; }
.form__status:empty { display: none; }
.form__status.ok { color: #7cf5a4; }
.form__status.err { color: var(--accent); }
.form .hp { position: absolute; left: -9999px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-words .w { animation: none; opacity: 1; transform: none; filter: none; }
  .marquee__track { animation-duration: 240s; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1080px) {
  .service, .service--flip { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process__grid { grid-template-columns: repeat(2, minmax(0, 440px)); }
}

@media (max-width: 810px) {
  :root { --gutter: 20px; --nav-h: 66px; }
  body { font-size: 18px; }
  .nav { padding: 10px var(--gutter); }
  .nav__logo img { width: 46px; height: 46px; }
  .nav__burger { display: flex; }
  .nav__right {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 20px var(--gutter) 30px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav.is-open .nav__right { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links { flex-direction: column; align-items: stretch; }
  .nav__links a { font-size: 26px; padding: 12px 6px; text-align: center; }
  .nav__cta .btn { width: 100%; min-width: 0; }

  .hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 60px; }
  .hero__shape { width: 200px; }
  .hero__shape--left { left: -60px; top: 12%; }
  .hero__shape--right { right: -50px; bottom: -4%; width: 190px; }
  .hero__tag .eyebrow { font-size: 18px; }
  .hero__tag-tail { display: none; }
  .hero__wordmark { width: 150px; }
  .hero__text p { font-size: 18px; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; }

  .h-display { font-size: 32px; }
  .h-sub { font-size: 18px; }
  .process .h-sub { font-size: 22px; }
  .section__header { margin-bottom: 40px; }

  .logos .marquee__track { --marquee-gap: 60px; }
  .logos__item img { transform: scale(.85); }

  .services { padding-top: 40px; }
  .services__cards { gap: 50px; }
  .service, .service--flip { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .service--flip .service__graphic { order: 0; }
  .service__graphic { height: 260px; padding: 30px 30px 0; }
  .service__graphic img { width: 210px; height: 210px; }
  .service__content { text-align: center; align-items: center; }
  .service__content h3 { font-size: 26px; }

  .portfolio { padding: 60px 0; }
  .portfolio__item, .portfolio__item--story { width: 280px; }

  .process { padding-top: 40px; }
  .process__grid { grid-template-columns: 1fr; }
  .process__circle--big { width: 300px; height: 300px; }
  .process__circle--small { width: 220px; height: 220px; }

  .talk { padding: 60px var(--gutter) 40px; }
  .talk__box { padding: 40px 20px; min-height: 0; }
  .contact-card { width: 100%; }
  .footer { padding: 20px var(--gutter); }
  .footer__copy { font-size: 18px; }
  .footer__spacer { display: none; }
  .footer__wordmark { position: static; transform: none; width: 90px; }

  .contact-page { padding-top: calc(var(--nav-h) + 50px); }
  .contact-page h1 { font-size: 44px; }
  .contact-page__cards .contact-card { width: 100%; }
  .form { grid-template-columns: 1fr; }
}
