:root {
  /* Cores base */
  --bg: #0c0e0a;
  --bg-footer: #13160f;
  --text: rgba(255, 255, 255, .85);
  --text-strong: #fff;

  /* Verdes */
  --green-1: #0c3a14;
  --green-2: #00d33c;
  --line: #0cce3b;

  /* UI */
  --radius-card: 15px;
  --radius-btn: 8px;

  /* Layout desktop */
  --left-col-desktop: 480px;
}

/* =========================
   Fontes locais (Obviously)
   ========================= */
@font-face {
  font-family: "Obviously";
  src: url("./assets/fonts/obviouslyLight.otf") format("opentype");
  font-weight: 300;
}
@font-face {
  font-family: "Obviously";
  src: url("./assets/fonts/obviouslyRegular.otf") format("opentype");
  font-weight: 400;
}
@font-face {
  font-family: "Obviously";
  src: url("./assets/fonts/obviouslySemiBold.otf") format("opentype");
  font-weight: 600;
}

/* ===== Reset mínimo ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: "Obviously", sans-serif;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

main { flex: 1; }

/* ===== PRELOADER (logo Adinity) ===== */
.preloader{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(12,14,10,.92); /* fundo escuro do seu tema */
  z-index: 9999;                  /* acima de tudo */
  transition: opacity .45s ease, visibility .45s ease;
}

.preloader__inner{
  display: grid;
  place-items: center;
  gap: 14px;
  filter: drop-shadow(0 6px 32px rgba(0,0,0,.45));
}

.preloader__logo{
  width: 120px;
  height: auto;
  animation: logoPulse 1.2s ease-in-out infinite;
}

.preloader__ring{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(0,211,60,.18); /* seu verde suave */
  border-top-color: #00d33c;            /* seu verde principal */
  animation: spin 1s linear infinite;
}

.preloader.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* animações */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes logoPulse {
  0%, 100% { transform: scale(1);   filter: drop-shadow(0 0 0 rgba(0,211,60,0)); }
  50%      { transform: scale(1.04); filter: drop-shadow(0 0 18px rgba(0,211,60,.45)); }
}

/* acessibilidade: reduz/zera animações se o usuário pedir */
@media (prefers-reduced-motion: reduce){
  .preloader__logo, .preloader__ring { animation: none !important; }
}

/* =========================
   BG decorativo fixo
   ========================= */
.bg-logo {
  width: 320%;
  position: fixed;
  margin-left: -50%;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("./assets/background.svg") no-repeat center / cover;
  opacity: .20;
}

/* =========================
   Layout principal
   ========================= */
.page {
  display: grid;
  grid-template-columns: 1fr;
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 18px 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* =========================
   Hero
   ========================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  position: relative;
}

/* Hero mobile (por trás do avatar) */
.hero-figure--mobile {
  position: relative;
  z-index: 0;
  width: 105%;
  max-width: 600px;
  margin: 0 auto;
}
.hero-figure--mobile img {
  display: block;
  width: 100%;
  height: auto;
}

