/* ============================================================
   ADAPTTA — Landing Page
   Direção: dark-first, tipografia fina (Geist), diagonais,
   geometria flat. Sem sombras. Sem bordas. Sem glow.
   ============================================================ */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-onblack: #8f8f8f;
  --gray-onwhite: #6d6d6d;
  --blue: #008eff;

  --font-sans: "Geist", sans-serif;
  --font-mono: "Geist Mono", monospace;

  --pad-x: clamp(1.25rem, 5vw, 6.5rem);
  --nav-h: 84px;
  --diag: 5vw; /* altura do corte diagonal entre seções */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--black);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; cursor: pointer; }
ul, ol { list-style: none; }

/* sem cursor de texto (I-beam) sobre os textos da página */
h1, h2, h3, h4, p, span, li, em, i, strong { cursor: default; }
a *, button * { cursor: inherit; }

::selection { background: var(--blue); color: var(--white); }

/* ---------- utilitários ---------- */

.section-inner { padding: 0 var(--pad-x); }

/* badge de seção: quadrado com ícone + rótulo azul, tudo flat */
.badge {
  display: inline-flex;
  align-items: stretch;
  margin-bottom: 2rem;
}
.badge__icon {
  width: 30px;
  height: 30px;
  flex: none;
  background: var(--white);
  color: var(--black);
  display: grid;
  place-items: center;
}
.badge__icon svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: square;
}
.badge__label {
  display: flex;
  align-items: center;
  background: var(--blue);
  color: var(--white);
  padding: 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.manifesto .badge__icon,
.method .badge__icon {
  background: var(--black);
  color: var(--white);
}

.section-title {
  font-weight: 200;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 40rem;
}

.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.btn--light {
  background: var(--white);
  color: var(--black);
  padding: 0.95rem 1.9rem;
}
.btn--light:hover { background: var(--blue); color: var(--white); }

.btn--dark {
  background: var(--black);
  color: var(--white);
  padding: 0.95rem 1.9rem;
}
.btn--dark:hover { background: var(--blue); color: var(--white); }

.btn--lg { padding: 1.2rem 2.4rem; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 var(--pad-x);
  background: var(--black);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.nav__logo {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}
.nav__wordmark {
  font-weight: 200;
  font-size: 1.35rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 3rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-onblack);
}
.nav__links a { transition: color 0.2s ease; }
.nav__links a:hover { color: var(--white); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--white);
  margin: 0 auto;
  transition: transform 0.3s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(4.75px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4.75px) rotate(-45deg); }

/* ---------- menu mobile ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 2rem) var(--pad-x) 3rem;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.mobile-menu.is-open { transform: translateY(0); }

.mobile-menu__links { display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu__links a {
  font-weight: 200;
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  transition: color 0.2s ease;
}
.mobile-menu__links a:hover { color: var(--blue); }
.mobile-menu__links em {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--blue);
}

.mobile-menu__footer {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gray-onblack);
}
.mobile-menu__footer a:hover { color: var(--white); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 44rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding: calc(var(--nav-h) + 2rem) var(--pad-x) 6rem;
  overflow: hidden;
}

/* palavra vertical em outline, ancorada na seção do manifesto */
.watermark {
  position: absolute;
  top: 50%;
  right: calc(var(--pad-x) * 0.3);
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-weight: 500;
  font-size: clamp(4.5rem, 9.5vw, 8.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(10, 10, 10, 0.12);
  user-select: none;
  pointer-events: none;
}

/* wireframe animado — um "site" sendo desenhado em perspectiva
   isométrica, como uma prancheta deitada na diagonal */
.hero__browser {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  width: min(100%, 780px);
  pointer-events: none;
}
.hero__browser svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

#wireSegs path {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* volume 3D: cópia recuada e linhas de profundidade.
   Cinza sólido no mesmo tom que a versão translúcida tinha
   sobre o preto — sem transparência */
#wireDepth path, #wireDepth line {
  fill: none;
  stroke: #232323;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#wireSegs .trail-main { stroke: rgba(255, 255, 255, 0.3); }
#wireSegs .trail-glow {
  stroke: var(--blue);
  stroke-width: 2.1;
  filter: drop-shadow(0 0 4px rgba(0, 142, 255, 0.85))
          drop-shadow(0 0 10px rgba(0, 142, 255, 0.35));
}

.wire-tip {
  fill: var(--blue);
  filter: drop-shadow(0 0 6px rgba(0, 142, 255, 0.95))
          drop-shadow(0 0 16px rgba(0, 142, 255, 0.5));
}

.spark {
  fill: var(--blue);
  filter: drop-shadow(0 0 4px rgba(0, 142, 255, 0.9));
  transform-box: fill-box;
  transform-origin: center;
  animation: spark-fly 0.7s ease-out forwards;
}

/* sparks de hover (botões e menu) */
.dom-spark {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--blue);
  filter: drop-shadow(0 0 4px rgba(0, 142, 255, 0.9));
  pointer-events: none;
  z-index: 200;
  animation: spark-fly 0.65s ease-out forwards;
}

