/* ================================================================
   ERGETICA v3 — Premium Lead Generation
   Architecturally elegant · Maximum conversion · 3D elements
   ================================================================ */
:root {
  --bg-0: #020408;
  --bg-1: #060B16;
  --bg-2: #0A1020;
  --bg-3: #0E1628;
  --bg-card: rgba(10, 16, 32, 0.85);
  --bg-glass: rgba(14, 22, 44, 0.55);

  --gold:   #E8A838;
  --gold-l: #F5C460;
  --gold-xl:#FDEEA0;
  --green:  #00D68F;
  --green-d:#00A86D;
  --blue:   #4A9EFF;
  --red:    #FF4757;

  --t1: #EFF3FF;
  --t2: #8A95B8;
  --t3: #505870;

  --f-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --f-body:    'Inter', system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;

  --shadow-gold:  0 0 48px rgba(232,168,56,.2);
  --shadow-glass: 0 12px 40px rgba(0,0,0,.6);
  --shadow-green: 0 0 28px rgba(0,214,143,.25);

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--bg-0);
  color: var(--t1);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Aurora background ─────────────────────────────────────────── */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}
.ab-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #1A3A6A 0%, transparent 70%);
  top: -200px; left: -150px;
  animation: floatA 22s ease-in-out infinite;
}
.ab-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #2A1A50 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation: floatB 28s ease-in-out infinite;
}
.ab-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,168,56,.18) 0%, transparent 70%);
  top: 40%; left: 55%;
  animation: floatC 18s ease-in-out infinite;
}
.ab-4 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(0,214,143,.12) 0%, transparent 70%);
  top: 60%; left: 10%;
  animation: floatD 24s ease-in-out infinite;
}
@keyframes floatA {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(60px,-50px) scale(1.08); }
  66%      { transform: translate(-30px,40px) scale(0.94); }
}
@keyframes floatB {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-50px,-60px) scale(1.12); }
}
@keyframes floatC {
  0%,100% { transform: translate(0,0) scale(1); }
  40%      { transform: translate(-40px,30px) scale(1.1); }
  70%      { transform: translate(25px,-20px) scale(0.9); }
}
@keyframes floatD {
  0%,100% { transform: translate(0,0) scale(1); }
  60%      { transform: translate(30px,-40px) scale(1.05); }
}
main { position: relative; z-index: 1; }

/* ── Progress bar ──────────────────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--green));
  z-index: 9999;
  transition: width .1s linear;
}

/* ── Header ────────────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: padding .3s var(--ease-smooth), background .3s var(--ease-smooth), backdrop-filter .3s;
}
#site-header.scrolled {
  padding: .75rem 0;
  background: rgba(6,11,22,.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
}
/* Dark logo (default): visibile, light logo: nascosto */
.logo-dark  { display: block; flex-shrink: 0; }
.logo-dark img  { height: 80px; width: auto; max-width: none; display: block; }
.logo-light { display: none; }

[data-theme="light"] .logo-dark  { display: none; }
[data-theme="light"] .logo-light { display: block; flex-shrink: 0; }
[data-theme="light"] .logo-light img { height: 80px; width: auto; max-width: none; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--t2);
  transition: color .2s;
}
.nav-link:hover { color: var(--t1); }
.btn-nav {
  background: var(--gold);
  color: #07090F;
  padding: .55rem 1.4rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: .875rem;
  transition: transform .2s var(--ease-spring), box-shadow .2s, background .2s;
}
.btn-nav:hover {
  background: var(--gold-l);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
#hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--t1);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
#hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,11,22,.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
#mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav-link {
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--t1);
}

/* ── Section helpers ───────────────────────────────────────────── */
.section {
  padding: 7rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--t1);
}
.section-title .grad {
  background: linear-gradient(135deg, var(--gold-l), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  font-size: 1.125rem;
  color: var(--t2);
  max-width: 52ch;
  margin-top: .75rem;
}

/* ── Reveal animation ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease-smooth), transform .6s var(--ease-smooth);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Hero ──────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(232,168,56,.08);
  border: 1px solid rgba(232,168,56,.25);
  border-radius: 100px;
  padding: .4rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold-l);
  margin-bottom: 1.75rem;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; box-shadow: 0 0 8px var(--green); }
  50%      { opacity: .6; box-shadow: 0 0 16px var(--green); }
}
.hero-h1 {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.04em;
  margin-bottom: 1.5rem;
}
.hero-h1 .gold-text {
  background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--t2);
  max-width: 46ch;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--t3);
  font-weight: 500;
}
.trust-icon { font-size: 1rem; }

/* Hero form card */
.hero-form-card {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  position: relative;
}
.hero-form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(232,168,56,.4), rgba(232,168,56,.05) 50%, rgba(0,214,143,.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}
.form-heading {
  font-family: var(--f-display);
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: .375rem;
}
.form-sub {
  font-size: .875rem;
  color: var(--t2);
  margin-bottom: 1.75rem;
}
.f-row { display: flex; flex-direction: column; gap: .375rem; margin-bottom: 1rem; }
.f-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.f-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--t2);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.f-input {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  padding: .875rem 1.125rem;
  font-size: 1rem;
  color: var(--t1);
  font-family: var(--f-body);
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  width: 100%;
}
.f-input::placeholder { color: var(--t3); }
.f-input:focus {
  border-color: rgba(232,168,56,.4);
  background: rgba(232,168,56,.04);
  box-shadow: 0 0 0 3px rgba(232,168,56,.08);
}
.f-input.error { border-color: var(--red); }
.f-select {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  padding: .875rem 1.125rem;
  font-size: 1rem;
  color: var(--t1);
  font-family: var(--f-body);
  outline: none;
  width: 100%;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A95B8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
}
.f-select option { background: #0A1020; }
.f-check-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin: 1rem 0 1.5rem;
}
.f-check-row input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.f-check-row label {
  font-size: .8rem;
  color: var(--t2);
  cursor: pointer;
}
.f-check-row label a { color: var(--gold-l); }
.btn-hero-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  color: #06080F;
  border: none;
  border-radius: var(--r-md);
  padding: 1rem 1.5rem;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: -.01em;
  position: relative;
  overflow: hidden;
  transition: transform .2s var(--ease-spring), box-shadow .2s;
}
.btn-hero-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transform: translateX(-100%);
  transition: transform .5s;
}
.btn-hero-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-hero-submit:hover::after { transform: translateX(100%); }
.btn-hero-submit:active { transform: translateY(0); }
.form-guarantee {
  text-align: center;
  font-size: .75rem;
  color: var(--t3);
  margin-top: .875rem;
}

