@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #050505;
  --bg-secondary: #0A0A0A;
  --bg-tertiary: #121212;
  --accent-teal: #2DD4BF;
  --accent-teal-glow: rgba(45, 212, 191, 0.25);
  --accent-purple: #BB86FC;
  --accent-purple-glow: rgba(187, 134, 252, 0.25);
  --accent-gold: #FFB300;
  --accent-pink: #FF4081;
  --accent-cyan: #00E5FF;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(45, 212, 191, 0.4);
  --card-bg: rgba(30, 41, 59, 0.82);
  --glass-bg: rgba(11, 15, 25, 0.4);
  --font-main: 'Outfit', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Custom Text Selection Highlight (Teal) */
::selection {
  background: var(--accent-teal);
  color: #050505;
  text-shadow: none;
}

::-moz-selection {
  background: var(--accent-teal);
  color: #050505;
  text-shadow: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-teal);
}

/* Lenis Required CSS */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

html {
  scroll-behavior: auto !important;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--text-main);
  overflow-x: clip !important;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: clip !important;
  background-color: var(--bg-primary);
  line-height: 1.6;
  letter-spacing: -0.01em;
}


/* Subtle, Elegant Background Glows & Ambient Mouse Light */
.bg-glow-1,
.bg-glow-2 {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, var(--accent-teal), transparent 70%);
}

.bg-glow-2 {
  width: 550px;
  height: 550px;
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
}

.bg-mouse-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-teal-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  opacity: 0.55;
  filter: blur(50px);
}

/* Cinema Projector Volumetric Light Beam */
.cinema-projector-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 750px;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

.projector-beam {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 650px;
  background: radial-gradient(ellipse at 50% 0%, rgba(45, 212, 191, 0.18) 0%, rgba(255, 215, 120, 0.08) 35%, transparent 70%);
  filter: blur(25px);
  opacity: 0.75;
}

/* Interactive Cinema Dust Canvas */
#cyber-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

