/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg: #0E0E10;
  --bg-soft: #16161A;
  --bg-card: #1C1C22;
  --border: #2A2A33;
  --text: #ECEDEE;
  --text-muted: #9A9AA8;
  --accent: #FF7A3D;
  --accent-soft: #FF9A6B;
  --primary: #5B8AFF;
  --primary-soft: #7DA3FF;
  --success: #2A9D8F;
  --error: #E63946;
  --code-bg: #2A2A33;
  --max-w: 1100px;
  --radius: 14px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 12px; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
h4 { font-size: 1.05rem; margin-bottom: 6px; }
p { color: var(--text-muted); }

a { color: inherit; text-decoration: none; transition: color 0.15s; }
code { font-family: 'JetBrains Mono', monospace; background: var(--code-bg); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; color: var(--accent-soft); }
strong { color: var(--text); }
em { font-style: italic; color: var(--accent-soft); font-weight: 600; }

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
}
.logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.logo em { color: var(--accent); font-style: italic; }
.logo-bracket { color: var(--text-muted); }
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }
.btn-mini {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.btn-mini:hover { background: var(--accent-soft); }
@media (max-width: 700px) {
  .nav-links li:not(:last-child) { display: none; }
}

/* === HERO === */
.hero {
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(91, 138, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(255, 122, 61, 0.10), transparent 60%);
  text-align: left;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-cover { order: -1; max-width: 280px; margin: 0 auto; }
}
.hero-cover img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 32px rgba(0, 0, 0, 0.5),
    0 32px 64px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  transform: rotate(-1deg);
  transition: transform 0.3s;
}
.hero-cover img:hover {
  transform: rotate(0deg) scale(1.02);
}
.badge {
  display: inline-block;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero h1 { margin-bottom: 24px; max-width: 18ch; }
.accent { color: var(--accent); }
.lead {
  font-size: 1.2rem;
  max-width: 62ch;
  margin-bottom: 36px;
  color: var(--text);
}
.lead strong { color: var(--accent-soft); }

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text-muted); background: var(--bg-card); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  border-top: 1px solid var(--border);
  padding-top: 36px;
  max-width: 600px;
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.8rem; color: var(--accent); font-weight: 800; }
.hero-stats span { font-size: 0.85rem; color: var(--text-muted); }

/* === SECTIONS COMUNI === */
section { padding: 80px 0; }
.section-lead {
  font-size: 1.1rem;
  margin-bottom: 48px;
  color: var(--text-muted);
  max-width: 70ch;
}

/* === PROBLEM === */
.problem { background: var(--bg-soft); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 48px 0 40px;
}
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.problem-icon { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.problem-card p { color: var(--text); }
.problem-conclusion {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text);
  max-width: 70ch;
  margin: 0 auto;
  padding: 32px;
  background: linear-gradient(135deg, rgba(255, 122, 61, 0.1), rgba(91, 138, 255, 0.1));
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* === AUDIENCE === */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 700px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-yes, .audience-no {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.audience-yes { border-left: 3px solid var(--success); }
.audience-no { border-left: 3px solid var(--error); }
.audience-yes h3, .audience-no h3 { margin-bottom: 16px; }
.audience-yes ul, .audience-no ul { list-style: none; }
.audience-yes li, .audience-no li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.audience-yes li:last-child, .audience-no li:last-child { border-bottom: none; }

/* === MODULES === */
.content { background: var(--bg-soft); }
.modules { display: grid; gap: 16px; }
.module {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  transition: border-color 0.15s, transform 0.1s;
}
.module:hover { border-color: var(--primary); transform: translateY(-2px); }
.module-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.5;
  letter-spacing: -0.02em;
  line-height: 1;
}
.module-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  display: block;
}
.module-highlight {
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, var(--bg-card), rgba(255, 122, 61, 0.08));
}
.module-highlight .module-number { color: var(--accent); opacity: 1; }
@media (max-width: 600px) {
  .module { grid-template-columns: 1fr; gap: 8px; padding: 24px; }
  .module-number { font-size: 1.4rem; }
}

/* === QUICK WINS === */
.quickwins-list {
  list-style: none;
  counter-reset: qw;
  display: grid;
  gap: 16px;
  margin-top: 32px;
}
.quickwins-list li {
  counter-increment: qw;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px 24px 80px;
  position: relative;
}
.quickwins-list li::before {
  content: counter(qw);
  position: absolute;
  left: 24px;
  top: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.quickwins-list h4 { margin-bottom: 6px; }

/* === BONUS === */
.bonus { background: var(--bg-soft); }
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.bonus-card h4 { margin-bottom: 8px; }

/* === GLOSSARI === */
.glossari-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0 24px;
}
@media (max-width: 700px) { .glossari-grid { grid-template-columns: 1fr; } }
.glossario-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.glossario-card h3 { margin-bottom: 12px; }
.glossario-card p { margin-bottom: 16px; }
.glossario-card ul { list-style: none; padding-left: 0; }
.glossario-card li {
  padding: 8px 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}
.glossario-card li:last-child { border-bottom: none; }
.glossari-note {
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
}

/* === INFOGRAFICHE === */
.infografiche { background: var(--bg-soft); }
.info-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
  margin-top: 36px;
}
.info-list > div {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.94rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.info-highlight {
  background: linear-gradient(135deg, rgba(255, 122, 61, 0.18), rgba(91, 138, 255, 0.12)) !important;
  color: var(--text) !important;
  border-color: var(--accent) !important;
  font-weight: 600;
}

/* === PRICING === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
@media (max-width: 800px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.pricing-card ul { list-style: none; padding: 0; flex-grow: 1; }
.pricing-card li {
  padding: 8px 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.pricing-card li:last-child { border-bottom: none; }
.price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.price-old {
  font-size: 1.4rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}
.pricing-tag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}
.pricing-early { border: 2px solid var(--accent); }
.pricing-pro { border: 1px solid var(--primary); }

/* === PREORDER === */
.preorder { background: var(--bg-soft); }
.preorder-card {
  background: linear-gradient(135deg, var(--bg-card), rgba(91, 138, 255, 0.08));
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.preorder h2 { margin-bottom: 16px; }
.preorder p { font-size: 1.05rem; color: var(--text); margin-bottom: 24px; max-width: 50ch; margin-left: auto; margin-right: auto; }
.preorder-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 24px auto 16px;
  flex-wrap: wrap;
}
.preorder-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.preorder-form input:focus {
  outline: none;
  border-color: var(--primary);
}
.preorder-note { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 32px;
  align-items: start;
}
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { margin-bottom: 16px; color: var(--text); font-size: 1.02rem; }
.about-stats { display: grid; gap: 16px; }
.about-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.about-stat strong {
  display: block;
  font-size: 2.2rem;
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
}
.about-stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-top: 6px;
}

/* === FAQ === */
.faq { background: var(--bg-soft); }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 12px;
  margin-top: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding-top: 12px;
  color: var(--text-muted);
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}
.footer p { color: var(--text); margin-bottom: 8px; }
.footer-meta { color: var(--text-muted); font-size: 0.9rem; }
.footer a { color: var(--accent); text-decoration: underline; }

/* === MOBILE TWEAKS === */
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .hero { padding: 60px 0 80px; }
  .preorder-card { padding: 32px 24px; }
}
