/* ============================================================
   Evoryia — Landing Page
   Design: Figma "Paginas" (desktop 1920, seções de 1080)
   ============================================================ */

:root {
  --bg: #06050b;
  --bg-footer: #0a090d;
  --text-muted: #82808c;
  --text-soft: #f7f5ff;
  --pink: #ff82fc;
  --purple: #6823e0;
  --card-placeholder: #b9b7c8;

  /* Stops fora do elemento reproduzem a faixa visível do gradiente do Figma
     (o Figma posiciona a linha do gradiente além das bordas do elemento) */
  --grad-btn: linear-gradient(96.62deg, #ff82fc -49%, #6823e0 140%);
  --grad-card: linear-gradient(134.79deg, #ff82fc -55%, #6823e0 165%);
  --grad-live: linear-gradient(162.36deg, rgba(255, 130, 252, 0.08) -40%, rgba(104, 35, 224, 0.08) 135%);

  --fs-h1: clamp(2.375rem, 1.35rem + 2.72vw, 4rem);      /* 38 → 64px */
  --fs-body: clamp(1.125rem, 0.888rem + 0.63vw, 1.5rem); /* 18 → 24px */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: #fff;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1264px;
  margin: 0 auto;
  padding-inline: 24px;
}

h1,
h2 {
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.28;
  color: #fff;
}

/* ---------- Botão WhatsApp ---------- */

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 24px 42px;
  border-radius: 42px;
  background: var(--grad-btn);
  color: #fff;
  font-size: 16px;
  line-height: 1.64;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp img {
  width: 24px;
  height: 24px;
}

.btn-whatsapp:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 130, 252, 0.25);
}

.btn-whatsapp:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-inner {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 49px;
  max-width: 606px;
}

.hero-logo {
  height: 37px;
  width: auto;
}

.badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 26px;
  border: 1px solid var(--purple);
  border-radius: 42px;
  font-size: 16px;
  line-height: 1.64;
  color: #fff;
}

.badge-flag {
  width: 27px;
  height: 19px;
  object-fit: cover;
  border-radius: 2px;
}

.hero h1 {
  letter-spacing: -0.96px;
  max-width: 587px;
}

.hero-sub {
  font-size: var(--fs-body);
  line-height: 1.64;
  color: var(--text-soft);
  max-width: 605px;
}

/* --- arte do hero (posições do canvas de 1920px) --- */

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transform-origin: 100% 40%;
}

.hero-glow {
  position: absolute;
  top: 350px;
  width: 553px;
  height: 688px;
  border-radius: 50%;
  background: var(--pink);
  filter: blur(150px);
  opacity: 0.55;
}

.hero-glow-1 { left: calc(50% - 129px); }
.hero-glow-2 { left: calc(50% + 178px); }

.hero-emblem {
  position: absolute;
  left: calc(50% + 13px);
  top: 254px;
  width: 595px;
  height: 591px;
}

.hero-emblem-main {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  max-width: none;
}

.hero-emblem-glow {
  position: absolute;
  inset: -31px;
  width: calc(100% + 62px);
  height: calc(100% + 62px);
  max-width: none;
}

.hero-photo {
  position: absolute;
  left: calc(50% - 39px);
  top: 134px;
  width: 680px;
  max-width: none;
}

.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 5, 11, 0) 45%, #06050b 100%);
}

.float-card {
  position: absolute;
  z-index: 3;
  width: 131px;
  height: 121px;
  border-radius: 29px;
  background: rgba(38, 0, 104, 0.18);
  overflow: hidden;
}

.float-card img {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 85px;
  height: 80px;
  object-fit: contain;
}

.float-card .float-card-glow {
  filter: blur(15px);
  mix-blend-mode: plus-lighter;
}

.float-card-1 { left: calc(50% + 493px); top: 550px; }
.float-card-2 { left: calc(50% - 79px);  top: 781px; }

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

.sobre {
  position: relative;
  overflow: hidden;
  padding-block: 150px;
}

.sobre-glow {
  position: absolute;
  width: 534px;
  height: 1107px;
  border-radius: 50%;
  background: var(--pink);
  filter: blur(180px);
  opacity: 0.42;
  bottom: -860px;
  pointer-events: none;
}

.sobre-glow-1 { left: calc(50% - 448px); }
.sobre-glow-2 { left: calc(50% - 152px); }

.sobre-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 62px;
}

.sobre-media {
  position: relative;
  flex-shrink: 0;
  width: 548px;
}

.sobre-card {
  width: 548px;
  height: 781px;
  border-radius: 22px;
  background: var(--grad-card);
}

