/* ============================================
   Zoova — Landing Page Styles
   Color palette from the mobile app's cozy theme
   ============================================ */

:root {
  --cream: #FFF8F0;
  --sand: #F5E6D3;
  --brown: #3E2723;
  --brown-soft: #6D4C41;
  --brown-faint: #A1887F;
  --cinnamon: #D4882C;
  --cinnamon-dark: #B8731F;
  --warning: #E65100;
  --white: #FFFFFF;
  --green: #2E7D32;
  --green-light: #E8F5E9;
  --purple: #7B1FA2;
  --purple-light: #F3E5F5;
  --blue: #1565C0;
  --blue-light: #E3F2FD;
  --gold: #F9A825;
  --gold-light: #FFF8E1;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --max-w: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--cream);
  color: var(--brown);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--brown);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(62, 39, 35, 0.1);
}

.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--brown);
}

.navbar-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid var(--brown);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown-soft);
  transition: color var(--transition);
}

.navbar-links a:hover {
  color: var(--cinnamon);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--cinnamon);
  color: var(--cream) !important;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid var(--brown);
  transition: background var(--transition), transform var(--transition);
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--sand);
  border: 2px solid var(--brown);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brown);
  transition: background var(--transition);
}

.lang-switch:hover {
  background: var(--cream);
}

.lang-switch .active-lang {
  background: var(--cinnamon);
  color: var(--cream);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.lang-switch span:not(.active-lang) {
  padding: 0.15rem 0.55rem;
}

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

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
  padding: 8rem 1.5rem 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 90vh;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--sand);
  border: 2px solid var(--brown);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--brown);
  margin-bottom: 1.5rem;
}

.hero h1 .highlight {
  color: var(--cinnamon);
  position: relative;
}

.hero p {
  font-size: 1.15rem;
  color: var(--brown-soft);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cinnamon);
  color: var(--cream);
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid var(--brown);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--cinnamon-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 136, 44, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cream);
  color: var(--brown);
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid var(--brown);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--sand);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--cream);
  border: 2px solid var(--brown);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  min-width: 120px;
}

.stat-card .stat-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--cinnamon);
}

.stat-card .stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown-soft);
  margin-top: 0.15rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.phone-mockup {
  position: relative;
  width: 300px;
  height: 600px;
  background: var(--brown);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 24px 80px rgba(62, 39, 35, 0.25);
  transform: rotate(2deg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--sand);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-screen-content {
  text-align: center;
  padding: 2rem;
}

.phone-mascot {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.phone-screen-content h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.phone-screen-content p {
  font-size: 0.85rem;
  color: var(--brown-soft);
}

.card-float {
  position: absolute;
  width: 90px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(62, 39, 35, 0.2);
  animation: float 4s ease-in-out infinite;
}

.card-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.card-float:nth-child(2) { top: 10%; right: -30px; animation-delay: 0.5s; }
.card-float:nth-child(3) { bottom: 15%; left: -30px; animation-delay: 1s; }
.card-float:nth-child(4) { top: 40%; left: -50px; animation-delay: 1.5s; }

.rarity-badge {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--brown);
}

.rarity-common { background: #E0E0E0; color: var(--brown); }
.rarity-rare { background: #90CAF9; color: #0D47A1; }
.rarity-epic { background: #CE93D8; color: #4A148C; }
.rarity-mythic { background: #FFD54F; color: #E65100; }

/* ---- SECTIONS ---- */
.section {
  padding: 5rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cinnamon);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--brown-soft);
  max-width: 600px;
  line-height: 1.7;
}

.section-center {
  text-align: center;
}

.section-center .section-subtitle {
  margin: 0 auto;
}

/* ---- HOW IT WORKS ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  background: var(--cream);
  border: 2px solid var(--brown);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(62, 39, 35, 0.1);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--cinnamon);
  color: var(--cream);
  border-radius: var(--radius-full);
  border: 2px solid var(--brown);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.step-icon {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--brown-soft);
  line-height: 1.6;
}

/* ---- FEATURES ---- */
.features-section {
  background: var(--sand);
  border-top: 2px solid var(--brown);
  border-bottom: 2px solid var(--brown);
  padding: 5rem 1.5rem;
}

.features-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--cream);
  border: 2px solid var(--brown);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(62, 39, 35, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 2px solid var(--brown);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-icon.camera { background: var(--green-light); }
.feature-icon.cards { background: var(--gold-light); }
.feature-icon.battle { background: #FFEBEE; }
.feature-icon.map { background: var(--blue-light); }
.feature-icon.streak { background: var(--purple-light); }
.feature-icon.premium { background: #FFF3E0; }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--brown-soft);
  line-height: 1.6;
}

/* ---- RARITY ---- */
.rarity-section {
  padding: 5rem 1.5rem;
}

.rarity-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.rarity-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.rarity-card {
  border: 2px solid var(--brown);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform var(--transition);
}

.rarity-card:hover {
  transform: translateY(-4px);
}

.rarity-card-img {
  width: 100%;
  max-width: 140px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 16px rgba(62, 39, 35, 0.12);
}

.rarity-card h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.rarity-card .rarity-pct {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brown-soft);
}

.rarity-common-bg { background: #F5F5F5; }
.rarity-uncommon-bg { background: #E8F5E9; }
.rarity-rare-bg { background: #E3F2FD; }
.rarity-epic-bg { background: #F3E5F5; }
.rarity-mythic-bg { background: var(--gold-light); }

/* ---- BATTLE CTA ---- */
.battle-section {
  background: var(--brown);
  border-top: 2px solid var(--brown);
  border-bottom: 2px solid var(--brown);
  padding: 5rem 1.5rem;
  color: var(--cream);
  text-align: center;
}

.battle-section .section-label {
  color: var(--gold);
}

.battle-section .section-title {
  color: var(--cream);
}

.battle-section .section-subtitle {
  color: var(--sand);
  margin: 0 auto 2rem;
}

.battle-features {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.battle-feat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sand);
}

.battle-feat svg {
  flex-shrink: 0;
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 700px;
  margin: 3rem auto 0;
}

.faq-item {
  border: 2px solid var(--brown);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--cream);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brown);
  text-align: left;
  font-family: inherit;
}

.faq-question:hover {
  background: var(--sand);
}

.faq-icon {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--cinnamon);
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 1.5rem 1.2rem;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--brown-soft);
  line-height: 1.7;
}

/* ---- FINAL CTA ---- */
.final-cta {
  background: var(--sand);
  border-top: 2px solid var(--brown);
  padding: 5rem 1.5rem;
  text-align: center;
}

.final-cta .section-title {
  margin-bottom: 1rem;
}

.final-cta .section-subtitle {
  margin: 0 auto 2rem;
}

.store-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--brown);
  color: var(--cream);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--brown);
  transition: all var(--transition);
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(62, 39, 35, 0.2);
}

