:root {
  color-scheme: light;
  --ink: #18201d;
  --muted: #5b6862;
  --soft: #edf4f0;
  --paper: #f6fbf7;
  --panel: #ffffff;
  --line: #dbe5df;
  --accent: #147c5f;
  --accent-strong: #0d5f49;
  --accent-pop: #12b981;
  --warm: #ffb238;
  --rose: #d86171;
  --blue: #2f6fed;
  --focus: #083f34;
  --shadow: 0 22px 60px rgba(23, 45, 37, .14);
  --shadow-strong: 0 24px 46px rgba(20, 124, 95, .22);
  font-family: "Aptos", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(20, 124, 95, .13), transparent 34rem),
    radial-gradient(circle at 88% 8%, rgba(255, 178, 56, .32), transparent 24rem),
    radial-gradient(circle at 8% 28%, rgba(47, 111, 237, .12), transparent 23rem),
    var(--paper);
  color: var(--ink);
}

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

a:hover { color: var(--accent-strong); }

button, input, textarea, select { font: inherit; }

:focus-visible {
  outline: 3px solid rgba(20, 124, 95, .35);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 229, 223, .85);
  background: rgba(246, 251, 247, .90);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-pop));
  color: white;
  box-shadow: 0 12px 28px rgba(20, 124, 95, .28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: .95rem;
}

.nav-links a {
  border-radius: 999px;
  padding: 9px 11px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-links a:hover {
  background: rgba(20, 124, 95, .10);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.nav-links a:first-child {
  background: linear-gradient(135deg, var(--accent), var(--accent-pop));
  color: white;
  box-shadow: 0 10px 22px rgba(20, 124, 95, .18);
}

.nav-links a:first-child:hover {
  color: white;
  box-shadow: 0 14px 28px rgba(20, 124, 95, .25);
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 72px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(20, 124, 95, .18);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .68);
  color: var(--accent-strong);
  font-weight: 850;
  font-size: .9rem;
  margin: 0 0 14px;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 5.4rem);
  line-height: .96;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero p, .lead {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.trust-strip span {
  border: 1px solid rgba(20, 124, 95, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  color: #365249;
  font-size: .9rem;
  font-weight: 750;
  padding: 8px 11px;
}

.search-panel, .tool-shell, .page-panel {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-panel {
  position: relative;
  padding: 22px;
  overflow: hidden;
}

.search-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--warm), var(--blue));
}

.search-input {
  width: 100%;
  min-height: 62px;
  border: 2px solid rgba(20, 124, 95, .18);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--ink);
  background: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.search-input:focus {
  border-color: rgba(20, 124, 95, .62);
  box-shadow: 0 0 0 5px rgba(20, 124, 95, .12);
  outline: none;
}

.search-results {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.result-link {
  display: block;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f3faf6, #ffffff);
  border: 1px solid rgba(20, 124, 95, .10);
  transition: transform .18s ease, box-shadow .18s ease;
}

.result-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(23, 45, 37, .10);
}

.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: 0;
}

h3 { margin: 0 0 8px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-card, .category-card, .info-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid rgba(20, 124, 95, .12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(241, 249, 245, .88));
  border-radius: 8px;
  padding: 20px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tool-card::before, .category-card::before {
  content: "";
  position: absolute;
  right: -38px;
  top: -46px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 178, 56, .35), transparent 66%);
  pointer-events: none;
}

.tool-card:hover, .category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 124, 95, .42);
  box-shadow: 0 20px 38px rgba(23, 45, 37, .14);
}

.card-meta {
  color: var(--accent-strong);
  font-size: .83rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.card-title {
  margin: 8px 0 8px;
  font-weight: 850;
  font-size: 1.16rem;
}

.card-copy, .muted {
  color: var(--muted);
  line-height: 1.55;
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 8px;
  border-radius: 999px;
  padding: 0 14px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-pop));
  box-shadow: 0 12px 24px rgba(20, 124, 95, .20);
  font-size: .9rem;
  font-weight: 850;
}

.card-action::after {
  content: ">";
  margin-left: 8px;
  font-size: 1.25rem;
  line-height: 1;
}

.breadcrumb {
  padding-top: 26px;
  color: var(--muted);
  font-size: .92rem;
}

.tool-hero {
  padding: 34px 0 20px;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  align-items: start;
}

.tool-shell, .page-panel {
  padding: 24px;
}

.tool-form {
  display: grid;
  gap: 14px;
}

