/* landing.css — Aonira Landing Page
   Stili scoped sotto .landing-page per evitare conflitti con altre pagine.
   ----------------------------------------------------------- */

/* ── Design tokens ──────────────────────────────────────────────────��� */
.landing-page {
  --lp-bg:          #140A23;
  --lp-bg2:         #1A0F2E;
  --lp-bg3:         #0E0619;
  --lp-pink:        #FF0F80;
  --lp-cyan:        #00F2FF;
  --lp-purple:      #B80FBA;
  --lp-purple-light:#C94AEA;
  --lp-text:        #F0EAF8;
  --lp-text-muted:  #9B86B8;
  --lp-glass:       rgba(255,255,255,0.04);
  --lp-glass-border:rgba(255,255,255,0.08);
  --lp-glow-pink:   0 0 40px rgba(255,15,128,0.3);
  --lp-glow-cyan:   0 0 40px rgba(0,242,255,0.3);
  --lp-glow-purple: 0 0 40px rgba(184,15,186,0.3);
  color: var(--lp-text);
  /* NIENTE overflow-x qui (rimosso in WP2): impostare solo overflow-x
     forza per specifica CSS anche overflow-y ad "auto" — questo elemento
     diventerebbe un proprio scroll container, spezzando lo scroll di
     document/window che l'hero 3D scroll-driven (ScrollTrigger) osserva.
     Stesso bug reale già documentato e risolto in STYLE_GUIDE.md per
     .home-v3-page; nessun elemento in questa pagina ha offset negativi
     che richiedano il clip (verificato). */
  position: relative;
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%,   rgba(184,15,186,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 70% 30% at 80% 35%,  rgba(255,15,128,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 25% at 20% 65%,  rgba(0,242,255,0.05)  0%, transparent 55%),
    radial-gradient(ellipse 80% 30% at 50% 100%, rgba(184,15,186,0.08) 0%, transparent 60%),
    var(--lp-bg3);
}

/* Scrollbar e noise ora gestiti globalmente in app.css */

/* ── Particles ─────────────────────────────────────────────────────── */
/* position: fixed → seguono il viewport, visibili in ogni sezione durante lo scroll.
   z-index 2: sopra body::before (1) e sopra le sezioni (no stacking context proprio),
   sotto navbar/cursor (>1000). */
#particles { position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden }
.particle {
  position: absolute; border-radius: 50%;
  animation: lp-float-p linear infinite;
}
@keyframes lp-float-p {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0 }
  10%  { opacity: 1 }
  90%  { opacity: 0.6 }
  100% { transform: translateY(-20px) translateX(var(--dx)); opacity: 0 }
}