/* Avatar */
.avatar {
  position: relative;
  z-index: 2;
  margin-top: -42px;
  width: clamp(70px, 18vw, 100px);
  height: clamp(70px, 18vw, 100px);
  border-radius: 50%;
  border: 1px solid #fff;
  overflow: hidden;
  background: #000;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Títulos e subtítulo */
.name {
  font-weight: 400;
  color: var(--text-strong);
  font-size: clamp(23px, 6vw, 35px);
  line-height: 1.1;
  margin: 5px 0 0;
}
.grad-dezes {
  font-weight: 600;
  background: linear-gradient(90deg, var(--green-1), var(--green-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subcopy {
  font-weight: 300;
  font-size: clamp(11px, 3vw, 18px);
  margin: -3px 0 10px;
} 

/* ========================= 
   Cards
   ========================= */
.cards { display: flex; flex-direction: column; gap: 16px; }

.card {
  width: min(100%, 795px);
  aspect-ratio: 795 / 345;
  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 254, 55, 0.162);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  margin-inline: auto;

  /* Transições de interação (hover/click) */
  transition:
    transform .25s ease,
    box-shadow .28s ease,
    border-color .28s ease,
    filter .28s ease;

  cursor: pointer;
}

/* Fundos dos cards */
.card-wapp { background-image: url('./assets/CardWhatsApp.jpg'); }
.card-sinap { background-image: url('./assets/CardMetodo.jpg'); }

/* Conteúdo textual do card (lado esquerdo) */
.card__content {
  position: absolute;
  top: 50%;
  left: clamp(15px, 4vw, 30px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: clamp(230px, 60%, 520px);
}
.card__title {
  margin: 0;
  color: #fff;
  font-weight: 300;
  font-size: clamp(12px, 3.1vw, 17px);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .30);
}
.text-wapp {
  background: linear-gradient(90deg, #135c1f, var(--green-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}



.btn{
  display: inline-flex;           
  align-self: flex-start;            
  inline-size: max-content;             
  padding: clamp(7px, 1.4vw, 8px) clamp(13px, 1.8vw, 20px);      
  font-size: clamp(9px, 2vw, 12px);
  font-weight: 600;
  color: var(--bg);
  border-radius: var(--radius-btn);
  background: linear-gradient(90deg, #147426, #00d33c, #147426);
  text-decoration: none;
  transition: transform .22s ease, opacity .22s ease, filter .22s ease;
}

/* Interações (hover/click) */
.card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 10px 32px rgba(0, 255, 90, 0.12);
  border-color: rgba(0, 255, 90, 0.35);
}
.card:active {
  transform: translateY(-1px) scale(.985);
  transition: transform .12s ease; /* clique mais responsivo */
}
.card:hover .btn { transform: translateX(2px); opacity: .96; }
.card:active .btn { transform: translateX(1px) scale(.98); }


.card.reveal {
  transition:
    opacity .6s cubic-bezier(.22,.61,.36,1),
    transform .6s cubic-bezier(.22,.61,.36,1),
    box-shadow .28s ease,
    border-color .28s ease,
    filter .28s ease;
}

/* =========================
   Logo e Footer
   ========================= */
.brand { display: flex; justify-content: center; margin-top: 30px; }
.brand img { width: 130px; height: auto; }

.footer {
  background: var(--bg-footer);
  color: rgba(255, 255, 255, .85);
  text-align: center;
  padding: 18px 12px;
  font-size: clamp(8px, 2vw, 12px);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* =========================
   Desktop (≥1025px)
   ========================= */
.right-hero { display: none; }

@media (min-width: 1120px) {
  .avatar { margin-top: 12px; }

  .page {
    grid-template-columns: minmax(360px, var(--left-col-desktop)) 1fr;
    gap: 44px;
    width: min(1200px, 92vw);
    margin: 40px auto 60px;
  }

  .wrap { max-width: none; padding: 10px 0 40px; }
  .hero { align-items: center; text-align: center; }
  .hero-figure--mobile { display: none; }

  .right-hero {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    z-index: 0;
    overflow: visible;
  }
  .hero-figure--desktop { width: 100%; max-width: none;  }
  .hero-figure--desktop img { width: 150%; height: auto; display: block;  transform: translateX(-5%);  }

  .bg-logo {
    margin-left: 0;
    width: 120%;
    height: auto;
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url("./assets/background.svg") no-repeat center / cover;
    opacity: .20;
  }
}

/* =========================
   Animação de entrada
   ========================= */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
/* Aplica só no container principal (evita conflitos no body) */
.page-enter .page {
  animation: pageFadeIn .7s ease-out both;
}

/* =========================
   Reveal suave por seção
   ========================= */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity .6s cubic-bezier(.22,.61,.36,1),
    transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Stagger leve para os cards */
.cards .card.reveal { transition-delay: .05s; }
.cards .card.reveal:nth-of-type(2) { transition-delay: .15s; }

/* =========================
   Acessibilidade
   ========================= */
@media (prefers-reduced-motion: reduce) {
  .page-enter .page { animation: pageFadeIn .7s ease-out both !important; }
}
