
/* Estilos Globais */
body {
  font-family: 'Manrope', 'Inter', sans-serif;
  scroll-behavior: smooth;
  background-color: #000000;
  color: #F2F2F2;
}

/* Display type — design system oficial PlugAI Gym (Anton condensado, pg-display) */
h1, h2, h3, h4 {
  font-family: 'Anton', 'Oswald', 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
}
/* Métrica de display do DS. Sobrepõe tracking-tighter/tight e leading-none/tight
   (calibrados para Inter) que, em Anton, deixam as letras espremidas.
   O seletor h*[class] tem especificidade maior que as utilities do Tailwind. */
/* Espaçamento-padrão de títulos e títulos de card (Anton uppercase) — mais aberto
   para melhor leitura. Vale site-wide; o hero tem regra própria mais específica. */
h1[class], h2[class], h3[class], h4[class] {
  letter-spacing: 0.04em;
  line-height: 1.12;
}

/* Iconografia — DS oficial: Lucide @ stroke-width 1.5 (o padrão do Lucide é 2).
   CSS sobrepõe o atributo de apresentação stroke-width do <svg class="lucide">.
   Não afeta os ícones de agente (AgentIcons, sem a classe .lucide) nem o logo. */
svg.lucide {
  stroke-width: 1.5;
}

/* Wordmark oficial do logo (Montserrat) — PLUG(branco) AI(ouro) GYM(leve). */
.pg-wordmark {
  font-family: 'Montserrat', 'Manrope', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 1.5rem;
}
.pg-wordmark__gym {
  font-weight: 300;
  letter-spacing: 0.06em;
  padding-left: 0.1em;
}

/* Badge octogonal dos agentes — DS oficial (social/feed-agents).
   Duas camadas: octógono dourado externo + octógono escuro interno = contorno limpo. */
