/* --- RESET & VARIABLES --- */
:root {
  --bg-main: #070d0a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-card: rgba(255, 255, 255, 0.08);
  --primary-neon: #00ff88;
  --primary-emerald: #10b981;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- SFONDI DECORATIVI FUTURISTICI --- */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -2;
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,255,136,0.15) 0%, rgba(0,0,0,0) 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, rgba(0,0,0,0) 70%);
  top: 600px;
  right: -100px;
}

.grid-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  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;
  z-index: -1;
  pointer-events: none;
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  padding: 20px 0;
  backdrop-filter: blur(20px);
  background: rgba(7, 13, 10, 0.7);
  border-bottom: 1px solid var(--border-card);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.logo-text span { color: var(--primary-neon); }
.logo-text i { font-style: normal; color: #10b981; font-size: 18px; }

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
}

.nav-item:hover { color: var(--primary-neon); }

/* --- BOTTONI --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-primary:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--primary-neon);
  color: var(--primary-neon);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.btn-glow {
  background: linear-gradient(135deg, var(--primary-neon), var(--primary-emerald));
  color: #070d0a;
  font-weight: 700;
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.3);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 255, 136, 0.5);
}

.btn-icon { width: 18px; height: 18px; }

/* --- HERO SECTION --- */
.hero {
  padding: 180px 0 100px;
  text-align: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 99px;
  font-size: 13px;
  color: var(--primary-neon);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--primary-neon);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-neon);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 64px;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
}

/* HERO SEARCH BAR */
.hero-search-box {
  max-width: 640px;
  margin: 0 auto 60px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  padding: 8px 8px 8px 20px;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease;
}

.hero-search-box:focus-within {
  border-color: var(--primary-neon);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.15);
}

.search-icon { width: 20px; height: 20px; color: var(--text-secondary); margin-right: 12px; }

.hero-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
}

.hero-search-box input::placeholder { color: #64748b; }

/* HERO STATS */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
}

.stat-number { font-size: 36px; font-weight: 800; font-family: var(--font-heading); }
.stat-plus { font-size: 28px; color: var(--primary-neon); font-weight: 700; }
.stat-label { display: block; font-size: 13px; color: var(--text-secondary); }
.stat-divider { width: 1px; height: 40px; background: var(--border-card); }

/* --- GLASS CARDS & SECTIONS --- */
.section { padding: 100px 0; }

.section-header { margin-bottom: 48px; }
.section-tag { color: var(--primary-neon); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.section-title { font-family: var(--font-heading); font-size: 38px; font-weight: 700; margin-top: 8px; }

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.4s ease;
}

.glass-card:hover {
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* --- CALCOLATORE STYLES --- */
.calculator-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}

.calc-group { margin-bottom: 28px; }
.calc-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 12px; }

.options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.option-btn {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 14px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.option-btn.active, .option-btn:hover {
  background: rgba(0, 255, 136, 0.08);
  border-color: var(--primary-neon);
  color: #fff;
}

.custom-slider {
  width: 100%;
  accent-color: var(--primary-neon);
}

.highlight-val { color: var(--primary-neon); font-weight: 700; }

.calc-result-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-value {
  font-size: 48px;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary-neon);
  margin: 12px 0;
}

.result-value small { font-size: 14px; color: var(--text-secondary); font-weight: 400; }

/* GRID SYSTEM */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.flex-between { display: flex; justify-content: space-between; align-items: flex-end; }
.link-arrow { color: var(--primary-neon); text-decoration: none; font-weight: 600; }

.fill-width { width: 100%; }

/* FOOTER */
.footer { border-top: 1px solid var(--border-card); padding: 60px 0 30px; margin-top: 60px; }
.footer-bottom { text-align: center; color: var(--text-secondary); font-size: 13px; margin-top: 40px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-title { font-size: 40px; }
  .calculator-card { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .options-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
}