/* Hero right — scene */
.hero-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-svg-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
}
.hero-svg-wrap svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,.7));
}
.floating-metric {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  padding: .75rem 1.125rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  white-space: nowrap;
  animation: floatMetric 5s ease-in-out infinite;
}
.floating-metric:nth-child(2) { animation-delay: -1.5s; }
.floating-metric:nth-child(3) { animation-delay: -3s; }
@keyframes floatMetric {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.fm-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.fm-label { font-size: .7rem; color: var(--t2); margin-bottom: 2px; }
.fm-value {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--t1);
}
.fm-1 { top: 8%; right: -8%; }
.fm-2 { bottom: 20%; left: -5%; }
.fm-3 { top: 45%; right: -12%; }

/* ── Ticker ────────────────────────────────────────────────────── */
.ticker-wrap {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(10,16,32,.5);
  padding: 1.125rem 0;
  overflow: hidden;
  margin: 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerRun 45s linear infinite;
}
@keyframes tickerRun {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: 0 2.5rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--t2);
  white-space: nowrap;
}
.ticker-item .tick-num {
  font-family: var(--f-display);
  font-weight: 800;
  color: var(--gold-l);
}
.tick-sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
}

/* ── Problem section ───────────────────────────────────────────── */
#problema {
  padding: 7rem 2rem;
}
.problema-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
.pain-card {
  background: rgba(255,71,87,.05);
  border: 1px solid rgba(255,71,87,.15);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  position: relative;
}
.pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 1.5rem;
  width: 32px; height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.pain-num {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  opacity: .7;
  line-height: 1;
  margin-bottom: .5rem;
}
.pain-desc { font-size: .875rem; color: var(--t2); }
.solution-block { padding-left: 1rem; }
.solution-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.solution-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.sol-check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,214,143,.12);
  border: 1px solid rgba(0,214,143,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green);
  font-size: .875rem;
}
.sol-text strong { display: block; font-weight: 700; margin-bottom: .25rem; }
.sol-text span { font-size: .875rem; color: var(--t2); }

/* ── Packages ──────────────────────────────────────────────────── */
#pacchetti {
  padding: 7rem 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(14,22,40,.4) 50%, transparent 100%);
}
.pacchetti-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.pacchetti-header {
  text-align: center;
  margin-bottom: 4rem;
}
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* Package card base */
.pkg-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  position: relative;
  transition: transform .3s var(--ease-spring), box-shadow .3s;
  cursor: default;
}
.pkg-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.pkg-badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .875rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.badge-starter { background: rgba(74,158,255,.1); color: var(--blue); border: 1px solid rgba(74,158,255,.25); }
.badge-plus    { background: rgba(232,168,56,.12); color: var(--gold-l); border: 1px solid rgba(232,168,56,.3); }
.badge-premium { background: rgba(0,214,143,.1); color: var(--green); border: 1px solid rgba(0,214,143,.25); }
.pkg-name {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .25rem;
}
.pkg-kwp {
  font-size: .875rem;
  color: var(--t2);
  margin-bottom: 2rem;
}
.pkg-price {
  margin-bottom: 2rem;
}
.price-orig {
  font-size: .875rem;
  color: var(--t3);
  text-decoration: line-through;
  margin-bottom: .25rem;
}
.price-main {
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--t1);
}
.price-note {
  font-size: .8rem;
  color: var(--t2);
  margin-top: .375rem;
}
.pkg-features {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2rem;
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 1.5rem;
}
.pkg-feat {
  display: flex;
  gap: .625rem;
  align-items: center;
  font-size: .875rem;
  color: var(--t2);
}
.feat-check { color: var(--green); font-size: .75rem; }
.btn-pkg {
  display: block;
  width: 100%;
  text-align: center;
  padding: .875rem;
  border-radius: var(--r-md);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .9375rem;
  cursor: pointer;
  border: none;
  transition: transform .2s var(--ease-spring), box-shadow .2s, background .2s;
}
.btn-pkg-secondary {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--t1);
}
.btn-pkg-secondary:hover {
  background: rgba(255,255,255,.09);
  transform: translateY(-2px);
}
.btn-pkg-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  color: #06080F;
}
.btn-pkg-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Featured package card */
.pkg-card-featured {
  border-color: transparent;
  transform: scale(1.03);
}
.pkg-card-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--gold), var(--gold-l) 50%, var(--gold));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}
.pkg-card-featured:hover { transform: scale(1.03) translateY(-6px); }
.featured-chip {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  color: #06080F;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem 1.25rem;
  border-radius: 100px;
  white-space: nowrap;
}