.pg-badge {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  background: #ccac69;
  box-shadow: 0 0 22px rgba(204, 172, 105, 0.22);
  clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 13px, 100% calc(100% - 13px), calc(100% - 13px) 100%, 13px 100%, 0 calc(100% - 13px), 0 13px);
  transition: box-shadow 0.45s ease;
}
.pg-badge__inner {
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  display: grid;
  place-items: center;
  background: #0e0b05;
  color: #ccac69;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  transition: background 0.45s ease, color 0.45s ease;
}
.group:hover .pg-badge { box-shadow: 0 0 34px rgba(204, 172, 105, 0.4); }
.group:hover .pg-badge__inner { background: #ccac69; color: #000; }

/* ============================================================
   HERO OFICIAL — Design System (ui_kits/marketing-site)
   Tudo escopado em .mk-hero para não afetar as demais seções.
   ============================================================ */
.mk-hero {
  --pg-gold: #ccac69;
  --pg-gold-hi: #e2c588;
  --pg-snow: #f2f2f2;
  --pg-silver: #c1c1c1;
  --pg-grey: #7a7a7a;
  --pg-font-display: 'Anton', 'Oswald', 'Bebas Neue', sans-serif;
  --pg-font-sans: 'Manrope', system-ui, sans-serif;
  --pg-font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;
  --pg-font-mark: 'Montserrat', 'Manrope', sans-serif;
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background: radial-gradient(60% 80% at 20% 30%, rgba(204, 172, 105, .07), transparent 70%), #000;
}
.mk-hero .gold { color: var(--pg-gold); }
.mk-hero .grafite { color: var(--pg-grey); }
.mk-circuit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Circuito animado do hero — pulsos de sinal convergindo para o hub. */
.mk-circuit-base { opacity: 0.16; }
.mk-pulse {
  stroke-linecap: round;
  stroke-dasharray: 6 100;
  stroke-dashoffset: 106;
  filter: drop-shadow(0 0 5px rgba(226, 197, 136, 0.85));
  animation: mk-flow 3.4s linear infinite;
}
@keyframes mk-flow { to { stroke-dashoffset: 0; } }
.mk-node {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0.35;
  animation: mk-node-pulse 3.4s ease-in-out infinite;
}
@keyframes mk-node-pulse {
  0%, 100% { opacity: 0.3; }
  45%, 55% { opacity: 1; filter: drop-shadow(0 0 6px rgba(204, 172, 105, 0.9)); }
}
.mk-hub {
  filter: drop-shadow(0 0 10px rgba(204, 172, 105, 0.5));
  animation: mk-hub-glow 2.8s ease-in-out infinite;
}
@keyframes mk-hub-glow { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .mk-pulse, .mk-node, .mk-hub { animation: none; }
  .mk-pulse { display: none; }
}
.mk-hero-inner { max-width: 1320px; margin: 0 auto; padding: 0 36px; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.mk-eyebrow { font-family: var(--pg-font-sans); font-weight: 700; font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--pg-gold); margin-bottom: 18px; }
.mk-hero .mk-display { font-family: var(--pg-font-display); font-weight: 400; font-size: 74px; line-height: 1.12; text-transform: uppercase; letter-spacing: -0.005em; margin: 0; color: var(--pg-snow); }
.mk-lede { font-size: 19px; color: var(--pg-silver); margin: 22px 0 32px; line-height: 1.55; max-width: 560px; }
.mk-hero-ctas { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.mk-cta-lg { background: var(--pg-gold); color: #1A1306; font-weight: 700; padding: 16px 30px; border-radius: 8px; text-decoration: none; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; transition: all 200ms; display: inline-block; }
.mk-cta-lg:hover { background: var(--pg-gold-hi); box-shadow: 0 0 30px rgba(204, 172, 105, .45); transform: translateY(-1px); }
.mk-cta-ghost { color: var(--pg-snow); text-decoration: none; font-weight: 600; font-size: 14px; padding: 16px 4px; border-bottom: 1px solid transparent; transition: all 200ms; }
.mk-cta-ghost:hover { color: var(--pg-gold); border-bottom-color: var(--pg-gold); }
.mk-hero-meta { display: flex; gap: 40px; margin-top: 44px; padding-top: 22px; border-top: 1px solid #1A1A1A; flex-wrap: wrap; }
.mk-hero-meta > div { display: flex; flex-direction: column; gap: 4px; }
.mk-hero-meta span { font-family: var(--pg-font-mono); font-size: 10px; color: var(--pg-grey); letter-spacing: 0.14em; }
.mk-hero-meta strong { color: var(--pg-snow); font-size: 16px; font-weight: 700; }
.mk-mono { font-family: var(--pg-font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pg-grey); }
/* Phone mockup */
.mk-phone { display: flex; justify-content: center; }
.mk-phone-frame { width: 280px; aspect-ratio: 9/19; background: linear-gradient(160deg, #1A1A1A, #050505); border-radius: 36px; padding: 8px; box-shadow: 0 30px 90px rgba(0, 0, 0, .7), inset 0 0 0 1px #2A2A2A; }
.mk-phone-screen { width: 100%; height: 100%; background: #050505; border-radius: 30px; padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.mk-phone-status { font-family: var(--pg-font-mono); font-size: 10px; color: var(--pg-silver); text-align: center; letter-spacing: 0.1em; }
.mk-phone-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mk-phone-brand img { width: 32px; height: 32px; }
.mk-phone-mark { font-family: var(--pg-font-mark); font-weight: 900; font-size: 13px; color: var(--pg-snow); }
.mk-phone-mark em { color: var(--pg-gold); font-style: normal; }
.mk-phone-title { font-size: 9px; letter-spacing: 0.25em; color: var(--pg-grey); text-align: center; text-transform: uppercase; }
.mk-phone-ring { position: relative; align-self: center; width: 130px; height: 130px; margin: 4px 0; }
.mk-phone-ring svg { width: 100%; height: 100%; filter: drop-shadow(0 0 8px rgba(204, 172, 105, .4)); }
.mk-phone-pct { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.mk-phone-pct strong { font-family: var(--pg-font-display); font-size: 32px; color: var(--pg-gold); line-height: 1; }
.mk-phone-pct span { font-size: 8px; letter-spacing: 0.2em; color: var(--pg-silver); }
.mk-phone-stats { display: flex; flex-direction: column; gap: 8px; padding: 12px 0 0; border-top: 1px solid #1A1A1A; }
.mk-phone-stats > div { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.mk-phone-stats span { color: var(--pg-grey); }
.mk-phone-stats strong { color: var(--pg-snow); font-family: var(--pg-font-display); font-size: 18px; }
.mk-phone-stats strong.gold { color: var(--pg-gold); }
@media (max-width: 900px) {
  .mk-hero { padding: 56px 0 72px; }
  .mk-hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .mk-hero .mk-display { font-size: 44px; }
}

/* ============================================================
   SEÇÃO "O IMPACTO DA ESCALA" — Design System (StatsBand)
   Escopado em .mk-impact.
   ============================================================ */
.mk-impact {
  --pg-gold: #ccac69;
  --pg-snow: #f2f2f2;
  --pg-silver: #c1c1c1;
  --pg-grey: #7a7a7a;
  --pg-font-display: 'Anton', 'Oswald', 'Bebas Neue', sans-serif;
  --pg-font-sans: 'Manrope', system-ui, sans-serif;
  padding: 100px 0;
  background: #050505;
  border-top: 1px solid #161616;
  border-bottom: 1px solid #161616;
}
.mk-impact .gold { color: var(--pg-gold); }
.mk-impact .grafite { color: var(--pg-grey); }
.mk-impact .mk-section-inner { max-width: 1320px; margin: 0 auto; padding: 0 36px; }
.mk-impact .mk-display {
  font-size: 48px;
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--pg-snow);
  margin: 0;
}
.mk-impact .mk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; position: relative; }
.mk-impact .mk-stats::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pg-gold), transparent);
  opacity: 0.4; z-index: 0; pointer-events: none;
}
.mk-impact .mk-stat { background: #0A0A0A; padding: 28px 24px; border-radius: 8px; box-shadow: inset 0 0 0 1px #1A1A1A; position: relative; z-index: 1; }
.mk-impact .mk-stat-num { font-family: var(--pg-font-display); color: var(--pg-gold); font-size: 64px; line-height: 0.95; letter-spacing: 0.01em; }
.mk-impact .mk-stat-num number-flow-react { font: inherit; color: inherit; }
.mk-impact .mk-stat-lbl { font-size: 14px; color: var(--pg-silver); margin-top: 8px; line-height: 1.4; }
.mk-impact .mk-band-cap {
  margin: 40px auto 0; background: var(--pg-gold); color: #1A1306; font-weight: 800; font-size: 18px;
  padding: 12px 30px; width: fit-content; text-align: center;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}
@media (max-width: 900px) {
  .mk-impact { padding: 72px 0; }
  .mk-impact .mk-display { font-size: 36px; }
  .mk-impact .mk-stats { grid-template-columns: 1fr 1fr; }
  .mk-impact .mk-stats::after { display: none; }
  .mk-impact .mk-stat-num { font-size: 52px; }
}

/* Utilitários Premium */
.bg-glass {
  background: rgba(122, 122, 122, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(193, 193, 193, 0.1);
}

.premium-gradient-border {
  position: relative;
  background: #000000;
  background-clip: padding-box;
  border: 1px solid transparent;
}

.premium-gradient-border::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -1;
  margin: -1px;
  border-radius: inherit;
  background: linear-gradient(to bottom right, #ccac69, #7A7A7A);
  opacity: 0.3;
}

/* Custom Selection */
::selection {
  background-color: #ccac69;
  color: #000000;
}

/* ============================================================
   ENHANCED TIER — Efeitos Premium (7/10)
   ============================================================ */

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #ccac69, #F2F2F2);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* --- Grain Texture Overlay --- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  animation: grain-shift 0.5s steps(4) infinite;
}

@keyframes grain-shift {
  0%   { background-position: 0 0; }
  25%  { background-position: -80px 40px; }
  50%  { background-position: 40px -60px; }
  75%  { background-position: -40px 80px; }
}

/* --- Cinematic Scroll Reveals --- */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  filter: blur(4px);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.75s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* --- Divider Gold Gradient --- */
.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(204, 172, 105, 0.4) 50%, transparent 100%);
  border: none;
}

/* Animations */
@keyframes pulse-gold {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse-gold {
  animation: pulse-gold 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* --- Mobile menu transition --- */
.mobile-menu {
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* ============================================================
   MAXIMUM TIER — Efeitos Premium (8/10)
   ============================================================ */

/* --- Custom Cursor --- */
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(204, 172, 105, 0.55);
  pointer-events: none;
  opacity: 0;
  transition: width 0.25s ease, height 0.25s ease,
              opacity 0.4s ease, border-color 0.25s ease;
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  z-index: 10000;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #ccac69;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
  transition: opacity 0.4s ease;
}
.cursor-ring.active, .cursor-dot.active { opacity: 1; }
.cursor-ring.hover {
  width: 56px; height: 56px;
  border-color: rgba(204, 172, 105, 0.9);
}
@media (hover: none) {
  .cursor-ring, .cursor-dot { display: none; }
}

/* --- Background Mesh (segue mouse) --- */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 900px 700px at var(--mx, 50%) var(--my, 50%),
    rgba(204, 172, 105, 0.035) 0%,
    transparent 70%
  );
  transition: background 0.2s ease;
}

/* --- Floating Gold Orbs --- */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  will-change: transform;
  z-index: 0;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(204, 172, 105, 0.12) 0%, transparent 65%);
  top: -200px; right: -150px;
  animation: orb-float 22s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(204, 172, 105, 0.08) 0%, transparent 65%);
  top: 40%; left: -180px;
  animation: orb-float 28s ease-in-out infinite;
  animation-delay: -10s;
}
.orb-3 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(204, 172, 105, 0.07) 0%, transparent 65%);
  bottom: 10%; right: 5%;
  animation: orb-float 32s ease-in-out infinite;
  animation-delay: -18s;
}