@keyframes spark-fly {
  from { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  to   { opacity: 0; transform: translate(var(--dx, 20px), var(--dy, -20px)) rotate(120deg) scale(0.3); }
}

.hero__content {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  max-width: 46rem;
}

.hero__title {
  font-weight: 200;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  display: flex;
  flex-direction: column;
}
.hero__title em {
  font-style: normal;
  font-weight: 500;
  color: var(--blue);
}

.hero__sub {
  max-width: 33rem;
  margin-top: 2.25rem;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--gray-onblack);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
  margin-top: 3rem;
}

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee {
  background: var(--black);
  color: var(--gray-onblack);
  overflow: hidden;
  padding: 0 0 calc(var(--diag) + 1rem);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__track i { font-style: normal; color: var(--blue); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SEÇÕES DIAGONAIS
   As transições entre blocos são cortes diagonais flat —
   nada de bordas ou sombras, só geometria.
   ============================================================ */

.diag {
  position: relative;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
}
/* a cunha diagonal é um gradiente de canto a canto sobre o fim da
   seção anterior — sem clip-path e com 1px de sobreposição, para
   não deixar costuras de sub-pixel */
.diag::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 1px);
  left: 0;
  width: 100%;
  height: calc(var(--diag) + 1px);
  pointer-events: none;
}
.diag--left::before {
  background: linear-gradient(to bottom right,
    rgba(255, 255, 255, 0) 49.6%, var(--white) 50.4%);
}
.diag--right::before {
  background: linear-gradient(to top right,
    var(--black) 49.6%, rgba(10, 10, 10, 0) 50.4%);
}

.diag--dark { background: var(--black); color: var(--white); }

/* ============================================================
   MANIFESTO (branco)
   ============================================================ */

.manifesto {
  background: var(--white);
  color: var(--black);
}

.manifesto__title {
  font-weight: 200;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 54rem;
}
.manifesto__title em {
  font-style: normal;
  font-weight: 500;
  color: var(--blue);
}

.manifesto__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 4.5rem);
  margin-top: 3.5rem;
  max-width: 62rem;
}
.manifesto__grid p { color: var(--gray-onwhite); font-size: 1.02rem; }

.manifesto__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 4rem;
}
.manifesto__tags li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.manifesto__tags i {
  font-style: normal;
  color: var(--blue);
}

/* ============================================================
   SOLUÇÕES (preto) — lista editorial
   ============================================================ */

.sol-list { display: flex; flex-direction: column; }

.sol-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: baseline;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.75rem, 3vw, 2.6rem) 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.sol-row:hover { transform: translateX(12px); }

.sol-row__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--blue);
}

.sol-row h3 {
  font-weight: 250;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  transition: color 0.25s ease;
}
.sol-row:hover h3 { color: var(--blue); }

.sol-row p {
  font-size: 0.95rem;
  color: var(--gray-onblack);
  max-width: 32rem;
}

/* ============================================================
   MÉTODO (branco)
   ============================================================ */

.method {
  background: var(--white);
  color: var(--black);
}

.method__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(2.5rem, 4vw, 3.5rem);
}

.step__num {
  display: block;
  font-weight: 600;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.25px #c4c4c4;
  margin-bottom: 1.75rem;
  transition: -webkit-text-stroke-color 0.3s ease;
}
.step:hover .step__num { -webkit-text-stroke-color: var(--blue); }

.step h3 {
  font-weight: 450;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
}
.step p { font-size: 0.93rem; color: var(--gray-onwhite); }

/* ============================================================
   CONTATO (preto)
   ============================================================ */

.contact {
  overflow: hidden;
  padding-bottom: clamp(6rem, 12vw, 10rem);
}

.contact__giant {
  position: absolute;
  bottom: -0.18em;
  left: 0;
  width: 100%;
  font-weight: 500;
  font-size: clamp(3.25rem, 8.5vw, 7.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  user-select: none;
  pointer-events: none;
}

.contact .section-inner { position: relative; z-index: 2; }

.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
}

.contact__title {
  font-weight: 200;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.contact__title em {
  font-style: normal;
  font-weight: 500;
  color: var(--blue);
}

.contact__sub {
  margin-top: 1.5rem;
  color: var(--gray-onblack);
  font-size: 1.05rem;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  justify-self: end;
}

.channel { display: flex; flex-direction: column; gap: 0.7rem; }
.channel__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
}
.channel__value {
  font-weight: 250;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  letter-spacing: -0.015em;
  transition: color 0.25s ease;
  word-break: break-word;
}
.channel:hover .channel__value { color: var(--blue); }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--black);
  color: var(--white);
  padding: 2rem var(--pad-x) 2.5rem;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 200;
  font-size: 1.1rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.footer__logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-onblack);
}
.footer__nav a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gray-onblack);
}
.footer__bottom a:hover { color: var(--white); }

/* ============================================================
   ANIMAÇÕES DE ENTRADA
   ============================================================ */

.reveal-load {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d, 0) * 120ms);
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-load, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .marquee__track { animation: none; }
  .wire-tip, .spark, .dom-spark { display: none; }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 1100px) {
  .hero__browser { opacity: 0.85; }
}

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: calc(var(--nav-h) + 3rem);
  }
  .watermark { display: none; }

  /* ordem no mobile: badge → título → texto → website → botão */
  .hero__content { display: contents; }
  .hero__browser {
    position: static;
    order: 4;
    transform: none;
    opacity: 1;
    width: min(88vw, 440px);
    margin: 2.5rem auto 0;
  }
  .hero__actions { order: 5; margin-top: 3rem; width: 100%; }
  .hero__index { display: none; }

  .sol-row {
    grid-template-columns: 3rem 1fr;
    row-gap: 0.75rem;
  }
  .sol-row p { grid-column: 2; }
  .sol-row:hover { transform: none; }

  .contact__layout { grid-template-columns: 1fr; }
  .contact__channels { justify-self: start; }
}

@media (max-width: 520px) {
  :root { --diag: 8vw; }
  .hero__actions { gap: 1.5rem; }
  .btn--lg { width: 100%; justify-content: center; }
  .manifesto__tags { gap: 1.25rem; flex-direction: column; }
  .contact__giant { font-size: 8.2vw; }
}
