@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@500;600;700;800&display=swap');

:root {
  --bg: #0a0d12;
  --bg-2: #10151c;
  --card: #141a23;
  --card-2: #1a2230;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef2f7;
  --muted: #98a3b3;
  --dim: #6b7686;
  --accent: #f2a65a;
  --accent-2: #ffcf8a;
  --accent-ink: #1b1206;
  --ok: #4fd1a1;
  --warn: #f5c451;
  --bad: #ff6b6b;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1340px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(242, 166, 90, .10), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(79, 209, 161, .06), transparent 60%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Inter Tight', Inter, sans-serif; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(40px, 6vw, 84px); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.grad { background: linear-gradient(100deg, var(--accent-2), var(--accent) 50%, #ff8a5c); -webkit-background-clip: text; background-clip: text; color: transparent; }
section { padding: 110px 0; position: relative; }
.center { text-align: center; }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.hidden { display: none !important; }

/* Navegação */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s var(--ease), border-color .4s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(10, 13, 18, .78); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 21px 'Inter Tight', sans-serif; letter-spacing: -.03em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); box-shadow: 0 8px 24px -6px rgba(242, 166, 90, .6); }
.logo b { color: var(--accent); }
.nav-links { display: flex; gap: 6px; margin-left: 12px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.on { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-user { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); }
.nav-user img, .avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--card-2); }
.avatar-fallback { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); font-weight: 700; font-size: 13px; }
.badge-dot { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 24px; }

/* Botões */
.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 13px 22px; border-radius: 12px; font: 600 15px Inter, sans-serif; color: var(--text);
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line-2);
  transform: translate(var(--bx), var(--by)); transition: transform .25s var(--ease), background .2s, box-shadow .3s, opacity .2s;
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, .12); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); border-color: transparent; box-shadow: 0 12px 30px -10px rgba(242, 166, 90, .7); }
.btn-primary:hover { background: linear-gradient(135deg, #ffe0ad, var(--accent-2)); box-shadow: 0 18px 40px -12px rgba(242, 166, 90, .85); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 17px 30px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-danger { color: var(--bad); }

/* Formulários */
label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  color: var(--text); font: 15px Inter, sans-serif; transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242, 166, 90, .15); background: rgba(255, 255, 255, .05); }
select option { background: var(--bg-2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hint { font-size: 12px; color: var(--dim); }

/* Cartões */
.card { background: linear-gradient(180deg, var(--card), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .07); color: var(--muted); border: 1px solid var(--line); }
.pill-ok { color: var(--ok); background: rgba(79, 209, 161, .1); border-color: rgba(79, 209, 161, .25); }
.pill-warn { color: var(--warn); background: rgba(245, 196, 81, .1); border-color: rgba(245, 196, 81, .25); }
.pill-bad { color: var(--bad); background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .25); }
.pill-accent { color: var(--accent-ink); background: var(--accent); border-color: transparent; }

/* Anúncio (cartão) */
.listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.lcard { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s, border-color .3s; transform-style: preserve-3d; }
.lcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-2); }
.lcard .ph { aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--card-2); }
.lcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lcard:hover .ph img { transform: scale(1.07); }
.lcard .ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55)); }
.lcard .tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; z-index: 2; }
.lcard .price { position: absolute; bottom: 14px; left: 16px; z-index: 2; font: 700 22px 'Inter Tight', sans-serif; letter-spacing: -.02em; }
.lcard .price small { font: 500 12px Inter; color: rgba(255, 255, 255, .75); }
.lcard .body { padding: 16px 18px 18px; }
.lcard h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard .loc { font-size: 13px; color: var(--muted); }
.specs { display: flex; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.specs span { display: inline-flex; gap: 5px; align-items: center; }
.specs b { color: var(--text); font-weight: 600; }
.lcard .broker { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.lcard .broker img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.verified { color: var(--ok); display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }

/* Toast */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 100; display: grid; gap: 10px; }
.toast { padding: 14px 18px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); max-width: 380px; animation: toastIn .5s var(--ease); font-size: 14px; }
.toast.ok { border-color: rgba(79, 209, 161, .4); }
.toast.bad { border-color: rgba(255, 107, 107, .45); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* Reveal */
.rv { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; filter: none; }
.rv-l { transform: translateX(-60px); }
.rv-r { transform: translateX(60px); }
.rv-s { transform: scale(.92); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms + .1s); }
.split.in .w > span { transform: none; }

/* Página interna */
.page { padding-top: 120px; padding-bottom: 80px; min-height: 80vh; }
.page-head { margin-bottom: 36px; }
.page-head h1 { font-size: clamp(34px, 4.5vw, 58px); }

/* Rodapé */
footer { border-top: 1px solid var(--line); padding: 60px 0 40px; color: var(--muted); font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
footer h4 { color: var(--text); font-size: 14px; margin-bottom: 14px; }
footer a { display: block; padding: 3px 0; }
footer a:hover { color: var(--text); }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--dim); }

