/* ================================
   DESIGN TOKENS
================================ */
:root {
  --color-blue-900: #000033;
  --color-blue-800: #003366;
  --color-blue-700: #006699;

  --color-green-800: #006633;
  --color-green-700: #009966;

  --color-yellow-500: #ffcc00;
  --color-yellow-200: #ffffcc;

  --color-white: #ffffff;
  --color-black: #000000;

  --color-gray-900: #333333;
  --color-gray-700: #666666;
  --color-gray-300: #cccccc;

  --bg-main: #ffffcc;
  --bg-card: rgba(255, 255, 255, 0.88);

  --shadow-soft: 0 12px 35px rgba(0, 0, 51, 0.16);
  --shadow-strong: 0 22px 70px rgba(0, 0, 51, 0.28);
  --shadow-green: 0 18px 45px rgba(0, 102, 51, 0.3);

  --radius-sm: 0.875rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --radius-pill: 999px;

  --container: 1120px;
}

/* ================================
   RESET
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Roboto", Arial, sans-serif;
  color: var(--color-gray-900);
  background:
    radial-gradient(circle at top left, rgba(255, 204, 0, 0.3), transparent 28rem),
    radial-gradient(circle at bottom right, rgba(0, 102, 153, 0.18), transparent 26rem),
    var(--bg-main);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* ================================
   BACKGROUND MOTION
================================ */
.page-glow {
  position: fixed;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.36;
  pointer-events: none;
  animation: floatGlow 9s ease-in-out infinite;
}

.page-glow--one {
  top: 8rem;
  left: -7rem;
  background: #ffcc00;
}

.page-glow--two {
  right: -7rem;
  bottom: 5rem;
  background: #006699;
  animation-delay: -3s;
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(1.5rem, -1.25rem, 0) scale(1.08);
  }
}

/* ================================
   HEADER
================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(0, 51, 102, 0.92);
  color: var(--color-white);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 204, 0, 0.38);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.header__logo {
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  background: url("assets/logo.jpg") center / cover no-repeat;
  border-radius: 50%;
  border: 3px solid var(--color-yellow-500);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
}

.header__copy {
  min-width: 0;
}

.header__eyebrow {
  color: var(--color-yellow-500);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header__title {
  margin-top: 0.2rem;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.05;
}

.header__status {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.header__status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-green-700);
  box-shadow: 0 0 0 0 rgba(0, 153, 102, 0.75);
  animation: pulseDot 1.8s ease-out infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 153, 102, 0.75);
  }

  70% {
    box-shadow: 0 0 0 0.6rem rgba(0, 153, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 153, 102, 0);
  }
}

/* ================================
   MAIN
================================ */
.main {
  flex: 1;
}

/* ================================
   HERO
================================ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 3rem 1rem 3.5rem;
  color: var(--color-white);
  background:
    linear-gradient(135deg, rgba(0, 0, 51, 0.96), rgba(0, 51, 102, 0.94), rgba(0, 102, 51, 0.88)),
    var(--color-blue-800);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(120deg, transparent, rgba(255, 204, 0, 0.22), transparent),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 220% 100%, 3rem 3rem, 3rem 3rem;
  animation: heroLight 7s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 4rem;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg-main));
}

@keyframes heroLight {
  0% {
    background-position: -180% 0, 0 0, 0 0;
  }

  100% {
    background-position: 180% 0, 0 0, 0 0;
  }
}

.hero__orb {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(4px);
  animation: orbit 8s ease-in-out infinite;
}

.hero__orb--one {
  width: 13rem;
  height: 13rem;
  top: 2rem;
  right: -5rem;
  background: var(--color-yellow-500);
}

.hero__orb--two {
  width: 9rem;
  height: 9rem;
  bottom: 2rem;
  left: -4rem;
  background: var(--color-green-700);
  animation-delay: -4s;
}

@keyframes orbit {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(-1rem, 1.4rem, 0) rotate(10deg);
  }
}

.hero__content {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 204, 0, 0.95);
  color: var(--color-blue-900);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(255, 204, 0, 0.22);
}

.hero__title {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(2.45rem, 13vw, 5.6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero__description {
  max-width: 650px;
  margin: 1.2rem auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.hero__actions {
  margin-top: 1.8rem;
}

.hero__steps {
  width: 100%;
  max-width: 760px;
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  text-align: left;
}

.step__number {
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-yellow-500);
  color: var(--color-blue-900);
  font-size: 0.85rem;
  font-weight: 900;
}

.step__text {
  font-size: 0.9rem;
  font-weight: 700;
}

/* ================================
   CTA CARD
================================ */
.cta-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 660px;
  min-height: 6.5rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 204, 0.94));
  color: var(--color-gray-900);
  text-decoration: none;
  box-shadow: var(--shadow-green);
  transform-style: preserve-3d;
}

.cta-card::after {
  content: "";
  position: absolute;
  inset: auto 1.25rem 0;
  height: 0.35rem;
  border-radius: var(--radius-pill) var(--radius-pill) 0 0;
  background: linear-gradient(90deg, var(--color-green-700), var(--color-yellow-500));
}

