/* =====================================================
   Mira — Landing Page
   Estética brutalista herdada da referência, com grid de
   bordas (border-white/10), tipografia Inter/Geist Mono/
   Space Mono/Instrument Serif e paleta roxo profundo.
   ===================================================== */

:root {
  --mira-bg: #000;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--mira-bg);
  font-family: 'Inter', sans-serif;
}

::selection {
  background-color: #000;
  color: #fff;
}

.font-display-black {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.8;
}

header .font-display-black {
  line-height: 1;
}

.font-serif-display {
  font-family: 'Instrument Serif', serif;
}

/* Foto hand_right fixa na tela (não rola). A hero é transparente e deixa a foto aparecer;
   as próximas seções têm fundo preto e passam por cima dela.
   Usamos um elemento position:fixed (e não background-attachment:fixed) porque este
   último não funciona no Safari do iOS. */
.hero-bg-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh; /* maior altura possível no mobile: evita "pulo" quando a barra do navegador some */
  z-index: 0;
  background-color: #000;
  background-image: url('../images/hand-right.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  pointer-events: none;
}

#como-funciona {
  background-color: transparent;
}

.hero-clip {
  overflow-x: hidden;
}

.hero-wordmark {
  position: absolute;
  z-index: 40;
  top: 0.75rem;
  left: 1.25rem;
  right: auto;
  width: max-content;
  margin: 0;
  text-align: left;
  font-size: clamp(2.25rem, 12vw, 14rem);
  line-height: 0.8;
  white-space: nowrap;
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
}

/* Palavra MIRA estilizada (imagem): mesma altura das letras do texto que ela substitui. */
.hero-wordmark img {
  display: block;
  height: clamp(2.25rem, 12vw, 14rem);
  width: auto;
}

@media (min-width: 1024px) {
  .hero-wordmark {
    left: 2rem;
  }
}

@media (max-width: 1023px) {
  .hero-grid {
    padding-top: calc(1.1 * clamp(2.25rem, 12vw, 14rem));
  }
}

.testimonial-card.is-active {
  background-color: #fff;
  color: #111;
}
.testimonial-card.is-active .testimonial-role {
  color: rgba(0, 0, 0, 0.6);
}
.font-mono-tech {
  font-family: 'Geist Mono', 'Space Mono', monospace;
}

/* Links de navegação desktop com mix-blend-plus-lighter */
.nav-link-blend {
  mix-blend-mode: plus-lighter;
}

/* Grid lines padrão do layout boxy */
.grid-line {
  border-color: rgba(255,255,255,0.1);
}

/* Linha de foco animada dos inputs do formulário */
.focus-line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0%;
  background-color: #4ade80; /* green-400 */
  transition: width 300ms ease;
}
.form-field:focus ~ .focus-line,
.form-field.has-value ~ .focus-line {
  width: 100%;
}

/* Hover padrão de cards de serviço */
.service-card {
  transition: background-color 300ms ease;
}

/* Seta flutuante do case study */
.float-arrow-btn {
  transition: transform 300ms ease;
}
.case-card:hover .float-arrow-btn {
  transform: translate(2px, -2px) rotate(0deg);
}
.case-card:hover .case-image {
  transform: scale(1.05);
}
.case-image {
  transition: transform 700ms ease;
}

/* Grayscale -> cor no hover */
.grayscale-hover {
  filter: grayscale(1);
  transition: filter 700ms ease;
}
.grayscale-hover:hover,
.grayscale-group:hover .grayscale-hover {
  filter: grayscale(0);
}

/* Seta deslizante da lista de diferenciais */
.slide-arrow {
  transition: transform 300ms ease;
}
.feature-row:hover .slide-arrow {
  transform: translateX(6px);
}

/* Logos da parede de marcas */
.brand-logo {
  opacity: 0.4;
  transition: opacity 300ms ease, filter 300ms ease;
  filter: grayscale(1);
}
.brand-logo:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* Pílula "voltar ao topo" */
#back-to-top {
  transition: background-color 300ms ease, color 300ms ease;
}

/* Scrollbar discreta */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
}

/* Code snippet (seção de serviços — Motor de Regras) */
.code-window {
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.1);
  font-family: 'Geist Mono', 'Space Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Rótulo offset estilo EXP-01 */
.offset-tag {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.15);
}

