/* ==========================================================================
   TK DISTRIBUIDORA — BIO LINK PRIME
   Design System, Tokens & Architecture
   Zero System Gray • Single Continuous Surface • Gold Metallic Accents
   ========================================================================== */

@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/montserrat-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/montserrat-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/montserrat-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Canvas Dominante (Preto Profundo Quente - Zero Cinza de Sistema) */
  --ink-900: #08080a;
  --ink-800: #0d0d10;
  --ink-700: #141418;
  --paper: #f7f7f8;
  --paper-muted: #b8b8c2;

  /* Dourado Metálico de Acento (~15% de Presença Visual) */
  --gold-300: #f5e4be;
  --gold-400: #dfba73;
  --gold-500: #c5a059;
  --gold-600: #9e7d3b;
  --gold-grad: linear-gradient(135deg, #dfba73 0%, #f5e4be 45%, #9e7d3b 100%);
  --gold-glow: rgba(197, 160, 89, 0.28);
  --gold-subtle: rgba(197, 160, 89, 0.12);

  /* Fio & Aresta de Luz */
  --edge: rgba(247, 247, 248, 0.12);
  --edge-gold: rgba(223, 186, 115, 0.35);
  --card-surface: rgba(18, 18, 22, 0.55);

  /* Dimensões do Bio Link Prime (Coluna Única) */
  --container-max: 760px;
  --pad-inline: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  :root {
    --pad-inline: 32px;
  }
}

/* Reset Universal & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Montserrat', sans-serif;
  color: var(--paper);
  background-color: var(--ink-900);
  background-image: 
    radial-gradient(120% 90% at 50% 0%, rgba(197, 160, 89, 0.08) 0%, transparent 60%),
    radial-gradient(90% 70% at 85% 45%, rgba(197, 160, 89, 0.04) 0%, transparent 70%),
    radial-gradient(110% 80% at 15% 85%, rgba(197, 160, 89, 0.06) 0%, transparent 65%);
  background-attachment: fixed;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden !important;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden !important;
  font-family: 'Montserrat', sans-serif;
  color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

@media (max-width: 480px) {
  body {
    padding-bottom: 88px;
  }
}

/* Canvas Three.js Fixo (Atmosfera Suave) */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

@media (max-width: 767px) {
  #bg-canvas {
    display: none !important;
  }
}

/* Coluna Única Estrita do Bio Link */
.page-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px var(--pad-inline) 64px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Topo de Marca (Minimalista, Sem Caixa) */
.brand-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 12px;
  margin-bottom: 20px;
}

.brand-avatar-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 2px;
  background: var(--gold-grad);
  margin-bottom: 14px;
  box-shadow: 0 10px 24px -6px var(--gold-glow);
}

.brand-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.brand-segment {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 3px;
}

/* ==========================================================================
   BLOCO 1: HERO MONUMENTAL (Visível em 390x844 sem rolagem obrigatória)
   ========================================================================== */
.bio-hero {
  text-align: center;
  padding: 8px 0 24px;
}

.hero-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
  opacity: 0.85;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(1.9rem, 6.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin-bottom: 14px;
}

.hero-title .gold-accent {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--paper-muted);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

/* Ações da Hero (1 Primária Sólida + 1 Secundária Discreta) */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: var(--ink-900);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 12px 28px -8px var(--gold-glow);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px var(--gold-glow);
}

/* Shiny Sweep Glow no Hover */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
  transform: skewX(-20deg);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}

.btn-primary:hover::after {
  transform: translateX(320%) skewX(-20deg);
}

.btn-microcopy {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold-400);
  opacity: 0.8;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--paper);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.28s var(--ease), background 0.28s var(--ease);
}

.btn-secondary:hover {
  border-color: var(--gold-400);
  background: var(--gold-subtle);
}

/* ==========================================================================
   BLOCO 2: LISTA DE LINKS PRIME (Cards Medidos de Alta Conversão)
   ========================================================================== */
.bio-links-section {
  padding: 32px 0 20px;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-muted);
  opacity: 0.75;
  margin-bottom: 14px;
  text-align: center;
}

.link-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  min-height: 72px;
  border-radius: 18px;
  border: 1px solid var(--edge);
  background: var(--card-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: var(--paper);
  transition: transform 0.32s var(--ease), border-color 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--edge-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 36px -16px var(--gold-glow);
}

.link-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold-subtle);
  color: var(--gold-400);
  border: 1px solid var(--edge-gold);
}

.link-card__body {
  flex: 1;
  min-width: 0;
}

.link-card__title {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-card__desc {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--paper-muted);
  line-height: 1.4;
  margin-top: 2px;
  display: block;
}

