/* ============================================
   CALAVERALAND — Landing Page Styles
   Primary: #B769C9 (violet-purple)
   ============================================ */

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

:root {
  --purple: #B769C9;
  --purple-dark: #7B3F8D;
  --purple-deep: #2D1236;
  --purple-light: #D4A5E0;
  --gold: #F5C842;
  --dark: #0D0A12;
  --text: #E8DFF0;
  --text-muted: #A893B8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- LANGUAGE SWITCH ---- */
.lang-switch {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 110;
  display: flex;
  gap: 8px;
}

.lang-switch a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 4px;
  transition: all 0.3s;
}

.lang-switch a:hover {
  color: var(--text);
}

.lang-active {
  color: var(--gold) !important;
  border-bottom: 2px solid var(--gold);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('images/bg-pattern.png') center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(13,10,18,0.3) 0%, rgba(13,10,18,0.85) 70%, rgba(13,10,18,0.97) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1.2s ease-out;
}

.hero-logo {
  width: min(500px, 85vw);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(183,105,201,0.4));
  margin-bottom: 24px;
}

.hero-subtitle {
  font-family: 'Georgia', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #fff;
  font-style: italic;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}

.tagline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 32px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.cta-btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(183,105,201,0.4);
}

.cta-btn:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(183,105,201,0.6);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  z-index: 2;
  animation: bounce 2s infinite;
  color: var(--purple-light);
  font-size: 1.2rem;
  opacity: 0.6;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13,10,18,0.0);
  backdrop-filter: blur(0px);
  transition: all 0.4s ease;
  padding: 12px 0;
}

