/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

:root {
  --black: #0a0a0a;
  --black-soft: #111111;
  --white: #f5f5f5;
  --gray: #8a8a8a;
  --gray-line: #2a2a2a;
  --max-width: 1200px;
  --gap: 24px;
  --ff: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--ff);
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 24px;
  max-width: 720px;
}

.section__intro,
.section__text {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--gray);
  max-width: 640px;
  margin-bottom: 40px;
}

.section--dark .section__text,
.section--dark .section__intro { color: #bdbdbd; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn--primary {
  background: var(--black);
  color: var(--white);
}
.btn--primary:hover { transform: translateY(-2px); background: #000; }

.btn--secondary {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}
.btn--secondary:hover { transform: translateY(-2px); background: var(--black); color: var(--white); }

.btn--cta {
  background: var(--white);
  color: var(--black);
  padding: 10px 22px;
  font-size: 14px;
}
.btn--cta:hover { transform: translateY(-1px); }

.link-cta {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.link-cta:hover { opacity: 0.6; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.0);
  backdrop-filter: blur(0px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
  padding: 28px 0;
}
.header.is-scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  padding: 16px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--white);
}

.nav__menu {
  display: flex;
  gap: 32px;
}
.nav__menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding-bottom: 4px;
}
.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 0.25s ease;
}
.nav__menu a:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   Fixed / parallax background sections
   ========================================================================== */
.fixed-bg {
  position: relative;
  color: var(--white);
  background-color: var(--black);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.fixed-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.65));
}

.fixed-bg--hero {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.06), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05), transparent 45%),
    repeating-linear-gradient(45deg, #0f0f0f 0px, #0f0f0f 2px, #0a0a0a 2px, #0a0a0a 60px);
}

.fixed-bg--sobre {
  background-image:
    radial-gradient(circle at 75% 25%, rgba(255,255,255,0.06), transparent 50%),
    repeating-linear-gradient(-45deg, #101010 0px, #101010 2px, #0a0a0a 2px, #0a0a0a 60px);
}

.fixed-bg > .container {
  position: relative;
  z-index: 1;
}

.sobre__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 32px;
}

.sobre__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6) contrast(1.05);
  border-radius: 8px;
}

@media (max-width: 768px) {
  .fixed-bg { background-attachment: scroll; }
  .sobre__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sobre__image {
    order: -1; /* imagem aparece antes do texto no mobile */
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
}

.hero__content { max-width: 1200px; }

.kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(32px, 5.5vw, 68px);
  margin-bottom: 28px;
}

.hero__subtitle {
  font-size: clamp(17px, 2vw, 21px);
  color: #d4d4d4;
  max-width: 640px;
  margin-bottom: 20px;
}

.hero__proof {
  font-size: 15px;
  color: #a0a0a0;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero .btn--secondary { color: var(--white); border-color: var(--white); }
.hero .btn--secondary:hover { background: var(--white); color: var(--black); }

.microcopy {
  font-size: 13px;
  color: var(--gray);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: 120px 0;
}
.section--dark {
  background: var(--black);
  color: var(--white);
}
.section--dark .eyebrow { color: #7a7a7a; }

/* Posicionamento */
.posicionamento__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 48px;
}
.posicionamento__item h3 {
  font-size: 20px;
  margin-bottom: 16px;
}
.posicionamento__item p {
  color: var(--gray);
  font-size: 16px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 48px 0 56px;
}
.stats--inline { margin: 48px 0 0; }
.stats__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--gray-line);
  padding-top: 24px;
}
.stats__number {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.stats__label {
  font-size: 14px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Portfolio */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.portfolio__card {
  border-top: 1px solid var(--gray-line);
  padding-top: 24px;
}
.portfolio__thumb {
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 20px;
}
.portfolio__thumb svg {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}
.portfolio__card:hover .portfolio__thumb svg {
  transform: scale(1.04);
}
.portfolio__body h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.portfolio__body p {
  color: var(--gray);
  margin-bottom: 16px;
}
.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tags li {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--gray-line);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--gray);
}

/* Services */
.services__list {
  border-top: 1px solid var(--gray-line);
}
.services__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-line);
  transition: padding-left 0.3s ease;
}
.services__item:hover { padding-left: 12px; }
.services__index {
  font-size: 16px;
  font-weight: 700;
  color: #6a6a6a;
}
.services__item h3 {
  font-size: 24px;
  margin-bottom: 12px;
}
.services__item p {
  color: #bdbdbd;
  max-width: 640px;
}

/* Tools */
.tools__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.tools__col h3 {
  font-size: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gray-line);
  padding-bottom: 12px;
}
.tools__col li {
  font-size: 15px;
  color: var(--gray);
  padding: 8px 0;
}

/* Ecosystem */
.ecosystem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.ecosystem__card {
  border: 1px solid var(--gray-line);
  border-radius: 8px;
  padding: 32px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.ecosystem__card:hover {
  transform: translateY(-4px);
  border-color: #4a4a4a;
}
.ecosystem__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ecosystem__head h3 { font-size: 20px; }
.ecosystem__role {
  color: var(--gray);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
}
.badge--ativa { background: var(--white); color: var(--black); }
.badge--construcao { background: transparent; border: 1px solid #4a4a4a; color: var(--gray); }
.ecosystem__card p:last-child { color: #bdbdbd; font-size: 15px; }

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 22px;
  font-weight: 700;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-line);
  transition: opacity 0.2s ease, padding-left 0.3s ease;
}
.contact__link:hover { padding-left: 8px; opacity: 0.7; }

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form__field label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
}
.form__field input,
.form__field textarea {
  font: inherit;
  padding: 12px 0;
  border: none;
  border-bottom: 1.5px solid var(--gray-line);
  background: transparent;
  color: var(--black);
  resize: vertical;
}
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--black);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 40px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.logo--footer { font-size: 32px; }
.footer__menu {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__menu a:hover { opacity: 0.6; }
.footer__social {
  display: flex;
  gap: 24px;
}
.footer__social a:hover { opacity: 0.6; }
.footer__copy {
  font-size: 13px;
  color: #7a7a7a;
  margin-top: 12px;
}

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1a1a1a;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: transform 0.25s ease, background 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); background: #000; }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ==========================================================================
   Scroll-reveal
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .posicionamento__grid,
  .tools__grid,
  .ecosystem__grid { grid-template-columns: 1fr; gap: 40px; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .stats { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--black);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu a { font-size: 24px; }
  .nav__toggle { display: flex; z-index: 101; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .btn--cta { display: none; }

  .section { padding: 80px 0; }
  .services__item { grid-template-columns: 1fr; gap: 8px; }
}