/* Typography Gradients */
.gradient-text {
  background: linear-gradient(135deg, #2DD4BF 0%, #7F52FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

.gradient-gold {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFCA28 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

.gradient-blue-flick {
  background: linear-gradient(135deg, #00f0ff 0%, #ff00f4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

.gradient-teal {
  background: linear-gradient(135deg, #2DD4BF 0%, #1476a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

/* FIX: Quando le parole dentro uno span gradient-* vengono separate in span.blur-word, 
   dobbiamo assicurarci che lo span interno erediti il gradiente e lo ritagli sul proprio testo! */
[class*="gradient-"] .blur-word {
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Navigation Bar (FIXED: High Z-Index so drawer NEVER covers navbar and close button!) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 66px;
  z-index: 2000;
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .navbar {
    top: 10px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: calc(100% - 40px);
    max-width: 1200px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
  }
}


.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  z-index: 2001;
}

.nav-logo img {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 8px var(--accent-teal-glow));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-gold));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.35);
}

.nav-links a:hover {
  color: #FFFFFF;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Clean Navbar Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-github-btn,
.nav-github-link {
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Ensure text & icons sit above the dynamic border layers */
.nav-github-btn *,
.nav-github-link *,
.btn-secondary * {
  position: relative;
  z-index: 2;
}

/* Outer rotating streak gradient layer */
.nav-github-btn::before,
.nav-github-link::before,
.btn-secondary::before {
  content: '';
  position: absolute;
  inset: -150%;
  background: conic-gradient(from 0deg at 50% 50%,
      transparent 0deg,
      transparent 60deg,
      var(--accent-teal) 95deg,
      #FFFFFF 105deg,
      transparent 110deg,
      transparent 240deg,
      #2dd4bf 275deg,
      #FFFFFF 285deg,
      transparent 290deg);
  z-index: -2;
  opacity: 0;
  transition: opacity 0.35s ease;
  animation: spinStreak 2.2s linear infinite;
  pointer-events: none;
}

/* Inner pill fill mask that reveals only the outer 1.8px rim */
.nav-github-btn::after,
.nav-github-link::after,
.btn-secondary::after {
  content: '';
  position: absolute;
  inset: 1.8px;
  border-radius: 999px;
  background: rgba(13, 18, 29, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

@keyframes spinStreak {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.nav-github-btn:hover,
.nav-github-link:hover {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--accent-teal) !important;
  box-shadow: 0 0 25px rgba(45, 212, 191, 0.4), inset 0 0 12px rgba(45, 212, 191, 0.15);
  transform: translateY(-2px);
}

.nav-github-btn:hover::before,
.nav-github-link:hover::before,
.btn-secondary:hover::before,
.nav-github-btn:hover::after,
.nav-github-link:hover::after,
.btn-secondary:hover::after {
  opacity: 1;
}

/* Animated 3-Bar Hamburger Morph into X (Touch & Mobile Optimized) */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 2001;
  transition: all 0.35s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Feedback immediato e tattile al tocco del dito su schermo mobile */
.mobile-menu-btn:active {
  transform: scale(0.90);
}

@media (hover: hover) and (pointer: fine) {
  .mobile-menu-btn:hover {
    background: rgba(45, 212, 191, 0.12);
    border-color: rgba(45, 212, 191, 0.4);
  }

  .mobile-menu-btn:not(.active):hover .bar-2 {
    width: 15px;
  }
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2.2px;
  background: #ffffff;
  border-radius: 4px;
  transition: transform 0.35s cubic-bezier(0.68, -0.6, 0.32, 1.6), opacity 0.25s ease, background-color 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

/* Trasformazione elastica in X (sia al tap su mobile che su desktop) */
.mobile-menu-btn.active {
  background: rgba(45, 212, 191, 0.18);
  border-color: var(--accent-teal);
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.25);
}

.mobile-menu-btn.active .bar-1 {
  transform: translateY(7.2px) rotate(45deg);
  background: var(--accent-teal);
}

.mobile-menu-btn.active .bar-2 {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active .bar-3 {
  transform: translateY(-7.2px) rotate(-45deg);
  background: var(--accent-teal);
}

/* 
  Mobile Frosted Drawer Menu (FIXED)
  Now starts exactly under the navbar (top: 66px), so the navbar and ✕ button
  are NEVER covered or hidden by the drawer!
*/
.mobile-drawer {
  position: fixed;
  top: 66px;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: calc(100vh - 66px);
  height: calc(100dvh - 66px);
  max-height: calc(100dvh - 66px);
  overflow-y: auto;
  background: #090c12;
  border-left: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  box-shadow: -15px 0 35px rgba(0, 0, 0, 0.95);
  z-index: 1500;
  padding: 2.5rem 1.75rem calc(2rem + env(safe-area-inset-bottom, 10px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  isolation: isolate;
  transform: translate3d(0, 0, 0);
  will-change: right;
}

.mobile-drawer.active {
  right: 0;
}

html.drawer-open,
body.drawer-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-drawer-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition-fast);
  position: relative;
}

.mobile-drawer-links a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-gold));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.35);
}

.mobile-drawer-links a:hover {
  color: #FFFFFF;
  padding-left: 5px;
}

.mobile-drawer-links a:hover::after {
  transform: scaleX(1);
}

/* Sleek, refined drawer buttons instead of chunky blocks */
.mobile-drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-cta .btn-primary,
.mobile-drawer-cta .btn-secondary {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-radius: 12px;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s, box-shadow 0.3s;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

/* Creiamo la torcia invisibile */
.btn-primary::before,
.btn-secondary::before {
  content: '';
  position: absolute;
  top: var(--y, 50%);
  left: var(--x, 50%);
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  /* Ignora i click sulla luce */
  z-index: 0;
}

/* Colore della luce per il pulsante primario (Teal) */
.btn-primary::before {
  background: radial-gradient(circle closest-side, rgba(255, 255, 255, 0.3), transparent);
}

/* Colore della luce per il pulsante secondario (Nero) */
.btn-secondary::before {
  background: radial-gradient(circle closest-side, rgba(45, 212, 191, 0.25), transparent);
}

/* Mostra la luce all'hover */
.btn-primary:hover::before,
.btn-secondary:hover::before {
  opacity: 1;
}

/* Assicurati che il testo e le icone stiano SOPRA la luce */
.btn-primary *,
.btn-secondary * {
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-teal), #14b8a6);
  color: #0B0F19 !important;
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 20px var(--accent-teal-glow);
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(45, 212, 191, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-secondary:hover {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--accent-teal) !important;
  box-shadow: 0 0 28px rgba(45, 212, 191, 0.45), inset 0 0 14px rgba(45, 212, 191, 0.15);
  transform: translateY(-2px);
}

/* Hero Section - 2-Column Split Layout */
.hero {
  min-height: calc(100vh - 66px);
  padding: 5.5rem 2rem 5rem;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity, filter;
}

.hero-grid {
  display: grid;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  width: 100%;
  align-items: center;
}

.hero-content {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.2rem;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 999px;
  color: var(--accent-teal);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  letter-spacing: -1.2px;
  padding-bottom: 0.1em;
}

.hero p {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 2.25rem;
  min-height: 4.8em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.hero-typed-wrapper {
  display: inline-block;
  min-width: 280px;
  text-align: left;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  margin-bottom: 2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Hero Visual Stage (3D Overlapping Phone Mockups) */
.hero-visual-stage {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.phone-mockup-container {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 560px;
  transform-style: preserve-3d;
}

.mockup-ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.mockup-ambient-glow.teal-glow {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 10%;
  background: rgba(45, 212, 191, 0.28);
}

.mockup-ambient-glow.purple-glow {
  width: 320px;
  height: 320px;
  bottom: 10%;
  right: 5%;
  background: rgba(187, 134, 252, 0.22);
}

.phone-mockup {
  position: absolute;
  width: 255px;
  height: 530px;
  border-radius: 38px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(40, 48, 65, 0.85), rgba(15, 20, 30, 0.95));
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), inset 0 1px 2px rgba(255, 255, 255, 0.25);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
  will-change: transform;
}

.phone-mockup-main {
  right: 25px;
  top: 25px;
  z-index: 5;
  transform: rotate(-3deg) translateZ(30px);
}

.phone-mockup-main:hover {
  transform: rotate(-1deg) scale(1.03) translateZ(50px);
  box-shadow: 0 40px 95px rgba(45, 212, 191, 0.25), 0 25px 70px rgba(0, 0, 0, 0.9);
}

.phone-mockup-bg {
  left: 20px;
  top: -10px;
  z-index: 3;
  transform: rotate(6deg) scale(0.92) translateZ(-20px);
  filter: brightness(0.85);
}

.phone-mockup-bg:hover {
  filter: brightness(1);
  transform: rotate(4deg) scale(0.95) translateZ(10px);
}

/* Android Flagship Frame (Pixel/Galaxy Ultra aesthetics) */
.phone-frame {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: #0B0F19;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Floating Glass Badges */
.glass-float-badge {
  position: absolute;
  z-index: 20;
  background: rgba(18, 25, 40, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.75rem 1.1rem;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(45, 212, 191, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
  animation: floatBadge 6s ease-in-out infinite;
}

.glass-float-badge:hover {
  transform: translateY(-5px) scale(1.05) translateZ(70px) !important;
  border-color: var(--accent-teal);
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0px) translateZ(60px);
  }

  50% {
    transform: translateY(-10px) translateZ(60px);
  }
}

.badge-top-left {
  top: 45px;
  left: 20px;
  animation-delay: 0s;
}

.badge-bottom-right {
  bottom: 155px;
  right: -50px;
  animation-delay: -2s;
}

.badge-bottom-left {
  bottom: 35px;
  left: -50px;
  animation-delay: -4s;
}

.badge-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.badge-icon-wrap.teal {
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent-teal);
}

.badge-icon-wrap.teal img {
  width: 20px;
  height: 20px;
  filter: invert(1) drop-shadow(0 0 3px var(--accent-teal));
}

.badge-icon-wrap.purple {
  background: rgba(187, 134, 252, 0.15);
  color: var(--accent-purple);
}

.badge-icon-wrap.purple img {
  width: 20px;
  height: 20px;
  filter: invert(1) drop-shadow(0 0 3px var(--accent-purple));
}

.badge-icon-wrap.gold {
  background: rgba(255, 179, 0, 0.15);
  color: var(--accent-gold);
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.badge-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Responsive Split Layout Queries */
@media (max-width: 968px) {
  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .hero-content {
    text-align: center;
    align-items: center;
  }

  .hero p {
    align-items: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-typed-wrapper {
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-visual-stage {
    height: 520px;
  }

  .phone-mockup-container {
    max-width: 400px;
    height: 500px;
  }

  .phone-mockup {
    width: 220px;
    height: 460px;
  }

  .phone-mockup-main {
    right: 20px;
    top: 20px;
  }

  .phone-mockup-bg {
    left: 20px;
    top: 0px;
  }
}

@media (max-width: 580px) {
  .hero-visual-stage {
    height: 460px;
  }

  .phone-mockup-container {
    max-width: 320px;
    height: 440px;
  }

  .phone-mockup {
    width: 185px;
    height: 390px;
    border-radius: 30px;
  }

  .phone-frame {
    border-radius: 22px;
  }

  .phone-mockup-main {
    right: 5px;
    top: 25px;
  }

  .phone-mockup-bg {
    left: 5px;
    top: 5px;
  }

  .glass-float-badge {
    padding: 0.55rem 0.85rem;
    border-radius: 14px;
  }

  .badge-icon-wrap {
    width: 32px;
    height: 32px;
  }

  .badge-text strong {
    font-size: 0.78rem;
  }

  .badge-text span {
    font-size: 0.68rem;
  }

  .badge-top-left {
    top: 25px;
    left: 15px;
  }

  .badge-bottom-right {
    bottom: 45px;
    right: 15px;
  }

  .badge-bottom-left {
    display: none;
  }
}

/* Hero Stats Banner */
.hero-stats {
  display: center;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 750px;
  margin: 0 auto 3rem;
}

.stat-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 1.25rem 0.75rem;
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-teal);
}

.stat-value {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  color: var(--accent-teal);
  margin-bottom: 0.2rem;
}

.stat-item:nth-child(2) .stat-value {
  color: var(--accent-purple);
}

.stat-item:nth-child(3) .stat-value {
  color: var(--accent-gold);
}

.stat-label {
  font-size: clamp(0.75rem, 1.8vw, 0.88rem);
  color: var(--text-muted);
  font-weight: 500;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  padding: 0 1rem;
}

.section-header h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
  letter-spacing: -1px;
}

.section-header p {
  color: var(--text-muted);
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  line-height: 1.5;
  max-width: 700px;
  margin: 1.5rem auto 0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =========================================================
   FEATURES SECTION - SCROLL-CONTROLLED 3D CARD DECK
========================================================= */
.scroll-deck-section {
  height: 600vh;
  position: relative;
  width: 100%;
  padding: 0 !important;
  z-index: 10;
}

.features-sticky-viewport {
  position: sticky;
  top: 0;
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 1.5rem;
}

.features-sticky-viewport .section-header {
  margin-bottom: 2rem;
  z-index: 20;
}

#features-card-deck.features-grid {
  position: relative;
  width: 100%;
  max-width: 950px;
  height: 420px;
  margin: 0 auto;
  perspective: 1400px;
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
}

.deck-scroll-card {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0E1118 !important;
  background: radial-gradient(circle at 85% 15%, rgba(45, 212, 191, 0.15) 0%, transparent 55%), linear-gradient(135deg, #151820 0%, #0A0C10 100%) !important;
  border: 1.5px solid rgba(45, 212, 191, 0.35) !important;
  border-top: 1.5px solid rgba(45, 212, 191, 0.7) !important;
  border-radius: 28px !important;
  padding: 2.25rem 2.5rem !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  will-change: transform, opacity;
  backface-visibility: hidden !important;
  user-select: none;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 3rem !important;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden !important;
}

.deck-scroll-card:nth-child(2n) {
  background-color: #0E1118 !important;
  background: radial-gradient(circle at 85% 15%, rgba(187, 134, 252, 0.18) 0%, transparent 55%), linear-gradient(135deg, #151820 0%, #0A0C10 100%) !important;
  border-color: rgba(187, 134, 252, 0.35) !important;
  border-top-color: rgba(187, 134, 252, 0.7) !important;
}

.deck-scroll-card:nth-child(3n) {
  background-color: #0E1118 !important;
  background: radial-gradient(circle at 85% 15%, rgba(255, 179, 0, 0.16) 0%, transparent 55%), linear-gradient(135deg, #151820 0%, #0A0C10 100%) !important;
  border-color: rgba(255, 179, 0, 0.35) !important;
  border-top-color: rgba(255, 179, 0, 0.7) !important;
}

.deck-scroll-card:hover {
  border-color: var(--accent-teal) !important;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.9), 0 0 25px rgba(45, 212, 191, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.deck-scroll-card .feature-header {
  margin-bottom: 1.75rem !important;
  width: 100%;
}

.deck-scroll-card h3 {
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 0.85rem !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em;
}

.deck-scroll-card p {
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
  color: var(--text-muted) !important;
  margin: 0 !important;
}

.feature-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Vertical 9-Dot Deck Navigation Track (`al posto di 1/9, 2/9...`) */
.deck-sidebar-dots {
  position: absolute;
  right: max(16px, calc(50% - 520px));
  top: 60%;
  transform: translateY(-50%);
  z-index: 40;
  padding: 18px 10px;
  background: rgba(11, 15, 25, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.deck-dots-gooey-canvas {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  filter: url(#symbiote-goo);
  -webkit-filter: url(#symbiote-goo);
}

.deck-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 1;
}

.deck-dot:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.4);
}

/* Sliding & Morphing Symbiote active glowing thumb/pill (A Scatto / Snapping) */
.deck-active-thumb {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  width: 14px;
  height: 20px;
  border-radius: 9999px;
  transform-origin: center center;
  pointer-events: none;
  z-index: 2;
  will-change: transform, height, background;
  transition: transform 0.38s cubic-bezier(0.2, 0.9, 0.3, 1.15), height 0.28s ease, background 0.4s ease;
}

.deck-active-thumb.color-0 {
  background: var(--accent-teal);
  box-shadow: 0 0 16px var(--accent-teal), 0 0 28px rgba(45, 212, 191, 0.75);
}

.deck-active-thumb.color-1 {
  background: var(--accent-purple);
  box-shadow: 0 0 16px var(--accent-purple), 0 0 28px rgba(187, 134, 252, 0.75);
}

.deck-active-thumb.color-2 {
  background: var(--accent-gold);
  box-shadow: 0 0 16px var(--accent-gold), 0 0 28px rgba(255, 179, 0, 0.75);
}

@media (max-width: 1000px) {

  /* Barra navigazione pallini orizzontale centrata in basso sul mobile */
  .deck-sidebar-dots {
    right: auto;
    left: 50%;
    top: 230px;
    bottom: auto;
    transform: translateX(-50%);
    padding: 8px 16px;
    border-radius: 9999px;
    width: auto;
  }

  .deck-dots-gooey-canvas {
    flex-direction: row;
    gap: 12px;
  }

  .deck-dot {
    width: 6px;
    height: 6px;
  }

  .deck-active-thumb {
    width: 18px;
    height: 10px;
  }

  #features-card-deck.features-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 600px) {
  .scroll-deck-section {
    height: 520vh;
  }

  #features-card-deck.features-grid {
    flex: 1 !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 200px) !important;
    /* Sottrae lo spazio esatto per il titolo in alto e i pallini */
    height: 100% !important;
    width: 100% !important;
    max-width: calc(100vw - 3rem) !important;
    margin: 0 auto !important;
  }

  .deck-scroll-card {
    padding: 1.15rem 1rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    max-width: calc(100vw - 3rem) !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: 100% !important;
    height: 100% !important;
    padding-bottom: 2rem !important;
    /* Aggiunge un po' di spazio vuoto in fondo per eleganza */
  }

  .card-visual-widget {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
  }

  .features-sticky-viewport .section-header {
    margin-bottom: 0.5rem !important;
  }

  .widget-pills span {
    font-size: 0.68rem;
    padding: 0.2rem 0.55rem;
  }

  .card-text-content {
    flex: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .features-sticky-viewport {
    justify-content: flex-start !important;
  }

  .rem-list,
  .rem-filter-bar,
  .rem-topbar,
  .prov-main-title,
  .adv-scroll-content,
  .adv-topbar,
  .mf-topbar,
  .app-search-header {
    top: 20px !important;
    position: relative !important;
  }

  .card-visual-widget {
    min-height: 250px !important;
  }

  .feature-card.deck-scroll-card.reveal.visible.flow-active {
    justify-content: flex-start !important;
  }

  .card-visual-widget.widget-advanced-stats,
  .card-visual-widget.widget-manage-episodes {
    overflow-y: hidden !important;
  }

  .app-tabs-container {
    display: flex !important;
    gap: 0.5rem !important;
    overflow-x: auto !important;
    padding: 0.5rem !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-content: stretch !important;
    flex-direction: row !important;
    align-items: center;
  }

  .card-visual-widget.widget-catalog-recreation {
    max-width: 100%;
    overflow: hidden;
    /* Impedisce alla riga delle tab di "sfondare" il bordo destro */
    padding-bottom: 3rem !important;
    /* Crea uno spazio vuoto sotto "Trending Now" per non farlo sembrare mozzato */
  }

  .app-tabs-container {
    width: 100%;
    box-sizing: border-box;
  }

  .filtri {
    display: none !important;
  }
}

.card-visual-widget.widget-sync,
.card-visual-widget.widget-offline {
  display: grid !important;
  gap: 1rem !important;
  height: 250px !important;
  justify-items: center;
  align-content: center;
}

/* =========================================================
   INTERACTIVE CARD VISUAL WIDGETS
========================================================= */
.card-text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-visual-widget {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

/* 1. Catalog Widget */
.widget-search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(45, 212, 191, 0.3);
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.85rem;
  color: var(--text-main);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.widget-search-bar img {
  width: 18px;
  height: 18px;
  filter: invert(1) drop-shadow(0 0 2px var(--accent-teal));
}

.search-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--accent-teal);
  color: #000;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(0.96);
  }
}

.widget-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.widget-pills span {
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.widget-pills .pill-active {
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent-teal);
  border-color: rgba(45, 212, 191, 0.4);
  font-weight: 600;
}

/* 2. Manage Folders Widget */
.widget-manage-folders {
  background: #18181A;
  border-radius: 1.5rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  font-family: var(--font-main);
  height: 100%;
  overflow: hidden;
}

.mf-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.mf-icon-small {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  cursor: pointer;
}

.mf-title-center {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
}

.mf-topbar-right {
  display: flex;
  gap: 0.75rem;
}

.mf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.mf-header-text h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}

.mf-header-text p {
  font-size: 0.85rem;
  color: #888888;
  margin: 0.2rem 0 0 0;
}

.mf-close-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mf-close-btn img {
  width: 12px;
  height: 12px;
  filter: brightness(0) invert(1);
}

.mf-folder-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.mf-folder-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  position: relative;
}

.mf-folder-item.active {
  background: rgba(255, 255, 255, 0.103);
}

.mf-folder-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mf-folder-icon img {
  width: 20px;
  height: 20px;
}

.mf-folder-info {
  display: flex;
  flex-direction: column;
}

.mf-folder-info strong {
  font-size: 0.95rem;
  color: #FFFFFF;
  font-weight: 700;
}

.mf-folder-info span {
  font-size: 0.75rem;
  color: #888888;
  margin-top: 0.15rem;
}

.mf-check {
  width: 16px;
  height: 16px;
  position: absolute;
  right: 1rem;
  opacity: 0.6;
}

.mf-new-btn {
  background: #FFFFFF;
  color: #000000;
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  gap: 0.5rem;
  cursor: pointer;
  margin-top: auto;
}

.mf-new-btn img {
  width: 14px;
  height: 14px;
  filter: brightness(0);
}

/* 3. Alerts Widget */
.alert-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(90deg, rgba(255, 179, 0, 0.12) 0%, rgba(0, 0, 0, 0.3) 100%);
  border: 1px solid rgba(255, 179, 0, 0.35);
  padding: 0.65rem 0.85rem;
  border-radius: 16px;
}

.alert-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 179, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 179, 0, 0.4);
}

.alert-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex-grow: 1;
}

.alert-text strong {
  font-size: 0.88rem;
  color: #fff;
}

.alert-text span {
  font-size: 0.75rem;
  color: var(--accent-gold);
}

.alert-tag {
  background: var(--accent-gold);
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 179, 0, 0.5);
}