.navbar.scrolled {
  background: rgba(13,10,18,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Bone', 'Creepster', cursive;
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: 2px;
  text-transform: lowercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width 0.3s;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ---- SECTIONS ---- */
.section {
  padding: 100px 0;
}

.section-title {
  font-family: 'Bone', 'Creepster', cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 2px;
  text-transform: lowercase;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

/* ---- STORY ---- */
.story {
  background: linear-gradient(180deg, var(--dark) 0%, var(--purple-deep) 100%);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}

.story-text p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.story-lead {
  font-size: 1.2rem !important;
  font-weight: 600;
  color: var(--purple-light);
}

.story-hook {
  font-family: 'Bone', 'Creepster', cursive;
  font-size: 1.5rem !important;
  color: var(--gold);
  margin-top: 24px;
}

.cta-characters {
  margin-top: 24px;
}

.story-visual {
  text-align: center;
}

/* ---- FIGURINES ---- */
.figurines {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
}

.figurine img {
  width: 130px;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 4px 20px rgba(183,105,201,0.3));
  transition: transform 0.3s ease;
}

.figurine img:hover {
  transform: scale(1.05);
}

.figurine-center img {
  width: 150px;
}

.figurines-box {
  max-width: 380px;
  border: none;
  background: transparent;
  border-radius: 12px;
  box-shadow: none !important;
  filter: none;
  border: none !important;
}

.story-img {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(183,105,201,0.3);
  border: 3px solid var(--purple-dark);
}

.img-caption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---- CHARACTER CARDS ---- */
.characters {
  background: var(--purple-deep);
}

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

.char-group-title {
  font-family: 'Bone', 'Creepster', cursive;
  font-size: 1.6rem;
  color: var(--gold);
  text-align: center;
  margin: 40px 0 24px;
  letter-spacing: 2px;
  text-transform: lowercase;
}

.char-group-title:first-of-type {
  margin-top: 0;
}

.char-group-villains {
  color: #e74c3c;
}

.char-card {
  cursor: pointer;
  position: relative;
  min-height: 320px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(183,105,201,0.08);
  border: 1px solid rgba(183,105,201,0.2);
  transition: box-shadow 0.3s;
}

.char-card:hover {
  box-shadow: 0 8px 32px rgba(183,105,201,0.2);
}

.char-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.4s ease;
}

.char-card.flipped .char-front {
  opacity: 0;
  pointer-events: none;
}

.char-front img {
  width: auto;
  height: 200px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.char-front h3 {
  font-family: 'Bone', 'Creepster', cursive;
  font-size: 1.3rem;
  color: var(--purple-light);
  letter-spacing: 1px;
  text-transform: lowercase;
}

.char-back {
  position: absolute;
  inset: 0;
  background: rgba(183,105,201,0.15);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.char-card.flipped .char-back {
  opacity: 1;
  pointer-events: auto;
}

.char-back h3 {
  font-family: 'Bone', 'Creepster', cursive;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: lowercase;
}

.char-back p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

/* ---- BOOK FLIP ---- */
.book-flip {
  perspective: 1000px;
  cursor: pointer;
  display: inline-block;
}

.book-flip-inner {
  position: relative;
  width: 280px;
  height: 400px;
  transition: transform 0.7s ease;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.book-flip.flipped > .book-flip-inner {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.book-flip-front, .book-flip-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.book-flip-back {
  transform: rotateY(180deg);
}

.book-flip .book-img {
  width: 280px;
  height: 400px;
  object-fit: cover;
}

.book-flip .book-img:hover {
  transform: none;
}

.flip-hint {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.7;
}

/* ---- COMING SOON ---- */
.coming-soon {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold);
  opacity: 0.8;
}

/* ---- BOOK ---- */
.book {
  background: var(--purple-deep);
}

.book-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}

.book-cover {
  text-align: center;
}

.book-img {
  width: 280px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5), 0 0 30px rgba(183,105,201,0.2);
  transition: transform 0.4s ease;
}

.book-img:hover {
  transform: rotate(-2deg) scale(1.03);
}

.book-info h3 {
  font-family: 'Bone', 'Creepster', cursive;
  font-size: 1.6rem;
  color: var(--purple-light);
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: lowercase;
}

.book-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.book-info p {
  margin-bottom: 16px;
}

.book-features {
  list-style: none;
  margin-bottom: 24px;
}

.book-features li {
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
  color: var(--text-muted);
}

.book-features li::before {
  content: '\2726';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.book-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

a.badge:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(183,105,201,0.4);
}

.badge-outline {
  background: transparent;
  border: 2px solid var(--purple);
  color: var(--purple-light);
}

/* ---- WORLD / PILLARS ---- */
.world {
  background: linear-gradient(180deg, var(--purple-deep) 0%, var(--dark) 100%);
}

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


.pillar {
  background: rgba(183,105,201,0.08);
  border: 1px solid rgba(183,105,201,0.2);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.pillar:hover {
  background: rgba(183,105,201,0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(183,105,201,0.15);
}

.pillar-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.pillar-icon-img {
  width: auto;
  height: 120px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 6px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.pillar-logo {
  border-radius: 0;
}

.pillar-img {
  width: auto;
  max-width: 200px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 12px;
}

.pillar h3 {
  font-family: 'Bone', 'Creepster', cursive;
  font-size: 1.3rem;
  color: var(--purple-light);
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: lowercase;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---- COLOFON ---- */
.colofon {
  background: var(--dark);
  border-top: 1px solid rgba(183,105,201,0.1);
}

.colofon-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.colofon-block h3 {
  font-family: 'Bone', 'Creepster', cursive;
  font-size: 1.2rem;
  color: var(--purple-light);
  margin-bottom: 12px;
  text-transform: lowercase;
}

.colofon-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

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

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(183,105,201,0.15);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-info h2 {
  font-family: 'Bone', 'Creepster', cursive;
  font-size: 1.8rem;
  color: var(--purple);
  margin-bottom: 12px;
  text-transform: lowercase;
}

.footer-info p {
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-name {
  color: var(--text) !important;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2px !important;
}

.contact-role {
  color: var(--purple-light) !important;
  font-style: italic;
  margin-bottom: 16px !important;
}

.footer-quote {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--purple-light);
  margin-top: 20px;
  padding-left: 16px;
  border-left: 3px solid var(--purple);
  line-height: 1.6;
  opacity: 0.85;
}

.footer-email {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.footer-email:hover {
  color: var(--purple-light);
}

.footer-social h3 {
  font-family: 'Bone', 'Creepster', cursive;
  font-size: 1.3rem;
  color: var(--purple-light);
  margin-bottom: 16px;
  text-transform: lowercase;
}

.social-link {
  display: inline-block;
  padding: 10px 24px;
  background: rgba(183,105,201,0.15);
  border: 1px solid var(--purple);
  color: var(--text);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--purple);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(183,105,201,0.1);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-ip {
  margin-top: 4px;
  font-size: 0.75rem !important;
  opacity: 0.6;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-cta {
    justify-content: center;
  }

  .pillars {
    grid-template-columns: 1fr 1fr;
  }

  .char-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13,10,18,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .char-grid {
    grid-template-columns: 1fr;
  }

  .char-card {
    height: 280px;
  }

  .book-flip-inner {
    width: 220px;
    height: 314px;
  }

  .book-flip .book-img {
    width: 220px;
    height: 314px;
  }

  .hero-logo {
    width: min(360px, 80vw);
  }

  .section {
    padding: 64px 0;
  }

  .book-img {
    width: 220px;
  }
}
