@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #111015;
  --surface: #17161c;
  --line: rgb(242 240 238 / 0.09);
  --text: #f2f0ee;
  --muted: #a29fa9;

  /* Identidade: laranja = primária, roxo = secundária */
  --orange: #f48d1e;
  --purple: #620a8a;
  --purple-lt: #b77ddc;
  --purple-mark: #8a3cba;

  --radius: 14px;
  --gutter: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  color-scheme: dark;
}

*,
*::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-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--orange);
  color: var(--bg);
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.muted {
  color: var(--muted);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 500 0.95rem/1 var(--font-sans);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}
.btn .icon {
  transition: transform 0.35s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: #1a1206;
  font-weight: 600;
}
.btn--primary:hover {
  background: #ff9d33;
}
.btn--primary:hover .icon {
  transform: translateX(4px);
}

.btn--ghost {
  background: rgb(242 240 238 / 0.03);
  border-color: rgb(242 240 238 / 0.16);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: rgb(242 240 238 / 0.4);
  background: rgb(242 240 238 / 0.07);
}

.btn--sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.875rem;
  gap: 8px;
}

/* Topo */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(17 16 21 / 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand img {
  height: 38px;
  width: auto;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  min-height: min(calc(100dvh - 72px), 860px);
  padding-block: 40px 72px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 40%;
  z-index: -1;
  background:
    radial-gradient(40% 45% at 30% 60%, rgb(244 141 30 / 0.07), transparent 70%),
    radial-gradient(40% 45% at 75% 35%, rgb(98 10 138 / 0.22), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 28px;
}

.hero__title {
  font-weight: 600;
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hl {
  color: var(--purple-lt);
}

.hero__sub {
  margin-top: 24px;
  max-width: 34ch;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--muted);
  line-height: 1.55;
}
.hero__copy .btn {
  margin-top: 40px;
}

/* Marca { } */
.mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1.05;
  width: 100%;
  max-width: 420px;
  justify-self: end;
  user-select: none;
}
.mark__brace {
  font-weight: 300;
  font-size: clamp(9rem, 22vw, 19rem);
  line-height: 1;
  letter-spacing: 0;
}
.mark__brace--l {
  color: var(--orange);
}
.mark__brace--r {
  color: var(--purple-mark);
}
.mark__caret {
  width: clamp(8px, 1.1vw, 14px);
  height: clamp(44px, 6vw, 84px);
  margin-inline: clamp(18px, 3vw, 40px);
  background: var(--text);
  border-radius: 2px;
}

.px {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
}
.px--o {
  background: var(--orange);
}
.px--p {
  background: var(--purple-mark);
}

/* Etapas */
.steps {
  padding-block: clamp(24px, 5vw, 64px) clamp(72px, 12vw, 160px);
}
.steps__list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 24px;
  padding-block: clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}
.step__word {
  font-weight: 600;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.step__word--o {
  color: var(--orange);
}
.step__word--p {
  color: var(--purple-lt);
}
.step__text {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--muted);
  max-width: 30ch;
}