.sobre-photo {
  position: absolute;
  left: -45px;
  bottom: 0;
  width: 585px;
  max-width: none;
}

.sobre-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 49px;
  max-width: 606px;
}

.sobre-content h2 {
  max-width: 500px;
}

.sobre-text {
  display: flex;
  flex-direction: column;
  gap: 1.64em;
  font-size: var(--fs-body);
  line-height: 1.64;
  color: var(--text-muted);
}

/* ============================================================
   PROVAS SOCIAIS
   ============================================================ */

.provas {
  position: relative;
  padding-block: 99px 73px;
}

.provas-header {
  display: flex;
  align-items: flex-end;
  gap: 60px;
  margin-bottom: 70px;
}

.provas-title {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 685px;
  flex: 1 1 auto;
}

.rating {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rating-score {
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  color: #fff;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 9.7px;
}

.rating-stars img {
  width: 26.35px;
  height: 26.35px;
}

.provas-desc {
  font-size: var(--fs-body);
  line-height: 1.64;
  color: var(--text-muted);
  max-width: 471px;
  flex-shrink: 0;
}

.provas-cards {
  display: flex;
  gap: 65px;
  width: min(1306px, 100%);
  margin-inline: auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-block: 4px;
  cursor: grab;
}

.provas-cards::-webkit-scrollbar {
  display: none;
}

.provas-cards.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.provas-cards.dragging .prova-card {
  pointer-events: none;
}

/* no desktop o carrossel sangra 45px além do container, como no Figma */
@media (min-width: 1400px) {
  .provas-cards {
    width: 1306px;
    margin-inline: -45px;
  }
}

.prova-card {
  flex: 0 0 392px;
  aspect-ratio: 392 / 559;
  border-radius: 22px;
  background: linear-gradient(170deg, #d6d4e0 0%, var(--card-placeholder) 100%);
  scroll-snap-align: start;
  padding: clamp(24px, 2vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  user-select: none;
}

/* --- cards de vídeo (depoimentos gravados, formato vertical 9:16) --- */

.prova-card-video {
  flex-basis: 314px; /* 314 × 16/9 ≈ 558px, mesma altura dos cards de texto */
  aspect-ratio: 9 / 16;
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #131019;
  cursor: pointer;
}

.prova-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prova-play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 76px;
  height: 76px;
  border: none;
  border-radius: 50%;
  background: var(--grad-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, opacity 0.3s ease;
}

.prova-play svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  margin-left: 4px;
}

.prova-card-video:hover .prova-play {
  transform: scale(1.08);
}

.prova-play:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.prova-card-video.is-playing .prova-play {
  opacity: 0;
  pointer-events: none;
}

.prova-stars {
  display: flex;
  gap: 6px;
}

.prova-stars img {
  width: 19px;
  height: 19px;
}

.prova-quote {
  flex-grow: 1;
  font-size: clamp(15px, 0.85rem + 0.25vw, 17px);
  line-height: 1.7;
  color: #33303f;
}

.prova-autor {
  display: flex;
  align-items: center;
  gap: 14px;
}

.prova-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
}

.prova-nome {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #131019;
}

.prova-cargo {
  display: block;
  font-size: 14px;
  color: #5b5868;
}

.provas-dots {
  display: flex;
  justify-content: center;
  gap: 14.9px;
  margin-top: 48px;
  min-height: 14.1px;
}

.dot {
  width: 14.1px;
  height: 14.1px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--text-muted);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.dot:hover {
  transform: scale(1.25);
}

.dot:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.dot.active {
  background: var(--pink);
}

/* ============================================================
   HOJE TEM LIVE
   ============================================================ */

.live {
  padding-block: 151px;
}

.live-card {
  position: relative;
  min-height: 547px;
  border: 2px solid rgba(255, 130, 252, 0.55);
  border-radius: 22px;
  background: var(--grad-live);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.live-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 27px;
  max-width: 477px;
  margin-left: 140px;
  padding-block: 60px;
}

.live-content p {
  font-size: var(--fs-body);
  line-height: 1.64;
  color: var(--text-muted);
}

.live-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.yt {
  position: absolute;
}

.yt img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: none;
}

.yt .yt-glow {
  filter: blur(73px);
  opacity: 0.51;
  mix-blend-mode: color-dodge;
  transform: scale(0.94);
}

.yt-main {
  left: 664px;
  top: 98px;
  width: 464px;
  height: 359px;
  transform: rotate(-11.15deg);
}

.yt-top {
  left: 656px;
  top: -80px;
  width: 206px;
  height: 160px;
  transform: rotate(21.14deg);
}

