/* =========================================================
   STUDIOCAST — estilos
   Breakpoint único, igual ao original:
   - Desktop: >= 1140px
   - Tablet/Mobile: <= 1139.98px (layout fluido)
   ========================================================= */

@font-face {
  font-family: "Work Sans";
  src: url("../assets/fonts/work-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #f7f5f2;
  --dark: #1b1b1b;
  --blue: #009aff;

  --font-display: "Work Sans", sans-serif;
  --font-body: "Manrope", sans-serif;

  /* Mola (bounce 0.2, 1s) — mesma física do original */
  --spring: linear(0, 0.0224, 0.0794, 0.1581, 0.2486, 0.3435, 0.4375, 0.5269, 0.6093, 0.6833, 0.7484, 0.8044, 0.8518, 0.8911, 0.9231, 0.9487, 0.9688, 0.9841, 0.9954, 1.0036, 1.0091, 1.0125, 1.0144, 1.0151, 1.015, 1.0142, 1.0131, 1.0118, 1.0104, 1.0089, 1.0076, 1.0063, 1.0051, 1.0041, 1.0032, 1.0024, 1.0018, 1.0013, 1.0009, 1.0006, 1);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.2;
  color: var(--white);
}

h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img, video { display: block; max-width: none; }
strong { font-weight: 700; }

/* ---------- Página ---------- */
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 128px;
  min-height: 100vh;
  padding: 96px;
  overflow: clip;
  background: var(--white);
}

.page > *, .page-main > * { position: relative; flex: none; }

/* <main> existe pela semântica, mas não cria caixa: as seções seguem
   como itens diretos do layout da página */
.page-main { display: contents; }

