/* ==========================================================================
   VITALLES FIT — Link-in-Bio Premium Oficial
   Diretrizes do Cérebro Operacional: O COPY
   Padrão: Agência Internacional • Mobile-First Soberano • Zero Cara de IA
   ========================================================================== */

/* --- 1. DESIGN TOKENS & RESET --- */
:root {
  /* Paleta Base Limpa (Base Branca indicada pelo cliente) */
  --bg-pure: #ffffff;
  --bg-canvas: #fcfdfc;
  --bg-subtle: #f4f8f5;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: rgba(255, 255, 255, 0.95);

  /* Acentos de Vitalidade & Natureza Nobre */
  --color-primary: #0d2818;
  --color-primary-soft: #1b4332;
  --color-forest: #2d6a4f;
  --color-leaf: #40916c;
  --color-sprout: #52b788;
  --color-mint-glow: rgba(82, 183, 136, 0.18);
  --color-sun-glow: rgba(235, 179, 56, 0.15);

  /* Cores Oficiais de Canais */
  --color-wpp: #25d366;
  --color-wpp-dark: #128c7e;
  --color-wpp-glow: rgba(37, 211, 102, 0.22);
  --color-insta: #e1306c;
  --color-insta-glow: rgba(225, 48, 108, 0.16);

  /* Tipografia & Legibilidade */
  --text-main: #0d2818;
  --text-muted: #3a5344;
  --text-soft: #637c6d;

  /* Bordas & Sombras Orgânicas */
  --border-delicate: rgba(27, 67, 50, 0.08);
  --border-glass: rgba(255, 255, 255, 0.85);
  --border-focus: rgba(45, 106, 79, 0.4);
  --shadow-ambient: 0 12px 36px -10px rgba(13, 40, 24, 0.07);
  --shadow-hover: 0 20px 48px -12px rgba(13, 40, 24, 0.14);
  --shadow-card: 0 8px 24px -6px rgba(13, 40, 24, 0.05);

  /* Tipografia */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transições de Elite */
  --ease-elastic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
  --speed-fast: 0.25s;
  --speed-normal: 0.4s;
}

/* Reset Universal & Higiene Visual */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  background-color: var(--bg-pure);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden !important;
  width: 100%;
}

body {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-pure);
  color: var(--text-main);
  overflow-x: hidden !important;
  line-height: 1.5;
}

/* Acessibilidade: Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--color-primary);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  transition: top 0.2s var(--ease-elastic);
  text-decoration: none;
}

.skip-link:focus {
  top: 20px;
  outline: 3px solid var(--color-sprout);
}

/* --- 2. ATMOSFERA & FUNDO CONTÍNUO --- */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 0.8s ease;
}

.ambient-glow-top {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(650px, 95vw);
  height: 480px;
  background: radial-gradient(circle, var(--color-mint-glow) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
}

/* --- 3. ESTRUTURA DO CONTAINER PRINCIPAL --- */
.page-scroller {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow-x: hidden !important;
}

.main-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden !important;
}

/* --- 4. HERO SECTION / IDENTIDADE --- */
.hero-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

/* Avatar com Halo e Anel Orgânico */
.avatar-orbit {
  position: relative;
  width: 124px;
  height: 124px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-halo {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(82, 183, 136, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  filter: blur(12px);
  z-index: 1;
  animation: haloBreathe 5s ease-in-out infinite alternate;
}

@keyframes haloBreathe {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.08); opacity: 0.95; }
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--color-leaf), rgba(82, 183, 136, 0.4), var(--color-forest));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 2;
}

.avatar-image {
  position: relative;
  z-index: 3;
  width: 114px;
  height: 114px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(13, 40, 24, 0.12);
  background-color: var(--bg-subtle);
}

/* Badge de Autoridade Técnica */
.authority-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(45, 106, 79, 0.07);
  border: 1px solid rgba(45, 106, 79, 0.18);
  border-radius: 999px;
  margin-bottom: 14px;
  transition: transform var(--speed-fast) var(--ease-elastic);
}

.badge-icon {
  color: var(--color-forest);
  flex-shrink: 0;
}

.badge-text {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-forest);
  text-transform: uppercase;
}

