:root {
  --black: #080808;
  --concrete: #141414;
  --concrete-2: #1a1a1a;
  --white: #f4f2ee;
  --gray: #888888;
  --gray-light: #bbbab6;
  --coral: #e8440a;
  --coral-ink: #c2380a;
  --border: rgba(244, 242, 238, 0.1);
  --border-strong: rgba(244, 242, 238, 0.2);
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  --f-display: "Anton", sans-serif;
  --f-body: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mark: "Oxanium", sans-serif;

  --maxw: 1536px;
  --pad-x: 24px;
  --transition: 0.25s ease;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--coral) transparent;
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: var(--coral);
  border-radius: 100px;
}
body {
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.6;
  background-color: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
ul {
  list-style: none;
}
h1,
h2,
h3 {
  font-weight: inherit;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: 80px;
  position: relative;
}
.section + .section {
  border-top: 1px solid var(--border);
}
.surface-concrete {
  background-color: var(--concrete);
}
.surface-coral {
  background-color: var(--coral);
  color: var(--white);
}
.surface-invert {
  background-color: var(--white);
  color: var(--black);
}
.surface-invert .eyebrow {
  color: #6a6a66;
}
.surface-invert .section-title {
  color: var(--black);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mark);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--coral);
}
.surface-coral .eyebrow {
  color: rgba(244, 242, 238, 0.7);
}
.surface-coral .eyebrow::before {
  background: var(--white);
}

.section-title {
  font-family: var(--f-body);
  font-size: clamp(30px, 5.2vw, 48px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--white);
  max-width: 22ch;
}
.section-title .accent {
  color: var(--coral);
}
.surface-coral .section-title {
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 14px;
  padding: 15px 30px;
  border-radius: 2px;
  min-height: 48px;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform 0.15s ease-out;
  white-space: nowrap;
}
.js-magnetic {
  will-change: transform;
}
.btn-primary {
  background-color: var(--coral);
  color: var(--white);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background-color: var(--coral-ink);
  }
}
.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--white);
}
@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover {
    border-color: var(--white);
  }
}
.surface-coral .btn-primary {
  background-color: var(--white);
  color: var(--coral);
}
@media (hover: hover) and (pointer: fine) {
  .surface-coral .btn-primary:hover {
    background-color: var(--black);
    color: var(--white);
  }
}

/* =========================================================
   HEADER
========================================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s var(--ease-out);
}
.header.is-scrolled {
  background-color: rgba(8, 8, 8, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo svg {
  height: 22px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-menu {
  display: flex;
  align-items: center;
}
.nav-link {
  font-family: var(--f-mark);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--gray-light);
  padding: 8px 14px;
  line-height: 1;
  transition: color var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    color: var(--white);
  }
}
.header .btn {
  padding: 10px 20px;
  min-height: 40px;
  font-size: 13px;
}
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition:
    transform var(--transition),
    opacity var(--transition);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-menu {
  position: fixed;
  inset: 66px 0 auto 0;
  background-color: var(--black);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px var(--pad-x) 28px;
  display: none;
  max-height: calc(100svh - 66px);
  overflow-y: auto;
}
.nav-menu.is-open {
  display: flex;
}
.nav-menu .nav-link {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
  color: var(--white);
  width: 100%;
}
.nav-menu .nav-link:last-of-type {
  border-bottom: none;
}
.nav-menu .btn {
  margin-top: 20px;
  width: 100%;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--black);
  padding-top: 66px;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--black);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 8, 0.55) 0%,
    rgba(8, 8, 8, 0.35) 40%,
    rgba(8, 8, 8, 0.88) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 64px 72px;
}
.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(46px, 12vw, 108px);
  letter-spacing: 0.5px;
  line-height: 0.98;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
  max-width: 14ch;
}
.hero-title .accent {
  color: var(--coral);
}
.hero-sub {
  font-family: var(--f-body);
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--gray-light);
  line-height: 1.7;
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =========================================================
   SOBRE
========================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.about-text {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 62ch;
}
.about-text p {
  font-family: var(--f-body);
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--gray-light);
  line-height: 1.75;
}
.about-text p strong {
  color: var(--white);
  font-weight: 600;
}

/* --- visual companion panel: the Ruza mark extruded into a 3D wireframe --- */