/* 4. Advanced Stats Widget */
.widget-advanced-stats {
  background: linear-gradient(180deg, #0d1720 0%, #060a0d 100%);
  border-radius: 1.5rem;
  padding: 1rem 1rem 4rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  font-family: var(--font-main);
  height: 100%;
  overflow-y: auto;
  position: relative;
}

.widget-advanced-stats::-webkit-scrollbar {
  display: none;
}

.adv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgb(35, 39, 43);
  padding: 0.6rem;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.adv-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adv-btn img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.adv-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.adv-scroll-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.adv-card {
  background: rgba(30, 45, 50, 0.4);
  border: 1px solid rgba(45, 212, 191, 0.15);
  border-radius: 18px;
  padding: 1rem;
}

.adv-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent-teal);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.adv-flex-center {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.adv-icon-sm {
  width: 12px;
  height: 12px;
  filter: brightness(0) saturate(100%) invert(60%) sepia(85%) saturate(300%) hue-rotate(120deg);
}

.adv-right {
  opacity: 0.6;
}

.adv-total-time h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  text-align: center;
}

.adv-total-time p {
  font-size: 0.6rem;
  color: #666;
  text-align: center;
  letter-spacing: 1.5px;
  margin-top: 0.2rem;
}

.adv-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

.adv-icon-box {
  background: rgba(45, 212, 191, 0.15);
  padding: 0.4rem;
  border-radius: 8px;
  display: flex;
}

.adv-icon-box img {
  width: 14px;
  height: 14px;
  filter: brightness(0) saturate(100%) invert(60%) sepia(85%) saturate(300%) hue-rotate(120deg);
}

.adv-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.adv-stat-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
}

.adv-circle-icon {
  width: 32px;
  height: 32px;
  background: rgba(45, 212, 191, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adv-circle-icon img {
  width: 14px;
  height: 14px;
  filter: brightness(0) saturate(100%) invert(60%) sepia(85%) saturate(300%) hue-rotate(120deg);
}

.adv-stat-info {
  display: flex;
  flex-direction: column;
}

.adv-stat-info strong {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}

.adv-stat-info span {
  color: #777;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.adv-longest-movie-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.adv-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #ccc;
  font-weight: 600;
}

.adv-text-teal {
  color: var(--accent-teal);
}

.adv-longest-movie {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.adv-movie-cover {
  width: 45px;
  height: 65px;
  border-radius: 6px;
  background: linear-gradient(135deg, #a34b3f, #1b1c1e);
  flex-shrink: 0;
}

.adv-movie-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.adv-movie-details span {
  color: var(--accent-teal);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.adv-movie-details strong {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.adv-movie-details small {
  color: #777;
  font-size: 0.75rem;
}

.adv-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 15, 20, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  padding: 0.8rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
}

.adv-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.5;
  cursor: pointer;
}

.adv-nav-item.active {
  opacity: 1;
}

.adv-nav-item img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.adv-nav-item.active img {
  filter: brightness(0) saturate(100%) invert(60%) sepia(85%) saturate(300%) hue-rotate(120deg);
}

.adv-nav-item span {
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
}

.adv-nav-item.active span {
  color: var(--accent-teal);
}

/* 5. Advanced Providers Widget */
.widget-advanced-providers {
  background: #2c2b4b;
  border-radius: 1.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: var(--font-main);
  height: 100%;
}

.prov-main-title {
  color: #9291b1;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0;
}

.prov-section {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.prov-section-title {
  color: #7b7a99;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.prov-icon-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.prov-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.prov-img-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 6. Reminders Widget */
.widget-reminders {
  background: #000;
  border-radius: 1.5rem;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  font-family: var(--font-main);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.rem-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rem-topbar h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.rem-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rem-btn img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.rem-filter-bar {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem;
  border-radius: 100px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: space-around;
}

.rem-filter-bar::-webkit-scrollbar {
  display: none;
}

.rem-filter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  cursor: pointer;
}

.rem-filter.active {
  background: rgba(45, 212, 191, 0.15);
  color: #fff;
}

.rem-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  font-size: 0.6rem;
}

.rem-filter.active .rem-badge {
  background: #2dd4bf;
  color: #000;
}

.rem-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.rem-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.8rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.rem-cover {
  width: 48px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.rem-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex-grow: 1;
}

.rem-details strong {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.rem-details span {
  color: #2dd4bf;
  font-size: 0.75rem;
  font-weight: 600;
}

.rem-bell {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rem-bell img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* 7. Manage Episodes Widget */
.widget-manage-episodes {
  background: #111;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  max-height: 340px;
  font-family: var(--font-main);
  border: 1px solid rgba(255, 255, 255, 0.05);
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.widget-manage-episodes::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.me-header {
  position: relative;
  height: 160px;
  background-size: cover;
  background-position: center;
}

.me-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(17, 17, 17, 0) 0%, rgba(17, 17, 17, 1) 100%);
}

.me-top-actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

.me-icon-btn-group {
  display: flex;
  gap: 0.5rem;
}

.me-icon-btn {
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.me-content {
  padding: 1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  z-index: 3;
}

.me-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.me-title-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.me-title-text span {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
}

.me-title-text h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.me-close-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.me-close-btn img {
  height: 20px;
  width: 20px;
  filter: invert(1);
}

.me-season-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.2rem;
}

.me-season-filters::-webkit-scrollbar {
  display: none;
}

.me-season-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  cursor: pointer;
}

.me-season-btn.active {
  background: #00e676;
  color: #000;
  border-color: #00e676;
}

.me-season-btn.active-2 {
  background: #00e6775d;
  color: #cccccc;
  border-color: #00e67716;
}

.me-complete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #00e676;
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.8rem 1.2rem;
  border-radius: 100px;
  width: fit-content;
  cursor: pointer;
}

.me-complete-btn img {
  height: 20px;
  width: 20px;
}

.me-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.me-episodes-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.me-episode-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(43, 255, 0, 0.05);
  padding: 0.6rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.me-episode-card img {
  width: 90px;
  height: 55px;
  border-radius: 0.8rem;
  object-fit: cover;
  flex-shrink: 0;
}

.me-check-btn img.check {
  position: relative;
  top: 1px;
  height: 22px;
  width: 22px;
}

.me-ep-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex-grow: 1;
}

.me-ep-details span {
  font-size: 0.6rem;
  font-weight: 800;
  color: #00e676;
  letter-spacing: 0.5px;
}

.me-ep-details strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.me-check-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.me-check-btn.active {
  background: #00e676;
  border-color: #00e676;
}

/* 8. Sync Widget */
.widget-sync {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(187, 134, 252, 0.35);
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sync-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 10px #00e676;
}

.sync-status strong {
  font-size: 0.84rem;
  color: #fff;
}

.sync-devices {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* 9. Offline Widget */
.widget-offline {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.12) 0%, rgba(0, 0, 0, 0.4) 100%);
  border: 1px solid rgba(45, 212, 191, 0.35);
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.offline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.offline-pill {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(45, 212, 191, 0.2);
  color: var(--accent-teal);
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
  border: 1px solid rgba(45, 212, 191, 0.4);
}

.latency-pill {
  font-size: 0.68rem;
  font-weight: 800;
  color: #00e676;
}

.offline-desc {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.offline-desc strong {
  font-size: 0.88rem;
  color: #fff;
}

.offline-desc span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.feature-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(45, 212, 191, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-teal);
  border: 1px solid rgba(45, 212, 191, 0.25);
}

.feature-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: invert(1) drop-shadow(0 0 3px rgba(45, 212, 191, 0.5));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-icon img {
  transform: scale(1.15) rotate(3deg);
}

.badge-icon {
  width: 18px;
  height: 18px;
  margin-right: 0.45rem;
  vertical-align: -3px;
  filter: invert(1) drop-shadow(0 0 2px rgba(45, 212, 191, 0.5));
}

.caption-icon {
  width: 16px !important;
  height: 16px !important;
  margin-right: 0.35rem;
  vertical-align: -2px;
  display: inline-block !important;
  filter: invert(1);
}

.feature-card:nth-child(2n) .feature-icon {
  background: rgba(127, 82, 255, 0.12);
  color: var(--accent-purple);
  border-color: rgba(127, 82, 255, 0.25);
}

.feature-card:nth-child(2n) .feature-icon img {
  filter: invert(1) drop-shadow(0 0 3px rgba(127, 82, 255, 0.5));
}

.feature-card:nth-child(3n) .feature-icon {
  background: rgba(255, 202, 40, 0.12);
  color: var(--accent-gold);
  border-color: rgba(255, 202, 40, 0.25);
}

.feature-card:nth-child(3n) .feature-icon img {
  filter: invert(1) drop-shadow(0 0 3px rgba(255, 202, 40, 0.5));
}

.feature-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Showcase / Screenshots Section (FIXED: Exactly 3 columns on desktop for a 3x2 perfect grid!) */
.showcase-section {
  margin: 0 auto;
  padding: 8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  justify-items: center;
}

.showcase-section {
  margin: 0 auto;
  position: relative;
}

.screenshot-item {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 28px var(--ambilight-color, rgba(45, 212, 191, 0.18));
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  max-width: 220px;
  width: 100%;
  background: var(--bg-secondary);
  cursor: pointer;
  z-index: 1;
}

.screenshot-item:nth-child(1) {
  --ambilight-color: rgba(45, 212, 191, 0.20);
  --ambilight-hover: rgba(45, 212, 191, 0.55);
}

.screenshot-item:nth-child(2) {
  --ambilight-color: rgba(59, 130, 246, 0.20);
  --ambilight-hover: rgba(59, 130, 246, 0.55);
}

.screenshot-item:nth-child(3) {
  --ambilight-color: rgba(249, 115, 22, 0.22);
  --ambilight-hover: rgba(179, 97, 38, 0.6);
}

.screenshot-item:nth-child(4) {
  --ambilight-color: rgba(16, 185, 129, 0.20);
  --ambilight-hover: rgba(16, 185, 129, 0.55);

}

.screenshot-item:nth-child(5) {
  --ambilight-color: rgba(192, 132, 252, 0.20);
  --ambilight-hover: rgba(192, 132, 252, 0.55);
}

.screenshot-item:nth-child(6) {
  --ambilight-color: rgba(236, 72, 153, 0.20);
  --ambilight-hover: rgba(236, 72, 153, 0.55);
}

.screenshot-item:hover {
  transform: scale(1.05) translateY(-6px);
  border-color: var(--ambilight-hover, var(--accent-teal));
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9), 0 0 50px var(--ambilight-hover, rgba(45, 212, 191, 0.55));
  z-index: 10;
}

.screenshot-item>img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.screenshot-item:hover>img {
  transform: scale(1.03);
}

/* Glassmorphic Floating Pill Badge Caption (No more dark rectangle covering bottom app buttons!) */
.screenshot-caption {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 17, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-main);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-normal);
}