/* Nome Monumental */
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--color-primary);
  margin-bottom: 8px;
}

/* Descrição Oficial */
.brand-role {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-forest);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

/* Manifesto da Bio Oficial */
.bio-manifesto {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-delicate);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
}

.manifesto-lead {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.manifesto-divider {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-sprout), transparent);
  margin: 10px auto;
  border-radius: 2px;
}

.manifesto-focus {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-forest);
  letter-spacing: 0.01em;
}

.manifesto-sub {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-top: 4px;
}

/* --- 5. MARQUEE DE POSICIONAMENTO --- */
.ticker-strip {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow: hidden;
  background: linear-gradient(90deg, #f3f8f5, #eaf3ec, #f3f8f5);
  border-top: 1px solid var(--border-delicate);
  border-bottom: 1px solid var(--border-delicate);
  padding: 10px 0;
  margin-top: 12px;
  margin-bottom: 28px;
  user-select: none;
}

.ticker-flow {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  animation: marqueeRoll 24s linear infinite;
  will-change: transform;
}

.ticker-strip:hover .ticker-flow {
  animation-play-state: paused;
}

.ticker-entry {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-forest);
  padding: 0 14px;
}

.ticker-separator {
  color: var(--color-sprout);
  font-size: 0.65rem;
  opacity: 0.8;
}

@keyframes marqueeRoll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- 6. CANAIS OFICIAIS & AÇÕES PRINCIPAIS --- */
.action-portal {
  width: 100%;
  margin-bottom: 32px;
}

.portal-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-wpp);
  box-shadow: 0 0 0 rgba(37, 211, 102, 0.4);
  animation: pulseBeacon 2s infinite;
}

@keyframes pulseBeacon {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.status-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

.actions-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* Card de Ação Geral (Mobile-First >= 48px, acabamento de alto padrão) */
.action-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 76px;
  padding: 16px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-delicate);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--speed-normal) var(--ease-elastic),
              box-shadow var(--speed-normal) var(--ease-elastic),
              border-color var(--speed-fast) ease,
              background var(--speed-fast) ease;
}

.action-card:hover {
  transform: translateY(-3px) scale(1.008);
  box-shadow: var(--shadow-hover);
  background: var(--bg-card-hover);
}

.action-card:active {
  transform: translateY(-1px) scale(0.995);
}

.action-card:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 2px;
}

/* Efeito Shiny Sweep Glow Premium */
.shiny-sweep {
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 25%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.02) 75%,
    transparent 100%
  );
  transform: skewX(-22deg);
  pointer-events: none;
  transition: left 0.75s var(--ease-smooth);
  z-index: 4;
}

.action-card:hover .shiny-sweep,
.action-card:active .shiny-sweep,
.invitation-btn:hover .shiny-sweep,
.invitation-btn:active .shiny-sweep {
  left: 150%;
}

/* Ícones dos Botões */
.action-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--speed-fast) var(--ease-elastic);
}

.action-card:hover .action-icon-wrap {
  transform: scale(1.06);
}

.icon-wrap-wpp {
  background: linear-gradient(135deg, #e8f9ef 0%, #d2f4e0 100%);
  color: var(--color-wpp-dark);
  border: 1px solid rgba(37, 211, 102, 0.25);
  box-shadow: 0 4px 12px var(--color-wpp-glow);
}

.icon-wrap-insta {
  background: linear-gradient(135deg, #fdf0f4 0%, #fbe4ec 100%);
  color: var(--color-insta);
  border: 1px solid rgba(225, 48, 108, 0.2);
  box-shadow: 0 4px 12px var(--color-insta-glow);
}

/* Conteúdo Textual da Ação */
.action-body {
  flex: 1;
  min-width: 0;
}

.action-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.action-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-main);
}

.action-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.action-card-primary .action-tag {
  background: rgba(37, 211, 102, 0.14);
  color: var(--color-wpp-dark);
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.action-card-secondary .action-tag {
  background: rgba(225, 48, 108, 0.1);
  color: var(--color-insta);
  border: 1px solid rgba(225, 48, 108, 0.25);
}

.action-hint {
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Seta de Avanço com Micro-Interação */
.action-arrow {
  color: var(--text-soft);
  flex-shrink: 0;
  transition: transform var(--speed-fast) var(--ease-elastic),
              color var(--speed-fast) ease;
}

.action-card:hover .action-arrow {
  transform: translateX(4px);
  color: var(--color-forest);
}

/* Destaque Sutil no Card Principal (WhatsApp) */
.action-card-primary {
  border-color: rgba(37, 211, 102, 0.25);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 253, 244, 0.75) 100%);
}

