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

:root {
  --red: #e8140e;
  --red-hover: #c01109;

  /* tokens de tema (claro) */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --text-strong: #111827;
  --text: #1f2937;
  --text-2: #374151;
  --text-3: #4b5563;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;
  --border: #e5e7eb;
  --border-2: #d1d5db;

  --hero-bg: linear-gradient(160deg, #fff8f8 0%, #fff 60%);
  --section-alt: #fff5f5;
  --footer-bg: #1f2937;

  /* aliases legados */
  --light-gray: var(--surface-2);
  --pink-bg: var(--section-alt);
  --card-shadow: 0 1px 4px rgba(0,0,0,.08);
  --radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text); background: var(--bg);
  transition: background .25s ease, color .25s ease;
}

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0;
  padding: 0 32px; height: 56px;
  transition: background .25s ease, border-color .25s ease;
}
.logo { display: flex; align-items: center; gap: 2px; font-size: 22px; font-weight: 900; color: var(--text); text-decoration: none; margin-right: 28px; }
.logo-heart { color: var(--red); font-size: 20px; }
.logo span { font-style: italic; }
nav ul { display: flex; list-style: none; gap: 4px; flex: 1; }
nav ul li a {
  font-size: 13px; font-weight: 600; color: var(--text-2);
  text-decoration: none; padding: 8px 10px; border-radius: 6px;
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
  transition: background .15s, color .15s;
}
nav ul li a:hover { background: var(--surface-2); }
nav ul li a.active { color: var(--red); }
nav ul li a .chevron { font-size: 10px; color: var(--text-faint); }

/* ─── DROPDOWN MENUS ─── */
nav ul li.has-dropdown { position: relative; }
nav .dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.14);
  padding: 10px; min-width: 230px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s; z-index: 200;
}
nav ul li.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
nav .dropdown::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
nav .dropdown ul { display: block; list-style: none; flex: none; gap: 0; }
nav .dropdown li a { font-size: 13px; font-weight: 500; padding: 8px 10px; border-radius: 6px; color: var(--text-2); display: block; }
nav .dropdown li a:hover { background: var(--surface-2); color: var(--red); }
nav .dropdown-mega { display: grid; grid-template-columns: repeat(3, 172px); gap: 4px 14px; left: auto; right: 0; min-width: 0; }
nav .dropdown-mega .dropdown-col { min-width: 0; }
nav .dropdown-mega h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); padding: 6px 10px 4px; margin: 0; }

/* ─── HERO ─── */
.hero {
  background: var(--hero-bg);
  padding: 60px 32px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -60px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,20,14,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -40px; left: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,20,14,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; color: var(--text-strong); line-height: 1.15; max-width: 780px; margin: 0 auto 16px; }
.hero p { font-size: 16px; color: var(--text-3); max-width: 660px; margin: 0 auto 36px; line-height: 1.6; }

/* ─── FILTER PILLS ─── */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter-btn {
  font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid var(--border-2); background: var(--surface); color: var(--text-2);
  cursor: pointer; transition: all .15s;
}
.filter-btn:hover { border-color: var(--text-faint); }
.filter-btn.active { background: var(--text-strong); color: var(--bg); border-color: var(--text-strong); }

/* ─── TOOLS GRID ─── */
.tools-section { max-width: 1320px; margin: 0 auto; padding: 0 24px 60px; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 18px;
}

.tool-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px 22px 22px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 196px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .25s ease;
  cursor: pointer; overflow: hidden;
}
/* leve "wash" da cor da ferramenta, aparece no hover */
.tool-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(130% 130% at 100% 0%, var(--accent-bg, #fff5f5) 0%, transparent 46%);
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent, #e8140e);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.18);
  box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--accent, #e8140e) 40%, transparent);
}
.tool-card:hover::before { opacity: 1; }
.tool-card > * { position: relative; z-index: 1; }

.tool-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.tool-card h3 { font-size: 15.5px; font-weight: 700; color: var(--text-strong); transition: color .2s ease; }
.tool-card:hover h3 { color: var(--accent, #e8140e); }
.tool-card p {
  font-size: 13px; color: var(--text-muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* link "Usar ferramenta →" que aparece no hover */
.card-go {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--accent, #e8140e);
  opacity: 0; transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.card-go svg { transition: transform .2s ease; }
.tool-card:hover .card-go { opacity: 1; transform: none; }
.tool-card:hover .card-go svg { transform: translateX(3px); }

/* workflow card */
.workflow-card {
  background: var(--section-alt); border: 2px dashed #fca5a5;
  border-radius: var(--radius); padding: 22px 20px 20px;
  display: flex; flex-direction: column; gap: 10px; cursor: pointer;
  transition: box-shadow .18s;
}
.workflow-card:hover { box-shadow: 0 4px 16px rgba(232,20,14,.12); }
.workflow-card h3 { font-size: 15px; font-weight: 700; color: var(--text-strong); }
.workflow-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.workflow-link { font-size: 13px; font-weight: 700; color: var(--red); display: flex; align-items: center; gap: 4px; margin-top: auto; }

/* ─── WORK YOUR WAY ─── */
.work-section { background: var(--section-alt); padding: 70px 32px 80px; text-align: center; transition: background .25s ease; }
.work-section h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 800; margin-bottom: 48px; color: var(--text-strong); }
.work-cards { display: flex; gap: 24px; max-width: 1100px; margin: 0 auto; justify-content: center; flex-wrap: wrap; }
.work-card {
  background: var(--surface); border-radius: 16px; padding: 0;
  flex: 1; min-width: 280px; max-width: 360px;
  overflow: hidden; text-align: left;
  box-shadow: var(--card-shadow);
  display: flex; flex-direction: column;
}
.work-card-img {
  height: 200px; background: #fef2f2;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; overflow: hidden; position: relative;
}
.work-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.work-card-body h3 { font-size: 17px; font-weight: 700; color: var(--text-strong); }
.work-card-body p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.work-card-arrow {
  margin-top: auto; align-self: flex-end;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-2); text-decoration: none;
  transition: background .15s;
}
.work-card-arrow:hover { background: var(--surface-2); }

/* ─── FOOTER ─── */
footer {
  background: var(--footer-bg); color: #9ca3af;
  padding: 48px 32px 32px;
  transition: background .25s ease;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; max-width: 1100px; margin: 0 auto 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: #f9fafb; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: #9ca3af; text-decoration: none; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 24px; text-align: center; font-size: 12px; max-width: 1100px; margin: 0 auto; }

/* ─── SVG ICON HELPER ─── */
.icon-wrap {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--accent-bg, #fff0f0);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tool-card:hover .icon-wrap {
  transform: scale(1.07) rotate(-3deg);
  box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--accent, #e8140e) 45%, transparent);
}
