/* ============================================================
   MAGIC REWARDS — styles.css
   Importa tokens do tema principal + estilos exclusivos da página
   ============================================================ */

/* ---- CSS VARIABLES (espelhado do principal) ---- */
:root {
  --bg:            #0a0a0a;
  --bg-secondary:  #111111;
  --bg-card:       #141414;
  --bg-card-hover: #1a1a1a;
  --border:        rgba(255,255,255,0.08);
  --border-hover:  rgba(255,255,255,0.18);

  --text-primary:  #f5f5f5;
  --text-secondary:#a0a0a0;
  --text-muted:    #606060;

  --accent:        #ffffff;
  --accent-inv:    #0a0a0a;
  --accent-glow:   rgba(255,255,255,0.06);

  --btn-primary-bg:    #ffffff;
  --btn-primary-text:  #0a0a0a;
  --btn-ghost-text:    #f5f5f5;
  --btn-outline-border:rgba(255,255,255,0.3);
  --btn-outline-text:  #f5f5f5;

  --navbar-bg:     rgba(10,10,10,0.85);
  --shadow-card:   0 1px 3px rgba(0,0,0,0.6), 0 8px 32px rgba(0,0,0,0.4);
  --shadow-btn:    0 4px 20px rgba(255,255,255,0.15);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --transition: 0.22s ease;

  /* Tier colors */
  --tier-black:   #1a1a1a;
  --tier-silver:  #8a8a8a;
  --tier-gold:    #c9a84c;
  --tier-sapphire:#2563eb;
  --tier-diamond: #a78bfa;
}

[data-theme="light"] {
  --bg:            #ffffff;
  --bg-secondary:  #f7f7f7;
  --bg-card:       #ffffff;
  --bg-card-hover: #f2f2f2;
  --border:        rgba(0,0,0,0.08);
  --border-hover:  rgba(0,0,0,0.18);

  --text-primary:  #111111;
  --text-secondary:#555555;
  --text-muted:    #999999;

  --accent:        #111111;
  --accent-inv:    #ffffff;
  --accent-glow:   rgba(0,0,0,0.04);

  --btn-primary-bg:    #111111;
  --btn-primary-text:  #ffffff;
  --btn-ghost-text:    #111111;
  --btn-outline-border:rgba(0,0,0,0.3);
  --btn-outline-text:  #111111;

  --navbar-bg:     rgba(255,255,255,0.88);
  --shadow-card:   0 1px 3px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.08);
  --shadow-btn:    0 4px 20px rgba(0,0,0,0.15);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- CONTAINER ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}
.btn--primary:hover { opacity: 0.88; box-shadow: var(--shadow-btn); transform: translateY(-1px); }
.btn--ghost { color: var(--btn-ghost-text); background: transparent; }
.btn--ghost:hover { opacity: 0.7; }
.btn--outline {
  color: var(--btn-outline-text);
  border: 1px solid var(--btn-outline-border);
  background: transparent;
}
.btn--outline:hover { border-color: var(--accent); background: var(--accent-glow); }
.btn--lg { padding: 13px 26px; font-size: 15px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar__logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.navbar__logo-img { width: 170px; height: 72px; object-fit: contain; }
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: space-between;
  padding-left: 40px;
}
.navbar__nav-group { display: flex; align-items: center; gap: 2px; }
.navbar__item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 450;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.navbar__item:hover { color: var(--text-primary); background: var(--accent-glow); }
.navbar__item--rewards { color: var(--text-primary); font-weight: 600; position: relative; }
.navbar__actions { display: flex; align-items: center; gap: 8px; }
.navbar__right { display: flex; align-items: center; gap: 8px; margin-left: 16px; }

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.theme-toggle:hover { background: var(--accent-glow); color: var(--text-primary); }
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--accent-glow); }
.hamburger span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ============================================================
   HERO REWARDS
   ============================================================ */
.rw-hero {
  padding: 140px 0 80px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.rw-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.rw-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.rw-hero__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.rw-hero__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.rw-hero__desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 36px;
}

/* ============================================================
   IMAGE PLACEHOLDERS
   ============================================================ */
.rw-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1.5px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-muted);
  text-align: center;
}
.rw-img-placeholder span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.rw-img-placeholder small {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.rw-img-placeholder--hero {
  width: 100%;
  height: 380px;
}
.rw-img-placeholder--tier {
  width: 100%;
  height: 320px;
}

/* ============================================================
   TIERS SECTION
   ============================================================ */
.rw-tier__img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: block;
}

.rw-hero__visual .rw-tier__img {
  height: 380px;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}
