/* ============================================================
   ACCESSLY PREMIUM — Cursor, partículas, progress, split, glare
   Carregar DEPOIS de mobile.css
   ============================================================ */

/* ============ CURSOR CUSTOMIZADO ============ */
.ax-cursor-dot,
.ax-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  mix-blend-mode: difference;
  transition: opacity 0.3s ease;
}

.ax-cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

.ax-cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.65);
  background: transparent;
  transition: opacity 0.3s ease, border-color 0.25s ease, background 0.25s ease;
  will-change: transform;
}

.ax-cursor-ring.is-hover {
  border-color: #EF4444;
  background: rgba(220,38,38,0.08);
  box-shadow: 0 0 24px rgba(220,38,38,0.35);
}

.ax-cursor-ring.is-click {
  border-color: #DC2626;
}

@media (hover: none), (pointer: coarse) {
  .ax-cursor-dot,
  .ax-cursor-ring { display: none !important; }
}

/* ============ CANVAS DE PARTÍCULAS NO HERO ============ */
.ax-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.85;
  mix-blend-mode: screen;
}
@media (max-width: 600px) {
  .ax-hero-canvas { opacity: 0.55; }
}

/* ============ SPLIT TEXT ============ */
.ax-split-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0 0 0.08em;
  line-height: 1.05;
}

.ax-split-line + .ax-split-line::before {
  content: ' ';
  display: inline-block;
  width: 0.35em;
}

.ax-split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.ax-split-inner {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition:
    transform 1.15s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* ============ MAGNETIC ============ */
[data-magnetic] {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* ============ 3D TILT + GLARE ============ */
[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  position: relative;
}

.ax-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  mix-blend-mode: screen;
}

[data-tilt]:hover .ax-glare {
  opacity: 1;
}

/* ============ SCROLL PROGRESS BAR ============ */
.ax-scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #DC2626 0%, #EF4444 50%, #FCA5A5 100%);
  transform-origin: 0 0;
  transform: scaleX(0);
  z-index: 9999;
  box-shadow: 0 0 12px rgba(220,38,38,0.8), 0 0 32px rgba(220,38,38,0.4);
  pointer-events: none;
}

/* ============ BORDER GRADIENT ROTATIVO ============ */
.ax-border-rotate {
  position: relative;
}

.ax-border-rotate::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 0deg,
    transparent 0%,
    transparent 70%,
    rgba(220,38,38,0.6) 85%,
    rgba(239,68,68,0.9) 92%,
    transparent 100%);
  z-index: -1;
  animation: axBorderSpin 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ax-border-rotate:hover::before { opacity: 1; }

@keyframes axBorderSpin {
  to { transform: rotate(360deg); }
}

/* ============ PILLS PREMIUM ============ */
.pill {
  position: relative;
  overflow: hidden;
}

.pill::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: radial-gradient(circle, rgba(220,38,38,0.35) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 0;
}

.pill:active::after {
  width: 200px; height: 200px;
}

.pill.active {
  position: relative;
}

.pill.active::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(from 0deg,
    transparent 0%,
    transparent 60%,
    rgba(255,255,255,0.5) 75%,
    rgba(255,255,255,0.9) 85%,
    transparent 100%);
  animation: axPillGlow 3s linear infinite;
  z-index: -1;
  filter: blur(4px);
}

@keyframes axPillGlow {
  to { transform: rotate(360deg); }
}