/* ── Simulator ─────────────────────────────────────────────────── */
#simulatore {
  padding: 7rem 2rem;
}
.sim-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.sim-header {
  text-align: center;
  margin-bottom: 4rem;
}
.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

/* Controls panel */
.sim-controls {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-xl);
  padding: 2.25rem;
}
.sim-control-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--t2);
  margin-bottom: .875rem;
}
.bill-display-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .75rem;
}
.bill-amount {
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--t1);
}
.bill-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-l);
  margin-right: .25rem;
}
.bill-unit { font-size: .875rem; color: var(--t2); }
input[type="range"].sim-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,.08);
  outline: none;
  margin-bottom: 2rem;
  --fill: 35%;
  background: linear-gradient(to right, var(--gold) var(--fill), rgba(255,255,255,.08) var(--fill));
}
input[type="range"].sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(232,168,56,.2);
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
input[type="range"].sim-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px rgba(232,168,56,.3);
  transform: scale(1.1);
}
.choice-group {
  display: flex;
  gap: .625rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.choice-btn {
  padding: .5rem 1.125rem;
  border-radius: 100px;
  font-size: .8125rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--t2);
  cursor: pointer;
  transition: all .2s var(--ease-smooth);
}
.choice-btn:hover { border-color: rgba(232,168,56,.3); color: var(--gold-l); }
.choice-btn.choice-active {
  background: rgba(232,168,56,.1);
  border-color: rgba(232,168,56,.5);
  color: var(--gold-l);
}
.sim-divider {
  height: 1px;
  background: rgba(255,255,255,.05);
  margin: 1.5rem 0;
}

/* Results */
.sim-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.result-hero {
  background: rgba(0,214,143,.06);
  border: 1px solid rgba(0,214,143,.2);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  text-align: center;
}
.res-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .5rem;
}
.res-value {
  font-family: var(--f-display);
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--t1);
  line-height: 1;
}
.res-sub { font-size: .875rem; color: var(--t2); margin-top: .375rem; }
.results-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.res-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-lg);
  padding: 1.25rem;
}
.res-card-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: .5rem;
}
.res-card-value {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--t1);
}
.res-card-sub { font-size: .75rem; color: var(--t2); margin-top: .25rem; }

/* House visualization */
.sim-house-wrap {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sim-house-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 1.5rem;
  text-align: center;
}
.house-svg-container {
  width: 100%;
  max-width: 380px;
  position: relative;
}
.house-svg-container svg {
  width: 100%;
  height: auto;
}
.savings-badge {
  position: absolute;
  top: 12%;
  right: 5%;
  background: rgba(0,214,143,.12);
  border: 1px solid rgba(0,214,143,.35);
  border-radius: var(--r-lg);
  padding: .625rem 1rem;
  text-align: center;
  backdrop-filter: blur(8px);
}
.sb-label { font-size: .65rem; font-weight: 700; color: var(--green); letter-spacing: .08em; text-transform: uppercase; }
.sb-value {
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--t1);
}
.house-pkg-label {
  margin-top: 1.25rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--t3);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
}
.house-pkg-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--gold-l);
  text-align: center;
}
.chart-section { margin-top: 2rem; width: 100%; }
.chart-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 1rem;
}
.chart-rows { display: flex; flex-direction: column; gap: .5rem; }
.chart-row { display: grid; grid-template-columns: 60px 1fr 80px; gap: .75rem; align-items: center; }
.cr-label { font-size: .75rem; color: var(--t3); }
.cr-track {
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  overflow: hidden;
}
.cr-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-l));
  border-radius: 6px;
  width: 0%;
  transition: width .6s var(--ease-smooth);
}
.cr-fill.cr-payback { background: linear-gradient(90deg, var(--green), #4DFFD4); }
.cr-val { font-size: .75rem; color: var(--t2); text-align: right; font-variant-numeric: tabular-nums; }
.payback-note {
  margin-top: 1rem;
  font-size: .8rem;
  color: var(--t2);
  padding: .625rem .875rem;
  background: rgba(0,214,143,.05);
  border-radius: var(--r-sm);
  border-left: 2px solid var(--green);
}

/* ── Process — 3D Flip Cards ───────────────────────────────────── */
#processo {
  padding: 7rem 2rem;
  background: linear-gradient(180deg, transparent, rgba(14,22,40,.4), transparent);
}
.processo-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.processo-header {
  text-align: center;
  margin-bottom: 4rem;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.step-card {
  perspective: 1200px;
  height: 300px;
}
.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .7s var(--ease-spring);
  will-change: transform;
}
.step-card:hover .card-inner,
.step-card.flipped .card-inner {
  transform: rotateY(180deg);
}
.card-face {
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  padding: 2rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.card-front {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.07);
}
.card-front::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 24px 24px 0 0;
}
.step-card:nth-child(1) .card-front::before { background: var(--blue); }
.step-card:nth-child(2) .card-front::before { background: var(--gold); }
.step-card:nth-child(3) .card-front::before { background: var(--green); }
.step-card:nth-child(4) .card-front::before { background: #A78BFA; }
.step-num-bg {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-family: var(--f-display);
  font-size: 5rem;
  font-weight: 900;
  opacity: .05;
  line-height: 1;
  user-select: none;
}
.step-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
}
.step-title {
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: .375rem;
  position: relative;
}
.step-hint {
  font-size: .75rem;
  color: var(--t3);
  position: relative;
}
.card-back {
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,.07);
  transform: rotateY(180deg);
  justify-content: center;
}
.card-back-num {
  font-family: var(--f-display);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-l);
  margin-bottom: .875rem;
}
.card-back-title {
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: .875rem;
}
.card-back-text {
  font-size: .875rem;
  color: var(--t2);
  line-height: 1.6;
}