.action-card-primary:hover {
  border-color: rgba(37, 211, 102, 0.45);
}

/* --- 7. PILARES DA MARCA (DIREÇÃO DE ARTE EDITORIAL) --- */
.pillars-section {
  width: 100%;
  margin-bottom: 32px;
}

.section-editorial-header {
  text-align: center;
  margin-bottom: 18px;
}

.editorial-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-leaf);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.editorial-title {
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 4.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  line-height: 1.25;
}

.editorial-title em {
  font-style: italic;
  color: var(--color-forest);
  font-weight: 600;
}

.pillars-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-delicate);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(13, 40, 24, 0.03);
  transition: transform var(--speed-fast) var(--ease-elastic),
              background var(--speed-fast) ease,
              border-color var(--speed-fast) ease;
}

.pillar-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(45, 106, 79, 0.15);
}

.pillar-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(45, 106, 79, 0.08);
  color: var(--color-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pillar-heading {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.pillar-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --- 8. CARD CONVITE DIRETO AO WHATSAPP --- */
.direct-invitation {
  width: 100%;
  margin-bottom: 36px;
}

.invitation-inner {
  position: relative;
  width: 100%;
  padding: 24px 20px;
  background: linear-gradient(145deg, #0d2818 0%, #153a25 100%);
  border-radius: 22px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 16px 36px -8px rgba(13, 40, 24, 0.28);
  overflow: hidden;
}

.invitation-ornament {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(82, 183, 136, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.invitation-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: #ffffff;
}

.invitation-text {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
  margin-bottom: 18px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.invitation-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  min-height: 50px;
  padding: 14px 24px;
  background: #ffffff;
  color: var(--color-primary);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform var(--speed-fast) var(--ease-elastic),
              background var(--speed-fast) ease,
              color var(--speed-fast) ease;
}

.invitation-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: #f4fdf7;
  color: var(--color-forest);
}

.invitation-btn:active {
  transform: translateY(0) scale(0.99);
}

.invitation-btn svg {
  color: var(--color-wpp-dark);
  flex-shrink: 0;
}

/* --- 9. RODAPÉ DA MARCA --- */
.site-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-delicate);
}

.footer-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(13, 40, 24, 0.15);
}

.mark-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1;
}

.footer-identity {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.footer-slogan {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.footer-copyright {
  font-size: 0.72rem;
  color: var(--text-soft);
  opacity: 0.85;
}

/* --- 10. ESTADOS DE REVEAL & FALLBACK SEGURO --- */
/* Garantia: conteúdo 100% visível por padrão caso JS não carregue */
[data-reveal] {
  opacity: 1;
  transform: none;
}

.js-ready [data-reveal="up"] {
  opacity: 0;
  transform: translateY(24px);
}

.js-ready [data-reveal="fade"] {
  opacity: 0;
}

.js-ready [data-reveal="scale"] {
  opacity: 0;
  transform: scale(0.92);
}

/* --- 11. AJUSTES RESPONSIVOS FINOS --- */
@media (max-width: 360px) {
  .main-shell {
    padding: 36px 14px 48px;
  }

  .brand-name {
    font-size: 1.85rem;
  }

  .action-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .action-title {
    font-size: 0.98rem;
  }

  .action-icon-wrap {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 768px) {
  .main-shell {
    max-width: 540px;
    padding-top: 64px;
  }

  .hero-block {
    margin-bottom: 28px;
  }

  .avatar-orbit {
    width: 136px;
    height: 136px;
  }

  .avatar-image {
    width: 124px;
    height: 124px;
  }
}

/* --- 12. PREFERS-REDUCED-MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  #ambient-canvas {
    display: none !important;
  }

  .avatar-halo {
    animation: none !important;
  }

  .ticker-flow {
    animation: none !important;
    overflow-x: auto;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
