/* Mudar Letras — Light mode modern redesign */
:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-2: #f4f5f8;
  --border: #e6e8ee;
  --text: #111827;
  --text-soft: #4b5563;
  --text-mute: #6b7280;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-soft: #eef2ff;
  --accent: #ec4899;
  --success: #10b981;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(99, 102, 241, 0.18);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 20px;
  box-shadow: var(--shadow);
}
.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav a {
  color: var(--text-soft);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 3px auto;
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 64px 0 24px;
  text-align: center;
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(99, 102, 241, 0.12), transparent 60%),
    radial-gradient(800px 300px at 80% 0%, rgba(236, 72, 153, 0.08), transparent 60%);
}
.hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 28px;
}

/* Input box */
.converter {
  max-width: 720px;
  margin: 0 auto 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px 10px 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.converter:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow-lg);
}
.converter input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 17px;
  padding: 14px 4px;
  background: transparent;
  font-family: inherit;
  color: var(--text);
}
.converter .btn-clear {
  background: var(--surface-2);
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-mute);
  font-size: 16px;
  transition: background 0.2s;
}
.converter .btn-clear:hover { background: #e5e7eb; color: var(--text); }
.converter .btn-random {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  border: 0;
  padding: 0 18px;
  height: 44px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s, box-shadow 0.2s;
}
.converter .btn-random:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(99, 102, 241, 0.6);
}

/* Fonts grid */
.section-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  font-weight: 700;
  margin: 40px 0 16px;
}

.fonts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.font-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.font-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.font-card .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.font-card .label .copy-hint {
  opacity: 0;
  transition: opacity 0.2s;
  color: var(--primary);
  font-weight: 600;
}
.font-card:hover .copy-hint { opacity: 1; }
.font-card .preview {
  font-size: 18px;
  color: var(--text);
  word-break: break-word;
  min-height: 28px;
  line-height: 1.5;
}
.font-card.copied {
  border-color: var(--success);
  background: #ecfdf5;
}
.font-card.copied .copy-hint {
  color: var(--success);
  opacity: 1;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 100;
  max-width: calc(100% - 48px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Content blocks */
.content {
  max-width: 780px;
  margin: 64px auto;
  padding: 0 20px;
}
.content h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
  font-weight: 800;
}
.content h3 {
  font-size: 19px;
  margin: 28px 0 8px;
  font-weight: 700;
}
.content p {
  color: var(--text-soft);
  font-size: 16px;
  margin: 0 0 14px;
}
.content ul {
  color: var(--text-soft);
  padding-left: 22px;
}
.content ul li { margin: 6px 0; }

/* CTA card for backlinks */
.cta-card {
  background: linear-gradient(135deg, var(--primary-soft), #fdf2f8);
  border: 1px solid #e0e7ff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 40px 0;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.cta-card .cta-text { flex: 1; min-width: 240px; }
.cta-card h3 { margin: 0 0 6px; font-size: 20px; color: var(--text); }
.cta-card p { margin: 0; color: var(--text-soft); font-size: 15px; }
.cta-card .cta-btn {
  background: var(--text);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s;
}
.cta-card .cta-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
  background: #000;
}

/* Related keyword pills */
.related {
  margin: 48px auto;
  max-width: var(--max);
  padding: 0 20px;
}
.related h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill-grid a {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-soft);
  transition: all 0.2s;
  font-weight: 500;
}
.pill-grid a:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
  background: var(--primary-soft);
}

/* FAQ */
.faq {
  max-width: 780px;
  margin: 48px auto;
  padding: 0 20px;
}
.faq h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  text-align: center;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--primary); }
.faq summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--text-mute);
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  padding: 0 22px 18px;
  color: var(--text-soft);
  margin: 0;
}

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 64px;
}
footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  margin: 0 0 14px;
}
footer p { color: var(--text-soft); font-size: 14px; margin: 0 0 10px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin: 8px 0; }
footer ul a { color: var(--text-soft); font-size: 14px; }
footer ul a:hover { color: var(--primary); }
.footer-bottom {
  max-width: var(--max);
  margin: 32px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
}

/* Mobile */
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px; border-bottom: 1px solid var(--border); gap: 4px; }
  .nav.open { display: flex; }
  .nav a { width: 100%; }
  .nav-toggle { display: block; }
  footer .container { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 40px 0 12px; }
  .converter { flex-wrap: wrap; padding: 10px; }
  .converter input { width: 100%; padding: 12px; }
  .converter .btn-random { flex: 1; justify-content: center; }
}