.about-icon-stage {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  container-type: inline-size;
}
.about-icon-3d {
  position: relative;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  animation: about-icon-spin 12s linear infinite;
}
.icon-edge {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  margin-top: -1px;
  background-color: var(--coral);
  transform-origin: 0 50%;
}
.icon-edge--z {
  margin-left: -10.9775cqw;
  transform-origin: 50% 50%;
}
@keyframes about-icon-spin {
  from {
    transform: rotateX(-18deg) rotateY(0deg);
  }
  to {
    transform: rotateX(-18deg) rotateY(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .about-icon-3d {
    animation: none;
  }
}

/* =========================================================
   FAIXA DE LOGOS
========================================================= */

.logos-section {
  padding-block: 80px;
}
.logos-title {
  text-align: center;
  font-family: var(--f-mark);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 36px;
}
.logos-viewport {
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}
.logos-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: logos-scroll 130s linear infinite;
}
.logos-track img {
  height: calc(96px * var(--logo-scale, 1));
  width: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity var(--transition);
}
.logos-track img.logo-color {
  filter: none;
}
@media (hover: hover) and (pointer: fine) {
  .logos-track img:hover {
    opacity: 1;
  }
}
@media (min-width: 640px) {
  .logos-track {
    gap: 100px;
  }
  .logos-track img {
    height: calc(128px * var(--logo-scale, 1));
  }
}
@keyframes logos-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .logos-track {
    animation: none;
  }
  .logos-track .logos-dup {
    display: none;
  }
  .logos-viewport {
    overflow-x: auto;
  }
}

/* =========================================================
   SERVIÇOS
========================================================= */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 48px;
  border: 1px solid var(--border);
}
.service-card {
  position: relative;
  background-color: var(--black);
  padding: 34px 28px;
  border-bottom: 1px solid var(--border);
  transition:
    background-color var(--transition),
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}
.service-card:last-child {
  border-bottom: none;
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    background-color: var(--concrete);
    transform: translateY(-4px);
    box-shadow: 0 20px 32px -22px rgba(0, 0, 0, 0.7);
    z-index: 1;
  }
}
.service-num {
  font-family: var(--f-mark);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}
.service-card h3 {
  font-family: var(--f-body);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--white);
  margin-bottom: 10px;
}
.service-card p {
  font-family: var(--f-body);
  font-size: 14.5px;
  color: var(--gray-light);
  line-height: 1.7;
}

/* =========================================================
   RUZA LIVE
========================================================= */

.live-block {
  background-color: var(--concrete);
  border: 1px solid var(--border);
  padding: 48px 32px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.live-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mark);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
}
.live-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--coral);
}
.live-title {
  font-family: var(--f-body);
  font-size: clamp(26px, 4.2vw, 38px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--white);
  max-width: 20ch;
}
.live-title .accent {
  color: var(--coral);
}
.live-text {
  font-family: var(--f-body);
  font-size: 15.5px;
  color: var(--gray-light);
  line-height: 1.75;
  max-width: 60ch;
}
.live-actions {
  margin-top: 4px;
}

/* =========================================================
   DIFERENCIAIS
========================================================= */

.reasons-list {
  position: relative;
  margin-top: 48px;
  border-top: 1px solid rgba(8, 8, 8, 0.12);
}
.reason-row {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: start;
  gap: 20px;
  padding-block: 32px;
  border-bottom: 1px solid rgba(8, 8, 8, 0.12);
  transition: transform 0.3s var(--ease-out);
}
.reason-ghost {
  font-family: var(--f-mark);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  color: rgba(8, 8, 8, 0.1);
  transition: color 0.3s var(--ease-out);
}
.reason-row h3 {
  font-family: var(--f-body);
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--black);
  margin-bottom: 8px;
}
.reason-row p {
  font-family: var(--f-body);
  font-size: 15px;
  color: #55534e;
  line-height: 1.7;
  max-width: 52ch;
}
@media (hover: hover) and (pointer: fine) {
  .reason-row:hover {
    transform: translateX(10px);
  }
  .reason-row:hover .reason-ghost {
    color: rgba(232, 68, 10, 0.35);
  }
}
@media (min-width: 640px) {
  .reason-row {
    grid-template-columns: 110px 1fr;
    padding-block: 40px;
  }
  .reason-ghost {
    font-size: 72px;
  }
}

/* =========================================================
   MENÇÃO SOFT
========================================================= */

