:root {
  --click-black: #1f1f21;
  --click-red: #ef1f26;
  --accent-gold: #f3b63a;
  --light-gray: #d9d9db;
  --white: #ffffff;
  --background-main: #ffffff;
  --background-soft: #f8f8f8;
  --background-warm: #fff9ef;
  --text-main: #1f1f21;
  --text-muted: #5f5f63;
  --border-soft: #d9d9db;
  --primary: #ef1f26;
  --primary-hover: #d71920;
  --secondary: #1f1f21;
  --accent: #f3b63a;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Montserrat", sans-serif;
  background: var(--background-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Grade de cartaz – background sutil */
.price-grid-bg {
  background-image:
    linear-gradient(to right, rgba(31, 31, 33, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 31, 33, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
}
.dot-bg {
  background-image: radial-gradient(
    rgba(31, 31, 33, 0.12) 1px,
    transparent 1px
  );
  background-size: 18px 18px;
}
/* Etiqueta com furo (price tag) */
.price-tag {
  position: relative;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 8% 100%, 0% 50%);
}
.price-tag::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 9999px;
  transform: translateY(-50%);
}
/* Recommended plan flag */
.plan-card--highlighted {
  padding-top: 4.75rem;
}
.recommended-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(
    135deg,
    var(--accent-gold) 0%,
    #ffe27a 52%,
    #f7bd32 100%
  );
  color: var(--click-black);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 11px 18px 10px;
  box-shadow:
    0 18px 34px -24px rgba(243, 182, 58, 0.95),
    inset 0 -1px 0 rgba(31, 31, 33, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}
.recommended-badge::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 8px;
  background: linear-gradient(
    90deg,
    rgba(239, 31, 38, 0.55),
    rgba(243, 182, 58, 0.85),
    rgba(239, 31, 38, 0.55)
  );
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 16px 100%);
}
.recommended-badge i {
  color: var(--click-red);
  font-size: 11px;
}
@media (min-width: 640px) {
  .plan-card--highlighted {
    padding-top: 5rem;
  }
}
/* Slider de planos */
.plans-slider {
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-padding-inline: clamp(1.25rem, 4vw, 2rem);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.plans-slider.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.plans-slider.is-animating {
  scroll-snap-type: none;
}
.plans-slider::-webkit-scrollbar {
  display: none;
}
.plan-card {
  flex: 0 0 min(84vw, 390px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.plan-extra {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.18s ease;
}
.plan-extra.open {
  grid-template-rows: 1fr;
}
.plan-extra > div {
  overflow: hidden;
}
@media (min-width: 640px) {
  .plan-card {
    flex-basis: calc((100% - 1.25rem) / 2);
  }
}
@media (min-width: 768px) {
  .plan-card {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
}
@media (min-width: 1024px) {
  .plan-card {
    flex-basis: calc((100% - 3rem) / 3);
  }
}
/* Marquee */
.marquee {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/* Acordeon transição */
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-body.open {
  grid-template-rows: 1fr;
}
.faq-body > div {
  overflow: hidden;
}

/* Cursor pointer decorativo */
.click-cursor {
  width: 22px;
  height: 30px;
  background: var(--click-black);
  clip-path: polygon(0 0, 70% 50%, 40% 55%, 55% 90%, 40% 95%, 25% 60%, 0 70%);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.25));
}
/* Botão CTA – brilho */
.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.8s ease;
}
.btn-shine:hover::after {
  transform: translateX(120%);
}

/* Card tilt suave do hero */
.tilt-card {
  transform: rotate(-2deg);
}
.tilt-card-r {
  transform: rotate(3deg);
}

/* Foco visível – acessibilidade */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Scrollbar discreta */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #d9d9db;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #bfbfc3;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Header sticky com blur */
.header-glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

/* Estados iniciais para GSAP – evita flash */
.gs-fadeup {
  opacity: 0;
  transform: translateY(24px);
}
.gs-scale {
  opacity: 0;
  transform: scale(0.94);
}
.gs-rot {
  opacity: 0;
  transform: rotate(-8deg) translateY(-10px);
}

/* ============================================================
     MOTION — inspirado na referência (blur-in, collage, parallax)
  ============================================================ */
/* Reveal com desfoque (assinatura "moderna" do vídeo) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(2px);
  will-change: opacity, transform, filter;
}
.reveal-line {
  display: block;
  opacity: 0;
  transform: translateY(115%);
}
.reveal-line-wrap {
  overflow: hidden;
}
.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(2px);
  will-change: opacity, transform, filter;
}

/* Texto com gradiente da marca */
.gradient-text {
  background: linear-gradient(
    100deg,
    var(--click-red) 0%,
    #ff5a3c 45%,
    var(--accent-gold) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero concept artwork */
.hero-concept-visual {
  min-height: clamp(430px, 52vw, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: visible;
}
.hero-concept-visual::before,
.hero-concept-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -2;
}
.hero-concept-visual::before {
  inset: 8% -5% 18% 8%;
  background: linear-gradient(
    110deg,
    rgba(239, 31, 38, 0.16),
    rgba(243, 182, 58, 0.12) 44%,
    rgba(255, 255, 255, 0) 72%
  );
  clip-path: polygon(7% 18%, 100% 0, 86% 83%, 0 100%);
}
.hero-concept-visual::after {
  left: 0;
  right: -7%;
  bottom: 9%;
  height: 34%;
  background: linear-gradient(
    96deg,
    rgba(31, 31, 33, 0.08),
    rgba(239, 31, 38, 0.1) 52%,
    rgba(243, 182, 58, 0.2)
  );
  clip-path: polygon(0 46%, 78% 0, 100% 42%, 18% 100%);
}
.hero-concept-image {
  position: relative;
  z-index: 1;
  width: min(116%, 740px);
  max-width: none;
  height: auto;
  transform: translate(4%, -1%) rotate(-2deg);
  filter:
    drop-shadow(0 38px 46px rgba(31, 31, 33, 0.24))
    drop-shadow(0 18px 32px rgba(239, 31, 38, 0.2));
  user-select: none;
  pointer-events: none;
}
.hero-concept-beam {
  position: absolute;
  display: block;
  pointer-events: none;
  z-index: -1;
}
.hero-concept-beam-red {
  top: 20%;
  right: 0;
  width: 70%;
  height: 13%;
  background: linear-gradient(
    90deg,
    rgba(239, 31, 38, 0),
    rgba(239, 31, 38, 0.32),
    rgba(239, 31, 38, 0)
  );
  clip-path: polygon(7% 30%, 100% 0, 92% 68%, 0 100%);
  transform: rotate(-8deg);
}
.hero-concept-beam-gold {
  left: 6%;
  bottom: 19%;
  width: 62%;
  height: 11%;
  background: linear-gradient(
    90deg,
    rgba(243, 182, 58, 0),
    rgba(243, 182, 58, 0.34),
    rgba(243, 182, 58, 0)
  );
  clip-path: polygon(0 22%, 94% 0, 100% 72%, 9% 100%);
  transform: rotate(-11deg);
}
@media (min-width: 1024px) {
  .hero-concept-visual {
    margin-right: clamp(-4.5rem, -4vw, -1.25rem);
  }
}
@media (max-width: 1023px) {
  .hero-concept-visual {
    min-height: clamp(380px, 72vw, 580px);
    margin-top: 1rem;
  }
  .hero-concept-image {
    width: min(112%, 620px);
    transform: translate(1%, 0) rotate(-1.5deg);
  }
}
@media (max-width: 640px) {
  .hero-concept-visual {
    min-height: min(118vw, 520px);
    margin-inline: -1.25rem;
  }
  .hero-concept-image {
    width: min(118%, 520px);
  }
  .hero-concept-beam-red {
    top: 24%;
    width: 82%;
  }
  .hero-concept-beam-gold {
    bottom: 16%;
    width: 74%;
  }
}

/* Cartão de imagem com "sombra" colorida deslocada (igual press do vídeo) */
.glow-offset {
  position: relative;
}
.glow-offset::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--click-red), var(--accent-gold));
  transform: translate(14px, 16px) rotate(2.2deg);
  z-index: -1;
  opacity: 0.9;
}

/* Cartão de colagem inclinado, flutuando */
.collage-card {
  border-radius: 22px;
  box-shadow:
    0 34px 70px -28px rgba(31, 31, 33, 0.45),
    0 8px 24px -12px rgba(31, 31, 33, 0.18);
  background: #fff;
}

/* Palco com perspectiva para as cenas */
.scene-perspective {
  perspective: 1500px;
}
.tilt-3d {
  transform-style: preserve-3d;
}

/* Mockup orbital — órbitas e chips girando */
.orbit {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
}
.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(31, 31, 33, 0.14);
  border-radius: 9999px;
}
@keyframes spin-cw {
  to {
    transform: rotate(360deg);
  }
}
@keyframes spin-ccw {
  to {
    transform: rotate(-360deg);
  }
}
.spin-slow {
  animation: spin-cw 28s linear infinite;
}
.spin-slow-rev {
  animation: spin-ccw 36s linear infinite;
}
.counter-spin {
  animation: spin-ccw 28s linear infinite;
}
.counter-spin-rev {
  animation: spin-cw 36s linear infinite;
}

/* Brilho ambiente suave (glow) reaproveitável */
.ambient-glow {
  filter: blur(60px);
  border-radius: 9999px;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-line,
  .reveal-word {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .spin-slow,
  .spin-slow-rev,
  .counter-spin,
  .counter-spin-rev {
    animation: none !important;
  }
}

@media (max-width: 767px) {
  html {
    scroll-behavior: auto;
  }
  .header-glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .reveal,
  .reveal-word {
    filter: none;
    will-change: opacity, transform;
  }
  .ambient-glow {
    filter: blur(28px);
  }
  .spin-slow,
  .spin-slow-rev,
  .counter-spin,
  .counter-spin-rev,
  .marquee {
    animation-play-state: paused;
  }
}