.screenshot-item:hover .screenshot-caption {
  border-color: var(--ambilight-color, var(--accent-teal));
  color: #ffffff;
  transform: translateX(-50%) translateY(-2px);
}

/* FAQ Section */
.faq-section {
  margin: 0 auto;
  padding: 8rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 2rem;
}

.faq-item {
  position: sticky;
  top: 130px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: all 0.3s ease;
  will-change: transform, opacity, filter;
}

.faq-item:nth-child(1) {
  top: 130px;
  z-index: 1;
}

.faq-item:nth-child(2) {
  top: 155px;
  z-index: 2;
}

.faq-item:nth-child(3) {
  top: 180px;
  z-index: 3;
}

.faq-item.active {
  border-color: var(--accent-teal);
  background: rgba(37, 51, 70, 0.9);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

.faq-question:hover {
  color: var(--accent-teal);
}

.faq-icon {
  font-size: 1.4rem;
  transition: transform var(--transition-normal);
  color: var(--accent-teal);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.25rem;
}

/* Quando la lista delle FAQ è in hover, abbassa l'opacità e sfoca TUTTI gli item */
.faq-list:hover .faq-item {
  opacity: 0.35;
  transform: scale(0.98);
}

/* Ma mantieni illuminato e ingrandito SOLO quello che ha il mouse sopra */
.faq-list .faq-item:hover {
  opacity: 1;
  filter: blur(0px);
  transform: scale(1.02);
  z-index: 10;
}

/* Legal Content */
.legal-container {
  max-width: 850px;
  margin: 7rem auto 4rem;
  padding: 3rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.legal-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.legal-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.legal-header .updated-date {
  color: var(--accent-teal);
  font-weight: 500;
  font-size: 0.95rem;
}

.legal-content h2,
.legal-content h3 {
  color: var(--text-main);
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.legal-content h2 {
  font-size: 1.5rem;
  border-left: 4px solid var(--accent-teal);
  padding-left: 0.75rem;
}

.legal-content h3 {
  font-size: 1.25rem;
  color: var(--accent-purple);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content strong {
  color: var(--text-main);
  font-weight: 600;
}

/* =========================================
   Final Download CTA Section
   ========================================= */
.download-cta-section {
  padding: 5rem 2rem 6rem;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.cta-card {
  width: 100%;
  background: linear-gradient(145deg, rgba(25, 35, 55, 0.6), rgba(10, 15, 25, 0.8));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(45, 212, 191, 0.4);
  border-radius: 32px;
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.cta-content {
  position: relative;
  z-index: 1;
  flex: 1;
}

.cta-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #FFFFFF, var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.25rem;
  line-height: 1.6;
  max-width: 480px;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(45, 212, 191, 0.15), transparent 70%);
  border: 1px solid rgba(45, 212, 191, 0.2);
  box-shadow: 0 0 30px rgba(45, 212, 191, 0.1);
}

.cta-logo-glow {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 20px rgba(45, 212, 191, 0.5));
  animation: floatBadge 6s ease-in-out infinite;
}

@media (max-width: 768px) {
  .cta-card {
    flex-direction: column;
    text-align: center;
    padding: 3rem 2rem;
    gap: 2rem;
  }

  .cta-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-actions {
    justify-content: center;
  }
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background: #0B0F19;
  padding: 4rem 1.5rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col {
  min-width: 200px;
  flex: 1;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 350px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition-fast);
  position: relative;
  padding-bottom: 3px;
  display: inline-block;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-gold));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.35);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* =========================================================
   MOBILE RESPONSIVE & TOUCH OPTIMIZATION
========================================================= */
@media (max-width: 950px) {
  .features-grid {
    gap: 2rem;
  }

  .feature-card {
    top: 100px;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: 6.5rem 1.25rem 3rem;
  }

  .hero-stats {
    gap: 0.65rem;
    padding: 0 0.25rem;
  }

  .stat-item {
    padding: 1rem 0.5rem;
    border-radius: 14px;
  }

  .stat-value {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .features-grid {
    gap: 1.5rem;
  }

  #features-card-deck.features-grid {
    perspective: none !important;
    width: 100% !important;
    max-width: calc(100vw - 3rem) !important;
    margin: 0 auto !important;
  }

  /* OTTIMIZZAZIONE GPU 60FPS PER MOBILE (elimina il lag da blur sovrapposti e bug culling 3D) */
  .deck-scroll-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #0F1218 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65) !important;
    will-change: transform;
    transform-style: flat !important;
    border-radius: 20px !important;
    padding: 1.35rem 1.15rem !important;
  }

  .feature-card {
    top: 85px;
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1rem;
  }

  .screenshot-item {
    max-width: 170px;
    border-radius: 16px;
  }

  .screenshot-caption {
    padding: 0.32rem 0.75rem;
    font-size: 0.75rem;
    bottom: 10px;
  }

  .faq-section {
    margin: 0 auto;
    padding: 3.5rem 1.25rem;
  }

  .faq-question {
    padding: 1.15rem 1.25rem;
  }

  .faq-answer {
    padding: 0 1.25rem;
  }

  .faq-item.active .faq-answer {
    padding-bottom: 1.15rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .legal-container {
    margin: 5.5rem 1rem 3rem;
    padding: 1.75rem 1.25rem;
  }

  .legal-header h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 250px;
  }

  .stat-item {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .stat-value {
    margin-bottom: 0;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .screenshot-item {
    max-width: 150px;
  }
}

@media (hover: none) {

  .feature-card:hover,
  .stat-item:hover,
  .screenshot-item:hover {
    transform: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  }

  .btn-primary:active,
  .btn-secondary:active,
  .nav-github-btn:active,
  .mobile-menu-btn:active {
    transform: scale(0.97);
  }
}

/* =========================================
   ULTRA-PREMIUM INTERACTIVE EYE-CANDY UI
   ========================================= */

/* 1. Interactive 3D Cyberpunk Particle Canvas */
#cyber-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}

/* 2. Neon Top Scroll Laser Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 100000;
  pointer-events: none;
}

#scroll-laser {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10B981, var(--accent-teal), #67E8F9);
  box-shadow: 0 0 10px var(--accent-teal), 0 0 20px var(--accent-teal), 0 0 30px #67E8F9;
  transition: width 0.05s ease-out;
  border-radius: 0 2px 2px 0;
}

/* 3. Click Neon Shockwave Ripple */
.click-shockwave {
  position: fixed;
  border: 2px solid var(--accent-teal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0.8;
  animation: shockwave-expand 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 0 18px var(--accent-teal);
}

@keyframes shockwave-expand {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
  }
}

/* 4. Holographic Screenshot Zoom Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 11, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.lightbox-close:hover {
  background: var(--accent-teal);
  color: #000;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 15px var(--accent-teal);
}

.lightbox-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(45, 212, 191, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-height: 75vh;
  max-width: 90vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0D1117;
}

.lightbox-img-wrapper img {
  max-height: 75vh;
  max-width: 90vw;
  width: auto;
  height: auto;
  aspect-ratio: 9 / 20;
  display: block;
  object-fit: contain;
}

.lightbox-caption-text {
  margin-top: 1.2rem;
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* =========================================
   TRUE CINEMA PREMIUM ATMOSPHERE UPGRADE
   ========================================= */

/* Volumetric Projector & Light Beam */
.cinema-projector-container {
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 600px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.projector-beam {
  width: 150%;
  height: 550px;
  background: linear-gradient(180deg, rgba(253, 255, 99, 0.1) 0%, rgba(250, 255, 105, 0.01) 40%, transparent 100%);
  clip-path: polygon(48% 0%, 52% 0%, 85% 100%, 15% 100%);
  filter: blur(12px);
  opacity: 0.85;
  animation: beam-flicker 6s infinite ease-in-out;
  transform-origin: top center;
}

@keyframes beam-flicker {

  0%,
  100% {
    opacity: 0.85;
  }

  45% {
    opacity: 0.65;
  }

  50% {
    opacity: 0.9;
  }

  52% {
    opacity: 0.7;
  }

  80% {
    opacity: 0.8;
  }
}

/* Clapperboard 24 FPS Badge */
.cinema-badge {
  background: rgba(2, 229, 199, 0.2) !important;
  border: 1px solid rgba(2, 229, 199, 0.521) !important;
  box-shadow: 0 0 20px rgba(2, 229, 199, 0.521) !important;
  color: rgb(108, 234, 248) !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.rec-dot {
  width: 8px;
  height: 8px;
  background-color: #FF1744;
  border-radius: 50%;
  box-shadow: 0 0 8px #FF1744;
  animation: rec-blink 1s infinite alternate;
}

@keyframes rec-blink {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
}

/* Cinematic Celluloid Filmstrip Reel */
.filmstrip-wrapper {
  width: 100vw;
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 5rem 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.filmstrip-divider {
  width: 100%;
  position: relative;
  height: 56px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, #070f0e 0%, rgba(10, 35, 32, 0.85) 15%, rgba(8, 25, 23, 0.75) 85%, #070f0e 100%);
  border-top: 1px solid rgba(8, 191, 163, 0.5);
  border-bottom: 1px solid rgba(8, 191, 163, 0.5);
  border-radius: 0;
  box-shadow: 0 0 25px rgba(8, 191, 163, 0.18), inset 0 0 15px rgba(0, 0, 0, 0.95);
  opacity: 0.92;
  transition: opacity 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.filmstrip-wrapper:hover .filmstrip-divider {
  opacity: 1;
}

.filmstrip-divider.strip-left:hover {
  box-shadow: 0 0 40px rgba(10, 174, 156, 0.4), inset 0 0 15px rgba(0, 0, 0, 0.85);
}

/* Second counter-scrolling reel: Magenta / Gold atmosphere */
.filmstrip-divider.strip-right {
  background: linear-gradient(180deg, #0f0b0e 0%, rgba(35, 18, 33, 0.85) 15%, rgba(26, 14, 25, 0.75) 85%, #0f0b0e 100%);
  border-top: 1px solid rgba(243, 134, 248, 0.45);
  border-bottom: 1px solid rgba(243, 134, 248, 0.45);
  box-shadow: 0 0 25px rgba(243, 134, 248, 0.15), inset 0 0 15px rgba(0, 0, 0, 0.95);
}

.filmstrip-divider.strip-right:hover {
  box-shadow: 0 0 40px rgba(243, 134, 248, 0.4), inset 0 0 15px rgba(0, 0, 0, 0.85);
}

.film-holes {
  width: 100%;
  height: 12px;
  background-color: #050a09;
  background-image: linear-gradient(90deg,
      transparent 0px,
      transparent 10px,
      rgba(45, 212, 191, 0.9) 10px,
      rgba(45, 212, 191, 0.9) 30px,
      transparent 30px,
      transparent 40px);
  background-size: 40px 100%;
  background-repeat: repeat-x;
  border-bottom: 1px solid rgba(45, 212, 191, 0.3);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.4);
}

.filmstrip-divider .film-holes:last-child {
  border-bottom: none;
  border-top: 1px solid rgba(45, 212, 191, 0.3);
}

/* Magenta Reel Perforations */
.filmstrip-divider.strip-right .film-holes {
  background-image: linear-gradient(90deg,
      transparent 0px,
      transparent 10px,
      rgba(243, 134, 248, 0.88) 10px,
      rgba(243, 134, 248, 0.88) 30px,
      transparent 30px,
      transparent 40px);
  border-bottom: 1px solid rgba(243, 134, 248, 0.28);
  box-shadow: 0 0 10px rgba(243, 134, 248, 0.35);
}

.filmstrip-divider.strip-right .film-holes:last-child {
  border-bottom: none;
  border-top: 1px solid rgba(243, 134, 248, 0.28);
}

.film-line {
  flex: 1;
  width: 100%;
  background-color: rgba(45, 212, 191, 0.03);
  /* Vertical Frame Dividers perfectly aligned at 0px of every 4 perforations (160px tile) */
  background-image: linear-gradient(90deg,
      rgba(45, 212, 191, 0.65) 0px,
      rgba(45, 212, 191, 0.65) 2px,
      transparent 2px,
      transparent 160px);
  background-size: 160px 100%;
  background-repeat: repeat-x;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.85);
  position: relative;
}

/* Magenta Reel Frame Dividers */
.filmstrip-divider.strip-right .film-line {
  background-color: rgba(243, 134, 248, 0.02);
  background-image: linear-gradient(90deg,
      rgba(243, 134, 248, 0.65) 0px,
      rgba(243, 134, 248, 0.65) 2px,
      transparent 2px,
      transparent 160px);
}

.lightbox-img-wrapper img {
  max-height: 75vh;
  max-width: 90vw;
  width: auto;
  height: auto;
  aspect-ratio: 9 / 20;
  display: block;
  object-fit: contain;
  /* Aggiungi questa riga per rendere fluido lo zoom e il pan */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform-origin 0.1s linear;
}

.footer {
  /* Aggiungi un leggero gradiente per staccare dal nero puro */
  background: linear-gradient(to bottom, #050505, #0a0a0a);
  border-top: 1px solid rgba(45, 212, 191, 0.1);
  /* Teal molto tenue */
  padding: 5rem 1.5rem 2rem;
  position: relative;
}

/* Aggiungi un bagliore tenue solo in cima al footer */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
  opacity: 0.3;
}

/* ==========================================================================
   NEXT-GEN FLOW CONSTRUCTION ENGINE (Lenis, Conic Borders, Flow Icons, Pipeline)
   ========================================================================== */

/* 1. Rotating Conic Gradient Border (`border-rotate`) */
@keyframes border-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.border-rotate-glow {
  position: relative;
  border-radius: 9999px;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 0 25px rgba(45, 212, 191, 0.25);
  z-index: 1;
}

.border-rotate-glow::before {
  content: '';
  position: absolute;
  top: -150%;
  left: -150%;
  width: 400%;
  height: 400%;
  background: conic-gradient(from 0deg, transparent 0%, var(--accent-teal) 15%, var(--accent-purple) 35%, var(--accent-gold) 50%, var(--accent-teal) 70%, transparent 100%);
  animation: border-rotate 5s linear infinite;
  z-index: -1;
}

.border-rotate-glow::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: rgba(11, 15, 25, 0.94);
  border-radius: inherit;
  z-index: -1;
}

.border-rotate-glow.purple-glow::before {
  background: conic-gradient(from 0deg, transparent 0%, var(--accent-purple) 15%, var(--accent-pink) 35%, var(--accent-teal) 50%, var(--accent-purple) 70%, transparent 100%);
}

.border-rotate-glow.gold-glow::before {
  background: conic-gradient(from 0deg, transparent 0%, var(--accent-gold) 15%, var(--accent-teal) 35%, var(--accent-purple) 50%, var(--accent-gold) 70%, transparent 100%);
}

.flow-badge-top {
  gap: 8px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-teal);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.flow-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 10px var(--accent-teal);
  animation: status-blink 1.5s infinite;
}

/* 2. Split-Text Word Reveal (`blur-to-clear`) */
.blur-word {
  display: inline-block;
  margin-right: 0.26em;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(22px) scale(0.94);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, filter, transform;
}

.blur-word.revealed {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0) scale(1);
}

/* 3. Interactive Flow Pipeline Section & SVG Construction Engine */
.flow-pipeline-section {
  margin: 0 auto;
  position: relative;
  padding: 8rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
  overflow: visible;
  z-index: 10;
}

.pipeline-board-wrapper {
  position: relative;
  margin-top: 4rem;
  width: 100%;
}

.pipeline-container {
  position: relative;
  z-index: 2;
  padding: 3.5rem 1.5rem;
  background: rgba(18, 24, 38, 0.45);
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 28px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), inset 0 0 30px rgba(45, 212, 191, 0.05);
}

/* Animated Energy Track Bridge che esce dallo schermo a sinistra e destra (150vw) e sta sotto il vetro del box grande */
.pipeline-flow-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150vw;
  height: 240px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.pipe-base-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.10);
  stroke-width: 3;
}

