/* ==========================================================================
   Dino Ebook Landing - Il Mondo Prima
   Cinematic Prehistoric Design System
   ========================================================================== */

:root {
  --color-ink: #0d1210;
  --color-ink-card: #151d19;
  --color-ink-border: rgba(255, 255, 255, 0.12);
  --color-cream: #fcfbf9;
  --color-sand: #f5f0e6;
  --color-sand-2: #eae3d5;
  --color-stone: #525a55;
  --color-stone-2: #7a847e;
  --color-amber: #e5a93b;
  --color-amber-soft: rgba(229, 169, 59, 0.15);
  --color-ember: #d6582d;
  --color-ember-dark: #b8431b;
  --color-foliage: #2e8555;
  --color-foliage-soft: rgba(46, 133, 85, 0.15);
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--color-ink);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography Helpers */
.font-display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.text-amber { color: var(--color-amber); }
.text-ember { color: var(--color-ember); }
.text-stone { color: var(--color-stone); }
.text-white-80 { color: rgba(255, 255, 255, 0.82); }
.text-white-65 { color: rgba(255, 255, 255, 0.65); }

/* Layout Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 20px;
  transition: all 0.3s ease;
}

.nav-bar {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-radius: 9999px;
  background: rgba(13, 18, 16, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}

#site-nav.is-scrolled .nav-bar {
  background: rgba(13, 18, 16, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(229, 169, 59, 0.25);
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}

.nav-logo span.highlight {
  color: var(--color-amber);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-amber);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-ember);
  color: #fff;
  padding: 9px 20px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(214, 88, 45, 0.35);
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--color-ember-dark);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  #site-nav { padding: 10px 14px; }
  .nav-bar { padding: 8px 16px; }
  .nav-logo { font-size: 0.95rem; }
  .nav-cta { padding: 7px 14px; font-size: 0.78rem; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 70px;
  background-color: var(--color-ink);
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 75% 30%, rgba(229, 169, 59, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(214, 88, 45, 0.12) 0%, transparent 50%),
              linear-gradient(180deg, rgba(13, 18, 16, 0.7) 0%, #0d1210 100%);
  pointer-events: none;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  z-index: 0;
  filter: saturate(1.2) contrast(1.1);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(229, 169, 59, 0.3);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: 24px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-divider {
  width: 70px;
  height: 4px;
  background: var(--color-amber);
  border-radius: 2px;
  margin-bottom: 24px;
}

.hero-mantra {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 34px;
}

.hero-mantra p span {
  color: var(--color-amber);
}

/* Quick Action Cards in Hero */
.hero-cards-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-action-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-radius: 16px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #fff;
  transition: all 0.25s ease;
}

.hero-action-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  border-color: rgba(229, 169, 59, 0.4);
}

.hero-action-card.featured {
  background: var(--color-ember);
  border-color: var(--color-amber);
  box-shadow: 0 10px 30px rgba(214, 88, 45, 0.4);
}

.hero-action-card.featured:hover {
  background: var(--color-ember-dark);
}

.hero-card-badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--color-amber);
  color: var(--color-ink);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-card-info h4 {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero-card-info p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-card-price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  font-weight: 800;
}

.hero-card-price svg {
  transition: transform 0.2s;
}

.hero-action-card:hover .hero-card-price svg {
  transform: translateX(4px);
}

/* Trust Bar */
.hero-trust-bar {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--color-amber);
}

.hero-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-perks li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-perks svg {
  color: var(--color-amber);
}

/* ==========================================================================
   Marquee Ticker
   ========================================================================== */
.ticker-wrap {
  overflow: hidden;
  background: var(--color-ember);
  color: #fff;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-track {
  display: flex;
  gap: 30px;
  width: max-content;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-amber);
}

/* ==========================================================================
   Book Showcase Section (Light Theme Contrast)
   ========================================================================== */
.showcase-section {
  background: var(--color-sand);
  color: var(--color-ink);
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-ember);
  margin-bottom: 12px;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: currentColor;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  line-height: 1.15;
}

.section-desc {
  font-size: 1.12rem;
  color: var(--color-stone);
  margin-top: 14px;
}

.book-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 90px;
}

.book-row.reverse {
  direction: rtl;
}

.book-row.reverse > * {
  direction: ltr;
}

@media (max-width: 900px) {
  .book-row, .book-row.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.book-mockup-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-mockup-img {
  width: 100%;
  max-width: 380px;
  border-radius: 18px;
  box-shadow: 0 25px 50px -12px rgba(13, 18, 16, 0.35);
  transition: transform 0.3s ease;
}

.book-mockup-img:hover {
  transform: translateY(-6px) scale(1.02);
}

.book-details .badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.badge-kids {
  background: rgba(46, 133, 85, 0.15);
  color: #1e633d;
}

.badge-adults {
  background: rgba(214, 88, 45, 0.15);
  color: var(--color-ember-dark);
}

.book-details h3 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 10px;
}