/* títulos para leitores de tela e buscadores (sem efeito visual) */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.page-bg {
  position: absolute !important;
  z-index: 0;
  aspect-ratio: 0.64;
  height: auto;
  min-width: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.page-bg--top {
  top: -528px;
  left: 50%;
  width: 1920px;
  transform: translateX(-50%);
}
.page-bg--bottom {
  bottom: -309px;
  left: 0;
  width: 100%;
  transform: rotate(180deg);
}

.br-desktop { display: inline; }
.only-desktop { display: inline; }

/* ---------- Logo ---------- */
.logo { width: 300px; height: 59px; }

/* ---------- Botão ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: pre;
  cursor: pointer;
}
/* brilho que desfoca no hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: var(--blue);
  filter: blur(0);
  transition: filter 1s var(--spring);
}
.btn > span { position: relative; }
.btn:hover::before { z-index: 1; filter: blur(25px); }
.btn:hover > span { z-index: 2; }
.btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.btn--sm { font-size: 14px; }
.btn--block { display: flex; width: 100%; }

/* ---------- HERO ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 96px;
  width: 1140px;
}

.hero__sticky {
  position: sticky;
  top: 96px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  width: 1140px;
  padding-bottom: 16px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: min-content;
  overflow: clip;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--white);
  white-space: nowrap;
}

.hero__subtitle {
  width: 768px;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  color: var(--white);
  opacity: 0.8;
}

.video-wrap {
  position: relative;
  z-index: 2;
  width: 1140px;
  aspect-ratio: 16 / 9;
  transform: perspective(1200px);
  transform-origin: 50% 50%;
}
.video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  background: transparent;
}

/* ---------- MARCAS ---------- */
.brands {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 17px;
  width: 1140px;
}
.brands__caption {
  flex: none;
  font-size: 16px;
  line-height: 1.4;
  color: var(--dark);
  white-space: nowrap;
}

.ticker { position: relative; display: flex; }
.ticker__track {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  will-change: transform;
}
.ticker__track > li { flex: none; }

.ticker--brands {
  flex: 1 0 0;
  width: 1px;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 19.36936936936937%, #000 79.72972972972973%, transparent 100%);
  mask: linear-gradient(90deg, transparent 0%, #000 19.36936936936937%, #000 79.72972972972973%, transparent 100%);
}
.ticker--brands .ticker__track { gap: 48px; }
.ticker--brands img { width: 128px; height: 128px; object-fit: cover; }

/* ---------- SOBRE (desktop) ---------- */
.about--desktop {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.about__panel {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1140px;
  height: 100vh;
  overflow: clip;
}
.about__text {
  width: 1100px;
  font-size: 32px;
  line-height: 1.4;
  text-align: center;
  color: var(--dark);
}
.about__text .bold, .about-m__text .bold { font-weight: 700; }

/* textos de parágrafo seguem a mesma regra de quebra do original */
.hero__subtitle, .about__text p, .about-m__text p, .cta__desc, .footer p,
.price-card__desc, .special__desc {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

.stat {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min-content;
  padding: 32px;
  border-radius: 12px;
  background: var(--blue);
}
.stat p, .stat-m p {
  font-size: 18px;
  line-height: 1.4;
  color: var(--white);
  white-space: nowrap;
}
.stat--1 { left: 96px; top: 62px; }
.stat--2 { left: 674px; top: 78px; }
.stat--3 { left: 578px; top: 47%; transform: translateY(-50%); }
.stat--4 { left: 193px; bottom: 257px; }
.stat--5 { left: 674px; bottom: 78px; }

/* ---------- SOBRE (mobile) ---------- */
.about--mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  width: 100%;
}
.about-m__text {
  position: relative;
  z-index: 1;
  width: 100%;
  font-size: 24px;
  line-height: 1.4;
  text-align: center;
  color: var(--dark);
}
.about-m__cards {
  position: sticky;
  top: -312px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.stat-m {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  height: 140px;
  padding: 32px;
  border-radius: 12px;
  background: var(--dark);
  overflow: clip;
}
.stat-m .h75 { height: 75px; }
.stat-m .wrap { flex: 1 0 0; width: 1px; white-space: normal; overflow-wrap: break-word; }

/* ---------- GALERIA ---------- */
.gallery {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  width: 1140px;
}
.gallery__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--dark);
  white-space: nowrap;
}
.ticker--gallery {
  width: 100%;
  border-radius: 10px;
  overflow: visible;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.ticker--gallery .ticker__track { gap: 10px; }
.ticker--gallery img {
  width: 500px;
  height: 500px;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none;
}

/* ---------- PREÇOS ---------- */
@property --gw { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --gh { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --gx { syntax: "<percentage>"; inherits: false; initial-value: 48.8%; }
@property --gy { syntax: "<percentage>"; inherits: false; initial-value: 149.8%; }

.pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 1140px;
  overflow: clip;
}
.pricing__grid {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  width: 1140px;
  overflow: clip;
}

.price-card {
  --gw: 50%; --gh: 50%; --gx: 48.8%; --gy: 149.8%;
  position: relative;
  z-index: 1;
  flex: 1 0 0;
  width: 1px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding: 48px;
  border-radius: 12px;
  overflow: clip;
  cursor: pointer;
  background: radial-gradient(var(--gw) var(--gh) at var(--gx) var(--gy), var(--blue) 0%, var(--dark) 100%);
  transition: --gw 1s var(--spring), --gh 1s var(--spring), --gx 1s var(--spring), --gy 1s var(--spring);
}
.price-card:nth-child(n + 2) { align-self: stretch; }
.price-card:hover { --gw: 75%; --gh: 88%; --gx: 48.2%; --gy: 100%; }

.price-card__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.price-card__emoji, .price-card__title, .special__title {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
  text-align: left;
  overflow-wrap: break-word;
}
.price-card__desc, .special__desc {
  width: 100%;
  font-size: 16px;
  line-height: 1.4;
  color: var(--white);
  overflow-wrap: break-word;
}
.price-card__price, .special__price {
  width: 100%;
  font-size: 18px;
  line-height: 1.4;
  color: var(--white);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.price-card__cta { width: 100%; }

.special {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 1140px;
  padding: 64px;
  border-radius: 12px;
  overflow: clip;
  background: radial-gradient(50% 50% at 48.8% 149.8%, var(--blue) 0%, var(--dark) 100%);
  text-align: center;
}
.special__title { text-align: center; }

/* ---------- CTA ---------- */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 64px;
  width: 1140px;
}
.cta__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: min-content;
  overflow: clip;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--white);
  white-space: nowrap;
}
.cta__desc {
  width: 768px;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  color: var(--white);
  opacity: 0.8;
}

/* ---------- Rodapé ---------- */
.footer {
  width: 768px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  color: var(--white);
  opacity: 0.8;
}

/* =========================================================
   Animações de entrada (estado inicial). Só valem com a classe
   .motion (adicionada quando não há preferência por movimento
   reduzido). O JS anima até o estado final.
   ========================================================= */
.motion [data-appear] { opacity: 0; }
.motion [data-appear="up"] { translate: 0 50px; }
.motion [data-appear="left"] { translate: -50px 0; }
.motion [data-appear="right"] { translate: 50px 0; }
.motion [data-appear].is-in { opacity: 1; translate: none; }

/* texto palavra-a-palavra: fica invisível até o JS quebrar em palavras */
.motion [data-fx]:not(.fx-ready) { opacity: 0; }
.fx-token { display: inline-block; }

/* Vídeo: rotação 3D + escala ligadas ao scroll (só desktop) */
@keyframes video-in {
  from { transform: perspective(1200px) scale(0) rotateX(40deg); }
  to { transform: perspective(1200px) scale(1) rotateX(0deg); }
}
@media (min-width: 1140px) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .motion .video-wrap {
      animation: video-in linear both;
      animation-timeline: view();
      animation-range: entry;
    }
  }
}

