﻿:root {
  --bg: #020202;
  --panel: #0a0a0d;
  --panel-2: #0e0e12;
  --text: #ffffff;
  --muted: #bfc7d4;
  --blue-1: #16a7ff;
  --blue-2: #10d3ff;
  --green-1: #19c56d;
  --green-2: #34e07f;
  --line: rgba(255, 255, 255, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  /* Subtitulo sob o "P" da logo (desktop). */
  --hero-subtitle-left: 30%;
  --hero-subtitle-bottom: 0px;
  /* Ajustes para tablet. */
  --hero-subtitle-left-tablet: 41%;
  --hero-subtitle-bottom-tablet: 0px;
  /* Ajustes para mobile. */
  --hero-subtitle-left-mobile: 39%;
  --hero-subtitle-bottom-mobile: 0px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  background-color: #000;
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 170, 255, 0.14) 0%,
      rgba(0, 170, 255, 0.04) 6%,
      rgba(0, 0, 0, 0) 14%,
      rgba(0, 0, 0, 0) 86%,
      rgba(0, 170, 255, 0.04) 94%,
      rgba(0, 170, 255, 0.14) 100%
    ),
    radial-gradient(circle at left center, rgba(0, 195, 255, 0.14), transparent 18%),
    radial-gradient(circle at right center, rgba(0, 195, 255, 0.14), transparent 18%),
    linear-gradient(180deg, #020202 0%, #000 35%, #020202 65%, #000 100%);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 183, 255, 0.05) 3%,
      transparent 8%,
      transparent 92%,
      rgba(0, 183, 255, 0.05) 97%,
      transparent 100%
    );
  mix-blend-mode: normal;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(0, 200, 255, 0.06), transparent 18%),
    radial-gradient(circle at 92% 18%, rgba(0, 200, 255, 0.06), transparent 18%),
    radial-gradient(circle at 10% 55%, rgba(0, 200, 255, 0.05), transparent 20%),
    radial-gradient(circle at 90% 60%, rgba(0, 200, 255, 0.05), transparent 20%);
  opacity: 0.65;
}

.glow {
  position: fixed;
  top: 0;
  width: 160px;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

.glow-left {
  left: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 200, 255, 0.22) 0%,
      rgba(0, 200, 255, 0.12) 18%,
      rgba(0, 200, 255, 0.04) 40%,
      transparent 100%
    );
  filter: blur(4px);
}

.glow-right {
  right: 0;
  background:
    linear-gradient(
      270deg,
      rgba(0, 200, 255, 0.22) 0%,
      rgba(0, 200, 255, 0.12) 18%,
      rgba(0, 200, 255, 0.04) 40%,
      transparent 100%
    );
  filter: blur(4px);
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 90px;
  position: relative;
  z-index: 1;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 22%, rgba(255, 255, 255, 0.06) 22.1%, transparent 22.4%),
    linear-gradient(to bottom, transparent 48%, rgba(255, 255, 255, 0.05) 48.1%, transparent 48.4%),
    linear-gradient(to bottom, transparent 73%, rgba(255, 255, 255, 0.05) 73.1%, transparent 73.4%);
  z-index: 0;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 4px 0 24px;
  position: relative;
  z-index: 1;
}

