/* ============================================
   REALMFORGE — Landing Page Styles
   Mobile-first | Dark Forge Theme
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette */
  --bg-dark:       #0a0a0f;
  --bg-card:       #12121a;
  --bg-card-hover: #1a1a28;
  --surface:       #16161f;
  --gold:          #d4a843;
  --gold-light:    #f0d078;
  --gold-dim:      #9a7a2e;
  --amber:         #ff9f1c;
  --text:          #e8e6e3;
  --text-muted:    #9a9a9a;
  --text-bright:   #ffffff;
  --accent-red:    #c0392b;
  --accent-blue:   #2980b9;
  --border:        rgba(212, 168, 67, 0.15);

  /* Typography */
  --font-display: 'Cinzel', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-py: 5rem;
  --container-px: 1.25rem;
  --container-max: 1100px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

a:hover { color: var(--gold-light); }

ul { list-style: none; }

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

/* ---------- Language Switcher ---------- */
.lang-switcher {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  gap: 0.25rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.25rem;
}

.lang-switcher__btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.lang-switcher__btn:hover {
  color: var(--text);
  background: rgba(212, 168, 67, 0.1);
}

.lang-switcher__btn.active {
  color: #0a0a0f;
  background: var(--gold);
  box-shadow: 0 2px 8px rgba(212, 168, 67, 0.3);
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* Stagger children cards */
.cards .reveal:nth-child(1) { transition-delay: 0s; }
.cards .reveal:nth-child(2) { transition-delay: 0.12s; }
.cards .reveal:nth-child(3) { transition-delay: 0.24s; }
.cards .reveal:nth-child(4) { transition-delay: 0.36s; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem var(--container-px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(212, 168, 67, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #0d0d14 0%, #0a0a0f 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a843' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(212, 168, 67, 0.4));
  animation: float 3s ease-in-out infinite;
}

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

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 900;
  color: var(--text-bright);
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.hero__desc {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero__desc strong {
  color: var(--gold);
}

/* CTA Buttons */
.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  min-width: 220px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--amber) 100%);
  color: #0a0a0f;
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.45);
  color: #0a0a0f;
}

.btn--secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--border);
  backdrop-filter: blur(4px);
}

.btn--secondary:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 67, 0.08);
  transform: translateY(-2px);
}

.btn--large {
  padding: 1.1rem 2.8rem;
  font-size: 1.1rem;
  border-radius: 14px;
}

.btn__icon {
  font-size: 1.1em;
}

/* Scroll Hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll-arrow {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--gold-dim);
  border-bottom: 2px solid var(--gold-dim);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

/* ============================================
   SECTIONS (Shared)
   ============================================ */
.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--text-bright);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.02em;
}

.section__icon {
  margin-right: 0.4rem;
}

/* Alternating subtle backgrounds */
.section--how {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0e0e16 100%);
}

.section--strategy {
  background: var(--bg-dark);
}

.section--f2p {
  background: linear-gradient(180deg, #0e0e16 0%, var(--bg-dark) 100%);
}

.section--mobile {
  background: var(--bg-dark);
}

.section--progress {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0e0e16 100%);
}

.section--final {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(212, 168, 67, 0.06) 0%, transparent 60%),
    var(--bg-dark);
  padding: 6rem 0;
}

/* ============================================
   CARDS — Como funciona
   ============================================ */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  transition: all 0.35s var(--ease);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(212, 168, 67, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px rgba(212, 168, 67, 0.2));
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.card__list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card__list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
  font-size: 0.55rem;
  top: 0.45em;
}

/* ============================================
   STRATEGY
   ============================================ */
.strategy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.strategy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: all 0.35s var(--ease);
}

.strategy-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(212, 168, 67, 0.3);
  transform: translateY(-4px);
}

.strategy-card__icon {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  display: block;
}

.strategy-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.strategy-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.strategy-note {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.strategy-note p {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.strategy-note strong {
  color: var(--gold);
}

.strategy-motto {
  font-family: var(--font-display);
  font-size: 1.2rem !important;
  color: var(--gold-light) !important;
  margin-bottom: 0 !important;
  font-weight: 700;
}

/* ============================================
   FREE-TO-PLAY
   ============================================ */
.f2p-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 540px;
  margin: 0 auto;
}

.f2p-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  font-size: 1rem;
  color: var(--text);
  transition: all 0.3s var(--ease);
}

.f2p-item:hover {
  border-color: rgba(212, 168, 67, 0.3);
  background: var(--bg-card-hover);
}

.f2p-item__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ============================================
   MOBILE-FIRST
   ============================================ */
.mobile-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.mobile-feature {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.35s var(--ease);
}

.mobile-feature:hover {
  border-color: rgba(212, 168, 67, 0.3);
  transform: translateY(-4px);
}

.mobile-feature__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.mobile-feature h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

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

/* ============================================
   PROGRESSO
   ============================================ */
.progress-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.progress-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.35s var(--ease);
}

.progress-item:hover {
  border-color: rgba(212, 168, 67, 0.3);
  transform: translateY(-4px);
}

.progress-item__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.progress-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

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

.progress-quote {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  opacity: 0.85;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  text-align: center;
}

.final-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.final-cta__text {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 2rem;
}

.final-cta__text strong {
  color: var(--gold);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 2.5rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

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

.footer__synapto {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

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

.footer__synapto strong {
  color: var(--gold);
  font-weight: 500;
  transition: color 0.3s var(--ease);
}

.footer__synapto a:hover strong {
  color: var(--gold-light);
}

/* ============================================
   PARTICLES (embers)
   ============================================ */
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(0);
  }
}

/* ============================================
   RESPONSIVE — Tablet+
   ============================================ */
@media (min-width: 600px) {
  :root {
    --container-px: 2rem;
  }

  .hero__cta {
    flex-direction: row;
    justify-content: center;
  }

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

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

  .f2p-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 640px;
  }

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

  .progress-items {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   RESPONSIVE — Desktop
   ============================================ */
@media (min-width: 960px) {
  :root {
    --section-py: 6.5rem;
    --container-px: 2.5rem;
  }

  .cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .mobile-features {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__icon {
    animation: none;
  }

  .hero__scroll-arrow {
    animation: none;
  }

  .particle {
    display: none;
  }
}