.book-details .lead {
  font-size: 1.1rem;
  color: var(--color-stone);
  margin-bottom: 24px;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: #1c221e;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(46, 133, 85, 0.15);
  color: var(--color-foliage);
  flex-shrink: 0;
  margin-top: 2px;
}

.check-icon svg {
  width: 14px;
  height: 14px;
}

.book-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-stone-2);
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-section {
  background: var(--color-sand-2);
  color: var(--color-ink);
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

.pricing-card {
  position: relative;
  background: var(--color-cream);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
  background: #fff;
  border: 2px solid var(--color-amber);
  box-shadow: 0 16px 40px rgba(229, 169, 59, 0.25);
  transform: scale(1.03);
}

@media (max-width: 992px) {
  .pricing-card.popular {
    transform: none;
  }
}

.pricing-card-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-amber);
  color: var(--color-ink);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 16px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.pricing-header h3 {
  font-size: 1.45rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pricing-header p {
  font-size: 0.92rem;
  color: var(--color-stone);
}

.pricing-price-box {
  margin: 24px 0 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-main {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}

.price-billing {
  font-size: 0.85rem;
  color: var(--color-stone-2);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 26px 0;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #242a26;
}

.pricing-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  border-radius: 9999px;
  font-size: 0.98rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.04em;
  background: var(--color-ink);
  color: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.pricing-cta:hover {
  background: var(--color-ember);
}

.pricing-card.popular .pricing-cta {
  background: var(--color-ember);
  box-shadow: 0 4px 18px rgba(214, 88, 45, 0.35);
}

.pricing-card.popular .pricing-cta:hover {
  background: var(--color-ember-dark);
}

/* ==========================================================================
   Problem / Scientific Method Comparison
   ========================================================================== */
.comparison-section {
  background: var(--color-ink);
  color: #fff;
  padding: 100px 0;
  border-top: 1px solid var(--color-ink-border);
}

.grid-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 50px;
}

@media (max-width: 768px) {
  .grid-comparison {
    grid-template-columns: 1fr;
  }
}

.compare-box {
  background: var(--color-ink-card);
  border: 1px solid var(--color-ink-border);
  border-radius: 20px;
  padding: 36px 30px;
}

.compare-box.bad {
  border-color: rgba(220, 53, 69, 0.3);
}

.compare-box.good {
  border-color: rgba(46, 133, 85, 0.4);
  background: linear-gradient(180deg, rgba(46, 133, 85, 0.08) 0%, var(--color-ink-card) 100%);
}

.compare-box h4 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.95rem;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* ==========================================================================
   Guarantee Section
   ========================================================================== */
.guarantee-box {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(229, 169, 59, 0.3);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 30px;
}

@media (max-width: 650px) {
  .guarantee-box {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
}

.guarantee-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(229, 169, 59, 0.15);
  color: var(--color-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guarantee-icon svg {
  width: 40px;
  height: 40px;
}

.guarantee-text h4 {
  font-size: 1.35rem;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.guarantee-text p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Reviews / Social Proof
   ========================================================================== */
.reviews-section {
  background: var(--color-sand);
  color: var(--color-ink);
  padding: 100px 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.review-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-card p {
  font-size: 0.98rem;
  color: #2b332e;
  line-height: 1.6;
  margin: 16px 0 20px;
  font-style: italic;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-sand-2);
  color: var(--color-ember);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviewer-info h5 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.reviewer-info span {
  font-size: 0.8rem;
  color: var(--color-stone);
}

/* ==========================================================================
   FAQ Section (Accordion)
   ========================================================================== */
.faq-section {
  background: var(--color-ink);
  color: #fff;
  padding: 100px 0;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--color-ink-border);
  border-radius: 16px;
  background: var(--color-ink-card);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.active {
  border-color: rgba(229, 169, 59, 0.4);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 22px 24px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-chevron {
  transition: transform 0.25s ease;
  color: var(--color-amber);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-answer p {
  padding-bottom: 22px;
}

/* ==========================================================================
   Final CTA & Footer
   ========================================================================== */
.final-cta-section {
  background: radial-gradient(circle at 50% 30%, rgba(214, 88, 45, 0.2) 0%, #0d1210 70%);
  padding: 110px 0 90px;
  text-align: center;
  border-top: 1px solid var(--color-ink-border);
}

.footer {
  background: #080c0a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  text-align: center;
}

.footer a {
  color: var(--color-amber);
  text-decoration: none;
}