/* ── Gradient text helpers ─────────────────────────────────────────── */
.landing-page .lp-gradient-cyan-pink {
  background: linear-gradient(135deg, var(--lp-cyan), var(--lp-pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing-page .lp-gradient-pink-purple {
  background: linear-gradient(135deg, var(--lp-pink), var(--lp-purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing-page .lp-cyan  { color: var(--lp-cyan) }
.landing-page .lp-pink  { color: var(--lp-pink) }
.landing-page .lp-purple-c { color: var(--lp-purple-light) }

/* ── Section commons ───────────────────────────────────────────────── */
.landing-page section {
  padding: 70px 40px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.landing-page .lp-full-w {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.landing-page .section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lp-pink); margin-bottom: 16px; display: block;
}
.landing-page .section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: clamp(32px,4vw,52px);
  line-height: 1.1; margin-bottom: 16px;
}
.landing-page .section-sub {
  color: var(--lp-text-muted); font-size: 18px;
  line-height: 1.6; max-width: 540px; margin-bottom: 60px;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.landing-page .lp-btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--lp-pink), var(--lp-purple));
  color: var(--cf-title-color); font-weight: 700; font-size: 16px;
  padding: 16px 36px; border-radius: 50px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 30px rgba(255,15,128,0.35);
  font-family: 'Montserrat', sans-serif;
}
.landing-page .lp-btn-primary:hover,
.landing-page .lp-btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(255,15,128,0.5);
  color: var(--cf-title-color);
}
.landing-page .lp-btn-outline {
  display: inline-block;
  background: transparent; color: var(--lp-text);
  font-weight: 600; font-size: 16px;
  padding: 15px 32px; border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.2);
  text-decoration: none; cursor: pointer;
  transition: border-color .2s, background .2s;
  font-family: 'Montserrat', sans-serif;
}
.landing-page .lp-btn-outline:hover,
.landing-page .lp-btn-outline:focus-visible {
  border-color: rgba(255,255,255,0.5);
  background: var(--lp-glass);
  color: var(--lp-text);
}

/* ── HERO ──────────────────────────────────────────────────────────── */
.landing-page #hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 160px 40px 80px;
}
.landing-page .hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(184,15,186,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(0,242,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(255,15,128,0.12) 0%, transparent 70%);
}
.landing-page .hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.landing-page .hero-content {
  position: relative; z-index: 10;
  max-width: 1200px; margin: 0 auto;
  width: 100%; padding: 0 40px;
}
.landing-page .hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,15,128,0.1); border: 1px solid rgba(255,15,128,0.2);
  border-radius: 30px; padding: 6px 16px; margin-bottom: 28px;
  font-size: 12px; font-weight: 600; color: var(--lp-pink);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.landing-page .hero-badge span {
  width: 6px; height: 6px;
  background: var(--lp-pink); border-radius: 50%;
  animation: lp-pulse 2s infinite;
}
@keyframes lp-pulse {
  0%,100% { opacity:1; transform:scale(1) }
  50%      { opacity:0.4; transform:scale(0.8) }
}
h1.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900; font-size: clamp(38px,6vw,72px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 24px;
}
h1.hero-title .line1 { display: block }
h1.hero-title .accent {
  background: linear-gradient(135deg, var(--lp-pink) 0%, var(--lp-purple) 50%, var(--lp-cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing-page .hero-sub {
  font-size: 18px; line-height: 1.7;
  color: var(--lp-text-muted); max-width: 540px; margin-bottom: 40px;
}
.landing-page .hero-btns {
  display: flex; gap: 16px; flex-wrap: wrap;
  align-items: center; margin-bottom: 24px;
}
.landing-page .hero-note { font-size: 13px; color: var(--lp-text-muted) }
.landing-page .hero-note span { color: var(--lp-cyan); font-weight: 600 }

/* ── Hero visual (floating astronaut) ─────────────────────────────── */
.landing-page .hero-visual {
  position: absolute; right: 0; top: 0; bottom: 0; width: 50%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
@media (max-width: 900px) { .landing-page .hero-visual { opacity: 0.15; width: 100% } }
.landing-page .astro-frame {
  position: relative;
  width: min(420px,45vw); height: min(500px,55vh);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--lp-glass-border);
  border-radius: 32px;
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(184,15,186,0.25), 0 0 160px rgba(184,15,186,0.1), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: lp-float-astro 6s ease-in-out infinite;
}
@keyframes lp-float-astro {
  0%,100% { transform: translateY(0) rotate(-1deg) }
  50%     { transform: translateY(-20px) rotate(1deg) }
}
.landing-page .astro-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(120px,18vw,200px);
  animation: lp-spin-slow 20s linear infinite;
  filter: drop-shadow(0 0 30px rgba(0,242,255,0.6)) drop-shadow(0 0 60px rgba(184,15,186,0.4));
}
.landing-page .astro-video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  border: 0;
}
@keyframes lp-spin-slow {
  0%,100% { transform: rotateY(0deg) }
  50%     { transform: rotateY(10deg) }
}
.landing-page .astro-glow {
  position: absolute; bottom: -40px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 80px;
  background: radial-gradient(ellipse, rgba(184,15,186,0.5) 0%, transparent 70%);
  filter: blur(20px);
  animation: lp-glow-pulse 3s ease-in-out infinite;
}
@keyframes lp-glow-pulse {
  0%,100% { opacity:0.7; transform:translateX(-50%) scaleX(1) }
  50%     { opacity:1;   transform:translateX(-50%) scaleX(1.2) }
}
.landing-page .astro-tag {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.4); backdrop-filter: blur(10px);
  border: 1px solid rgba(0,242,255,0.2); border-radius: 20px;
  padding: 8px 20px; font-size: 12px; color: var(--lp-cyan);
  font-weight: 600; white-space: nowrap; letter-spacing: 0.08em;
}

