/* ============================================================
   PLAS Academy — Global CSS
   Importar em toda LP: <link rel="stylesheet" href="../assets/css/global.css">
   ============================================================ */

/* --- Fonts --- */
@font-face {
  font-family: 'Neue Machina';
  src: url('../fonts/NeueMachina-Ultrabold.otf') format('opentype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Machina';
  src: url('../fonts/NeueMachina-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Machina';
  src: url('../fonts/NeueMachina-Light.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/HelveticaNeueBold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/HelveticaNeueMedium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/HelveticaNeueLight.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('../fonts/HelveticaNeueThin.otf') format('opentype');
  font-weight: 100;
  font-display: swap;
}

/* --- Tokens --- */
:root {
  --plas-orange: #FA4200;
  --plas-black:  #0D0900;
  --plas-white:  #ECECEC;
  --plas-grey:   #B5B5B5;

  --font-title: 'Neue Machina', sans-serif;
  --font-body:  'Helvetica Neue', Arial, sans-serif;
  --font-mono:  'Courier New', ui-monospace, monospace;

  /* --- Escala tipográfica canônica (com teto, evita títulos imensos) --- */
  --fs-hero:  clamp(1.9rem, 5.5vw, 4rem);    /* hero headline                */
  --fs-h2:    clamp(1.6rem, 3.4vw, 2.6rem);  /* section title                */
  --fs-sub:   clamp(1.1rem, 2vw, 1.4rem);    /* sub-headline                 */
  --fs-stat:  clamp(2.5rem, 6vw, 4.5rem);    /* número de impacto            */

  /* --- Superfícies escuras (cards/quebras sobre o preto) --- */
  --plas-card:        #161008;
  --plas-card-border: #2a1f10;

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--plas-black);
  color: var(--plas-white);
  line-height: 1.6;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Utilitários --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 40px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.2s;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--plas-orange);
  color: var(--plas-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--plas-white);
  border: 2px solid var(--plas-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }

/* --- Seção Quem sou eu (compartilhada) --- */
.plas-bio-section {
  padding: 96px 0;
  background: #0D0900;
  border-top: 1px solid rgba(250,66,0,.12);
}
.plas-bio-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.plas-bio-photo {
  width: 280px;
  height: 340px;
  object-fit: cover;
  object-position: top;
  border: 1px solid rgba(250,66,0,.2);
}
.plas-bio-label {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--plas-orange);
  margin-bottom: 12px;
}
.plas-bio-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  text-transform: uppercase;
  color: var(--plas-white);
  margin-bottom: 24px;
}
.plas-bio-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--plas-grey);
  line-height: 1.75;
  margin-bottom: 32px;
}
.plas-bio-stats {
  list-style: none;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.plas-bio-stats li {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--plas-grey);
}
.plas-bio-stats strong {
  display: block;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: var(--plas-white);
  margin-bottom: 2px;
}
@media (max-width: 720px) {
  .plas-bio-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .plas-bio-photo {
    width: 100%;
    height: 260px;
  }
  .plas-bio-stats {
    gap: 24px;
  }
}

/* ============================================================
   SISTEMA DE DESIGN E MOVIMENTO — compartilhado por todas as LPs
   Essência única; cada página varia o motif, não as classes.
   Tudo opt-in por classe/atributo. Documentado no AGENTS.md.
   ============================================================ */