.link-card__arrow {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--edge);
  color: var(--paper-muted);
  transition: transform 0.32s var(--ease), background 0.32s var(--ease), border-color 0.32s var(--ease), color 0.32s var(--ease);
}

.link-card:hover .link-card__arrow {
  transform: translateX(3px) rotate(-45deg);
  background: var(--gold-grad);
  border-color: transparent;
  color: var(--ink-900);
}

/* Card Invertido (O Principal em Destaque) */
.link-card--featured {
  background: var(--gold-grad);
  color: var(--ink-900);
  border-color: transparent;
  box-shadow: 0 14px 32px -8px var(--gold-glow);
}

.link-card--featured .link-card__icon {
  background: rgba(8, 8, 10, 0.15);
  border-color: rgba(8, 8, 10, 0.2);
  color: var(--ink-900);
}

.link-card--featured .link-card__title {
  color: var(--ink-900);
}

.link-card--featured .link-card__desc {
  color: rgba(8, 8, 10, 0.82);
  font-weight: 500;
}

.link-card--featured .link-card__arrow {
  border-color: rgba(8, 8, 10, 0.25);
  color: var(--ink-900);
}

.link-card--featured:hover .link-card__arrow {
  background: var(--ink-900);
  color: var(--gold-400);
}

/* ==========================================================================
   BLOCO 3: BENDING MARQUEE (Ritmo e Autoridade Comercial de Galpão)
   ========================================================================== */
.bio-marquee-wrap {
  width: 100%;
  overflow: hidden;
  padding: 24px 0 28px;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.bio-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  white-space: nowrap;
  animation: marquee 24s linear infinite;
}

.marquee-item {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-400);
  display: flex;
  align-items: center;
  gap: 24px;
}

.marquee-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--paper-muted);
  opacity: 0.4;
}

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

/* ==========================================================================
   BLOCO 4: SHOWCASE DE GALPÃO (Scroll Mask / Mídia Real com Proporção)
   ========================================================================== */
.bio-showcase {
  padding: 12px 0 32px;
}

.showcase-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 48px -20px rgba(0, 0, 0, 0.8);
  aspect-ratio: 4 / 3;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.showcase-card:hover .showcase-img {
  transform: scale(1.03);
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink-900) 0%, rgba(8, 8, 10, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.showcase-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 4px;
}

.showcase-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--paper);
  line-height: 1.25;
}

/* ==========================================================================
   BLOCO 5: FAQ ATACADO (Acordeão Acessível sem Salto de Layout)
   ========================================================================== */
.bio-faq {
  padding: 24px 0 32px;
}

.faq-title {
  font-size: clamp(1.25rem, 3.8vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--paper);
  margin-bottom: 18px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid var(--edge);
  background: var(--card-surface);
  overflow: hidden;
  transition: border-color 0.28s var(--ease);
}

.faq-item:hover {
  border-color: var(--edge-gold);
}

.faq-btn {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 12px;
}

.faq-btn:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: -2px;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold-400);
  transition: transform 0.3s var(--ease);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}

.faq-item.active .faq-content {
  grid-template-rows: 1fr;
}

.faq-inner {
  overflow: hidden;
}

.faq-desc {
  padding: 0 18px 16px;
  font-size: 0.82rem;
  color: var(--paper-muted);
  line-height: 1.5;
}

/* ==========================================================================
   BLOCO 6: RODAPÉ CURTO & FINAL CALL
   ========================================================================== */
.bio-footer {
  text-align: center;
  padding: 32px 0 12px;
}

.footer-action-wrap {
  margin-bottom: 24px;
}

.footer-copy {
  font-size: 0.74rem;
  color: var(--paper-muted);
  opacity: 0.65;
  line-height: 1.6;
}

.footer-link {
  color: var(--gold-400);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 0.8;
}

/* ==========================================================================
   WHATSAPP FLUTUANTE (Oficial, Redondo, SVG Inline)
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #ffffff;
  z-index: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px -6px rgba(37, 211, 102, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.28s var(--ease), box-shadow 0.28s;
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 36px -6px rgba(37, 211, 102, 0.65);
}

.wa-float:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .wa-float {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  .wa-float svg {
    width: 26px;
    height: 26px;
  }
}

@media print {
  .wa-float {
    display: none !important;
  }
}

/* ==========================================================================
   REDUCED MOTION & ACESSIBILIDADE
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .bio-marquee-track {
    animation: none !important;
  }
  .btn-primary::after {
    display: none !important;
  }
  #bg-canvas {
    display: none !important;
  }
}