label {
  font-weight: 750;
  display: block;
  margin-bottom: 8px;
}

textarea, input, select {
  width: 100%;
  border: 2px solid rgba(20, 124, 95, .13);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 13px 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

textarea:focus, input:focus, select:focus {
  border-color: rgba(20, 124, 95, .58);
  box-shadow: 0 0 0 5px rgba(20, 124, 95, .12);
  outline: none;
}

textarea {
  min-height: 190px;
  resize: vertical;
  line-height: 1.55;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-pop));
  color: white;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-strong);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn-large {
  min-height: 54px;
  padding-inline: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.secondary {
  background: white;
  color: var(--accent-strong);
  border-color: rgba(20, 124, 95, .22);
  box-shadow: 0 12px 26px rgba(23, 45, 37, .10);
}

.btn:hover {
  filter: brightness(1.02);
  transform: translateY(-2px);
  box-shadow: 0 26px 50px rgba(20, 124, 95, .28);
}

.btn:active { transform: translateY(0); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  border: 1px solid rgba(20, 124, 95, .12);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #edf8f2);
  padding: 14px;
}

.stat strong {
  display: block;
  color: var(--accent-strong);
  font-size: 1.65rem;
  line-height: 1.1;
}

.progress {
  height: 14px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}

.ad-placeholder {
  min-height: 110px;
  border: 1px dashed #aebdb5;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #7c8a84;
  background: rgba(237, 244, 240, .65);
}

.ad-placeholder::before { content: "Espaço reservado para anúncio"; }

.side-stack {
  display: grid;
  gap: 14px;
}

.content-stack {
  display: grid;
  gap: 18px;
  margin: 28px 0 46px;
}

.copy-box {
  background: rgba(255, 255, 255, .90);
  border: 1px solid rgba(20, 124, 95, .12);
  border-radius: 8px;
  padding: 18px;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 8px;
}

.emoji-button {
  min-height: 48px;
  border: 1px solid rgba(20, 124, 95, .14);
  border-radius: 8px;
  background: white;
  font-size: 1.45rem;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.emoji-button:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(20, 124, 95, .42);
  box-shadow: 0 12px 22px rgba(23, 45, 37, .12);
}

.notice {
  color: var(--accent-strong);
  font-weight: 750;
  min-height: 24px;
}

.site-footer {
  margin-top: 32px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .hero, .tool-layout, .footer-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-button { display: inline-grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
}

@media (max-width: 560px) {
  .container, .nav { width: min(100% - 22px, 1160px); }
  .hero { padding-top: 42px; }
  .grid, .stats-grid { grid-template-columns: 1fr; }
  .tool-shell, .page-panel { padding: 16px; }
  .section-head { align-items: start; flex-direction: column; }
  .btn { width: 100%; }
}

/* Light neon category theme */
:root {
  color-scheme: light;
  --ink: #101114;
  --muted: #626a76;
  --soft: #f5f7fb;
  --paper: #fbfcff;
  --panel: #ffffff;
  --line: #e3e7ef;
  --accent: #2563ff;
  --accent-strong: #153fa8;
  --accent-pop: #7e3cff;
  --warm: #7e3cff;
  --rose: #b026ff;
  --blue: #007cff;
  --focus: #101114;
  --shadow: 0 18px 42px rgba(16, 17, 20, .08);
  --shadow-strong: 0 12px 28px rgba(var(--cat-rgb), .24);
  --cat-color: #2563ff;
  --cat-rgb: 37, 99, 255;
}

body {
  background:
    linear-gradient(rgba(16, 17, 20, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 17, 20, .035) 1px, transparent 1px),
    radial-gradient(circle at 88% 8%, rgba(var(--cat-rgb), .18), transparent 24rem),
    #fbfcff;
  background-size: 34px 34px;
  color: var(--ink);
}

body.cat-texto { --cat-color: #2563ff; --cat-rgb: 37, 99, 255; --accent-strong: #153fa8; }
body.cat-social { --cat-color: #b026ff; --cat-rgb: 176, 38, 255; --accent-strong: #6810aa; }
body.cat-datas { --cat-color: #007cff; --cat-rgb: 0, 124, 255; --accent-strong: #004ca3; }
body.cat-calculadoras { --cat-color: #5b5cff; --cat-rgb: 91, 92, 255; --accent-strong: #3030b8; }
body.cat-emojis { --cat-color: #7e3cff; --cat-rgb: 126, 60, 255; --accent-strong: #4c21a8; }

a:hover { color: var(--cat-color); }

:focus-visible {
  outline-color: var(--cat-color);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
}

.brand {
  color: var(--ink);
}

.brand-mark {
  border-radius: 8px;
  background: var(--ink);
  color: #7e3cff;
  border: 2px solid var(--ink);
  box-shadow: 0 10px 22px rgba(16, 17, 20, .13);
}

.nav-links {
  color: var(--muted);
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: 8px;
}

.nav-links a:hover {
  background: rgba(var(--cat-rgb), .10);
  color: var(--accent-strong);
  transform: none;
}

.nav-links a:first-child,
.nav-links a:first-child:hover {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 22px rgba(16, 17, 20, .12);
}

.menu-button {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.hero {
  align-items: start;
}

.eyebrow,
.trust-strip span {
  background: #fff;
  border-color: rgba(var(--cat-rgb), .30);
  color: var(--accent-strong);
}

h1, h2 {
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-weight: 950;
  letter-spacing: 0;
}

h1 {
  color: var(--ink);
  text-shadow: none;
}

.hero p,
.lead,
.card-copy,
.muted,
.breadcrumb,
.site-footer {
  color: var(--muted);
}

.search-panel,
.tool-shell,
.page-panel,
.copy-box {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-panel::before {
  background: linear-gradient(90deg, #2563ff, #7e3cff, #b026ff, #007cff);
}

textarea,
input,
select,
.search-input {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

textarea:focus,
input:focus,
select:focus,
.search-input:focus {
  border-color: var(--cat-color);
  box-shadow: 0 0 0 3px rgba(var(--cat-rgb), .22);
}

label {
  color: var(--ink);
}

.btn,
.card-action {
  background: var(--cat-color);
  color: var(--ink);
  border: 1px solid var(--cat-color);
  box-shadow: 0 10px 22px rgba(var(--cat-rgb), .25);
}

.btn.secondary {
  background: transparent;
  color: var(--cat-color);
  border-color: var(--cat-color);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(var(--cat-rgb), .58);
}

.tool-card,
.category-card,
.info-card {
  --cat-card-color: var(--cat-color);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tool-card.cat-texto,
.category-card.cat-texto { --cat-card-color: #2563ff; }
.tool-card.cat-social,
.category-card.cat-social { --cat-card-color: #b026ff; }
.tool-card.cat-datas,
.category-card.cat-datas { --cat-card-color: #007cff; }
.tool-card.cat-calculadoras,
.category-card.cat-calculadoras { --cat-card-color: #5b5cff; }
.tool-card.cat-emojis,
.category-card.cat-emojis { --cat-card-color: #7e3cff; }

.tool-card::before,
.category-card::before {
  right: 18px;
  top: 18px;
  width: 12px;
  height: 12px;
  background: var(--cat-card-color);
  box-shadow: 0 0 18px var(--cat-card-color);
}

.tool-card:hover,
.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--cat-card-color);
  box-shadow: 0 0 0 1px var(--cat-card-color), 0 0 26px color-mix(in srgb, var(--cat-card-color) 32%, transparent);
}

.card-meta {
  color: var(--cat-card-color);
}

.card-title {
  color: var(--ink);
}

.tool-card .card-action {
  background: var(--cat-card-color);
  border-color: var(--cat-card-color);
  box-shadow: 0 0 16px color-mix(in srgb, var(--cat-card-color) 42%, transparent);
}

.stat {
  background: #fff;
  border-color: var(--line);
}

.stat strong,
.notice {
  color: var(--cat-color);
}

.progress {
  background: #e8ebf2;
}

.progress span {
  background: var(--cat-color);
  box-shadow: 0 0 16px rgba(var(--cat-rgb), .50);
}

.ad-placeholder {
  border-color: #ccd2dd;
  background: #f7f8fb;
  color: #7d8594;
}

.result-link {
  background: #fff;
  border-color: var(--line);
}

.result-link:hover {
  box-shadow: 0 0 18px rgba(223, 255, 0, .16);
}

.emoji-button {
  background: #fff;
  border-color: var(--line);
}

.emoji-button:hover {
  border-color: var(--cat-color);
  box-shadow: 0 0 18px rgba(var(--cat-rgb), .38);
}

.site-footer {
  border-top-color: var(--line);
}

@media (max-width: 860px) {
  .nav-links {
    background: #fff;
    border-color: var(--line);
  }
}
