/* Home Page Styles - RETTANGOLI LARGHI */

.main-home {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 100px 40px 80px 40px;
}

/* PRIMO RETTANGOLO - Hero (LARGO) */
.home-card {
  width: 100%;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 32px;
  padding: 60px 80px;
  backdrop-filter: blur(20px);
  animation: cardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  margin-bottom: 32px;
}

/* SECONDO RETTANGOLO - Stats (LARGO) */
.stats-card {
  width: 100%;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 32px;
  padding: 50px 80px;
  backdrop-filter: blur(20px);
  animation: cardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
  margin-bottom: 100px;
}

/* TERZO RETTANGOLO - Features (LARGO) */
.features-grid-card {
  width: 100%;
  max-width: 1200px;
  margin-top: 20px;
  margin-bottom: 60px;
  animation: cardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.features-anchor {
  position: relative;
  top: -80px;
  visibility: hidden;
  height: 0;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-grid-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.feature-grid-item:nth-child(1) { animation-delay: 0.1s; }
.feature-grid-item:nth-child(2) { animation-delay: 0.2s; }
.feature-grid-item:nth-child(3) { animation-delay: 0.3s; }
.feature-grid-item:nth-child(4) { animation-delay: 0.4s; }

.feature-grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

.feature-grid-item:hover::before {
  left: 100%;
}

.feature-grid-item:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 20px 35px -15px rgba(0, 0, 0, 0.3);
}

.feature-grid-icon {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.1));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.feature-grid-item:hover .feature-grid-icon {
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(168, 85, 247, 0.2));
}

.feature-grid-icon svg {
  width: 34px;
  height: 34px;
  stroke: #a78bfa;
  stroke-width: 1.5;
  transition: all 0.3s ease;
}

.feature-grid-item:hover .feature-grid-icon svg {
  stroke: #c084fc;
  transform: scale(1.05);
}