.rw-tiers {
  padding: 80px 0 60px;
  background: var(--bg);
}

.rw-tier {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 60px 0;
}
.rw-tier--reverse { direction: rtl; }
.rw-tier--reverse > * { direction: ltr; }

.rw-tier__divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* Badge */
.rw-tier__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid;
  margin-bottom: 20px;
}
.rw-tier__badge--black  { color: #e0e0e0; border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }
.rw-tier__badge--silver { color: var(--tier-silver); border-color: rgba(138,138,138,0.4); background: rgba(138,138,138,0.08); }
.rw-tier__badge--gold   { color: var(--tier-gold);   border-color: rgba(201,168,76,0.4);  background: rgba(201,168,76,0.08); }
.rw-tier__badge--sapphire{ color: #60a5fa; border-color: rgba(37,99,235,0.4); background: rgba(37,99,235,0.08); }
.rw-tier__badge--diamond { color: #c4b5fd; border-color: rgba(167,139,250,0.4); background: rgba(167,139,250,0.08); }

/* Title */
.rw-tier__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 20px;
}

/* Description */
.rw-tier__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 480px;
}

/* Prize block */
.rw-tier__prize {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}
.rw-tier__prize-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.rw-tier__prize-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ============================================================
   FAQ
   ============================================================ */
.rw-faq {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.rw-faq__eyebrow { display: block; }
.rw-faq__title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 48px;
}

.rw-faq__list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.rw-faq__item {
  border-bottom: 1px solid var(--border);
}
.rw-faq__item:last-child { border-bottom: none; }

.rw-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-card);
  text-align: left;
  transition: background var(--transition);
}
.rw-faq__question:hover { background: var(--bg-card-hover); }
.rw-faq__question[aria-expanded="true"] { background: var(--bg-card-hover); }

.rw-faq__icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}
.rw-faq__question[aria-expanded="true"] .rw-faq__icon {
  transform: rotate(90deg);
  color: var(--text-primary);
}

.rw-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  background: var(--bg-secondary);
}
.rw-faq__answer.open {
  max-height: 300px;
  padding: 16px 24px 20px;
}
.rw-faq__answer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.rw-cta {
  padding: 80px 0;
  background: var(--bg);
}
.rw-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  flex-wrap: wrap;
}
.rw-cta__title {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 10px;
}
.rw-cta__desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.footer__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 24px 48px;
}
.footer__logo-img {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  margin-bottom: 18px;
}
.footer__slogan {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 300px;
}
.footer__divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}
.footer__bottom { padding: 20px 0; }
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy { font-size: 12px; color: var(--text-muted); }
.footer__bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__bottom-links a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__bottom-links a:hover { color: var(--text-primary); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up--delay { transition-delay: 0.15s; }

/* ============================================================
   RESPONSIVE — TABLET (≤ 960px)
   ============================================================ */
@media (max-width: 960px) {
  .navbar__nav { display: none; }
  .hamburger { display: flex; }

  .navbar__nav.nav-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 4px;
    z-index: 999;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .navbar__nav-group {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }
  .navbar__item {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    justify-content: flex-start;
    display: flex;
  }
  .navbar__actions {
    flex-direction: column;
    width: 100%;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    gap: 10px;
  }
  .navbar__actions .btn { width: 100%; justify-content: center; }

  /* Navbar centralizada no mobile */
  .navbar__inner { position: relative; justify-content: center; }
  .navbar__logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .navbar__right { position: absolute; right: 20px; }

  /* Hero */
  .rw-hero__inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .rw-hero__desc { max-width: 100%; }
  .rw-hero { padding: 100px 0 60px; }

  /* Tiers */
  .rw-tier { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .rw-tier--reverse { direction: ltr; }
  .rw-tier__title { font-size: 40px; }

  /* CTA */
  .rw-cta__inner { flex-direction: column; text-align: center; padding: 36px 24px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
  .rw-tier__title { font-size: 32px; letter-spacing: -1px; }
  .rw-tier { padding: 36px 0; }
  .rw-img-placeholder--hero { height: 240px; }
  .rw-img-placeholder--tier { height: 220px; }

  .rw-faq__question { padding: 16px 18px; font-size: 14px; }
  .rw-faq__answer.open { padding: 14px 18px 18px; }

  .rw-cta { padding: 48px 0; }
  .rw-cta__inner { padding: 28px 20px; }
  .rw-cta__actions .btn { width: 100%; justify-content: center; }

  .footer__bottom-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer__bottom-links { justify-content: center; gap: 12px; }
}
