/* ========================================
   RECIPROCITY GAP - UNIFIED STYLES
   File CSS unificato per index.html e guide.html
   ======================================== */

/* ========== BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #6f42c1;
  --accent-2: #8a63d6;
  --accent-light: #a78bfa;
  --bg-primary: #f7f8fb;
  --bg-secondary: #eef2ff;
  --text-dark: #222;
  --text-muted: #6c757d;
  --card-bg: rgba(255, 255, 255, 0.95);
  --shadow: 0 6px 18px rgba(20, 20, 30, 0.06);
  --shadow-lg: 0 20px 60px rgba(111, 66, 193, 0.15);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ========== ANIMATED BACKGROUND PARTICLES ========== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

/* ========== HEADER ========== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 1rem 0;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.cta-btn {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(111, 66, 193, 0.25);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}


/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.btn-secondary {
  background: white;
  color: var(--accent);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--accent);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(111, 66, 193, 0.25);
}

/* ========== FEATURES SECTION ========== */
.features {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.feature-card:hover::before {
  opacity: 0.05;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(111, 66, 193, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========== STATS SECTION ========== */
.stats {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 6rem auto;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(111, 66, 193, 0.1), rgba(138, 99, 214, 0.05));
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 500;
}

/* ========== HOW IT WORKS / STEPS ========== */
.how-it-works {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.how-it-works h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateX(10px);
}

.step-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(111, 66, 193, 0.3);
}

.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.step-content p {
  color: var(--text-muted);
}

/* ========== FOOTER ========== */
footer {
  position: relative;
  z-index: 10;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(10px);
  margin-top: 6rem;
  padding: 3rem 2rem 2rem;
  box-shadow: 0 -6px 18px rgba(20, 20, 30, 0.06);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-section p,
.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(111, 66, 193, 0.1);
  text-align: center;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.badge-privacy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, rgba(111, 66, 193, 0.12), rgba(138, 99, 214, 0.08));
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ========== SCROLL REVEAL ANIMATION ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FOOTER STYLES ========== */
.badge-animated {
  display:inline-block;
  padding:0.35rem 0.6rem;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(111,66,193,0.12), rgba(138,99,214,0.08));
  color: var(--accent);
  font-weight:600;
  font-size:0.85rem;
  transition: transform .18s ease;
}

footer#privacy {
  margin-top: auto;
  padding: 2.5rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(250,250,255,0.7));
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(111,66,193,0.08);
  color: var(--text-dark);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-section h4 { 
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.footer-section p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.footer-section a { 
  display: block;
  color: inherit;
  text-decoration: none;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  margin: 0.25rem 0;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .nav-links {
    display: none;
  }

  .step {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}