.brandmark {
  position: relative;
  width: min(980px, 96%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  padding-top: clamp(0.15rem, 0.6vw, 0.5rem);
  padding-bottom: clamp(0.95rem, 1.6vw, 1.25rem);
}

.brand-logo {
  display: block;
  width: min(100%, 840px);
  height: clamp(120px, 14vw, 210px);
  object-fit: cover;
  /* Ajuste vertical da logo (desktop): aumente/decremente o segundo valor em %. Ex.: 58% sobe, 68% desce. */
  object-position: center 50%;
  animation: logoIntro 680ms ease-out both;
  will-change: transform, opacity;
}

.hero-subtitle {
  position: absolute;
  bottom: var(--hero-subtitle-bottom);
  left: var(--hero-subtitle-left);
  font-family: inherit;
  font-size: clamp(0.94rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  line-height: 1.1;
  /* Desktop: altere left para mover horizontalmente e bottom para subir/descer. */
  margin: 0;
  text-align: left;
  max-width: none;
  white-space: nowrap;
  animation: subtitleIntro 880ms ease-out 120ms both;
}

@keyframes logoIntro {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes subtitleIntro {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-box {
  width: min(780px, 100%);
  background: rgba(12, 12, 14, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 30px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    inset 0 0 25px rgba(255, 255, 255, 0.015);
  padding: 22px 24px 16px;
}

.hero-box p {
  font-size: 1.35rem;
  line-height: 1.35;
  color: #f1f5fb;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.hero-box p + p {
  margin-top: 10px;
}

.hero-intro {
  text-align: center;
  font-weight: 700;
}

.hero-intro-mobile {
  display: none;
}

.hero-intro-desktop {
  display: inline;
}

.hero-intro-break {
  display: none;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-action small {
  margin-top: 0;
  display: flex;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  background: linear-gradient(90deg, var(--blue-1), var(--blue-2));
  box-shadow: 0 10px 25px rgba(0, 170, 255, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 14px 28px rgba(0, 170, 255, 0.34);
}

.btn.wide {
  width: 100%;
  margin-top: 18px;
}

.btn.green {
  background: linear-gradient(90deg, var(--green-1), var(--green-2));
  box-shadow: 0 10px 25px rgba(52, 224, 127, 0.24);
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  margin-top: 26px;
  position: relative;
  z-index: 1;
}

.first-grid {
  margin-top: 34px;
}

.card {
  background: rgba(7, 7, 9, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  padding: 18px 18px 16px;
  overflow: hidden;
  position: relative;
  transition: transform 0.5s ease, opacity 0.5s ease;
  content-visibility: auto;
  contain-intrinsic-size: 1px 560px;
}

.card img {
  width: 100%;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 16px;
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.media-hero {
  aspect-ratio: 16 / 9;
}

.media-magazine {
  aspect-ratio: 16 / 9;
}

.media-feature {
  aspect-ratio: 16 / 9;
}

.card-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  margin-bottom: 0;
}

#revista + .grid.two .card:first-child .media-magazine img {
  object-position: center 5%;
}

#revista + .grid.two .card {
  display: flex;
  flex-direction: column;
}

#revista + .grid.two .btn.wide {
  margin-top: auto;
}

.card p {
  color: #f3f7fc;
  font-size: 1.18rem;
  line-height: 1.58;
  margin-bottom: 14px;
  text-align: left;
}

.card small {
  margin-top: 10px;
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bar-title {
  position: relative;
  font-family: inherit;
  font-size: 2rem;
  line-height: 0.98;
  margin-bottom: 16px;
  padding: 0 10px 2px;
  display: block;
  width: 100%;
  color: #fff;
  z-index: 1;
  font-weight: 800;
}

.bar-title::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  /* Sobe/desce a faixa azul do título: diminua/aumente o valor de top. */
  top: 56%;
  height: 0.82em;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--blue-1), var(--blue-2));
  z-index: -1;
  border-radius: 2px;
}

.divider {
  margin: 18px 0 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 320px;
  height: 60px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 195, 255, 0.10), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.divider span {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 195, 255, 0.85), transparent);
}

.divider h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.9rem);
  font-weight: 400;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
}

.divider strong {
  font-weight: 800;
}

.metric {
  text-align: center;
  margin: 18px 0 8px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  z-index: 1;
  content-visibility: auto;
  contain-intrinsic-size: 1px 42px;
}

.video-mosaic {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 18px;
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.video-mosaic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  border: none;
  box-shadow: none;
  object-fit: cover;
  object-position: center;
  margin: 0;
}

.mosaic-main {
  z-index: 1;
}

.ebook-row {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

.ebook-left {
  position: relative;
  padding-right: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ebook-left::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #27ff8f, #00ff66);
}

.ebook-left img {
  width: min(100%, 430px);
  display: block;
  border-radius: 14px;
}

.spinning-book {
  animation: bookPremiumFloat 5s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.24));
}

@keyframes bookPremiumFloat {
  0% {
    transform: perspective(1200px) rotateY(-12deg) rotateX(2deg) translateY(0);
  }
  25% {
    transform: perspective(1200px) rotateY(-4deg) rotateX(0deg) translateY(-6px);
  }
  50% {
    transform: perspective(1200px) rotateY(10deg) rotateX(-1deg) translateY(0);
  }
  75% {
    transform: perspective(1200px) rotateY(4deg) rotateX(1deg) translateY(-6px);
  }
  100% {
    transform: perspective(1200px) rotateY(-12deg) rotateX(2deg) translateY(0);
  }
}

.ebook-right {
  padding: 8px 0;
}

.ebook-right p {
  font-size: 1.24rem;
  line-height: 1.6;
  margin-bottom: 18px;
  color: #f3f7fc;
}