@keyframes orb-float {
  0%   { transform: translate(0, 0) scale(1); }
  20%  { transform: translate(40px, -50px) scale(1.04); }
  40%  { transform: translate(-30px, 30px) scale(0.96); }
  60%  { transform: translate(50px, 40px) scale(1.03); }
  80%  { transform: translate(-20px, -30px) scale(0.98); }
  100% { transform: translate(0, 0) scale(1); }
}

/* --- Enhanced Glassmorphism Cards --- */
.bg-glass {
  background: rgba(122, 122, 122, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(193, 193, 193, 0.08);
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}
.bg-glass:hover {
  box-shadow: 0 0 40px rgba(204, 172, 105, 0.1),
              0 0 0 1px rgba(204, 172, 105, 0.18);
}

/* --- Magnetic Button --- */
.btn-magnetic {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
  display: inline-flex;
}
.btn-magnetic:hover {
  box-shadow: 0 20px 60px rgba(204, 172, 105, 0.35);
}

/* --- Section Gold Line Separator --- */
.section-separator {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ccac69, transparent);
  margin: 0 auto 32px;
  border: none;
  border-radius: 2px;
}

/* --- Gold Glow Text --- */
.text-glow-gold {
  text-shadow: 0 0 40px rgba(204, 172, 105, 0.4);
}

