:root {
  --bg: #0b0f14;
  --bg-elev: #121821;
  --bg-card: #151c27;
  --border: #243041;
  --text: #e8eef7;
  --muted: #8b9bb0;
  --accent: #5b8cff;
  --accent-2: #3ee0a5;
  --warn: #ffb454;
  --pink: #ff6b9d;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91,140,255,.18), transparent),
    linear-gradient(rgba(36,48,65,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,48,65,.35) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: -1;
}

.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,15,20,.75);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: .85rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: inherit;
}
.logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #7c5cff);
  font-size: 1rem;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 1rem; }
.logo-text small { color: var(--muted); font-size: .72rem; }
.nav { display: flex; gap: 1rem; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.nav a:hover { color: var(--text); }
.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  cursor: pointer;
}
.lang-opt {
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
}
.lang-opt.active {
  background: var(--accent);
  color: #fff;
}

.hero { padding: 3.25rem 0 1.5rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--accent-2);
  letter-spacing: .02em;
  margin: 0 0 .75rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 .75rem;
  max-width: 16ch;
}
.hero-sub { color: var(--muted); max-width: 52ch; margin: 0 0 1.5rem; font-size: 1.05rem; }

.search-bar {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .85rem 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.search-icon { color: var(--muted); flex-shrink: 0; }
.search-bar input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.search-bar input::placeholder { color: #6a7a90; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.filter-btn {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--muted);
  border-radius: 999px;
  padding: .4rem .85rem;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
  transition: .15s ease;
}
.filter-btn:hover { border-color: #3a4d66; color: var(--text); }
.filter-btn.active {
  background: rgba(91,140,255,.15);
  border-color: var(--accent);
  color: #c9dbff;
}

.section { padding: 2rem 0 2.5rem; }
.section-head { margin-bottom: 1.25rem; }
.section-head.row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0 0 .25rem; font-size: 1.35rem; }
.section-head p { margin: 0; color: var(--muted); font-size: .92rem; }

.sort-wrap { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .85rem; }
.sort-wrap select {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .4rem .55rem;
  font: inherit;
}

.new-grid, .tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  transition: border-color .15s, transform .15s;
  cursor: pointer;
}
.card:hover {
  border-color: #3d5575;
  transform: translateY(-2px);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: .5rem;
}
.card h3 { margin: 0; font-size: 1.05rem; }
.badge {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  padding: .2rem .45rem;
  border-radius: 6px;
  white-space: nowrap;
}
.badge-new {
  background: rgba(62,224,165,.15);
  color: var(--accent-2);
}
.badge-cat {
  background: rgba(91,140,255,.12);
  color: #9bb6ff;
}
.badge-price {
  background: rgba(255,180,84,.12);
  color: var(--warn);
}
.use-when {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  flex: 1;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}
.card-link {
  margin-top: .25rem;
  font-size: .85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.card-link:hover { text-decoration: underline; }

.novidades .card {
  border-color: rgba(62,224,165,.25);
  background: linear-gradient(160deg, rgba(62,224,165,.06), var(--bg-card) 45%);
}
.launch-date {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--accent-2);
}

.empty { text-align: center; color: var(--muted); padding: 2rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  margin-top: 1rem;
}
.footer-inner p { margin: 0 0 .35rem; font-size: .88rem; color: var(--muted); }
.muted { opacity: .75; font-size: .8rem !important; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(85vh, 720px);
  overflow: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  z-index: 1;
}
.modal-close {
  position: absolute;
  top: .6rem; right: .75rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.modal-card h2 { margin: 0 0 .5rem; padding-right: 1.5rem; }
.modal-card .use-when { margin-bottom: .75rem; }
.modal-section { margin-top: 1rem; }
.modal-section h4 { margin: 0 0 .35rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.alt-list { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.alt-list li {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .25rem .65rem;
  font-size: .8rem;
}
.modal-actions { margin-top: 1.25rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem 1rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }

@media (max-width: 640px) {
  .nav { display: none; }
  .hero { padding-top: 2rem; }
  .section-head.row { align-items: start; }
}

/* --- SEO / monetization / newsletter additions --- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
a.lang-toggle { text-decoration: none; }
.page { padding: 2rem 0 3rem; }
.page h1 { margin-top: .5rem; }
.tool-detail h2 { font-size: 1rem; margin: 1.25rem 0 .35rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.faq-list { display: grid; gap: .65rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .85rem 1rem;
}
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin: .65rem 0 0; color: var(--muted); }
.best-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.best-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.best-list a { color: var(--text); text-decoration: none; }
.best-list a:hover { color: var(--accent); }
.best-list p { margin: .35rem 0 0; color: var(--muted); font-size: .92rem; }
.newsletter {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(91,140,255,.06), transparent);
}
.newsletter-inner {
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: start;
}
.nl-form { display: grid; gap: .55rem; min-width: min(360px, 100%); }
.nl-form input {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); padding: .7rem .85rem; font: inherit;
}
.nl-note { margin: 0; font-size: .78rem; color: var(--muted); }
.sponsored-slot {
  margin-top: 1rem;
  border: 1px dashed #3d5575;
  border-radius: 12px;
  padding: .85rem 1rem;
  background: rgba(255,180,84,.05);
}
.sponsored-slot.is-off { display: none; }
.sponsored-label {
  font-family: var(--mono); font-size: .7rem; color: var(--warn); margin: 0 0 .35rem; text-transform: uppercase;
}
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.site-footer a { color: var(--accent); }
.btn { display: inline-flex; align-items: center; padding: .55rem 1rem; border-radius: 10px; font: inherit; font-weight: 600; font-size: .9rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; border: 0; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-note.ok { color: var(--accent-2); } .nl-note.err { color: var(--pink); }
