/* ================================================================
   WEBRISE — Advanced Effects & 3D Interactions
   Premium feel: Apple · Linear · Stripe · Framer inspired
================================================================ */

/* ── CURSOR OVERRIDE ─────────────────────────────────────────── */
@media (hover: hover) {
  *, a, button, [role="button"], .btn, input, select, textarea {
    cursor: none !important;
  }
}

/* ── CUSTOM CURSOR — brand gradient ─────────────────────────── */
.wr-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: transform 0.15s var(--ease-out), opacity 0.3s, background 0.25s;
}

/* Ring uses gradient background + mask trick for gradient border */
.wr-cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C2BFF 0%, #FF7A00 100%);
  -webkit-mask: radial-gradient(circle, transparent 14px, #000 14.5px, #000 17px, transparent 17.5px);
  mask: radial-gradient(circle, transparent 14px, #000 14.5px, #000 17px, transparent 17.5px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s;
}

/* Hover: dot turns orange, ring scales up */
body.wr-hover .wr-cursor {
  background: #FF7A00;
  transform: translate(-50%, -50%) scale(1.5);
}

body.wr-hover .wr-cursor-ring {
  transform: translate(-50%, -50%) scale(1.55);
  opacity: 0.4;
}

/* Click: both compress */
body.wr-active .wr-cursor {
  transform: translate(-50%, -50%) scale(0.5);
}

body.wr-active .wr-cursor-ring {
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0.75;
}

/* ── BANNER DE ANUNCIO ───────────────────────────────────────── */
#wr-site-banner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--purple);
  color: #fff;
  padding: 10px 52px;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 200;
  flex-wrap: wrap;
  text-align: center;
}

#wr-site-banner #wr-banner-cta {
  color: #FFD166;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.wr-banner-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0 6px;
  transition: color 0.2s;
}

.wr-banner-close:hover { color: #fff; }

/* ── PRECIOS PROMOCIONALES ───────────────────────────────────── */
.price-original-label {
  display: none;
  font-size: 0.73rem;
  color: var(--text-3);
  text-decoration: line-through;
  margin-bottom: 3px;
}

.promo-badge {
  display: none;
  background: var(--orange);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.audit-price-original {
  display: none;
  font-size: 0.7rem;
  color: var(--text-3);
  text-decoration: line-through;
  margin-top: 2px;
}

/* ── SCROLL PROGRESS BAR ─────────────────────────────────────── */
.wr-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--brand-gradient);
  z-index: 99999;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(108, 43, 255, 0.55);
}

/* ── HERO ORBS ───────────────────────────────────────────────── */
.hero {
  position: relative;
}

.wr-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  animation:
    wrOrbIn   2s ease forwards,
    wrOrbFloat var(--orb-dur, 10s) ease-in-out infinite alternate;
}

@keyframes wrOrbIn {
  from { opacity: 0; }
  to   { opacity: var(--orb-opacity, 0.08); }
}

@keyframes wrOrbFloat {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(var(--orb-tx, 20px), var(--orb-ty, -20px)); }
}

/* Ensure hero content sits above orbs */
.hero .container { position: relative; z-index: 1; }

/* ── HERO VISUAL AMBIENT GLOW ────────────────────────────────── */
.hero-visual {
  position: relative;
}

.hero-visual::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 43, 255, 0.1) 0%, transparent 65%);
  pointer-events: none;
  animation: wrVisualGlow 7s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes wrVisualGlow {
  0%   { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
  100% { opacity: 1;   transform: translate(-50%, -50%) scale(1.12); }
}

/* ── HERO AUDIT CARD 3D ──────────────────────────────────────── */
.audit-card {
  will-change: transform;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-out);
}

/* ── HERO FLOAT PILLS — parallax target ─────────────────────── */
.hero-float {
  will-change: transform;
  transition: transform 0.15s linear;
}

/* ── DEMO CARDS 3D TILT ──────────────────────────────────────── */
.demo-card {
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-out);
}

/* Shine sweep over demo image */
.demo-img-wrap {
  position: relative;
  overflow: hidden;
}

.demo-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    transparent  18%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent  82%
  );
  transform: translateX(-130%);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  pointer-events: none;
}

.demo-card:hover .demo-img-wrap::after {
  transform: translateX(130%);
}

/* ── PRICING CARDS 3D ────────────────────────────────────────── */
.pricing-card {
  will-change: transform;
}

.pricing-card.featured-plan:hover {
  box-shadow:
    0 0 0 2px var(--purple),
    0 28px 72px rgba(108, 43, 255, 0.22),
    0 8px 28px rgba(0, 0, 0, 0.06) !important;
}