/* ── HOW IT WORKS ──────────────────────────────────────────────────── */
.landing-page #how { padding-top: 40px; padding-bottom: 40px; }
.landing-page .steps-wrap {
  display: flex; gap: 0; align-items: flex-start;
  position: relative; flex-wrap: wrap;
}
.landing-page .step-line {
  flex: 1; height: 2px; margin-top: 60px;
  background: linear-gradient(90deg, var(--lp-cyan), var(--lp-pink));
  position: relative; min-width: 40px;
}
.landing-page .step-line::after {
  content: ''; position: absolute; top: 50%; right: -1px;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  background: var(--lp-pink); border-radius: 50%;
  box-shadow: 0 0 10px var(--lp-pink);
}
.landing-page .step-card {
  flex: 0 0 280px; max-width: 320px;
  background: var(--lp-glass); border: 1px solid var(--lp-glass-border);
  border-radius: 24px; padding: 32px;
  position: relative; backdrop-filter: blur(10px);
  transition: transform .3s, box-shadow .3s;
  opacity: 0; transform: translateY(30px);
}
.landing-page .step-card.visible { animation: lp-reveal-up .6s ease forwards }
.landing-page .step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
@keyframes lp-reveal-up { to { opacity:1; transform:translateY(0) } }
.landing-page .step-num {
  position: absolute; top: -16px; left: 24px;
  background: linear-gradient(135deg, var(--lp-pink), var(--lp-purple));
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: 12px; color: var(--cf-title-color);
  box-shadow: 0 4px 20px rgba(255,15,128,0.4);
}
.landing-page .step-icon { font-size: 36px; margin-bottom: 16px; display: block }
.landing-page .step-card h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 20px; margin-bottom: 10px;
}
.landing-page .step-card p { color: var(--lp-text-muted); font-size: 15px; line-height: 1.6 }

/* ── WHY SECTION ────────────────────────────────────────────────────�� */
.landing-page #why { padding-top: 40px; padding-bottom: 40px; }
.landing-page .why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px;
}
.landing-page .why-card {
  background: var(--lp-glass); border: 1px solid var(--lp-glass-border);
  border-radius: 20px; padding: 32px;
  position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  opacity: 0; transform: translateY(20px);
}
.landing-page .why-card.visible { animation: lp-reveal-up .5s ease forwards }
.landing-page .why-card::before {
  content: ''; position: absolute;
  width: 150px; height: 150px; border-radius: 50%;
  background: var(--glow-color, rgba(255,15,128,0.15));
  filter: blur(40px);
  top: var(--gy, 50%); left: var(--gx, 50%);
  transform: translate(-50%,-50%);
  transition: top .1s, left .1s;
  pointer-events: none;
}
.landing-page .why-icon { font-size: 32px; margin-bottom: 20px; display: block }
.landing-page .why-card h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 20px; margin-bottom: 10px;
}
.landing-page .why-card p { color: var(--lp-text-muted); font-size: 15px; line-height: 1.6 }
.landing-page .why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.3);
}

/* ── PRICING ───────────────────────────────────────────────────────── */
.landing-page #pricing { padding-top: 40px; padding-bottom: 40px; }
.landing-page .price-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 20px; margin-bottom: 32px;
}
.landing-page .price-card {
  background: var(--lp-glass); border: 1px solid var(--lp-glass-border);
  border-radius: 20px; padding: 28px;
  transition: transform .3s, box-shadow .3s;
  opacity: 0; transform: translateY(20px);
}
.landing-page .price-card.visible { animation: lp-reveal-up .5s ease forwards }
.landing-page .price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(255,15,128,0.15);
}
.landing-page .price-tag {
  font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 36px;
  background: linear-gradient(135deg, var(--lp-pink), var(--lp-purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 4px;
}
.landing-page .price-name { font-weight: 700; font-size: 18px; margin-bottom: 8px }
.landing-page .price-spec { color: var(--lp-text-muted); font-size: 13px }
.landing-page .price-note {
  text-align: center; color: var(--lp-text-muted); font-size: 13px;
  max-width: 500px; margin: 0 auto 32px; line-height: 1.6;
}
.landing-page .price-cta-wrap { text-align: center }

/* ── STATS ─────────────────────────────────────────────────────────── */
.landing-page #stats {
  background: linear-gradient(135deg, rgba(255,15,128,0.08), rgba(184,15,186,0.08));
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 80px 40px; max-width: 100%;
}
.landing-page .stats-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 40px; text-align: center;
}
.landing-page .stat-num {
  font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 56px;
  display: inline-block;
  background: linear-gradient(135deg, var(--lp-cyan), var(--lp-pink));
  -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  background-color: transparent;
  line-height: 1;
}
.landing-page .stat-label { color: var(--lp-text-muted); font-size: 15px; font-weight: 500; margin-top: 8px }