.yt-bottom {
  left: 943px;
  top: 476px;
  width: 206px;
  height: 160px;
  transform: rotate(21.14deg);
}

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

.footer {
  background: var(--bg-footer);
  padding-block: 79px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 36px;
  width: auto;
}

.footer p {
  font-size: 19.5px;
  line-height: 1.64;
  color: var(--text-muted);
}

/* ============================================================
   ANIMAÇÕES (reveal no scroll + flutuação)
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes floaty {
  from { transform: translateY(0); }
  to   { transform: translateY(-14px); }
}

.float-card {
  animation: floaty 3.8s ease-in-out infinite alternate;
}

.float-card-2 {
  animation-delay: -1.9s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .float-card {
    animation: none;
  }

  .provas-cards {
    scroll-behavior: auto;
  }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 1600px) {
  .hero-canvas {
    transform: scale(0.85);
  }
}

@media (max-width: 1360px) {
  .hero-canvas {
    transform: scale(0.72);
  }

  .sobre-media {
    width: 460px;
  }

  .sobre-card {
    width: 460px;
    height: 655px;
  }

  .sobre-photo {
    width: 491px;
    left: -38px;
  }

  .live-art {
    transform: scale(0.8);
    transform-origin: 100% 50%;
  }
}

@media (max-width: 1120px) {
  /* Hero empilhado */
  .hero {
    min-height: 0;
  }

  .hero-inner {
    min-height: 0;
    padding-top: 96px;
    align-items: flex-start;
  }

  .hero-content {
    gap: 32px;
  }

  .hero-canvas {
    position: relative;
    inset: auto;
    transform: none;
    height: 520px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 96%);
    mask-image: linear-gradient(180deg, #000 62%, transparent 96%);
  }

  .hero-glow {
    width: 380px;
    height: 460px;
    top: 60px;
    filter: blur(110px);
  }

  .hero-glow-1 { left: calc(50% - 290px); }
  .hero-glow-2 { left: calc(50% - 80px); }

  .hero-emblem {
    left: 50%;
    translate: -50%;
    top: 46px;
    width: 420px;
    height: 417px;
  }

  .hero-photo {
    left: 50%;
    translate: -50%;
    top: 16px;
    width: 440px;
  }

  .float-card {
    display: none;
  }

  .sobre-content h2 br {
    display: none;
  }

  /* Sobre empilhado */
  .sobre {
    padding-block: 96px;
  }

  .sobre-inner {
    flex-direction: column;
    align-items: center;
    gap: 56px;
  }

  .sobre-media {
    width: min(460px, 86vw);
    margin-top: 100px;
  }

  .sobre-card {
    width: 100%;
    height: auto;
    aspect-ratio: 548 / 781;
  }

  .sobre-photo {
    width: 116%;
    left: -8%;
  }

  .sobre-content {
    max-width: 640px;
  }

  /* Provas */
  .provas-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 48px;
  }

  /* Live */
  .live {
    padding-block: 96px;
  }

  .live-content {
    margin-inline: auto;
    align-items: center;
    text-align: center;
    padding-inline: 24px;
  }

  /* mantém só o ícone principal como detalhe no canto do card */
  .yt-top,
  .yt-bottom {
    display: none;
  }

  .yt-main {
    left: auto;
    right: -40px;
    top: auto;
    bottom: -50px;
    width: 220px;
    height: 170px;
    opacity: 0.5;
  }

  .live-card {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .provas-cards {
    gap: 24px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .prova-card {
    /* dois cards + "espiada" do próximo, para dar affordance de scroll */
    flex: 0 0 clamp(260px, 44%, 340px);
    aspect-ratio: auto;
  }

  .prova-card-video {
    flex-basis: clamp(200px, 36%, 280px);
    aspect-ratio: 9 / 16;
  }

  .footer {
    padding-block: 48px;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 20px;
  }

  .footer p {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .hero-content {
    gap: 24px;
  }

  .hero-logo {
    height: 30px;
  }

  .badge {
    font-size: 13px;
    padding: 8px 18px;
    gap: 10px;
  }

  .btn-whatsapp {
    padding: 18px 32px;
    width: 100%;
    justify-content: center;
  }

  .hero-canvas {
    height: 420px;
  }

  .hero-photo {
    width: 360px;
  }

  .hero-emblem {
    width: 340px;
    height: 337px;
  }

  .sobre-content,
  .hero-content {
    max-width: 100%;
  }

  .prova-card {
    flex: 0 0 78%;
  }

  .prova-card-video {
    flex-basis: 62%;
  }
}