/* Tabs */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); width: fit-content; flex-wrap: wrap; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 10px 16px; border-radius: 10px; font: 600 14px Inter; cursor: pointer; transition: all .25s var(--ease); }
.tabs button.on { background: var(--card-2); color: var(--text); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .8); }

.skeleton { background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.meter { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 4px; transition: width 1.2s var(--ease); }

@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); padding: 12px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .burger { display: block; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  footer .cols { grid-template-columns: 1fr 1fr; }
  section { padding: 80px 0; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-right .btn-ghost { display: none; }
  footer .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .split .w > span { opacity: 1; transform: none; filter: none; }
}

/* Guia de uso (boas-vindas pós-login) */
dialog.guide { width: min(1120px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line-2); border-radius: 24px; background: var(--bg-2); color: var(--text); box-shadow: 0 40px 120px -20px rgba(0,0,0,.9); overflow: auto; }
dialog.guide::backdrop { background: rgba(5, 7, 10, .75); backdrop-filter: blur(6px); }
dialog.guide[open] { animation: guideIn .6s var(--ease); }
@keyframes guideIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.guide-grid { display: grid; grid-template-columns: 1.45fr 1fr; }
.guide-video { background: radial-gradient(circle at center, #121821, #07090d); position: relative; display: flex; align-items: center; }
.guide-video video { width: 100%; height: auto; display: block; aspect-ratio: 16/10; box-shadow: 0 20px 60px -20px rgba(0,0,0,.9); }
.guide-side { padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 14px; }
.guide-side h2 { font-size: 28px; margin: 0; }
.gsteps { display: grid; gap: 8px; margin: 4px 0; counter-reset: g; }
.gstep { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); transition: all .25s var(--ease); cursor: pointer; align-items: start; }
.gstep:hover { border-color: var(--accent); background: rgba(242,166,90,.06); }
.gstep .n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(242,166,90,.12); color: var(--accent); font: 700 14px 'Inter Tight'; }
.gstep.done .n { background: rgba(79,209,161,.14); color: var(--ok); }
.gstep b { display: block; font-size: 14px; }
.gstep span { font-size: 12.5px; color: var(--muted); line-height: 1.45; display: block; }
.guide-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10,13,18,.7); color: var(--text); cursor: pointer; font-size: 18px; }
@media (max-width: 900px) { .guide-grid { grid-template-columns: 1fr; } }

/* Anunciante: imobiliária ou corretor independente */
.advertiser { margin-top: 8px; }
.adv { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); }
.adv-ag { color: var(--accent-2); border-color: rgba(242,166,90,.35); background: rgba(242,166,90,.07); }
.share { display: flex; gap: 8px; flex-wrap: wrap; }

/* Pagamento por Pix */
dialog.pix { width: min(560px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line-2); border-radius: 24px; background: var(--bg-2); color: var(--text); box-shadow: 0 40px 120px -20px rgba(0,0,0,.9); }
dialog.pix::backdrop { background: rgba(5,7,10,.75); backdrop-filter: blur(6px); }
dialog.pix[open] { animation: guideIn .5s var(--ease); }
.pix-in { padding: 30px; display: grid; gap: 14px; }
.pix-qr { justify-self: center; background: #fff; padding: 14px; border-radius: 16px; }
.pix-qr img { width: 240px; height: 240px; }
.pix-code { display: flex; gap: 8px; }
.pix-code input { font: 12px ui-monospace, monospace; }
.pix-ok { text-align: center; padding: 20px 0; }
.pix-ok .big { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: rgba(79,209,161,.15); color: var(--ok); font-size: 36px; }

/* Documentos legais */
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.doc-toc { position: sticky; top: 104px; display: grid; gap: 2px; font-size: 14px; }
.doc-toc b { color: var(--text); margin-bottom: 8px; }
.doc-toc a { color: var(--muted); padding: 5px 0 5px 12px; border-left: 2px solid var(--line); transition: color .2s, border-color .2s; }
.doc-toc a:hover { color: var(--text); border-color: var(--accent); }
.doc-body { max-width: 780px; color: #c9d1dc; line-height: 1.75; }
.doc-body h2 { font-size: 22px; margin: 44px 0 12px; color: var(--text); scroll-margin-top: 100px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { text-align: justify; }
.doc-body ul, .doc-body ol { padding-left: 22px; display: grid; gap: 6px; }
.doc-body a { color: var(--accent); }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.doc-body th, .doc-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-body th { color: var(--text); font-weight: 600; }
.doc-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.doc-note { padding: 16px 18px; border-radius: 14px; background: rgba(242,166,90,.07); border: 1px solid rgba(242,166,90,.25); margin: 18px 0; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 24px; } .doc-toc { position: static; } .doc-body table { display: block; overflow-x: auto; } }