.cta-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.7) 48%,
    transparent 62%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: shine 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0%,
  45% {
    transform: translateX(-120%);
  }

  75%,
  100% {
    transform: translateX(120%);
  }
}

.cta-card__icon-wrap {
  width: 3.4rem;
  height: 3.4rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.1rem;
  background: var(--color-green-800);
  box-shadow: 0 12px 28px rgba(0, 102, 51, 0.28);
}

.cta-card__icon {
  width: 2rem;
  height: 2rem;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.cta-card__icon--whatsapp {
  background-image: url("assets/whatsapp.png");
}

.cta-card__content {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.cta-card__title {
  color: var(--color-green-800);
  font-size: 1.05rem;
  font-weight: 900;
}

.cta-card__text {
  margin-top: 0.2rem;
  color: var(--color-gray-700);
  font-size: 0.92rem;
}

.cta-card__arrow {
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-yellow-500);
  color: var(--color-blue-900);
  font-size: 1.2rem;
  font-weight: 900;
}

/* ================================
   SECTION
================================ */
.section {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 1rem;
}

.section__header {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.section__eyebrow {
  color: var(--color-green-800);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section__title {
  margin-top: 0.35rem;
  color: var(--color-blue-900);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.section__description {
  max-width: 600px;
  margin: 1rem auto 0;
  color: var(--color-gray-700);
  font-size: 1rem;
}

/* ================================
   MANUAL CARDS
================================ */
.support {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.manual-card {
  position: relative;
  overflow: hidden;
  min-height: 13rem;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 204, 0.78));
  border: 1px solid rgba(0, 51, 102, 0.12);
  box-shadow: var(--shadow-soft);
  color: var(--color-gray-900);
  text-decoration: none;
  transform-style: preserve-3d;
}

.manual-card::before {
  content: "";
  position: absolute;
  width: 9rem;
  height: 9rem;
  right: -4rem;
  top: -4rem;
  border-radius: 50%;
  background: rgba(255, 204, 0, 0.36);
  transition: transform 220ms ease;
}

.manual-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 0.35rem;
  background: linear-gradient(90deg, var(--color-blue-800), var(--color-green-700), var(--color-yellow-500));
}

.manual-card__topline {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 51, 102, 0.08);
  color: var(--color-blue-800);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.manual-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.manual-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border-radius: 1rem;
  background-color: var(--color-blue-800);
  background-size: 1.55rem;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 12px 25px rgba(0, 51, 102, 0.2);
}

.manual-card__icon--book {
  background-image: url("assets/sup_guidebook.png");
}

.manual-card__title {
  display: block;
  color: var(--color-blue-900);
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.12;
}

.manual-card__text {
  display: block;
  margin-top: 0.35rem;
  color: var(--color-gray-700);
  font-size: 0.9rem;
}

.manual-card__footer {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--color-green-800);
  font-size: 0.9rem;
  font-weight: 900;
}

/* ================================
   INTERAÇÕES
================================ */
.interactive-card {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
  will-change: transform;
}

.interactive-card:focus-visible {
  outline: 4px solid var(--color-yellow-500);
  outline-offset: 5px;
}

@media (hover: hover) {
  .interactive-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
  }

  .manual-card:hover::before {
    transform: scale(1.3);
  }

  .manual-card:hover .manual-card__footer span {
    transform: translateX(3px);
  }
}

/* ================================
   FOOTER
================================ */
.footer {
  padding: 1.2rem 1rem;
  background: var(--color-blue-900);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
}

.footer__text,
.footer__link {
  font-size: 0.75rem;
}

.footer__link {
  color: var(--color-yellow-500);
  font-weight: 900;
  text-decoration: none;
}

.footer__link:hover,
.footer__link:focus-visible {
  text-decoration: underline;
}

/* ================================
   REVEAL COM JS
================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition:
    opacity 650ms ease,
    transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.js .support [data-reveal]:nth-child(2) {
  transition-delay: 90ms;
}

.js .support [data-reveal]:nth-child(3) {
  transition-delay: 180ms;
}

/* ================================
   TABLET
================================ */
@media (min-width: 640px) {
  .header {
    padding: 1rem 1.5rem;
  }

  .header__status {
    display: inline-flex;
  }

  .header__logo {
    width: 3.75rem;
    height: 3.75rem;
  }

  .header__title {
    font-size: 1.35rem;
  }

  .hero {
    padding: 4.5rem 1.5rem 5rem;
  }

  .hero__description {
    font-size: 1.16rem;
  }

  .hero__steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .step {
    justify-content: center;
    text-align: center;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .support {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding-inline: 1.5rem;
  }
}

/* ================================
   DESKTOP
================================ */
@media (min-width: 960px) {
  .header {
    padding-inline: calc((100vw - var(--container)) / 2);
  }

  .hero {
    padding-top: 5.5rem;
    padding-bottom: 6rem;
  }

  .support {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .manual-card {
    min-height: 15rem;
  }
}

/* ================================
   REDUCED MOTION
================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