.pipe-energy-beam {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition: stroke-dashoffset 3s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 14px var(--accent-teal));
}

.flow-pipeline-section.flow-active .pipe-energy-beam,
.pipeline-board-wrapper.flow-active .pipe-energy-beam,
.pipeline-container.flow-active .pipe-energy-beam {
  stroke-dashoffset: 0;
}

@keyframes packet-travel {
  0% {
    offset-distance: 0%;
    opacity: 0;
    transform: scale(0.5);
  }

  8% {
    opacity: 1;
    transform: scale(1.2);
  }

  92% {
    opacity: 1;
    transform: scale(1.2);
  }

  100% {
    offset-distance: 100%;
    opacity: 0;
    transform: scale(0.5);
  }
}

.energy-packet {
  fill: var(--accent-teal);
  filter: drop-shadow(0 0 14px var(--accent-teal));
  offset-path: path('M -100 120 C 150 20, 380 220, 520 120 C 650 20, 720 220, 800 120 C 880 20, 950 220, 1080 120 C 1220 20, 1450 220, 1700 120');
  animation: packet-travel 4s linear infinite;
}

.packet-2 {
  fill: var(--accent-purple);
  filter: drop-shadow(0 0 14px var(--accent-purple));
  animation-delay: 1.4s;
  animation-duration: 4.5s;
}

