/* ============================================================
   MechaPaint - works.css
   "Works with your tools" grid on the front page + the
   per-tool landing pages (/unity/, /blender/, /polytoria/ ...).
   Loaded after styles2.css and extras.css.
   ============================================================ */

/* ---------- front page: works-with band ---------- */

.works-band {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 14px;
}

.works-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 24px 12px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.works-tile:hover {
  transform: translateY(-4px);
  border-color: var(--tile-c, var(--accent));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.works-badge {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  color: #0a1220;
  background: var(--tile-c, var(--accent));
  transition: transform 0.15s ease;
}

.works-tile:hover .works-badge { transform: rotate(-6deg) scale(1.08); }

.works-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.35;
}

/* ---------- front page: punch-up ---------- */

.grad-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.uv-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.uv-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.step, .rescue-item {
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.step:hover, .rescue-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

/* ---------- per-tool landing pages ---------- */

.works-head { padding-bottom: 8px; }

.works-head h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.12;
  margin: 10px 0 16px;
}

.works-head .hero-cta { margin-top: 22px; }

.works-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.works-all-link {
  margin-top: 20px;
  font-size: 14px;
}

.works-all-link a { color: var(--accent); text-decoration: none; }
.works-all-link a:hover { text-decoration: underline; }

@media (max-width: 620px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}