/* ── Incentivi ─────────────────────────────────────────────────── */
#incentivi {
  padding: 7rem 2rem;
}
.incentivi-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.incentivo-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.incentivo-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: transform .2s var(--ease-spring), border-color .2s;
}
.incentivo-card:hover {
  transform: translateX(6px);
  border-color: rgba(232,168,56,.2);
}
.inc-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}
.inc-title { font-weight: 700; margin-bottom: .25rem; }
.inc-desc { font-size: .875rem; color: var(--t2); }
.inc-tag {
  display: inline-block;
  background: rgba(232,168,56,.1);
  color: var(--gold-l);
  border: 1px solid rgba(232,168,56,.25);
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .5rem;
  margin-top: .5rem;
}

/* ── Testimonials ──────────────────────────────────────────────── */
#recensioni {
  padding: 7rem 2rem;
  background: linear-gradient(180deg, transparent, rgba(14,22,40,.4), transparent);
}
.recensioni-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.recensioni-header {
  text-align: center;
  margin-bottom: 4rem;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-xl);
  padding: 2rem;
  position: relative;
  transition: transform .2s var(--ease-spring);
}
.review-card:hover { transform: translateY(-4px); }
.review-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: .1em;
  margin-bottom: 1.25rem;
}
.review-text {
  font-size: .9375rem;
  color: var(--t2);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.review-text::before { content: '"'; color: var(--gold); font-size: 1.25rem; font-style: normal; }
.review-text::after  { content: '"'; color: var(--gold); font-size: 1.25rem; font-style: normal; }
.reviewer {
  display: flex;
  align-items: center;
  gap: .875rem;
}
.reviewer-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .875rem;
  color: #06080F;
}
.reviewer-name { font-weight: 700; font-size: .875rem; }
.reviewer-meta { font-size: .75rem; color: var(--t3); }

/* ── FAQ ───────────────────────────────────────────────────────── */
#faq {
  padding: 7rem 2rem;
}
.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}
.faq-header { text-align: center; margin-bottom: 4rem; }
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(232,168,56,.25); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.375rem 1.75rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  width: 24px; height: 24px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .75rem;
  color: var(--gold-l);
  transition: transform .3s var(--ease-smooth), background .2s;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: rgba(232,168,56,.1);
}
.faq-body {
  padding: 0 1.75rem 1.375rem;
  font-size: .9375rem;
  color: var(--t2);
  line-height: 1.7;
}
.faq-body strong {
  color: var(--t1);
  font-weight: 700;
}

/* ── Final CTA + Form ──────────────────────────────────────────── */
#contatti {
  padding: 7rem 2rem;
  background: linear-gradient(180deg, transparent, rgba(14,22,40,.5), transparent);
}
.contatti-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.contatti-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  justify-content: center;
}
.contatti-direct-item {
  display: flex;
  align-items: center;
  gap: .875rem;
  background: var(--bg-glass);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-md);
  padding: .875rem 1.25rem;
  text-align: left;
  transition: border-color .2s, background .2s;
  text-decoration: none;
  color: inherit;
  flex: 1 1 160px;
  min-width: 0;
  overflow: hidden;
}
.contatti-direct-item:not(.contatti-direct-static):hover {
  border-color: rgba(232,168,56,.4);
  background: rgba(232,168,56,.06);
}
.cdi-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contatti-direct-item > div:last-child {
  min-width: 0;
  flex: 1;
}
.cdi-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .2rem;
}
.cdi-val {
  font-size: .8rem;
  color: var(--t1);
  font-weight: 500;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}
.cta-form-card {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-xl);
  padding: 3rem;
  margin-top: 3rem;
  position: relative;
}
.cta-form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(232,168,56,.3), rgba(0,214,143,.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}
.form-success {
  text-align: center;
  padding: 2rem;
}
.success-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.success-title {
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: .75rem;
}
.success-sub { color: var(--t2); }
.hidden { display: none !important; }
.pkg-note {
  background: rgba(232,168,56,.06);
  border: 1px solid rgba(232,168,56,.2);
  border-radius: var(--r-md);
  padding: .875rem 1.25rem;
  font-size: .8rem;
  color: var(--gold-l);
  margin-bottom: 1.25rem;
}