/* ── FAQ ───────────────────────────────────────────────────────────── */
.landing-page #faq { padding-top: 40px; padding-bottom: 40px; }
.landing-page .faq-list { max-width: 700px }
.landing-page .faq-item { border-bottom: 1px solid var(--lp-glass-border); overflow: hidden }
.landing-page .faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; cursor: pointer;
  font-weight: 600; font-size: 16px; gap: 16px;
  user-select: none;
  background: none; border: none; color: var(--lp-text);
  width: 100%; text-align: left; font-family: var(--cf-font-body);
  transition: color .2s;
}
.landing-page .faq-q:hover,
.landing-page .faq-q:focus-visible { color: var(--lp-pink); outline: none }
.landing-page .faq-q:focus-visible { outline: 2px solid var(--lp-pink); border-radius: 4px }
.landing-page .faq-toggle {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--lp-text-muted);
  transition: transform .3s, background .3s, color .3s;
}
.landing-page .faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background: var(--lp-pink); color: var(--cf-title-color); border-color: var(--lp-pink);
}
.landing-page .faq-a {
  max-height: 0; overflow: hidden;
  color: var(--lp-text-muted); font-size: 15px; line-height: 1.7;
  transition: max-height .4s ease, padding .3s;
}
.landing-page .faq-item.open .faq-a { max-height: 800px; padding-bottom: 20px }
.landing-page .lp-faq-more {
  color: var(--lp-cyan); text-decoration: none;
  font-weight: 600; font-size: 0.95rem;
  transition: opacity .2s;
}
.landing-page .lp-faq-more:hover,
.landing-page .lp-faq-more:focus-visible { opacity: 0.75; color: var(--lp-cyan) }

/* ── FINAL CTA ─────────────────────────────────────────────────────── */
.landing-page #cta-final { padding: 80px 40px }
.landing-page .cta-box {
  max-width: 700px; margin: 0 auto; text-align: center;
  background: linear-gradient(135deg, rgba(255,15,128,0.12), rgba(184,15,186,0.12));
  border: 1px solid rgba(255,15,128,0.2);
  border-radius: 32px; padding: 60px 40px;
  position: relative; overflow: hidden;
  backdrop-filter: blur(10px);
}
.landing-page .cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(184,15,186,0.15) 0%, transparent 70%);
}
.landing-page .cta-box h2 {
  font-family: 'Montserrat', sans-serif; font-weight: 900;
  font-size: clamp(32px,4vw,52px);
  margin-bottom: 16px; position: relative;
}
.landing-page .cta-box p { color: var(--lp-text-muted); font-size: 18px; margin-bottom: 36px; position: relative }
.landing-page .cta-box .lp-btn-primary { font-size: 18px; padding: 18px 48px; position: relative }
.landing-page .cta-small { color: var(--lp-text-muted); font-size: 13px; margin-top: 20px; position: relative }

/* ── Responsive ──────────────────────────────────────────────────���─── */
@media (max-width: 768px) {
  .landing-page section { padding: 60px 20px }
  .landing-page #hero { padding: 120px 20px 60px }
  .landing-page .hero-content { padding: 0 20px }
  .landing-page .steps-wrap { flex-direction: column; gap: 24px }
  .landing-page .step-line { display: none }
  .landing-page .step-card { flex: none; max-width: 100%; width: 100% }
  .landing-page #stats { padding: 60px 20px }
  .landing-page #cta-final { padding: 60px 20px }
  .landing-page .cta-box { padding: 40px 24px }
}

/* ── Reduced motion ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .landing-page .step-card,
  .landing-page .why-card,
  .landing-page .price-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .landing-page .astro-frame,
  .landing-page .astro-inner,
  .landing-page .astro-glow { animation: none !important }
}

/* Telefono: etichette di sezione non sotto i 12px; link "Tutte le FAQ" con area di tocco di 44px. */
@media (max-width: 575.98px) {
  .landing-page .section-label { font-size: 12px }
  .landing-page .lp-faq-more { display: inline-flex; align-items: center; min-height: 44px }
}
