/* ==========================================================
   ANIMATIONS v18.9.203 — Motion, reveal, glassmorphism
   ========================================================== */

/* ----------------------------------------------------------
   1. Animated hero gradient (subtle living background)
   ---------------------------------------------------------- */
@keyframes heroGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.beta-landing-hero {
  position: relative;
  overflow: hidden;
}
.beta-landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    135deg,
    #fbfbfd 0%,
    #eef2ff 25%,
    #f0fdf4 50%,
    #fffbeb 75%,
    #fbfbfd 100%
  );
  background-size: 400% 400%;
  animation: heroGradientShift 18s ease infinite;
  opacity: 0.55;
  pointer-events: none;
}
.beta-landing-hero > * {
  position: relative;
  z-index: 1;
}

/* Mobile: gradient più risparmioso */
@media (prefers-reduced-motion: reduce) {
  .beta-landing-hero::before { animation: none; opacity: 0.35; }
}

/* ----------------------------------------------------------
   2. Scroll reveal classes
   ---------------------------------------------------------- */
.reveal, .reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible, .reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile fallback: card ALWAYS visible even if JS fails */
@media (max-width: 680px) {
  .reveal, .reveal-up, .how-step {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
  }
}

/* Stagger delays for grids */
.stagger-1  { transition-delay: 0.06s; }
.stagger-2  { transition-delay: 0.12s; }
.stagger-3  { transition-delay: 0.18s; }
.stagger-4  { transition-delay: 0.24s; }
.stagger-5  { transition-delay: 0.30s; }
.stagger-6  { transition-delay: 0.36s; }
.stagger-7  { transition-delay: 0.42s; }
.stagger-8  { transition-delay: 0.48s; }

/* ----------------------------------------------------------
   3. Glassmorphism cards
   ---------------------------------------------------------- */
.glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 32px rgba(17, 24, 39, 0.06),
              0 1px 3px rgba(17, 24, 39, 0.04);
}

.glass-dark {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

/* ----------------------------------------------------------
   4. Dashboard v2 enhancements
   ---------------------------------------------------------- */
.dashboard-v2-case {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 40px rgba(17, 24, 39, 0.07),
              0 2px 8px rgba(17, 24, 39, 0.04);
}

.dashboard-v2-kpi {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dashboard-v2-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.role-card, .action-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.role-card:hover, .action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.09);
}

.dashboard-v2-tab.is-active {
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.18);
}

/* ----------------------------------------------------------
   5. Bar chart entrance
   ---------------------------------------------------------- */
.bar-current, .bar-potential {
  width: 0 !important;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-row.is-animated .bar-current,
.bar-row.is-animated .bar-potential {
  width: var(--bar-target, 0%) !important;
}

/* ----------------------------------------------------------
   6. Button hover lift
   ---------------------------------------------------------- */
.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.25);
}
.btn-secondary-gray:hover {
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.10);
}

/* ----------------------------------------------------------
   7. Receive & report cards polish
   ---------------------------------------------------------- */
.receive-card, .report-point-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.receive-card:hover, .report-point-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

/* ----------------------------------------------------------
   8. How-it-works step bounce
   ---------------------------------------------------------- */
.how-step {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.how-step.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ----------------------------------------------------------
   9. FAQ smooth open accent
   ---------------------------------------------------------- */
.faq-list details {
  transition: background 0.2s ease;
}
.faq-list details:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* ----------------------------------------------------------
   10. Living dot pulse on active carousel
   ---------------------------------------------------------- */
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}
.feedback-dot.is-active {
  animation: dotPulse 2.5s ease-in-out infinite;
}

/* ----------------------------------------------------------
   11. Mobile perf: disable heavy blur on small screens
   ---------------------------------------------------------- */
@media (max-width: 680px) {
  .dashboard-v2-case,
  .dashboard-v2-kpi,
  .role-card,
  .action-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }
  .beta-landing-hero::before {
    animation: heroGradientShift 24s ease infinite;
    opacity: 0.35;
  }
}

/* ----------------------------------------------------------
   12. Report pages section — what you actually receive
   ---------------------------------------------------------- */
.report-pages-section {
  padding: 64px 0;
}
.report-pages-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.report-pages-intro h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.report-pages-intro p {
  color: var(--muted, #6b7280);
  font-size: 17px;
  line-height: 1.55;
}
.report-pages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.report-page-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  color: #111827;
}
.report-page-card::before {
  content: attr(data-page);
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted, #9ca3af);
}
.report-page-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(17, 24, 39, 0.10);
}
.report-page-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.report-page-icon.green  { background: #ecfdf5; }
.report-page-icon.blue   { background: #eff6ff; }
.report-page-icon.amber  { background: #fffbeb; }
.report-page-icon.red    { background: #fef2f2; }
.report-page-icon.purple { background: #f5f3ff; }
.report-page-icon.teal   { background: #f0fdfa; }
.report-page-card h4 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.report-page-card p {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}
.report-page-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.report-page-badge.green  { background: #d1fae5; color: #065f46; }
.report-page-badge.blue   { background: #dbeafe; color: #1e40af; }
.report-page-badge.amber  { background: #fef3c7; color: #92400e; }

@media (max-width: 980px) {
  .report-pages-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .report-pages-grid { grid-template-columns: 1fr; gap: 16px; }
  .report-page-card {
    padding: 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #111827;
  }
}

/* ----------------------------------------------------------
   13. Mission banner — anti-recruiter statement
   ---------------------------------------------------------- */
.mission-banner {
  background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #111827 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mission-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(34, 197, 94, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Diamond accent */
.mission-banner::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%) rotate(45deg) scaleY(0.55);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.10) 0%, rgba(56, 189, 248, 0.10) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0.12;
  pointer-events: none;
  filter: blur(0.5px);
  z-index: 0;
}
@media (max-width: 680px) {
  .mission-banner::after {
    width: 180px;
    height: 180px;
    opacity: 0.08;
  }
}
.mission-banner .container {
  position: relative;
  z-index: 1;
}
.mission-banner h2 {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.mission-banner p {
  font-size: 17px;
  color: #d1d5db;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 28px;
}
.mission-banner .btn {
  background: #fff;
  color: #111827;
  border: none;
}
.mission-banner .btn:hover {
  background: #f3f4f6;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

/* ----------------------------------------------------------
   14. Proof strip — numbers that build trust
   ---------------------------------------------------------- */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 40px 0;
  text-align: center;
}
.proof-item {
  padding: 20px;
}
.proof-item strong {
  display: block;
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: #111827;
  margin-bottom: 6px;
}
.proof-item span {
  font-size: 13px;
  color: #6b7280;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 680px) {
  .proof-strip { grid-template-columns: repeat(2, 1fr); padding: 24px 0; }
}