/* ── Footer ────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 4rem 2rem 2rem;
  color: var(--t3);
  font-size: .8rem;
}
.footer-inner-top {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 200px;
  flex: 0 0 auto;
}
.footer-tagline {
  font-size: .8rem;
  line-height: 1.6;
  color: var(--t3);
}
.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  flex: 1;
  align-content: flex-start;
}
.footer-contact-col {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  min-width: 140px;
}
.footer-contact-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-contact-val {
  font-size: .8rem;
  color: var(--t2);
  line-height: 1.55;
}
.footer-contact-link {
  transition: color .2s;
}
.footer-contact-link:hover { color: var(--gold-l); }
.footer-logo {
  display: flex;
  align-items: center;
}
/* Footer logo sizes */
.footer-logo .logo-dark img  { height: 80px; }
[data-theme="light"] .footer-logo .logo-light img { height: 80px; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--t2); }
.footer-bottom {
  max-width: 1280px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: .75rem;
  color: var(--t3);
}

/* ── WhatsApp FAB ──────────────────────────────────────────────── */
#whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  animation: fabPulse 3s ease-in-out infinite;
  text-decoration: none;
  transition: transform .2s var(--ease-spring);
}
#whatsapp-fab:hover { transform: scale(1.1); }
#whatsapp-fab svg { width: 30px; height: 30px; fill: white; }
@keyframes fabPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,.7); }
}

/* ── Mobile sticky ─────────────────────────────────────────────── */
#mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 150;
  padding: 1rem 1.25rem;
  background: rgba(6,11,22,.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,.06);
  gap: .75rem;
}
.mobile-sticky-btn {
  flex: 1;
  text-align: center;
  padding: .875rem;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: .9rem;
  font-family: var(--f-display);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.msb-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  color: #06080F;
}
.msb-secondary {
  background: rgba(255,255,255,.06);
  color: var(--t1);
  border: 1px solid rgba(255,255,255,.1);
}

/* ── Counter numbers ───────────────────────────────────────────── */
[data-target] { font-variant-numeric: tabular-nums; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .packages-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pkg-card-featured { transform: scale(1); }
  .pkg-card-featured:hover { transform: translateY(-6px); }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .sim-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-scene { order: -1; }
  .fm-1,.fm-2,.fm-3 { display: none; }
  .problema-inner { grid-template-columns: 1fr; }
  .incentivi-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  #hamburger { display: flex; min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
  #mobile-nav { display: flex; }
  #mobile-sticky { display: flex; }
  #whatsapp-fab { bottom: 5.5rem; }
  .f-row-2 { grid-template-columns: 1fr; }
  /* logo ridotto nell'header per non occupare troppo spazio verticale */
  .logo-dark img  { height: 80px; }
  [data-theme="light"] .logo-light img { height: 56px; }
  /* spazio in fondo per non far coprire i contenuti dalla sticky bar */
  footer { padding-bottom: 6rem; }
}
@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
  .results-grid-2 { grid-template-columns: 1fr; }
  .section-title { font-size: 1.75rem; }
  .hero-h1 { font-size: 2.25rem; }
  .bill-amount { font-size: 2rem; }
  .step-card { height: 260px; }
  /* padding sezioni ridotto su schermi piccoli */
  .section,
  #problema, #pacchetti, #processo, #incentivi, #recensioni, #faq, #contatti { padding: 4rem 1.25rem; }
  #hero { padding: 6rem 1.25rem 3rem; }
  /* form card più compatta su mobile */
  .hero-form-card { padding: 1.5rem; }
  .cta-form-card  { padding: 1.5rem; }
}

/* notch / home indicator iPhone (viewport-fit=cover) */
@supports (padding: env(safe-area-inset-bottom)) {
  #mobile-sticky {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
}

/* rimuove tap-highlight blu/grigio su Android/iOS */
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }

/* rispetto preferenza utente per riduzione movimenti */
@media (prefers-reduced-motion: reduce) {
  .aurora-blob, .badge-dot, #whatsapp-fab, .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ════════════════════════════════════════════════════════════════
   LIGHT THEME
   ════════════════════════════════════════════════════════════════ */
[data-theme="light"] {
  --bg-0: #F5F8FF;
  --bg-1: #EDF2FF;
  --bg-2: #E4ECFF;
  --bg-3: #D9E4FF;
  --bg-card: rgba(255,255,255,0.94);
  --bg-glass: rgba(240,245,255,0.78);
  --t1: #0A1225;
  --t2: #3B4D72;
  --t3: #7A88AA;
  --shadow-glass: 0 12px 40px rgba(14,22,60,.08);
  --shadow-gold:  0 0 40px rgba(232,168,56,.18);
  --shadow-green: 0 0 24px rgba(0,214,143,.2);
}
[data-theme="light"] body { background: var(--bg-0); color: var(--t1); }
[data-theme="light"] .aurora-blob { opacity: 0.06; filter: blur(90px); }
[data-theme="light"] #site-header.scrolled {
  background: rgba(245,248,255,.92);
  border-bottom-color: rgba(0,0,0,.07);
}
[data-theme="light"] .nav-link { color: var(--t2); }