.market-note-band {
  position: relative;
  overflow: hidden;
  padding-block: 80px;
}
.market-note-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.market-note-mark {
  font-family: var(--f-display);
  font-size: clamp(64px, 10vw, 96px);
  line-height: 1;
  color: rgba(244, 242, 238, 0.4);
  pointer-events: none;
  user-select: none;
}
.market-note-text {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: clamp(24px, 4vw, 38px);
  letter-spacing: -0.4px;
  line-height: 1.4;
  max-width: 18ch;
  color: var(--white);
}
.market-note-shapes {
  display: none;
  pointer-events: none;
}
@media (min-width: 640px) {
  .market-note-inner {
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 32px;
  }
  .market-note-mark {
    font-size: clamp(80px, 8vw, 120px);
    margin-top: -0.18em;
  }
  .market-note-text {
    max-width: 20ch;
  }
  .market-note-shapes {
    display: block;
    position: relative;
    width: 120px;
    height: 100%;
    min-height: 160px;
    align-self: center;
  }
  .market-note-shapes span {
    position: absolute;
    border: 2px solid rgba(244, 242, 238, 0.5);
    animation: market-shape-float 5s ease-in-out infinite;
  }
  .market-note-shapes span:nth-child(1) {
    top: 6%;
    left: 42%;
    width: 34px;
    height: 34px;
    border-radius: 4px;
    --rot: 18deg;
    animation-delay: 0s;
  }
  .market-note-shapes span:nth-child(2) {
    top: 46%;
    left: 4%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    animation-delay: 0.7s;
    animation-duration: 4.2s;
  }
  .market-note-shapes span:nth-child(3) {
    top: 62%;
    left: 56%;
    width: 46px;
    height: 46px;
    border-radius: 6px;
    --rot: -12deg;
    animation-delay: 1.4s;
    animation-duration: 5.6s;
  }
}
@keyframes market-shape-float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translateY(-16px) rotate(var(--rot, 0deg));
  }
}
@media (prefers-reduced-motion: reduce) {
  .market-note-shapes span {
    animation: none;
  }
}

/* =========================================================
   CONTATO
========================================================= */

.contact-section {
  text-align: center;
}
.contact-section .eyebrow {
  justify-content: center;
}
.contact-section .section-title {
  margin-inline: auto;
}
.contact-sub {
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--gray-light);
  line-height: 1.7;
  max-width: 46ch;
  margin: 18px auto 0;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

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

.footer {
  padding-block: 56px 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer-logo svg {
  height: 22px;
  width: auto;
}
.footer-info p {
  font-family: var(--f-mark);
  font-size: 13px;
  color: var(--gray);
  letter-spacing: 1px;
  line-height: 2;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.footer-links a {
  font-family: var(--f-mark);
  font-size: 13px;
  color: var(--gray-light);
  letter-spacing: 1px;
  transition: color var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover {
    color: var(--coral);
  }
}
.footer-bottom {
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-family: var(--f-mark);
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 1px;
}
.footer-bottom a {
  color: var(--gray-light);
  transition: color var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .footer-bottom a:hover {
    color: var(--coral);
  }
}

/* =========================================================
   SCROLL REVEAL (transform/opacity, ease-out, staggered)
========================================================= */

.js .js-reveal,
.js .js-hero-anim {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}
.js-reveal[data-anim="scale"] {
  transform: scale(0.96);
}
.js .js-reveal.is-visible,
.js .js-hero-anim.is-visible {
  opacity: 1;
  transform: none;
}
.no-js .js-reveal,
.no-js .js-hero-anim {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal,
  .js-hero-anim {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* =========================================================
   BREAKPOINTS
========================================================= */

@media (min-width: 640px) {
  :root {
    --pad-x: 40px;
  }
  .section {
    padding-block: 96px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card {
    border-bottom: 1px solid var(--border);
  }
  .service-card:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
  .service-card:last-child,
  .service-card:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
  }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .live-block {
    padding: 56px 48px;
  }
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
}

@media (min-width: 960px) {
  :root {
    --pad-x: 48px;
  }
  .menu-toggle {
    display: none;
  }
  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    inset: auto;
    background: none;
    border: none;
    padding: 0;
    max-height: none;
    overflow: visible;
  }
  .nav-menu .nav-link {
    padding: 8px 14px;
    border: none;
    font-size: 13px;
    color: var(--gray-light);
    width: auto;
  }
  .nav-menu .nav-link:hover {
    color: var(--white);
  }
  .nav-menu .btn {
    margin-top: 0;
    margin-left: 12px;
    width: auto;
  }
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .service-card {
    border-right: 1px solid var(--border);
    border-bottom: none;
  }
  .service-card:nth-child(4n) {
    border-right: none;
  }
  .live-block {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
  .live-block-text {
    flex: 1;
  }
  .live-actions {
    margin-top: 0;
    flex-shrink: 0;
  }
}
