/* ============================================================
   PushinPay — shared site styles
   Extracted from landing page (index.html) so the blog,
   articles and legal pages share the same design DNA.
   ============================================================ */

:root {
  --bg-base: #060814;
  --bg-card: #0c0d22;
  --bg-elev: #161a3a;
  --prim: #4d4ef2;
  --deep: #3730c9;
  --plight: #8b8cf9;
  --mag: #7c5cff;
  --cyan: #22d3ee;
  --ink: #eef1ff;
  --ink2: #a5b4fc;
  --ink3: #5b5e9c;
  --line: rgba(77, 78, 242, 0.15);
  --glass-bg: rgba(77, 78, 242, 0.04);
  --glass-border: rgba(77, 78, 242, 0.2);
}

html,
body {
  background: var(--bg-base);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body {
  overflow-x: hidden;
  margin: 0;
}
* {
  box-sizing: border-box;
}
::selection {
  background: #4d4ef2;
  color: #fff;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #060814;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4d4ef2, #3730c9);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7c5cff, #4d4ef2);
}

/* ============= TYPOGRAPHY ============= */
.font-display {
  font-family: "Space Grotesk", system-ui, sans-serif;
}
.font-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.h-display {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.h-big {
  font-size: clamp(2.4rem, 6.8vw, 6.5rem);
}
.h-med {
  font-size: clamp(2rem, 4.8vw, 4.5rem);
}
.h-small {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.gradient-text {
  background: linear-gradient(135deg, #4d4ef2 0%, #7c5cff 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.gradient-text-2 {
  background: linear-gradient(135deg, #4d4ef2 0%, #7c5cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.gradient-text *,
.gradient-text-2 * {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.gradient-text,
.gradient-text-2,
.gradient-text *,
.gradient-text-2 * {
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a5b4fc;
  display: inline-flex;
  align-items: center;
}
.eyebrow .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 12px #22d3ee, 0 0 24px #22d3ee;
  margin-right: 0.6rem;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ============= SHARED PRIMITIVES ============= */
.gborder {
  position: relative;
  border-radius: 18px;
  background: rgba(12, 13, 34, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@media (pointer: coarse) {
  *, *::before, *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .gborder { background: rgba(12, 13, 34, 0.9); }
}
.gborder::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    140deg,
    rgba(77, 78, 242, 0.55),
    rgba(124, 92, 255, 0.18) 35%,
    rgba(34, 211, 238, 0) 60%,
    rgba(77, 78, 242, 0.4)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 13px;
  background: linear-gradient(135deg, #4d4ef2 0%, #7c5cff 50%, #3730c9 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 12px 40px -8px rgba(77, 78, 242, 0.7),
    0 0 60px rgba(124, 92, 255, 0.25);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s;
}
.pill:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 16px 50px -8px rgba(124, 92, 255, 0.9),
    0 0 90px rgba(77, 78, 242, 0.45);
}
.pill .arrow { transition: transform 0.25s; }
.pill:hover .arrow { transform: translateX(6px); }

.ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 13px;
  color: #eef1ff;
  text-decoration: none;
  border: 1px solid rgba(77, 78, 242, 0.4);
  background: rgba(77, 78, 242, 0.04);
  transition: all 0.25s;
  backdrop-filter: blur(10px);
}
.ghost:hover {
  border-color: #7c5cff;
  background: rgba(77, 78, 242, 0.1);
  box-shadow: 0 0 30px rgba(77, 78, 242, 0.3);
}

/* ============= BACKGROUND ATMOSPHERE ============= */
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(77, 78, 242, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 78, 242, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
}
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/></svg>");
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  transform: translateZ(0);
  will-change: transform;
  pointer-events: none;
}
.blob.a { background: radial-gradient(circle, #3730c9 0%, transparent 70%); width: 600px; height: 600px; }
.blob.b { background: radial-gradient(circle, #4d4ef2 0%, transparent 70%); width: 520px; height: 520px; }
.blob.c { background: radial-gradient(circle, #7c5cff 0%, transparent 70%); width: 460px; height: 460px; }
.blob.d { background: radial-gradient(circle, #22d3ee 0%, transparent 70%); width: 380px; height: 380px; }

/* ============= LOGO MARK ============= */
.pp-logo-mark {
  display: inline-block;
  width: var(--ppl-size, 32px);
  height: var(--ppl-size, 32px);
  background: linear-gradient(135deg, #4d4ef2 0%, #6d6ef7 100%);
  -webkit-mask: url("/images/home/logo-white.svg") center / contain no-repeat;
  mask: url("/images/home/logo-white.svg") center / contain no-repeat;
  flex-shrink: 0;
}
.pp-logo-mark.glow {
  filter: drop-shadow(0 0 18px rgba(77, 78, 242, 0.55));
}



/* ============= UTILITIES ============= */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) {
  .container { padding: 0 40px; }
}
.container-tight {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
}
.relative { position: relative; }
.text-ink { color: var(--ink); }
.text-ink2 { color: var(--ink2); }
.text-ink3 { color: var(--ink3); }
.text-mag { color: var(--mag); }
.text-cyan { color: var(--cyan); }
.text-plight { color: var(--plight); }

/* ============================================================
   SCROLL REVEAL — usado por shared/animations.js
   Pré-oculta os elementos animáveis ANTES da pintura para evitar
   flash. O estado oculto só é aplicado quando <html> recebe a
   classe .pp-anim (adicionada por um script inline no <head>).
   Se o GSAP falhar ao carregar, animations.js remove .pp-anim
   e tudo reaparece — o conteúdo nunca fica preso invisível.
   Só a opacidade é pré-ocultada; o deslocamento/escala é aplicado
   via JS (gsap.set) já com opacity 0, então o "pulo" não aparece.
   ============================================================ */
html.pp-anim [data-reveal],
html.pp-anim [data-reveal-group] > *,
html.pp-anim [data-reveal-children] > * {
  opacity: 0;
  will-change: transform, opacity;
}