.feature-grid-title {
  font-size: 19px;
  font-weight: 700;
  color: #e9d5ff;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.feature-grid-item:hover .feature-grid-title {
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feature-grid-desc {
  font-size: 13.5px;
  color: rgba(196, 180, 255, 0.6);
  line-height: 1.5;
  transition: color 0.3s ease;
}

.feature-grid-item:hover .feature-grid-desc {
  color: rgba(196, 180, 255, 0.8);
}

/* Hero section styles */
.hero-section {
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 40px;
  padding: 8px 20px;
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 500;
  color: #c4b5fd;
}

.hero-badge i {
  font-size: 15px;
  color: #a78bfa;
}

.hero-title {
  font-size: 72px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.gradient-text {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 28px;
  font-weight: 600;
  color: #e9d5ff;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 17px;
  color: rgba(196, 180, 255, 0.7);
  max-width: 650px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 38px;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  border: none;
  border-radius: 14px;
  color: white;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary .btn-icon {
  width: 22px;
  height: 22px;
  animation: rotateIcon 8s linear infinite;
}

@keyframes rotateIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 14px;
  color: #c4b5fd;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 38px;
  font-weight: 800;
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
  color: rgba(196, 180, 255, 0.7);
  font-weight: 500;
}

/* Animazioni */
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .home-card, .stats-card, .features-grid-card {
    max-width: 95%;
  }
}

@media (max-width: 900px) {
  .main-home {
    padding: 90px 20px 40px 20px;
  }
  
  .home-card, .stats-card {
    padding: 40px 30px;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .hero-subtitle {
    font-size: 22px;
  }
  
  .hero-description {
    font-size: 15px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .stat-number {
    font-size: 32px;
  }
  
  .features-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .feature-grid-item {
    padding: 28px 20px;
  }
}

@media (max-width: 550px) {
  .main-home {
    padding: 80px 15px 30px 15px;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary, .btn-secondary {
    justify-content: center;
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .features-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .home-card, .stats-card {
    padding: 30px 20px;
  }
}

/* SEZIONE FEATURES SYSTEM */
.features-system-card {
  width: 100%;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 32px;
  padding: 50px 60px;
  backdrop-filter: blur(20px);
  margin-top: 40px;
  animation: cardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.features-system-header {
  text-align: center;
  margin-bottom: 40px;
}

.features-system-title {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.features-system-subtitle {
  font-size: 15px;
  color: rgba(196, 180, 255, 0.6);
}

/* SEZIONE FEATURES PREMIUM */
.features-premium-card {
  width: 100%;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 32px;
  padding: 50px 60px;
  backdrop-filter: blur(20px);
  margin-top: 28px;
  margin-bottom: 60px;
  animation: cardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.features-premium-header {
  text-align: center;
  margin-bottom: 40px;
}

.features-premium-title {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #c084fc, #e879f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.features-premium-subtitle {
  font-size: 15px;
  color: rgba(196, 180, 255, 0.6);
}

/* Container features generico */
.features-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* Responsive per le nuove sezioni */
@media (max-width: 900px) {
  .features-system-card,
  .features-premium-card {
    padding: 35px 30px;
  }
  
  .features-system-title,
  .features-premium-title {
    font-size: 26px;
  }
  
  .features-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.features-system-card,
.features-premium-card,
.how-it-works-card,
.stats-card,
.home-card {
  scroll-margin-top: 100px;
}

@media (max-width: 550px) {
  .features-system-card,
  .features-premium-card {
    padding: 25px 20px;
  }
  
  .features-system-title,
  .features-premium-title {
    font-size: 22px;
  }
  
  .features-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.how-it-works-card {
  width: 100%;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 32px;
  padding: 50px 60px;
  backdrop-filter: blur(20px);
  margin-top: 28px;
  margin-bottom: 60px;
  animation: cardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.how-it-works-header {
  text-align: center;
  margin-bottom: 50px;
}

.how-it-works-title {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #e879f9, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.how-it-works-subtitle {
  font-size: 15px;
  color: rgba(196, 180, 255, 0.6);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.step-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  position: relative;
  opacity: 0.4;
  transform: scale(0.95);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item.active {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.step-item.completed {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.05);
}

.step-number {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.step-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.1));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.step-icon svg {
  width: 32px;
  height: 32px;
  stroke: #a78bfa;
  stroke-width: 1.5;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: #e9d5ff;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 13px;
  color: rgba(196, 180, 255, 0.6);
  line-height: 1.5;
}

.step-item.active .step-number {
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.step-item.completed .step-number {
  background: linear-gradient(135deg, #22c55e, #4ade80);
}

.step-item.completed .step-icon svg {
  stroke: #4ade80;
}

@media (max-width: 900px) {
  .how-it-works-card {
    padding: 35px 30px;
  }
  
  .how-it-works-title {
    font-size: 26px;
  }
  
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 550px) {
  .how-it-works-card {
    padding: 25px 20px;
  }
  
  .how-it-works-title {
    font-size: 22px;
  }
  
  .steps-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.nb-features-system, .nb-features-premium, .nb-how-it-works {
  background: transparent;
  color: rgba(196, 180, 255, 0.7);
  border-color: rgba(139, 92, 246, 0.22);
}

.nb-features-system:hover, .nb-features-premium:hover, .nb-how-it-works:hover {
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.42);
  transform: translateY(-1px);
}

.nb-redeem {
  background: rgba(124, 58, 237, 0.88);
  color: #fff;
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 2px 12px rgba(109, 40, 217, 0.35);
}

.nb-redeem:hover {
  background: #7c3aed;
  box-shadow: 0 4px 22px rgba(109, 40, 217, 0.55);
  transform: translateY(-2px);
}

.footer {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  backdrop-filter: blur(16px);
  margin-top: 60px;
  padding: 40px 0 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(196, 180, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: #a78bfa;
  transform: translateY(-2px);
}

.footer-link i {
  font-size: 16px;
}

.footer-copyright p {
  font-size: 12px;
  color: rgba(196, 180, 255, 0.4);
}

@media (max-width: 550px) {
  .footer-links {
    gap: 20px;
  }
  
  .footer-link {
    font-size: 12px;
  }
}