/* =========================================================
   TABLET / MOBILE  (<= 1139.98px)
   ========================================================= */
@media (max-width: 1139.98px) {
  .page { gap: 64px; padding: 16px; }

  .page-bg--top { top: -28px; width: 924px; }
  .page-bg--bottom {
    bottom: -1px;
    left: 50%;
    width: 868px;
    transform: translateX(-50%) rotate(180deg);
  }

  .br-desktop, .only-desktop { display: none; }

  .logo { width: 150px; height: 29.2px; }

  .hero { gap: 64px; width: 100%; }
  .hero__sticky { position: relative; top: auto; gap: 32px; width: 100%; }
  .hero__text { width: 100%; overflow: visible; }
  .hero__title { font-size: 40px; white-space: normal; width: 100%; overflow-wrap: break-word; }
  .hero__subtitle { width: 100%; font-size: 16px; }

  .video-wrap { width: 100%; }
  .video { border-radius: 16px; }

  .brands { flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; }
  .ticker--brands { flex: none; width: 100%; }
  .ticker--brands .ticker__track { gap: 24px; }
  .ticker--brands img { width: 64px; height: 64px; }

  .about--desktop { display: none; }
  .about--mobile { display: flex; }

  .gallery { width: 100%; }
  .gallery__title { font-size: 40px; white-space: normal; width: 100%; overflow-wrap: break-word; }
  .ticker--gallery img { width: 300px; height: 300px; }

  .pricing { gap: 16px; width: 100%; }
  .pricing__grid { flex-direction: column; width: 100%; }
  .price-card, .price-card:nth-child(n + 2) { flex: none; width: 100%; align-self: auto; }

  .special { align-items: flex-start; padding: 48px; width: 100%; text-align: left; }
  .special__title { text-align: left; }

  .cta { gap: 32px; width: 100%; }
  .cta__text { width: 100%; }
  .cta__title { font-size: 40px; white-space: normal; width: 100%; overflow-wrap: break-word; }
  .cta__desc { width: 100%; font-size: 16px; }
  .btn--cta { display: flex; width: 100%; }

  .footer { width: 100%; font-size: 10px; }
}