.ebook-right small {
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  margin-top: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .grid.two,
  .ebook-row {
    grid-template-columns: 1fr;
  }

  .brandmark {
    width: min(900px, 94%);
    padding-top: clamp(0.2rem, 0.9vw, 0.6rem);
    padding-bottom: clamp(0.8rem, 1.5vw, 1.1rem);
  }

  .brand-logo {
    /* Ajuste vertical da logo (tablet): mesmo comportamento do desktop. */
    height: clamp(110px, 17vw, 180px);
  }

  .hero-subtitle {
    /* Tablet: use as variaveis no :root para mover. */
    left: var(--hero-subtitle-left-tablet);
    bottom: var(--hero-subtitle-bottom-tablet);
    font-size: clamp(0.88rem, 1.7vw, 1.06rem);
  }

  .ebook-left {
    padding-right: 0;
    padding-bottom: 18px;
  }

  .ebook-left::after {
    width: 100%;
    height: 4px;
    top: auto;
    bottom: 0;
    right: auto;
    left: 0;
    background: linear-gradient(90deg, #27ff8f, #00ff66);
  }

  .ebook-left img {
    max-width: 100%;
  }

  .hero-box p {
    font-size: 1.12rem;
  }

  .card p,
  .ebook-right p {
    font-size: 1.06rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .brandmark {
    width: min(920px, 95%);
  }

  .brand-logo {
    width: min(100%, 780px);
  }
}

@media (max-width: 640px) {
  body::before {
    background:
      linear-gradient(
        90deg,
        rgba(0, 183, 255, 0.16) 0%,
        transparent 12%,
        transparent 88%,
        rgba(0, 183, 255, 0.16) 100%
      );
  }

  .glow {
    width: 95px;
    opacity: 0.65;
  }

  .page {
    width: min(100% - 22px, 1120px);
    padding: 18px 0 72px;
  }

  .hero {
    gap: 8px;
    padding-bottom: 14px;
  }

  .brandmark {
    width: min(980px, 100%);
    padding-top: 0.2rem;
    padding-bottom: 0.95rem;
  }

  .brand-logo {
    width: min(100%, 560px);
    /* Ajuste vertical da logo (mobile): altere object-position abaixo se quiser outro enquadramento. */
    height: clamp(88px, 24vw, 132px);
  }

  .hero-subtitle {
    /* Mobile: use as variaveis no :root para mover. */
    left: var(--hero-subtitle-left-mobile);
    bottom: var(--hero-subtitle-bottom-mobile);
    font-size: clamp(0.86rem, 3.1vw, 1rem);
    max-width: none;
    white-space: nowrap;
    line-height: 1.05;
  }

  .hero-box {
    width: min(360px, 100%);
    margin: 0 auto;
    padding: 16px 12px 14px;
    border-radius: 24px;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.65),
      0 0 26px rgba(0, 174, 255, 0.16),
      inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  }

  .hero-box p {
    font-size: 0.87rem;
    line-height: 1.5;
  }

  .hero-intro-mobile {
    display: inline;
  }

  .hero-intro-desktop {
    display: none;
  }

  .hero-intro-break {
    display: block;
  }

  .hero-actions {
    margin-top: 14px;
    gap: 10px;
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: min(300px, 100%);
    min-width: unset;
    margin-inline: auto;
    font-size: 1.22rem;
    letter-spacing: 0.01em;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
      0 10px 25px rgba(0, 170, 255, 0.34),
      inset 0 1px 1px rgba(255, 255, 255, 0.25);
  }

  .hero-action {
    width: min(300px, 100%);
    gap: 6px;
  }

  .hero-action small,
  .card small,
  .ebook-right small {
    font-size: 0.72rem;
  }

  .grid.two {
    gap: 26px;
    margin-top: 18px;
  }

  .first-grid {
    margin-top: 24px;
  }

  .card {
    width: min(360px, 100%);
    margin: 0 auto;
    padding: 12px 12px 14px;
    border-radius: 24px;
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow:
      0 16px 34px rgba(0, 0, 0, 0.62),
      0 0 28px rgba(0, 170, 255, 0.14),
      inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  .card p,
  .ebook-right p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .bar-title {
    font-size: 1.78rem;
    line-height: 0.98;
    padding: 0 8px 2px;
    margin-bottom: 12px;
  }

  .divider {
    margin: 14px 0 16px;
    gap: 8px;
  }

  .divider h3 {
    font-size: 0.95rem;
  }

  .metric {
    font-size: 0.84rem;
    line-height: 1.5;
    margin: 14px 0 8px;
  }

  .media-hero,
  .media-magazine,
  .media-feature,
  .video-mosaic {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    margin-bottom: 12px;
  }

  .ebook-row {
    margin-top: 30px;
    gap: 18px;
  }

  .ebook-left {
    width: min(330px, 100%);
    margin: 0 auto;
    padding-right: 0;
    padding-bottom: 12px;
  }

  .ebook-right {
    width: min(360px, 100%);
    margin: 0 auto;
    background: rgba(7, 7, 9, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 24px;
    padding: 14px 12px 16px;
    box-shadow:
      0 16px 34px rgba(0, 0, 0, 0.62),
      0 0 28px rgba(47, 255, 130, 0.12);
  }

  .spinning-book {
    animation-duration: 8s;
  }
}

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

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

  .spinning-book {
    animation: none;
    transform: none;
  }

  .btn {
    transition: none;
  }

  .brand-logo,
  .hero-subtitle {
    animation: none !important;
  }
}