[data-theme="light"] .ticker-wrap {
  background: rgba(225,235,255,.65);
  border-color: rgba(0,0,0,.07);
}
[data-theme="light"] .ticker-item { color: var(--t2); }
[data-theme="light"] .pain-card {
  background: rgba(255,71,87,.04);
  border-color: rgba(255,71,87,.12);
}
[data-theme="light"] .pkg-card {
  background: rgba(255,255,255,.97);
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 4px 24px rgba(14,22,60,.07);
}
[data-theme="light"] .pkg-card:hover {
  box-shadow: 0 20px 60px rgba(14,22,60,.14);
}
[data-theme="light"] .sim-controls,
[data-theme="light"] .sim-house-wrap {
  background: rgba(255,255,255,.97);
  border-color: rgba(0,0,0,.08);
}
[data-theme="light"] .result-hero { background: rgba(0,214,143,.06); }
[data-theme="light"] .res-card {
  background: rgba(255,255,255,.97);
  border-color: rgba(0,0,0,.08);
}
[data-theme="light"] .res-card-label { color: #8A95B8; }
[data-theme="light"] .card-front {
  background: rgba(255,255,255,.97);
  border-color: rgba(0,0,0,.07);
}
[data-theme="light"] .card-back { background: var(--bg-2); border-color: rgba(0,0,0,.07); }
[data-theme="light"] .step-num-bg { opacity: .04; }
[data-theme="light"] .incentivo-card {
  background: rgba(255,255,255,.97);
  border-color: rgba(0,0,0,.07);
}
[data-theme="light"] .review-card {
  background: rgba(255,255,255,.97);
  border-color: rgba(0,0,0,.07);
}
[data-theme="light"] .faq-item {
  background: rgba(255,255,255,.97);
  border-color: rgba(0,0,0,.07);
}
[data-theme="light"] .faq-item[open] { border-color: rgba(232,168,56,.4); }
[data-theme="light"] .cta-form-card,
[data-theme="light"] .hero-form-card {
  background: rgba(255,255,255,.94);
  border-color: rgba(0,0,0,.07);
}
[data-theme="light"] .f-input {
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.1);
  color: var(--t1);
}
[data-theme="light"] .f-input::placeholder { color: var(--t3); }
[data-theme="light"] .f-input:focus {
  background: rgba(232,168,56,.04);
  border-color: rgba(232,168,56,.4);
}
[data-theme="light"] .f-select {
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.1);
  color: var(--t1);
}
[data-theme="light"] .f-select option { background: #fff; color: #0A1225; }
[data-theme="light"] .choice-btn {
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.1);
  color: var(--t2);
}
[data-theme="light"] .choice-btn:hover {
  border-color: rgba(232,168,56,.45);
  color: var(--gold);
}
[data-theme="light"] .choice-btn.choice-active {
  background: rgba(232,168,56,.09);
  border-color: rgba(232,168,56,.45);
  color: var(--gold);
}
[data-theme="light"] input[type="range"].sim-slider {
  background: linear-gradient(to right, var(--gold) var(--fill), rgba(0,0,0,.1) var(--fill));
}
[data-theme="light"] .cr-track { background: rgba(0,0,0,.07); }
[data-theme="light"] .payback-note { background: rgba(0,214,143,.06); color: var(--t2); }
[data-theme="light"] footer { border-top-color: rgba(0,0,0,.09); }
[data-theme="light"] #mobile-nav { background: rgba(245,248,255,.98); }
[data-theme="light"] .mobile-nav-link { color: var(--t1); }
[data-theme="light"] .sim-control-label { color: var(--t2); }
[data-theme="light"] .hero-badge {
  background: rgba(232,168,56,.06);
  border-color: rgba(232,168,56,.2);
}
[data-theme="light"] .sol-check {
  background: rgba(0,214,143,.08);
  border-color: rgba(0,214,143,.25);
}
[data-theme="light"] .cr-val { color: var(--t2); }
[data-theme="light"] .chart-title { color: var(--t3); }
[data-theme="light"] .sim-house-title { color: var(--t3); }
[data-theme="light"] .house-pkg-label { color: var(--t3); }
[data-theme="light"] .ticker-item .tick-num { color: var(--gold); }
[data-theme="light"] .bill-unit { color: var(--t2); }
[data-theme="light"] .res-sub { color: var(--t2); }
[data-theme="light"] .mobile-sticky-btn.msb-secondary {
  background: rgba(0,0,0,.05);
  color: var(--t1);
  border-color: rgba(0,0,0,.1);
}
[data-theme="light"] #mobile-sticky { background: rgba(245,248,255,.96); border-top-color: rgba(0,0,0,.08); }

/* ── Theme toggle button ────────────────────────────────────────── */
.theme-toggle-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: .5rem;
}
.theme-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  cursor: pointer;
  transition: background .3s, border-color .3s;
  flex-shrink: 0;
  padding: 0;
}
[data-theme="light"] .theme-toggle {
  background: rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.14);
}
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold-l);
  transition: transform .35s var(--ease-spring);
}
[data-theme="light"] .theme-toggle::after { transform: translateX(20px); }
.theme-toggle-icon {
  font-size: .9rem;
  user-select: none;
  transition: opacity .3s;
}

/* ── Theme toggle glow-on-load ─────────────────────────────────── */
@keyframes toggle-glow {
  0%   { transform: scale(1);    filter: drop-shadow(0 0 0px var(--gold)); opacity: 1; }
  40%  { transform: scale(1.75); filter: drop-shadow(0 0 16px var(--gold-l)) drop-shadow(0 0 36px var(--gold)) drop-shadow(0 0 56px var(--gold)); opacity: 1; }
  100% { transform: scale(1);    filter: drop-shadow(0 0 0px var(--gold)); opacity: 1; }
}
.theme-toggle-icon.glow-hint {
  animation: toggle-glow .8s ease-in-out 3;
  animation-delay: 1.5s;
  animation-fill-mode: both;
}

/* ════════════════════════════════════════════════════════════════
   SUN SCENE — 3D Atmospheric Visualization
   ════════════════════════════════════════════════════════════════ */