/* ── PROBLEM ITEMS ───────────────────────────────────────────── */
.problem-item {
  will-change: transform;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out) !important;
}

.problem-item:hover {
  transform: translateY(-7px) scale(1.015) !important;
  box-shadow:
    0 18px 52px rgba(108, 43, 255, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.problem-item .problem-num {
  transition: color 0.3s var(--ease-out), transform 0.35s var(--ease-spring);
}

.problem-item:hover .problem-num {
  color: var(--purple) !important;
  transform: scale(1.15) translateX(-3px);
}

/* ── AUDIT DIMENSIONS HOVER ──────────────────────────────────── */
.audit-dim {
  transition: transform 0.35s var(--ease-spring), border-color 0.3s !important;
}

.audit-dim:hover {
  transform: translateX(8px) !important;
}

/* ── TESTIMONIAL CARDS ───────────────────────────────────────── */
.testimonial-card {
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out) !important;
}

.testimonial-card:hover {
  transform: translateY(-7px) scale(1.012) !important;
  box-shadow:
    0 24px 64px rgba(108, 43, 255, 0.09),
    0 8px 24px rgba(0, 0, 0, 0.05) !important;
}

/* ── PROCESS STEPS ───────────────────────────────────────────── */
.process-step {
  transition: transform 0.4s var(--ease-spring), border-color 0.3s, background 0.3s !important;
}

.process-step:hover {
  transform: translateY(-6px) !important;
  border-color: var(--purple-border) !important;
}

.step-num {
  transition: color 0.3s var(--ease-out);
  display: inline-block;
}

.process-step:hover .step-num {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── RESULT ITEM HOVER GLOW ──────────────────────────────────── */
.result-item {
  transition: transform 0.3s var(--ease-spring) !important;
}

.result-item:hover {
  transform: translateY(-4px) !important;
}

.result-item:hover .result-num {
  text-shadow: 0 0 40px rgba(108, 43, 255, 0.3);
}

/* ── BTN PRIMARY GLOW ────────────────────────────────────────── */
.btn-primary {
  transition: all 0.3s var(--ease-out), box-shadow 0.4s, transform 0.1s linear !important;
}

.btn-primary:hover {
  box-shadow: 0 8px 36px rgba(108, 43, 255, 0.42) !important;
}

/* ── HERO TITLE EM — CHAR REVEAL ─────────────────────────────── */
.hero-title em {
  display: inline-block;
}

.hero-title em .wr-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(55%) rotateX(-35deg);
  transform-origin: center bottom;
  transition: opacity 0.5s var(--ease-out), transform 0.55s var(--ease-out);
}

.hero-title em.wr-revealed .wr-char {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* ── NAV LOGO HOVER SHIMMER ──────────────────────────────────── */
@keyframes wrLogoShimmer {
  0%   { background-position: -100% center; }
  100% { background-position:  200% center; }
}

.nav-logo:hover .logo-text {
  background: var(--brand-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: wrLogoShimmer 1.2s linear infinite;
}

/* ── SOCIAL BUTTONS ──────────────────────────────────────────── */
.social-btn {
  transition: transform 0.35s var(--ease-spring) !important;
}

.social-btn:hover {
  transform: scale(1.22) rotate(9deg) translateY(-3px) !important;
}

/* ── CTA SECTION AMBIENT ─────────────────────────────────────── */
.cta-section {
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(108, 43, 255, 0.14) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: wrCtaGlow 8s ease-in-out infinite alternate;
}

.cta-section > .container { position: relative; z-index: 1; }

@keyframes wrCtaGlow {
  0%   { opacity: 0.5; transform: translateX(-50%) scale(0.88); }
  100% { opacity: 1;   transform: translateX(-50%) scale(1.15); }
}

/* ── CHAT PLAN CARDS ─────────────────────────────────────────── */
.chat-plan-card {
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out) !important;
}

.chat-plan-card:hover {
  transform: translateY(-6px) !important;
}

.chat-plan-card.featured-plan:hover {
  box-shadow:
    0 0 0 2px var(--purple),
    0 24px 60px rgba(108, 43, 255, 0.18) !important;
}

/* ── AUDIT DIM ICON ──────────────────────────────────────────── */
.audit-dim .audit-dim-icon {
  transition: background 0.3s, color 0.3s, border-color 0.3s !important;
}

.audit-dim:hover .audit-dim-icon {
  background: var(--purple-soft-2) !important;
  color: var(--purple) !important;
  border-color: var(--purple-border) !important;
}

/* ── HERO LABEL PULSE DOT ────────────────────────────────────── */
.hero-label-dot {
  animation: wrDotPulse 2s ease-in-out infinite;
}

@keyframes wrDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50%       { opacity: 0.8; transform: scale(1.2); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}
