/* =========================================================
   DOURADO CASH — Design System
   Preto + Ouro vivo (glow) + Montserrat
   ========================================================= */

:root {
  --black:      #0a0a0b;
  --black-soft: #121214;
  --panel:      #17171a;
  --panel-2:    #1e1e22;
  --line:       #2a2a30;
  --gold:       #f5c542;
  --gold-hi:    #ffe08a;
  --gold-deep:  #c9962b;
  --gold-glow:  rgba(245, 197, 66, 0.45);
  --white:      #f7f7f5;
  --muted:      #a1a1aa;
  --muted-2:    #6b6b74;
  --green:      #23c17a;
  --red:        #ef5350;
  --radius:     16px;
  --radius-sm:  10px;
  --maxw:       1200px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }

.gold { color: var(--gold); }
.text-glow { text-shadow: 0 0 24px var(--gold-glow); }

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.section-lead {
  color: var(--muted);
  max-width: 620px;
  font-size: 17px;
}

.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-deep));
  color: #191100;
  box-shadow: 0 8px 30px -6px var(--gold-glow);
}
.btn-gold:hover { box-shadow: 0 14px 44px -6px var(--gold-glow); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Cotação ticker ---------- */
.ticker {
  background: linear-gradient(90deg, #0d0d0f, #171712 50%, #0d0d0f);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  font-size: 14px;
}
.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  padding: 10px 0;
  animation: ticker 32s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.ticker-item strong { color: var(--gold); font-weight: 700; }
.ticker-item .val { color: var(--white); font-weight: 700; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Topbar ---------- */
.topbar {
  background: #08080a;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-block: 8px; flex-wrap: wrap; gap: 8px; }
.topbar a:hover { color: var(--gold); }
.social { display: flex; gap: 14px; align-items: center; list-style: none; margin: 0; padding: 0; }
.social li { list-style: none; }
.social a { display: inline-flex; color: var(--muted); transition: color .2s var(--ease), transform .2s var(--ease); }
.social a:hover { color: var(--gold); transform: translateY(-1px); }
.social svg { width: 18px; height: 18px; display: block; }
.topbar-contact { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.topbar-contact .wa { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.topbar-contact .wa svg { width: 15px; height: 15px; color: #25d366; }
.topbar-contact .wa:hover { color: var(--gold); }
.topbar-contact .wa:hover svg { color: var(--gold); }
.lang-switch { display: inline-flex; gap: 6px; align-items: center; }
.lang-switch a { display: inline-flex; padding: 2px; border-radius: 4px; border: 1px solid transparent; opacity: .6; transition: opacity .2s var(--ease), border-color .2s; }
.lang-switch a svg { width: 22px; height: 15px; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a.active { opacity: 1; border-color: var(--gold); box-shadow: 0 0 8px -1px var(--gold-glow); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-color: var(--line); background: rgba(10, 10, 11, 0.95); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.logo img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 14px; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--gold); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(70px, 12vh, 130px) 0 clamp(60px, 10vh, 110px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(245,197,66,0.16), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(245,197,66,0.08), transparent 55%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); margin-bottom: 22px; }
.hero p.sub { font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.hero-badge { display: flex; flex-direction: column; }
.hero-badge b { font-size: 26px; color: var(--gold); }
.hero-badge span { font-size: 13px; color: var(--muted-2); }
.hero-visual { position: relative; }
.hero-visual img { border-radius: 24px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7); border: 1px solid var(--line); }
.hero-visual::after {
  content: ""; position: absolute; inset: -1px; border-radius: 26px;
  box-shadow: 0 0 90px -10px var(--gold-glow); pointer-events: none;
}

/* ---------- Section base ---------- */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-head { margin-bottom: 54px; }

/* ---------- Features grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: linear-gradient(180deg, var(--panel), var(--black-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.feature:hover { transform: translateY(-6px); border-color: var(--gold-deep); box-shadow: 0 24px 50px -24px var(--gold-glow); }
.feature-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(245,197,66,0.25), rgba(245,197,66,0.05));
  border: 1px solid var(--gold-deep);
  color: var(--gold); font-size: 24px;
}
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate;
}
.product-card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--ease); }
.product-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,11,0.15), rgba(10,10,11,0.92)); }
.product-card:hover img.bg { transform: scale(1.06); }
.product-body { padding: 26px; }
.product-body .tag { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.product-body h3 { font-size: 24px; margin: 8px 0 10px; }
.product-body p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.product-actions .btn { padding: 10px 18px; font-size: 13px; }

/* ---------- Explorer showcase ---------- */
.explorer-block { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.explorer-feats { list-style: none; display: grid; gap: 12px; margin: 24px 0 30px; }
.explorer-feats li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.explorer-feats li::before { content: "▸"; color: var(--gold); }
.xp-window { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, var(--panel), var(--black-soft)); box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), 0 0 80px -34px var(--gold-glow); }
.xp-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #0d0d0f; border-bottom: 1px solid var(--line); }
.xp-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.xp-bar span:first-child { background: var(--gold); box-shadow: 0 0 8px var(--gold-glow); }
.xp-bar em { margin-left: 12px; font-style: normal; font-size: 12px; color: var(--muted-2); font-family: ui-monospace, monospace; }
.xp-body { padding: 20px; }
.xp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.xp-stat { background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.xp-stat small { color: var(--muted-2); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.xp-stat b { display: block; margin-top: 6px; color: var(--gold); font-size: 18px; }
.xp-list { display: grid; gap: 8px; }
.xp-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.xp-h { color: var(--gold); font-family: ui-monospace, monospace; font-weight: 700; }
.xp-row span:nth-child(2) { color: var(--white); }
.xp-t { color: var(--muted-2); font-variant-numeric: tabular-nums; }

/* ---------- Cotação painel ---------- */
.quote-panel {
  background: linear-gradient(135deg, var(--panel-2), var(--black-soft));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.quote-cell { text-align: center; padding: 14px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.02); border: 1px solid var(--line); }
.quote-cell .cur { font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .08em; }
.quote-cell .amount { font-size: clamp(20px, 3vw, 30px); font-weight: 800; color: var(--gold); margin-top: 6px; text-shadow: 0 0 20px var(--gold-glow); }
.quote-cell.bdm { background: radial-gradient(circle at 50% 0%, rgba(245,197,66,0.14), rgba(255,255,255,0.02)); border-color: var(--gold-deep); }
.quote-meta { text-align: center; color: var(--muted-2); font-size: 13px; margin-top: 18px; }
.quote-meta .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Ranking ---------- */
.ranking-wrap { background: linear-gradient(180deg, var(--panel), var(--black-soft)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ranking-row { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); transition: background .2s; }
.ranking-row:last-child { border-bottom: 0; }
.ranking-row:hover { background: rgba(245,197,66,0.04); }
.ranking-row .pos { font-size: 20px; font-weight: 800; color: var(--muted-2); text-align: center; }
.ranking-row.top1 .pos, .ranking-row.top2 .pos, .ranking-row.top3 .pos { color: var(--gold); text-shadow: 0 0 14px var(--gold-glow); }
.ranking-row .nome { font-weight: 600; }
.ranking-row .pts { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.ranking-head { display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; padding: 14px 24px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); border-bottom: 1px solid var(--line); }

/* ---------- Mapa ---------- */
#mapa { height: 480px; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); z-index: 1; }
.leaflet-popup-content-wrapper { background: var(--panel-2); color: var(--white); border-radius: 10px; }
.leaflet-popup-tip { background: var(--panel-2); }
.leaflet-popup-content a { color: var(--gold); }
.map-stats { display: flex; gap: 30px; margin-bottom: 24px; flex-wrap: wrap; }
.map-stats .stat b { font-size: 30px; color: var(--gold); display: block; }
.map-stats .stat span { color: var(--muted); font-size: 14px; }

/* ---------- Compliance ---------- */
.compliance { background: linear-gradient(135deg, rgba(245,197,66,0.06), transparent 60%); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(30px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.compliance img { border-radius: 14px; border: 1px solid var(--line); }
.compliance h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 16px; }
.compliance p { color: var(--muted); margin-bottom: 22px; }
.compliance ul { list-style: none; display: grid; gap: 12px; }
.compliance li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.compliance li::before { content: "✦"; color: var(--gold); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: clamp(60px, 8vw, 90px) 0; background: radial-gradient(60% 120% at 50% 0%, rgba(245,197,66,0.12), transparent 60%); }
.cta-band h2 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 18px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 30px; }

/* ---------- App download ---------- */
.stores { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: border-color .3s, transform .2s; }
.store-btn:hover { border-color: var(--gold); transform: translateY(-2px); }
.store-btn small { display: block; font-size: 11px; color: var(--muted); }
.store-btn b { font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: #08080a; border-top: 1px solid var(--line); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 40px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 280px; }
.footer-col h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 14px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); text-align: center; color: var(--muted-2); font-size: 13px; display: grid; gap: 6px; }
.footer-legal { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
  .explorer-block { grid-template-columns: 1fr; }
  .grid-3, .products { grid-template-columns: 1fr 1fr; }
  .quote-panel { grid-template-columns: 1fr 1fr; }
  .compliance { grid-template-columns: 1fr; }
  .compliance img { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-3, .products { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-contact .hide-sm { display: none; }
  .ranking-head, .ranking-row { grid-template-columns: 44px 1fr auto; padding-inline: 16px; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 200; background: rgba(8,8,10,0.98); backdrop-filter: blur(8px); display: none; flex-direction: column; padding: 30px 24px; }
.mobile-menu.open { display: flex; }
.mobile-menu .close { align-self: flex-end; background: none; border: 0; color: var(--white); font-size: 30px; cursor: pointer; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 22px; margin-top: 40px; }
.mobile-menu nav a { font-size: 22px; font-weight: 700; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(60px, 9vw, 100px) 0; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 24px; }
.legal h2 { font-size: 22px; margin: 34px 0 12px; color: var(--gold); }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