.sun-scene-wrap {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-xl);
  overflow: hidden;
}
[data-theme="light"] .sun-scene-wrap {
  background: rgba(255,255,255,.97);
  border-color: rgba(0,0,0,.08);
}
.sun-scene-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t3);
  padding: 1.25rem 1.5rem .75rem;
  text-align: center;
}
.sun-scene {
  position: relative;
  height: 320px;
  overflow: hidden;
  transition: background 1s ease;
  cursor: default;
}
/* Sky gradients per exposure */
.sun-scene[data-exposure="sud"] {
  background: linear-gradient(180deg, #0D47A1 0%, #1976D2 30%, #42A5F5 65%, #90CAF9 100%);
}
.sun-scene[data-exposure="est"] {
  background: linear-gradient(180deg, #BF360C 0%, #E64A19 25%, #FF8A65 60%, #FFCCBC 100%);
}
.sun-scene[data-exposure="ovest"] {
  background: linear-gradient(180deg, #E65100 0%, #FB8C00 30%, #FFB74D 65%, #FFE0B2 100%);
}
.sun-scene[data-exposure="nord"] {
  background: linear-gradient(180deg, #263238 0%, #455A64 40%, #78909C 75%, #B0BEC5 100%);
}

/* Atmospheric ground strip */
.sun-scene::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 70px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
  z-index: 6;
  pointer-events: none;
}

/* Stars — visible only for Nord */
.sky-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s;
  pointer-events: none;
}
.sun-scene[data-exposure="nord"] .sky-stars { opacity: 1; }
.sky-star {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: starTwinkle var(--d, 3s) ease-in-out infinite;
  left: var(--x); top: var(--y);
}
@keyframes starTwinkle {
  0%,100% { opacity: .3; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.4); }
}

/* Clouds */
.sky-cloud {
  position: absolute;
  border-radius: 50px;
  background: rgba(255,255,255,.15);
  filter: blur(6px);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 1.2s;
}
.sun-scene[data-exposure="nord"] .sky-cloud { opacity: 1; }
.sky-cloud.c1 { width: 120px; height: 30px; top: 15%; left: 10%; animation: cloudDrift 20s linear infinite; }
.sky-cloud.c2 { width: 80px;  height: 20px; top: 25%; left: 60%; animation: cloudDrift 28s linear infinite reverse; }
@keyframes cloudDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(60px); }
}

/* ── Sun orb ──────────────────────────────────────────────────── */
.sun-orb {
  position: absolute;
  z-index: 10;
  transform: translate(-50%, -50%);
  transition: left 1s var(--ease-spring), top 1s var(--ease-spring), opacity .8s ease;
}
/* Sud: top center, high altitude */
.sun-scene[data-exposure="sud"]   .sun-orb { left: 50%; top: 22%; }
/* Est: upper left, lower angle */
.sun-scene[data-exposure="est"]   .sun-orb { left: 15%; top: 28%; }
/* Ovest: upper right */
.sun-scene[data-exposure="ovest"] .sun-orb { left: 85%; top: 28%; }
/* Nord: very low, barely visible */
.sun-scene[data-exposure="nord"]  .sun-orb { left: 50%; top: 80%; opacity: .35; }

.sun-body {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFFFF0 0%, #FFF59D 20%, #FFD54F 50%, #FFAB00 80%, #FF8F00 100%);
  box-shadow:
    0 0 0 8px rgba(255,235,59,.18),
    0 0 20px rgba(255,214,0,.9),
    0 0 50px rgba(255,160,0,.65),
    0 0 100px rgba(255,120,0,.3);
  position: relative;
  z-index: 2;
  animation: sunPulse 4s ease-in-out infinite;
}
.sun-scene[data-exposure="est"]   .sun-body {
  background: radial-gradient(circle, #FFFDE7 0%, #FFE082 25%, #FFA726 55%, #E65100 90%);
  box-shadow: 0 0 0 6px rgba(255,167,38,.15), 0 0 20px rgba(255,167,38,.8), 0 0 60px rgba(230,81,0,.5);
}
.sun-scene[data-exposure="ovest"] .sun-body {
  background: radial-gradient(circle, #FFF3E0 0%, #FFCC02 25%, #FF8F00 55%, #E65100 90%);
  box-shadow: 0 0 0 6px rgba(255,152,0,.15), 0 0 20px rgba(255,152,0,.8), 0 0 60px rgba(230,81,0,.5);
}
.sun-scene[data-exposure="nord"]  .sun-body {
  background: radial-gradient(circle, #E3F2FD 0%, #90CAF9 40%, #78909C 80%);
  box-shadow: 0 0 10px rgba(144,202,249,.4), 0 0 30px rgba(120,144,156,.2);
}
@keyframes sunPulse {
  0%,100% { box-shadow: 0 0 0 8px rgba(255,235,59,.15), 0 0 20px rgba(255,214,0,.9), 0 0 50px rgba(255,160,0,.65), 0 0 100px rgba(255,120,0,.3); }
  50%      { box-shadow: 0 0 0 12px rgba(255,235,59,.22), 0 0 30px rgba(255,235,0,1), 0 0 70px rgba(255,180,0,.8), 0 0 130px rgba(255,140,0,.4); }
}

.sun-corona {
  position: absolute;
  width: 110px; height: 110px;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,236,64,.22) 0%, rgba(255,193,7,.08) 50%, transparent 70%);
  animation: coronaPulse 3.5s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes coronaPulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: .8; }
  50%      { transform: translate(-50%,-50%) scale(1.2); opacity: 1; }
}