/* Modos */
.modes {
  padding-bottom: clamp(72px, 12vw, 160px);
}
.section-title {
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.modes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.mode {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: clamp(28px, 3.2vw, 44px);
  border-radius: var(--radius);
  border: 1px solid;
  overflow: hidden;
}
.mode::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -72px;
  font-weight: 300;
  font-size: 15rem;
  line-height: 1;
  opacity: 0.1;
  pointer-events: none;
}
.mode--build {
  border-color: rgb(244 141 30 / 0.55);
  background: linear-gradient(160deg, rgb(244 141 30 / 0.1), rgb(244 141 30 / 0.02) 60%);
}
.mode--build::after {
  content: "{";
  color: var(--orange);
}
.mode--inside {
  border-color: rgb(183 125 220 / 0.55);
  background: linear-gradient(160deg, rgb(98 10 138 / 0.32), rgb(98 10 138 / 0.08) 60%);
}
.mode--inside::after {
  content: "}";
  color: var(--purple-lt);
}
.mode__tag {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.mode--build .mode__tag {
  color: var(--orange);
}
.mode--inside .mode__tag {
  color: var(--purple-lt);
}
.mode__name {
  margin-top: auto;
  padding-top: 64px;
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.mode__text {
  margin-top: 12px;
  max-width: 34ch;
  color: rgb(242 240 238 / 0.72);
  font-size: 1.05rem;
}

/* Clientes */
.clients {
  padding-bottom: clamp(72px, 12vw, 160px);
}
.clients__title {
  font-weight: 400;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 36px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.marquee__track li {
  flex-shrink: 0;
}
.marquee__track img {
  width: auto;
  height: auto;
  max-height: 52px;
  max-width: 150px;
  opacity: 0.72;
}

/* Contato */
.contact,
.footer {
  position: relative;
}
.contact::before,
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
}
.contact {
  padding-block: clamp(72px, 10vw, 140px);
}
.contact__title {
  font-weight: 600;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.contact__channels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
}
.channel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.channel__main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 4px;
  transition: background-size 0.45s var(--ease);
}
.channel__main .icon {
  color: var(--orange);
  transition: transform 0.35s var(--ease);
}
.channel__main:hover {
  background-size: 100% 2px;
}
.channel__main:hover .icon {
  transform: translate(3px, -3px);
}
.btn.is-copied {
  border-color: rgb(244 141 30 / 0.6);
  color: var(--orange);
}

/* Rodapé */
.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 32px;
  padding-block: 40px 48px;
  font-size: 0.875rem;
  color: var(--muted);
}
.footer__logo {
  height: 30px;
  width: auto;
  opacity: 0.85;
}
.footer__address {
  font-style: normal;
  justify-self: center;
}
.footer__address a {
  text-decoration: none;
}
.footer__address a:hover {
  color: var(--text);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer__social {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__social a {
  display: inline-block;
  padding-block: 2px;
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.45s var(--ease);
}
.footer__social a:hover {
  background-size: 100% 1px;
}
.footer__legal {
  text-align: right;
}

/* Motion: só com JS ativo e sem preferência por movimento reduzido */
@media (prefers-reduced-motion: no-preference) {
  .js [data-intro] {
    opacity: 0;
    transform: translateY(18px);
    animation: rise 0.9s var(--ease) forwards;
    animation-delay: calc(var(--i) * 90ms + 100ms);
  }

  /* O H1 é o LCP: com opacity 0 a métrica só conta depois do delay, então só o transform anima */
  .js .hero__title[data-intro] {
    opacity: 1;
  }

  .js .mark__brace--l {
    animation: open-l 1.2s var(--ease) 0.25s both;
  }
  .js .mark__brace--r {
    animation: open-r 1.2s var(--ease) 0.25s both;
  }
  .mark__caret {
    animation: blink 1.1s steps(1) 1.4s infinite;
  }
  .js .mark__caret {
    opacity: 0;
  }

  .px {
    animation: drift 5.5s var(--ease) var(--d) infinite both;
  }
  .px--o {
    --dx: -18px;
    --dy: 22px;
  }
  .px--p {
    --dx: 18px;
    --dy: -22px;
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.9s var(--ease),
      transform 0.9s var(--ease);
  }
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
  .js .step:nth-child(2) {
    transition-delay: 80ms;
  }
  .js .step:nth-child(3) {
    transition-delay: 160ms;
  }
  .js .mode--inside {
    transition-delay: 100ms;
  }

  .marquee__track {
    animation: marquee 42s linear infinite;
  }
  .marquee:hover .marquee__track {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee__track {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    padding-inline: var(--gutter);
  }
  .marquee__track [aria-hidden="true"] {
    display: none;
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes open-l {
  from {
    opacity: 0;
    transform: translateX(45%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes open-r {
  from {
    opacity: 0;
    transform: translateX(-45%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes drift {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy));
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Tablet */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 8px;
    padding-block: 32px 56px;
  }
  .hero__title {
    font-size: clamp(2.5rem, 7vw, 3.75rem);
  }
  .hero::before {
    inset: 45% 0 0 0;
  }
  .mark {
    justify-self: center;
    max-width: 360px;
    aspect-ratio: 1 / 0.8;
  }
  .footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }
  .footer__address {
    justify-self: start;
  }
  .footer__legal {
    text-align: left;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .topbar__inner {
    height: 64px;
  }
  .brand img {
    height: 32px;
  }
  .topbar .btn {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.85rem;
  }
  .hero {
    min-height: auto;
    align-content: start;
    padding-block: 48px 16px;
  }
  .eyebrow {
    margin-bottom: 20px;
  }
  .hero__copy .btn {
    margin-top: 28px;
  }
  .mark {
    max-width: 260px;
  }
  .mark__brace {
    font-size: 8.5rem;
  }
  .step {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .modes__grid {
    grid-template-columns: 1fr;
  }
  .mode {
    min-height: 240px;
  }
  .mode__name {
    padding-top: 40px;
  }
  .channel__main {
    font-size: 1.3rem;
  }
}
