/* =====================================================
   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?v=20261019c');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Mobile (tela estreita): centraliza o atleta, que fica a ~65% da largura da foto */
@media (max-width: 1023px) {
  .hero-bg-fixed {
    background-position: 70% center;
  }
}

/* Celular e tablet em pé (iPhone, iPad mini e parecidos): pela altura, a foto ficava ampliada demais e cortava a bola
   e a mão. Aqui ela cabe pela largura (165%) e começa logo abaixo da palavra MIRA (--topo-foto). Acima, o verde da borda
   de cima da foto; abaixo, o escuro da borda de baixo; os degradês escondem as emendas.
   92.2vw = altura da foto a 165% da largura (2200x1228). */
@media (max-width: 1023px) and (orientation: portrait) {
  .hero-bg-fixed {
    --topo-foto: calc(4rem + 12vw + 2.5rem);
    background-color: #010707;
    background-image:
      linear-gradient(to bottom,
        #071a14 var(--topo-foto),
        rgba(7, 26, 20, 0) calc(var(--topo-foto) + 6vw),
        rgba(1, 7, 7, 0) calc(var(--topo-foto) + 92.2vw - 4vw),
        #010707 calc(var(--topo-foto) + 92.2vw)),
      url('../images/hand-right.jpg?v=20261019c');
    background-size: 100% 100%, 165% auto;
    background-position: 0 0, 66% var(--topo-foto);
  }
}

/* Carrossel de competições em andamento */
.comp-scroller {
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.comp-card {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
}
@media (min-width: 1024px) {
  .comp-card { width: 340px; }
}

#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);
}


/* ===== Por dentro: prints do app (moldura de celular) e do painel (moldura de navegador) ===== */
.shot-scroller {
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2rem; /* encaixe respeita a margem lateral (px-8) */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.shot {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.phone-frame {
  width: 220px;
  padding: 7px;
  border-radius: 38px;
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.phone-frame img {
  display: block;
  width: 100%;
  border-radius: 31px;
}
@media (min-width: 1024px) {
  .phone-frame { width: 250px; }
  .shot-scroller { scroll-padding-inline: 3.5rem; } /* lg:px-14 */
}
.browser-frame {
  width: min(760px, 86vw);
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #0d0d0d;
}
.browser-bar .url {
  margin-left: 10px;
  font-family: 'Geist Mono', 'Space Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}
.browser-frame img { display: block; width: 100%; }
.shot-legenda {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  max-width: 260px;
}
.shot-legenda strong { color: #fff; font-weight: 500; display: block; margin-bottom: 2px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
}
.store-badge small { display: block; font-size: 10px; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; text-transform: uppercase; }
