:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: rgba(22, 30, 49, 0.75);
  --bg-card-hover: rgba(28, 38, 62, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.4);
  
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.25);
  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 35px rgba(59, 130, 246, 0.15);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Background grid effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

/* HEADER & HERO */
header {
  padding: 40px 0 25px;
  text-align: center;
}

.badge-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.badge-top .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 10px #fbbf24;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  max-width: 650px;
  margin: 0 auto 30px;
  line-height: 1.5;
}

/* QUICK STATS / TRUST BAR */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.trust-item svg {
  color: var(--accent-gold);
}

/* STEP PROGRESS NAV */
.step-nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 6px;
  margin-bottom: 28px;
  position: sticky;
  top: 10px;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  gap: 4px;
}

.step-nav-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  min-width: 0;
}

.step-nav-btn span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-nav-btn .step-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: var(--transition);
  flex-shrink: 0;
}

.step-nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.step-nav-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.step-nav-btn.active .step-number {
  background: #ffffff;
  color: var(--accent-blue);
  font-weight: 800;
}

@media (max-width: 480px) {
  .step-nav-btn span:last-child {
    display: none;
  }
  .step-nav-btn {
    padding: 10px 6px;
    gap: 0;
  }
  .step-nav-btn .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

/* CARDS */
.step-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 75px;
}

  .step-card {
    padding: 32px;
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .step-card {
    padding: 20px 14px;
    border-radius: 16px;
    margin-bottom: 22px;
  }
}

.step-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
  opacity: 0.8;
}

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.step-badge-large {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.step-card.step-2 .step-badge-large {
  background: linear-gradient(135deg, var(--accent-gold), #b45309);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

.step-card.step-3 .step-badge-large {
  background: linear-gradient(135deg, var(--accent-green), #047857);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.step-title-wrap h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-title-wrap p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* VIDEO CONTAINER */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.video-wrapper video {
  width: 100%;
  height: auto;
  max-height: 600px;
  display: block;
  border-radius: var(--radius-md);
  background: #000;
  object-fit: contain;
}

.video-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 24px;
}

/* HIGHLIGHT BOXES */
.highlight-box {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 24px 0;
}

.highlight-box.blue {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.06);
}

.highlight-box.gold {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.06);
}

.highlight-box.green {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.06);
}

.highlight-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #ffffff;
}

/* EMAIL CREDENTIALS SHOWCASE */
.email-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px 0;
}

@media (max-width: 768px) {
  .email-showcase {
    grid-template-columns: 1fr;
  }
}

.email-img-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  background: #000;
  cursor: pointer;
  transition: var(--transition);
}

.email-img-wrap:hover {
  transform: scale(1.02);
  border-color: var(--accent-blue);
}

.email-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.email-img-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

/* PHOTO PREVIEW BOX (Versione Semplice) */
.photo-preview-box {
  margin-top: 22px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  box-sizing: border-box;
}

.photo-preview-intro {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.photo-preview-intro span {
  font-size: 1.3rem;
  line-height: 1.2;
}

.photo-preview-intro strong {
  color: #60a5fa;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 3px;
}

.photo-preview-intro p {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
}


.credential-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cred-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cred-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.cred-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.cred-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.cred-info strong {
  color: #fbbf24;
}



/* CHECKLIST ITEMS */
.action-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.action-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.action-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.action-text {
  font-size: 0.92rem;
  color: #e5e7eb;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.action-text strong {
  color: #fff;
}



/* DOWNLOAD BUTTONS */
.store-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}

@media (max-width: 480px) {
  .store-buttons {
    flex-direction: column;
  }
  .store-btn {
    justify-content: center;
  }
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.store-btn svg {
  width: 22px;
  height: 22px;
}

/* SUPPORT / CTA BOX */
.support-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  margin: 50px 0;
  box-shadow: var(--shadow-glow);
}

.support-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.support-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 550px;
  margin: 0 auto 26px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
  transition: var(--transition);
  cursor: pointer;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.6);
}

.vip-card {
  border-color: rgba(37, 99, 235, 0.4);
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.25) 0%, rgba(15, 23, 42, 0.95) 75%);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 40px rgba(37, 99, 235, 0.2);
}

.vip-btn {
  background: linear-gradient(135deg, #0088cc, #006699);
  box-shadow: 0 10px 30px rgba(0, 136, 204, 0.45);
}

.vip-btn:hover {
  background: linear-gradient(135deg, #0099e6, #0077b3);
  box-shadow: 0 15px 35px rgba(0, 136, 204, 0.65);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px 0 50px;
  color: var(--text-muted);
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* LIGHTBOX MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  max-width: 500px;
  max-height: 90vh;
  position: relative;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===================== VIDEO ALERT BANNER ===================== */
.video-alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(234, 88, 12, 0.12) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 28px;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.12);
  animation: bannerFadeIn 0.6s ease both;
}

@keyframes bannerFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.video-alert-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}

.video-alert-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.video-alert-text strong {
  font-size: 0.97rem;
  color: #fbbf24;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.video-alert-text span {
  font-size: 0.85rem;
  color: #fde68a;
  line-height: 1.5;
  opacity: 0.85;
}

/* ===================== WATCH LABEL SOPRA OGNI VIDEO ===================== */
.watch-video-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fbbf24;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.watch-pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: watchPulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes watchPulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  60%  { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Bordo glow dorato sul video evidenziato */
.video-wrapper.video-highlighted {
  border: 2px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-md);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.15);
  overflow: hidden;
}