.store-btn .store-icon {
  font-size: 1.4rem;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--brown);
  color: var(--cream);
  border-top: 2px solid var(--brown);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--sand);
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brown-faint);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: var(--sand);
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--cinnamon);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 230, 211, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--brown-faint);
}

/* ---- LEGAL PAGES ---- */
.legal-page {
  padding: 7rem 1.5rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.legal-page .legal-updated {
  font-size: 0.9rem;
  color: var(--brown-soft);
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--brown);
}

.legal-page p,
.legal-page li {
  font-size: 0.95rem;
  color: var(--brown-soft);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page a {
  color: var(--cinnamon);
  text-decoration: underline;
}

.legal-page a:hover {
  color: var(--cinnamon-dark);
}

/* ---- CTA LOGO ---- */
.cta-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  border: 3px solid var(--brown);
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(62, 39, 35, 0.15);
}

/* ---- FOOTER BRAND LOGO ---- */
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-brand-logo img {
  border-radius: 8px;
  border: 2px solid rgba(245, 230, 211, 0.3);
}

.footer-brand-logo h3 {
  font-size: 1.5rem;
  font-weight: 800;
}

/* ---- STORE BUTTONS SVG ---- */
.store-btn svg {
  flex-shrink: 0;
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    min-height: auto;
    padding: 7rem 1.5rem 3rem;
  }

  .hero p { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }

  .phone-mockup {
    width: 220px;
    height: 440px;
    transform: none;
  }

  .phone-mascot {
    width: 100px;
    height: 100px;
  }

  .card-float {
    width: 65px;
    height: 85px;
  }

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

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 2px solid var(--brown);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .hamburger { display: flex; }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .store-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { flex-direction: column; align-items: center; }
  .stat-card { width: 100%; }
  .rarity-grid { grid-template-columns: 1fr 1fr; }
  .rarity-card-img { max-width: 100px; }
  .phone-mockup { width: 180px; height: 360px; }
  .phone-mascot { width: 80px; height: 80px; }
  .card-float { width: 55px; height: 72px; }
  .card-float:nth-child(2) { right: -15px; }
  .card-float:nth-child(3) { left: -15px; }
  .card-float:nth-child(4) { left: -25px; }
  .battle-features { flex-direction: column; align-items: center; gap: 1rem; }
  .cta-logo { width: 64px; height: 64px; }
  .section-title { font-size: 1.8rem; }
}