/* SVG rotating rays ring */
.sun-rays-ring {
  position: absolute;
  width: 136px; height: 136px;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: raysRotate 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}
.sun-scene[data-exposure="nord"] .sun-rays-ring { display: none; }
@keyframes raysRotate {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}

/* ── Scene SVG overlay (beams + atmosphere) ─────────────────────── */
.scene-overlay-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 5;
  pointer-events: none;
}
.light-beam {
  animation: beamPulse 2.8s ease-in-out infinite;
}
.light-beam:nth-child(2) { animation-delay: -.7s; }
.light-beam:nth-child(3) { animation-delay: -1.4s; }
.light-beam:nth-child(4) { animation-delay: -2.1s; }
@keyframes beamPulse {
  0%,100% { opacity: .28; }
  50%      { opacity: .55; }
}

/* ── House in scene ──────────────────────────────────────────────── */
.scene-house-wrap {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  z-index: 8;
  filter: drop-shadow(0 10px 32px rgba(0,0,0,.6));
}
.scene-house-wrap svg { width: 100%; height: auto; }

/* Panel glow overlay on scene house */
.scene-panel-glow {
  transition: opacity .9s ease;
  animation: panelGlow 3s ease-in-out infinite;
}
.sun-scene[data-exposure="sud"]   .scene-panel-glow { opacity: .75; }
.sun-scene[data-exposure="est"]   .scene-panel-glow { opacity: .5; }
.sun-scene[data-exposure="ovest"] .scene-panel-glow { opacity: .5; }
.sun-scene[data-exposure="nord"]  .scene-panel-glow { opacity: .1; animation: none; }
@keyframes panelGlow {
  0%,100% { opacity: inherit; }
  50%      { opacity: calc(inherit * 1.3); }
}
/* Override for specific cases */
.sun-scene[data-exposure="sud"]   .scene-panel-glow { animation: panelGlowSud 3s ease-in-out infinite; }
@keyframes panelGlowSud {
  0%,100% { opacity: .6; }
  50%      { opacity: .95; }
}

/* ── Scene info overlay ──────────────────────────────────────────── */
.scene-info {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 20;
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-md);
  padding: .625rem 1rem;
}
.scene-exp-label {
  font-size: .6rem;
  color: rgba(255,255,255,.55);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .25rem;
}
.scene-exp-dir {
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}
.scene-exp-eff {
  font-size: .7rem;
  font-weight: 700;
  margin-top: .25rem;
}
.scene-eff-high { color: #69F0AE; }
.scene-eff-mid  { color: #FFD740; }
.scene-eff-low  { color: #FF8A65; }

/* ── Mini compass ────────────────────────────────────────────────── */
.scene-compass {
  position: absolute;
  bottom: 1rem; right: 1rem;
  z-index: 20;
  width: 52px; height: 52px;
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.cmp-ring {
  position: relative;
  width: 40px; height: 40px;
}
.cmp-label {
  position: absolute;
  font-size: .55rem;
  font-weight: 800;
  color: rgba(255,255,255,.5);
  line-height: 1;
  transition: color .5s;
}
.cmp-label.active { color: var(--gold-l); }
.cmp-n { top: 0; left: 50%; transform: translateX(-50%); }
.cmp-s { bottom: 0; left: 50%; transform: translateX(-50%); }
.cmp-e { right: 0; top: 50%; transform: translateY(-50%); }
.cmp-o { left: 0; top: 50%; transform: translateY(-50%); }
.cmp-needle {
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  transform: translate(-50%,-50%);
  transition: transform 1s var(--ease-spring);
}

/* ── Floating particles in scene ─────────────────────────────────── */
.scene-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  pointer-events: none;
  z-index: 3;
  animation: particleRise var(--pd, 6s) var(--delay, 0s) ease-in-out infinite;
  left: var(--px); top: var(--py);
  width: var(--ps, 2px); height: var(--ps, 2px);
  opacity: 0;
}
.sun-scene[data-exposure="nord"] .scene-particle { display: none; }
@keyframes particleRise {
  0%     { opacity: 0; transform: translateY(0) translateX(0); }
  15%    { opacity: .7; }
  85%    { opacity: .3; }
  100%   { opacity: 0; transform: translateY(-120px) translateX(15px); }
}

/* Haze layer */
.scene-haze {
  position: absolute;
  bottom: 60px; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.07));
  pointer-events: none;
  z-index: 7;
}

/* ── Exposure note below scene ───────────────────────────────────── */
.exposure-impact-bar {
  padding: .875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,.05);
}
[data-theme="light"] .exposure-impact-bar { border-top-color: rgba(0,0,0,.06); }
.exp-impact-label { font-size: .75rem; color: var(--t3); font-weight: 600; }
.exp-impact-bar-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.07);
  border-radius: 4px;
  overflow: hidden;
}
[data-theme="light"] .exp-impact-bar-track { background: rgba(0,0,0,.07); }
.exp-impact-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .8s var(--ease-smooth), background .6s;
  background: linear-gradient(90deg, var(--gold), var(--green));
}
.exp-impact-pct {
  font-family: var(--f-display);
  font-size: .875rem;
  font-weight: 800;
  color: var(--t1);
  min-width: 38px;
  text-align: right;
}