/* --- Ritmo de fundo: preto dominante + quebras claras --- */
.section-dark  { background: var(--plas-black); color: var(--plas-white); }
.section-light { background: var(--plas-white); color: var(--plas-black); }
.section-light .plas-grey,
.section-light p { color: #4a4137; }

/* --- Seção clara padrão (2ª seção + oferta) com aspecto tech ---
   Branco predominante + grid sutil + glow laranja, com máscara radial
   esmaecendo as bordas. Aplicar a classe `.sec-light` na <section>.
   Cards escuros internos (com bg próprio) continuam escuros e ganham
   contraste sobre o branco. Documentado no AGENTS.md. */
.sec-light {
  position: relative;
  /* !important garante que a quebra branca vença o background da seção
     definido no CSS local da página (que carrega depois do global). */
  background-color: var(--plas-white) !important;
  color: var(--plas-black);
  background-image:
    radial-gradient(60% 50% at 50% 0%, rgba(250, 66, 0, 0.08), transparent 70%),
    linear-gradient(rgba(13, 9, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 9, 0, 0.05) 1px, transparent 1px) !important;
  background-size: auto, 48px 48px, 48px 48px !important;
}
.sec-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 50%, transparent 55%, var(--plas-white) 100%);
  pointer-events: none;
  z-index: 0;
}
/* mantém o conteúdo acima da máscara */
.sec-light > * { position: relative; z-index: 1; }
/* texto direto da seção clara fica escuro; cards escuros mantêm o próprio */
.sec-light > .container h2,
.sec-light > .container > h2,
.sec-light h2.tc { color: var(--plas-black); }
.sec-light .sub,
.sec-light .tc p { color: #4a4137; }

/* --- Fundo tech: grid de linhas sutil + glow radial laranja --- */
.bg-grid {
  position: relative;
  background-image:
    linear-gradient(rgba(250, 66, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 66, 0, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.bg-glow {
  position: relative;
  background-image:
    radial-gradient(60% 50% at 50% 0%, rgba(250, 66, 0, 0.10), transparent 70%);
}
.bg-grid.bg-glow {
  background-image:
    radial-gradient(60% 50% at 50% 0%, rgba(250, 66, 0, 0.10), transparent 70%),
    linear-gradient(rgba(250, 66, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 66, 0, 0.05) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

/* --- Card padrão + hover (lift + borda laranja + glow) --- */
.plas-card-hover {
  transition: transform 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out);
}
.plas-card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--plas-orange);
  box-shadow: 0 12px 32px rgba(250, 66, 0, 0.14);
}

/* --- CTA glow no hover (acento de ação) --- */
.btn-primary {
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.25s var(--ease-out);
}
.btn-primary:hover {
  box-shadow: 0 0 0 2px rgba(250, 66, 0, 0.25), 0 8px 28px rgba(250, 66, 0, 0.30);
}

/* --- Logo / elemento flutuando --- */
@keyframes plas-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.plas-float { animation: plas-float 4s ease-in-out infinite; }

/* --- Reveal por scroll (ativado por anim.js que adiciona .is-in) --- */
@keyframes plas-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Só esconde se houver JS (classe .js setada inline no <head>).
   Sem JS, o conteúdo aparece normalmente — nada some. */
.js [data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
}
[data-reveal].is-in {
  animation: plas-fade-up 0.6s var(--ease-out) forwards;
  will-change: auto;
}
/* Atraso escalonado opcional: data-reveal="2", "3"... */
[data-reveal="2"].is-in { animation-delay: 0.08s; }
[data-reveal="3"].is-in { animation-delay: 0.16s; }
[data-reveal="4"].is-in { animation-delay: 0.24s; }

/* --- Marquee de palavras (componente reutilizável) --- */
.plas-marquee {
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.plas-marquee__track {
  display: inline-flex;
  gap: 2.5rem;
  animation: plas-marquee 28s linear infinite;
  will-change: transform;
}
.plas-marquee:hover .plas-marquee__track { animation-play-state: paused; }
@keyframes plas-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Ken Burns / zoom sutil em imagens --- */
.plas-zoom { overflow: hidden; }
.plas-zoom img {
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}
.plas-zoom:hover img { transform: scale(1.05); }

/* --- Coordenada de xadrez (label de seção, linguagem de marca) --- */
.plas-coord {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--plas-orange);
  text-transform: uppercase;
}

/* --- Toque terminal: cursor piscando --- */
@keyframes plas-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.plas-caret::after {
  content: "_";
  margin-left: 0.06em;
  color: var(--plas-orange);
  animation: plas-blink 1s steps(1) infinite;
}

/* --- CTA sticky no mobile --- */
.plas-sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 12px 16px;
  background: rgba(13, 9, 0, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--plas-card-border);
}
.plas-sticky-cta .btn { width: 100%; text-align: center; }
@media (max-width: 720px) {
  .plas-sticky-cta { display: block; }
}

/* --- Acessibilidade: respeitar quem pede menos movimento --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .plas-float { animation: none !important; }
}