/* --- Stagger delays for card grids --- */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

/* --- Phone 3D — celular flutuante reativo ao mouse (efeito estilo Spline) --- */
.phone-stage {
  position: relative;
  perspective: 1200px;
}

/* Wrapper externo: recebe o tilt (rotateX/rotateY) aplicado via JS pelo mouse */
.phone-tilt {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  will-change: transform;
  width: 100%;
  max-width: 180px;
}

@media (min-width: 1024px) {
  .phone-tilt { max-width: 195px; }
}

/* Camada interna: float vertical contínuo — separada para não conflitar com o tilt */
.phone-3d {
  transform-style: preserve-3d;
  animation: phone-float 6s ease-in-out infinite;
}

.phone-3d-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 42px;
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.65))
          drop-shadow(0 0 40px rgba(204, 172, 105, 0.12));
  user-select: none;
  pointer-events: none;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* Movimento reduzido: sem float nem tilt automático */
@media (prefers-reduced-motion: reduce) {
  .phone-3d { animation: none; }
}

/* --- Container Scroll Animation — card 3D que gira ao rolar (estilo Aceternity) --- */
.container-scroll-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem 0;
  perspective: 1000px;
}

.container-scroll-inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header (título) — faz um leve parallax vertical no scroll */
.container-scroll-header {
  max-width: 46rem;
  margin: 0 auto 1.5rem;
  text-align: center;
  will-change: transform;
}

/* Card — gira em rotateX e escala conforme o scroll */
.container-scroll-card {
  width: 100%;
  margin: 0 auto;
  border-radius: 30px;
  border: 4px solid rgba(122, 122, 122, 0.25);
  background: #0a0a0a;
  padding: 0.5rem;
  box-shadow: 0 0 #0000, 0 9px 20px rgba(0,0,0,0.5),
              0 37px 37px rgba(0,0,0,0.35), 0 84px 50px rgba(0,0,0,0.2);
  transform-style: preserve-3d;
  will-change: transform;
}

.container-scroll-card > * {
  border-radius: 20px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .container-scroll-wrap { min-height: 80vh; }
  .container-scroll-card { padding: 0.75rem; border-radius: 40px; }
}