.packet-3 {
  fill: var(--accent-gold);
  filter: drop-shadow(0 0 14px var(--accent-gold));
  animation-delay: 2.4s;
  animation-duration: 3.2s;
}

.pipeline-nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  position: relative;
}

.flow-node-card {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-node-card:hover {
  transform: translateY(-6px);
  background: transparent;
  border: none;
  box-shadow: none;
}

.node-icon-wrapper {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  margin-bottom: 0.5rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.flow-node-card:hover .node-icon-wrapper {
  transform: scale(1.12);
}

/* 4. Flow Construct SVG Icon Drawing Engine (`stroke-dashoffset` drawing) */
.flow-construct-svg {
  width: 28px;
  height: 28px;
  color: var(--accent-teal);
  filter: drop-shadow(0 0 8px var(--accent-teal-glow));
}

.purple-glow .flow-construct-svg {
  color: var(--accent-purple);
  filter: drop-shadow(0 0 8px var(--accent-purple-glow));
}

.gold-glow .flow-construct-svg {
  color: var(--accent-gold);
  filter: drop-shadow(0 0 8px rgba(255, 179, 0, 0.3));
}

.construct-path {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-node-card:hover .construct-path,
.flow-active .construct-path {
  stroke-dashoffset: 0;
}

.construct-path.delay-draw-1 {
  transition-delay: 0.25s;
}

.construct-path.delay-draw-2 {
  transition-delay: 0.5s;
}

.construct-fill {
  opacity: 0;
  transform: scale(0.85);
  transform-origin: center;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.flow-node-card:hover .construct-fill,
.flow-active .construct-fill {
  opacity: 1;
  transform: scale(1);
}

@keyframes pulse-energy-circle {
  0% {
    transform: scale(0.6);
    opacity: 0.3;
    filter: drop-shadow(0 0 2px currentColor);
  }

  50% {
    transform: scale(1.4);
    opacity: 1;
    filter: drop-shadow(0 0 15px currentColor);
  }

  100% {
    transform: scale(0.6);
    opacity: 0.3;
    filter: drop-shadow(0 0 2px currentColor);
  }
}

.construct-pulse-dot {
  transform-origin: center;
  animation: pulse-energy-circle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.node-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  letter-spacing: 0.8px;
  margin-top: auto;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 8px var(--accent-teal);
  animation: status-blink 1.5s infinite;
}

.status-pulse.purple {
  background: var(--accent-purple);
  box-shadow: 0 0 8px var(--accent-purple);
}

.status-pulse.gold {
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

@keyframes status-blink {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

@media (max-width: 768px) {
  .pipeline-flow-svg {
    display: none;
  }

  .flow-pipeline-section {
    margin: 0 auto;
    padding: 4.5rem 1rem;
  }

  /* Ottimizzazione GPU 60 FPS: rimuove il blur pesante sul contenitore mobile */
  .pipeline-container {
    padding: 2.5rem 1.25rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(15, 18, 24, 0.96);
    border-radius: 24px;
  }

  /* Spina dorsale di energia verticale che collega i 3 nodi su telefono */
  .pipeline-nodes-grid::before {
    content: '';
    position: absolute;
    top: 2rem;
    bottom: 2rem;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #2DD4BF 0%, #BB86FC 50%, #FFB300 100%);
    box-shadow: 0 0 14px rgba(187, 134, 252, 0.6), 0 0 28px rgba(45, 212, 191, 0.4);
    z-index: 0;
  }

  .pipeline-nodes-grid {
    gap: 2.25rem;
  }

  .flow-node-card {
    padding: 1.5rem 1.25rem;
    background: rgba(18, 22, 30, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
    z-index: 2;
  }
}

@media (max-width: 480px) {
  .flow-node-card {
    padding: 1.25rem 1rem;
  }

  .flow-node-card h4 {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   UNIVERSAL IMPORT & SMART MERGE SECTION
   ========================================================================== */
.universal-import-section {
  margin: 0 auto;
  position: relative;
  max-width: 1200px;
  padding: 8rem 2rem;
  margin: 1.5rem auto 3rem;
  padding: 0 1.2rem;
  z-index: 5;
}

.cyber-migration-hub {
  position: relative;
  background: linear-gradient(145deg, rgba(18, 22, 33, 0.9) 0%, rgba(10, 13, 20, 0.95) 100%);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 28px;
  padding: 2rem 2.2rem 1.6rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 45px rgba(45, 212, 191, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.hub-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2rem;
}

.import-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: #2DD4BF;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .import-badge {
    padding: 0.35rem 0.8rem;
    font-size: 0.65rem;
    gap: 0.4rem;
  }
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2DD4BF;
  box-shadow: 0 0 10px #2DD4BF;
}

.pulse-teal {
  animation: pulseTeal 2s infinite;
}

@keyframes pulseTeal {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

.hub-header h2 {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.hub-header p {
  font-size: clamp(0.82rem, 1.1vw, 0.94rem);
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
  margin: 0;
}

/* Electric Synapse Stage */
.synapse-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 300px;
  margin-bottom: 1.8rem;
}

.synapse-nodes {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 240px;
  z-index: 3;
}

.node-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.node-chip:hover {
  transform: scale(1.04) translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
}

.chip-tvtime:hover {
  border-color: #FFC800;
  box-shadow: 0 10px 28px rgba(255, 200, 0, 0.3), inset 0 0 12px rgba(255, 200, 0, 0.15);
}

.chip-trakt:hover {
  border-color: #ED1C24;
  box-shadow: 0 10px 28px rgba(237, 28, 36, 0.3), inset 0 0 12px rgba(237, 28, 36, 0.15);
}

.chip-letterboxd:hover {
  border-color: #00E054;
  box-shadow: 0 10px 28px rgba(0, 224, 84, 0.3), inset 0 0 12px rgba(0, 224, 84, 0.15);
}

.chip-imdb:hover {
  border-color: #F5C518;
  box-shadow: 0 10px 28px rgba(245, 197, 24, 0.3), inset 0 0 12px rgba(245, 197, 24, 0.15);
}

/* Electric sockets connecting chips to beams */
.node-socket {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #2DD4BF;
  box-shadow: 0 0 12px #2DD4BF;
}

.left-socket {
  right: -5px;
}

.right-socket {
  left: -5px;
}

.chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  overflow: hidden;
}

.chip-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.chip-bg-tvtime {
  background: #FFC800;
  border-color: #FFC800;
}

.chip-bg-trakt {
  background: #ED1C24;
  border-color: #ED1C24;
}

.chip-bg-letterboxd {
  background: #2C3440;
  border-color: #2C3440;
}

.chip-bg-imdb {
  background: #F5C518;
  border-color: #F5C518;
}

.chip-bg-universal {
  background: rgba(15, 118, 110, 0.4);
  border-color: #0F766E;
}

.chip-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  overflow: hidden;
}

.chip-info strong {
  font-size: 0.82rem;
  color: #FFFFFF;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-info span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Central Area & SVG Electric Beams */
.synapse-center-area {
  position: relative;
  flex-grow: 1;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.electric-beams-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.electric-line {
  stroke-dasharray: 6, 4;
  animation: electricFlow 1.2s linear infinite;
  opacity: 0.8;
  transition: all 0.35s ease;
}

@keyframes electricFlow {
  0% {
    stroke-dashoffset: 20;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

/* FlickTrove Reactor Core */
.flicktrove-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
}

.core-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(45, 212, 191, 0.6);
}

.ring-outer {
  inset: -15px;
  animation: spinRingOuter 14s linear infinite;
  box-shadow: 0 0 25px rgba(45, 212, 191, 0.3), inset 0 0 15px rgba(45, 212, 191, 0.2);
}

.ring-inner {
  inset: -3px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  animation: spinRingInner 9s linear infinite reverse;
}

@keyframes spinRingOuter {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes spinRingInner {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.core-logo {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.2) 0%, rgba(18, 22, 33, 0.9) 100%);
  border: 2px solid #2DD4BF;
  box-shadow: 0 0 35px rgba(45, 212, 191, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  z-index: 3;
}

.core-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.core-label {
  position: absolute;
  bottom: -32px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #2DD4BF;
  letter-spacing: 0.12em;
  text-shadow: 0 0 10px rgba(45, 212, 191, 0.8);
}

/* Footer Compact Bar */
.synapse-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.universal-pill-node {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 1.1rem;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.universal-pill-node:hover {
  transform: translateY(-2px);
  background: rgba(45, 212, 191, 0.15);
  box-shadow: 0 8px 22px rgba(45, 212, 191, 0.25);
}

.chip-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: #2DD4BF;
  white-space: nowrap;
  flex-shrink: 0;
}

.smart-merge-compact {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-grow: 1;
  padding: 0.7rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.merge-shield-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(45, 212, 191, 0.12);
  flex-shrink: 0;
}

.merge-info {
  display: flex;
  flex-direction: column;
}

.merge-info strong {
  font-size: 0.82rem;
  color: #FFFFFF;
}

.merge-info span {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Mobile Layout - Compact & Contained without Beams or Core Circle */
@media (max-width: 850px) {
  .synapse-stage {
    flex-direction: column;
    height: auto !important;
    min-height: auto !important;
    justify-content: flex-start !important;
    gap: 0.65rem !important;
    padding: 0.3rem 0 0.8rem !important;
    margin-bottom: 0.8rem !important;
  }

  .electric-beams-svg,
  .node-socket,
  .synapse-center-area {
    display: none !important;
  }

  .synapse-nodes {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .node-chip {
    flex: none;
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.5rem;
    gap: 0.5rem;
    border-radius: 12px;
  }

  .chip-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 6px;
  }

  .chip-icon img {
    width: 18px !important;
    height: 18px !important;
  }

  .chip-info strong {
    font-size: 0.72rem;
  }

  .chip-info span {
    font-size: 0.6rem;
  }

  .synapse-footer-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .universal-pill-node {
    padding: 0.65rem 0.85rem;
  }
}

/* ==========================================================================
   CINEMATIC HOLOGRAPHIC COVER STAGE (NO MARQUEE)
   ========================================================================== */
.cinematic-stage-section {
  margin: 0 auto;
  position: relative;
  max-width: 1200px;
  padding: 8rem 2rem;
  margin: 1rem auto 3rem;
  padding: 2.5rem 1.5rem;
  z-index: 5;
  overflow: visible;
  border-radius: 36px;
}

.stage-ambient-background {
  position: absolute;
  top: 10%;
  left: 20%;
  right: 20%;
  bottom: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--stage-glow-color, rgba(45, 212, 191, 0.18)) 0%, transparent 70%);
  filter: blur(80px);
  transition: background 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 0;
}

.cinematic-stage-section .section-header {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem;
}

.holographic-stage-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  height: 480px;
  margin: 2.5rem auto;
  perspective: 1400px;
  display: flex !important;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.holographic-cover-card {
  position: absolute !important;
  width: 200px !important;
  aspect-ratio: 2 / 3 !important;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(25, 30, 42, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85);
  cursor: pointer;
  will-change: transform, opacity;
  user-select: none;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.holographic-cover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cover-glow {
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.holographic-cover-card:hover,
.holographic-cover-card.is-front {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.9),
    -20px -15px 45px var(--card-glow-1, rgba(45, 212, 191, 0.5)),
    20px -15px 45px var(--card-glow-2, rgba(187, 134, 252, 0.5)),
    0 25px 45px var(--card-glow-3, rgba(255, 215, 0, 0.5));
}

.holographic-cover-card:hover img,
.holographic-cover-card.is-front img {
  transform: scale(1.08);
}

.holographic-cover-card:hover .cover-glow,
.holographic-cover-card.is-front .cover-glow {
  opacity: 1;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 35%, rgba(0, 0, 0, 0.9) 85%);
  z-index: 2;
  pointer-events: none;
  padding: 15px
}

/* Reference Card Elements: Top-Left Ribbon Bookmark — Film Strip Style */
.card-ribbon-bookmark {
  position: absolute;
  top: 0;
  left: 14px;
  width: 22px;
  height: 34px;
  background: linear-gradient(180deg, #F472B6 0%, #A855F7 55%, #6366F1 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 87%, 0 100%);
  z-index: 3;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0 12px;
}

.ribbon-holes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 5px;
}

.ribbon-hole {
  width: 3px;
  height: 3px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.45);
}

/* Reference Card Elements: Top-Right Pill Badge */
.card-top-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.22rem 0.6rem;
  border-radius: 99px;
  background: rgba(10, 8, 0, 0.45);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid rgba(255, 179, 0, 0.75);
  color: #FFD54F;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 200, 0, 0.15);
  text-shadow: 0 0 8px rgba(255, 179, 0, 0.6);
}

/* Reference Card Elements: Bottom Title and Circle Action Button */
.card-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
  width: 100%;
}

.card-title-area {
  flex-grow: 1;
}

.card-title-area h4 {
  font-size: 0.82rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
}

.card-watch-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(18, 18, 24, 0.88);
  border: 1.5px solid #FFB300;
  color: #FFB300;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.holographic-cover-card:hover .card-watch-circle,
.holographic-cover-card.is-front .card-watch-circle {
  background: #FFB300;
  color: #050505;
  box-shadow: 0 0 16px rgba(255, 179, 0, 0.6);
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .smart-merge-box {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .import-banner-glass {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .holographic-stage-container {
    height: 380px !important;
    perspective: 1100px;
  }

  .holographic-cover-card {
    width: 145px !important;
    border-radius: 14px;
  }

  .card-title-area h4 {
    font-size: 0.72rem;
  }

  .card-watch-circle {
    width: 22px;
    height: 22px;
  }

  .card-ribbon-bookmark {
    width: 24px;
    height: 36px;
    left: 10px;
  }
}



.tag-pill.teal {
  color: #2DD4BF;
  font-size: 0.72rem;
}

/* Mobile Padding Fixes added dynamically */
@media (max-width: 768px) {

  .showcase-section,
  .faq-section,
  .flow-pipeline-section,
  .universal-import-section,
  .cinematic-stage-section {
    margin: 0 auto;
    padding: 4rem 1.5rem !important;
  }
}


/* Ensure section content stays within grid properly */
section {
  box-sizing: border-box;
  overflow-x: clip;
  margin: 0 auto;
}

/* --- New Search UI widget --- */
.widget-catalog-recreation {
  background: #0D0D0D;
  border-radius: 1.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: var(--font-main);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.app-search-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F8FAFC;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.app-icon-btn:hover {
  background: #2A2A2A;
}

.app-icon-btn img,
.app-search-input img,
.app-chip img {
  filter: brightness(0) invert(1);
}

.app-search-input {
  flex-grow: 1;
  height: 44px;
  background: #1A1A1A;
  border-radius: 22px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.75rem;
  color: #64748B;
  font-size: 0.95rem;
}

.app-search-input svg {
  color: #64748B;
}

.app-recent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.recent-title {
  color: #64748B;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.recent-clear {
  color: var(--accent-teal);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.app-recent-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.app-chip {
  background: #222222;
  color: #F8FAFC;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}

.app-chip svg {
  color: #64748B;
}

.app-tabs-container {
  border-radius: 30px;
  background: #262626;
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem;
}

.app-tabs-container::-webkit-scrollbar {
  display: none;
}

.app-tab {
  color: #bcbcca;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
}

.app-tab.active {
  background: #0f0f0f;
  color: var(--accent-teal);
}

.app-trending-title {
  color: #F8FAFC;
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}


/* 1. Impedisce al testo della barra di ricerca di andare a capo */
.app-search-input span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2. Ricalibra le dimensioni del widget Catalog per i telefoni */
@media (max-width: 600px) {

  /* Recupera spazio orizzontale riducendo il padding interno */
  .widget-catalog-recreation {
    padding: 1rem !important;
  }

  /* Riduce i bottoni laterali (back e filtri) */
  .app-icon-btn {
    width: 36px !important;
    height: 36px !important;
  }

  /* Proporziona la barra di ricerca centrale */
  .app-search-input {
    height: 36px !important;
    padding: 0 0.75rem !important;
    font-size: 0.85rem !important;
  }

  /* Rimpicciolisce le chips delle ricerche recenti */
  .app-chip {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.8rem !important;
  }
}

@media (max-width: 600px) {

  /* 1. VIEWPORT: Rimuoviamo il padding laterale che spingeva le card a destra */
  .features-sticky-viewport {
    height: 100dvh !important;
    padding: 75px 0 1rem 0 !important;
    /* 0 padding laterale, gestiamo le card singolarmente */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    overflow: hidden !important;
    /* Uccide definitivamente le scrollbar della pagina extra */
    box-sizing: border-box !important;
  }

  /* 2. HEADER E PALLINI: Rimpiccioliamo il titolo per fare più spazio vitale alla card */
  .features-sticky-viewport .section-header {
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 1.2rem !important;
    /* Rimettiamo il padding qui per il testo */
  }

  .features-sticky-viewport .section-header h2 {
    font-size: 2rem !important;
    margin-bottom: 0.2rem !important;
  }

  .features-sticky-viewport .section-header p {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    margin: 0 auto !important;
  }

  .deck-sidebar-dots {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    flex-shrink: 0 !important;
    margin: 0.5rem auto !important;
  }

  /* 3. IL CONTENITORE: Occupa l'esatto spazio verticale rimanente */
  #features-card-deck.features-grid {
    position: relative !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  /* 4. LA CARD: Perfettamente al centro e SENZA scroll interno */
  .deck-scroll-card {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    /* Ancorata a sinistra... */
    right: 0 !important;
    /* ...ancorata a destra... */
    margin: 0 auto !important;
    /* ...centrata perfettamente al millimetro! */

    width: calc(100vw - 2.4rem) !important;
    /* Lascia esattamente 1.2rem di margine per lato */
    height: auto !important;
    /* Si adatta al suo contenuto */
    max-height: 100% !important;
    /* Non supera mai il fondo dello schermo */

    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    padding: 1.25rem 1rem !important;

    overflow: hidden !important;
    /* BLOCCO TOTALE DELLO SCROLL INTERNO come richiesto */
    box-sizing: border-box !important;
  }

  /* 5. WIDGET INTERNO: Se lo schermo è davvero minuscolo, il widget scuro si adatterà */
  .card-text-content {
    flex: 0 0 auto !important;
  }

  .card-visual-widget {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  /* --- Nasconde completamente le card inattive che sbucano dal fondo --- */
  .deck-scroll-card[style*="pointer-events: none"] {
    opacity: 0 !important;
  }

  /* Assicura che la card in primo piano sia sempre visibile */
  .deck-scroll-card[style*="pointer-events: auto"] {
    opacity: 1 !important;
  }

  /* Aggiunge una dissolvenza morbida quando la card inattiva diventa attiva */
  .deck-scroll-card {
    transition: opacity 0.35s ease !important;
  }
}

@media (max-width: 768px) {

  /* 1. Rimuoviamo la linea verticale centrale illuminata che spreca spazio */
  .pipeline-nodes-grid::before {
    display: none !important;
  }

  /* 2. Riduciamo drasticamente lo spazio vuoto tra le due card */
  .pipeline-nodes-grid {
    gap: 0.8rem !important;
  }

  /* 3. Trasformiamo la card: da un blocco verticale a una griglia orizzontale compatta */
  .flow-node-card {
    display: grid !important;
    grid-template-columns: 46px 1fr !important;
    /* Icona a sinistra fissa, testo a destra */
    gap: 0.2rem 1rem !important;
    padding: 1rem !important;
    text-align: left !important;
    align-items: center !important;
  }

  /* 4. Rimpiccioliamo l'icona e la blocchiamo nella prima colonna a sinistra */
  .flow-node-card .node-icon-wrapper {
    grid-column: 1 !important;
    grid-row: 1 / 4 !important;
    /* L'icona occupa l'altezza di tutte e 3 le righe di testo */
    width: 46px !important;
    height: 46px !important;
    margin-bottom: 0 !important;
  }

  .flow-node-card .node-icon-wrapper svg {
    width: 22px !important;
    height: 22px !important;
  }

  /* 5. Titolo più piccolo e compatto */
  .flow-node-card h4 {
    grid-column: 2 !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
  }

  /* 6. Testo descrittivo: piccolo e leggibile per intero (nessun troncamento) */
  .flow-node-card p {
    grid-column: 2 !important;
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.6) !important;

    /* Regole per mostrare tutto il testo su più righe naturalmente */
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  /* 7. Il badge si allinea a sinistra sotto il testo e diventa minuscolo */
  .flow-node-card .node-status-badge {
    grid-column: 2 !important;
    justify-self: flex-start !important;
    margin-top: 0.2rem !important;
    padding: 3px 8px !important;
    font-size: 0.6rem !important;
  }

  .flow-node-card:hover {
    scale: 1 !important;
  }

  /* --- Rimpicciolisce TUTTI i titoli e sottotitoli del sito su mobile --- */
  .section-header {
    margin-bottom: 2rem !important;
  }

  .section-header h2 {
    font-size: 2rem !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.1 !important;
  }

  .section-header p {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin: 0 auto !important;
    max-width: 90% !important;
  }

  /* Eccezione: togliamo il margine inferiore solo per il titolo sopra le card */
  .features-sticky-viewport .section-header {
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 768px) {

  /* 1. KILLER DEL LAG: Niente blur, ma ricreiamo la luce con un gradiente perfetto */
  .stage-ambient-background {
    filter: none !important;

    /* Resettiamo i bordi che lo schiacciavano facendolo diventare un ovale */
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;

    /* Lo facciamo diventare un cerchio gigante che copre lo schermo */
    width: 150vw !important;
    height: 150vw !important;
    transform: translate(-50%, -50%) !important;

    /* Usiamo il gradiente per creare la sfocatura (costo zero per la GPU!) */
    background: radial-gradient(circle, var(--stage-glow-color, rgba(45, 212, 191, 0.15)) 0%, transparent 60%) !important;
  }

  /* 2. Semplifichiamo le ombre di base delle card in movimento */
  .holographic-cover-card {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8) !important;
  }

  /* 3. Semplifichiamo le ombre della card in primo piano. 
     Passiamo da 4 livelli di ombra pesantissimi a 2 (uno scuro e un alone colorato) */
  .holographic-cover-card.is-front,
  .holographic-cover-card:active {
    box-shadow:
      0 15px 35px rgba(0, 0, 0, 0.9),
      0 0 35px var(--card-glow-1, rgba(45, 212, 191, 0.3)) !important;
  }

  /* 4. Rimuoviamo l'ombra inutile dal segnalibro che pesa in rendering */
  .card-ribbon-bookmark {
    box-shadow: none !important;
  }

  /* 5. Evitiamo che il browser cerchi di fare antialiasing eccessivo sui bordi */
  .holographic-stage-container {
    -webkit-font-smoothing: antialiased;
    transform: translateZ(0);
    /* Forza l'accelerazione hardware pulita */
  }

  /* 1. Trasforma la navbar in una pillola fluttuante */
  .navbar {
    top: 12px !important;
    left: 12px !important;
    width: calc(100% - 24px) !important;
    border-radius: 100px !important;
    border: 1px solid var(--border-color) !important;
  }

  /* 2. Abbassa il menu laterale per farlo partire esattamente sotto la nuova pillola */
  .mobile-drawer {
    top: 88px !important;
    /* 12px (spazio) + 66px (altezza navbar) + 10px (margine extra) */
    height: calc(100dvh - 88px) !important;
    max-height: calc(100dvh - 88px) !important;
    border-top-left-radius: 28px !important;
    /* Arrotondiamo anche l'angolo del menu per coerenza */
  }

  /* 1. Riduciamo l'imbottitura generale gigante del footer */
  .footer {
    padding: 2.5rem 1.25rem 1.5rem !important;
  }

  /* 2. Trasformiamo la colonna singola infinita in una griglia compatta a 2 colonne */
  .footer-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem 1rem !important;
    /* Spazio verticale e orizzontale ridotto */
    margin-bottom: 1.5rem !important;
  }

  /* 3. Il logo e la bio prendono tutta la prima riga in alto */
  .footer-col:first-child {
    grid-column: 1 / -1 !important;
    margin-bottom: 0.5rem !important;
  }

  /* 4. Rimpiccioliamo i testi e gli spazi tra i link */
  .footer-col h4 {
    margin-bottom: 0.75rem !important;
    font-size: 0.95rem !important;
  }

  .footer-col p {
    font-size: 0.85rem !important;
    max-width: 100% !important;
  }

  .footer-links li {
    margin-bottom: 0.5rem !important;
  }

  .footer-links a {
    font-size: 0.85rem !important;
  }

  /* 5. Centriamo il copyright in basso */
  .footer-bottom {
    padding-top: 1.5rem !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

@media (max-width: 768px) {

  *,
  ::before,
  ::after {
    /* Ottimizza le prestazioni globali del rendering grafico */
    -webkit-font-smoothing: antialiased;
  }

  .deck-scroll-card,
  .screenshot-item,
  .hero-visual-stage {
    will-change: transform, opacity;
  }
}
/* Standard Features Section (Redesign) */
.standard-features-section {
  padding: 120px 0;
  background-color: transparent;
  position: relative;
  z-index: 10;
}
.standard-features-section .section-header {
  text-align: center;
  margin-bottom: 100px;
}
.standard-features-section .section-header h2 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}
.standard-features-section .section-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}
.features-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 140px;
}
.feature-block {
  display: flex;
  align-items: center;
  gap: 80px;
}
.feature-block.reverse {
  flex-direction: row-reverse;
}
.feature-content {
  flex: 1;
}
.feature-content h3 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.feature-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent-teal);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid rgba(45, 212, 191, 0.2);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.feature-block:nth-child(2) .feature-badge {
  background: rgba(255, 215, 0, 0.1);
  color: var(--accent-gold);
  border-color: rgba(255, 215, 0, 0.2);
}

.feature-block:nth-child(3) .feature-badge {
  background: rgba(138, 43, 226, 0.1);
  color: #c084fc;
  border-color: rgba(138, 43, 226, 0.2);
}

.feature-list {
  list-style: none;
  margin-top: 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  color: #ccc;
}

.feature-list li svg {
  width: 22px;
  height: 22px;
  color: var(--accent-teal);
  flex-shrink: 0;
}

.feature-block:nth-child(2) .feature-list li svg {
  color: var(--accent-gold);
}

.feature-block:nth-child(3) .feature-list li svg {
  color: #c084fc;
}
.feature-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  perspective: 1200px;
}

@keyframes pulseGlow {
  0% { opacity: 0.15; transform: translate(-50%, -50%) scale(1); filter: blur(90px); }
  50% { opacity: 0.25; transform: translate(-50%, -50%) scale(1.05); filter: blur(100px); }
  100% { opacity: 0.15; transform: translate(-50%, -50%) scale(1); filter: blur(90px); }
}

.feature-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 520px;
  background: radial-gradient(circle at center, var(--accent-teal) 0%, rgba(138, 43, 226, 0.5) 100%);
  filter: blur(90px);
  opacity: 0.15;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.feature-block:nth-child(2) .feature-image::before {
  background: radial-gradient(circle at center, var(--accent-gold) 0%, rgba(220, 38, 38, 0.5) 100%);
}
.feature-image:hover::before {
  opacity: 0.4;
  transform: translate(-50%, -50%) scale(1.1);
  animation-play-state: paused;
}

@keyframes float3D {
  0% { transform: rotateY(-12deg) rotateX(5deg) translateZ(0) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(8deg) translateZ(20px) translateY(-15px); }
  100% { transform: rotateY(-12deg) rotateX(5deg) translateZ(0) translateY(0); }
}

@keyframes float3D-reverse {
  0% { transform: rotateY(12deg) rotateX(5deg) translateZ(0) translateY(0); }
  50% { transform: rotateY(8deg) rotateX(8deg) translateZ(20px) translateY(-15px); }
  100% { transform: rotateY(12deg) rotateX(5deg) translateZ(0) translateY(0); }
}

.feature-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 290px;
  border-radius: 36px;
  /* Hyper-realistic dark mode device frame */
  box-shadow: 
    0 0 0 3px #050505, 
    0 0 0 6px #2a2a2c, 
    0 0 0 7px rgba(255, 255, 255, 0.15), 
    0 30px 60px rgba(0, 0, 0, 0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: rotateY(-12deg) rotateX(5deg) translateZ(0);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
  animation: float3D 6s ease-in-out infinite;
}
.feature-block.reverse .feature-image img {
  transform: rotateY(12deg) rotateX(5deg) translateZ(0);
  animation: float3D-reverse 6s ease-in-out infinite;
}
.feature-image img:hover {
  animation-play-state: paused;
  transform: rotateY(0deg) rotateX(0deg) scale(1.05) translateZ(50px) !important;
  box-shadow: 
    0 0 0 3px #050505, 
    0 0 0 6px #2a2a2c, 
    0 0 0 7px rgba(255, 255, 255, 0.25), 
    0 40px 80px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(45, 212, 191, 0.3);
}

@media (max-width: 900px) {
  .feature-block, .feature-block.reverse {
    flex-direction: column;
    gap: 50px;
    text-align: center;
  }
  .features-container {
    gap: 100px;
  }
  .standard-features-section .section-header h2 {
    font-size: 2.5rem;
  }
}

/* Visual Weight Reduction Tweaks */
.universal-import-section {
  padding: 4rem 1rem 1rem !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}
.flow-pipeline-section {
  padding: 1rem 1rem 4rem !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}
.universal-import-section .hub-header h2,
.flow-pipeline-section .section-header h2 {
  font-size: 1.8rem !important;
  margin-bottom: 0.5rem !important;
}
.universal-import-section .hub-header p,
.flow-pipeline-section .section-header p {
  font-size: 0.95rem !important;
}
.cyber-migration-hub,
.pipeline-container {
  padding: 1.5rem !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Ko-fi Support Section */
.support-section {
  padding: 80px 20px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.support-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.support-section h2 {
  font-size: 3rem;
  font-weight: 800;
  margin: 1.5rem 0 1rem;
}

@media (max-width: 900px) {
  .feature-image img { max-width: 240px; }
}

@media (max-width: 480px) {
  .feature-image img { max-width: 190px; }
}

